123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- syntax = "proto3";
- package google.iam.v1;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/iam/v1/options.proto";
- import "google/iam/v1/policy.proto";
- import "google/protobuf/field_mask.proto";
- option cc_enable_arenas = true;
- option csharp_namespace = "Google.Cloud.Iam.V1";
- option go_package = "google.golang.org/genproto/googleapis/iam/v1;iam";
- option java_multiple_files = true;
- option java_outer_classname = "IamPolicyProto";
- option java_package = "com.google.iam.v1";
- option php_namespace = "Google\\Cloud\\Iam\\V1";
- service IAMPolicy {
- option (google.api.default_host) = "iam-meta-api.googleapis.com";
-
-
-
-
- rpc SetIamPolicy(SetIamPolicyRequest) returns (Policy) {
- option (google.api.http) = {
- post: "/v1/{resource=**}:setIamPolicy"
- body: "*"
- };
- }
-
-
-
- rpc GetIamPolicy(GetIamPolicyRequest) returns (Policy) {
- option (google.api.http) = {
- post: "/v1/{resource=**}:getIamPolicy"
- body: "*"
- };
- }
-
-
-
-
-
-
-
- rpc TestIamPermissions(TestIamPermissionsRequest) returns (TestIamPermissionsResponse) {
- option (google.api.http) = {
- post: "/v1/{resource=**}:testIamPermissions"
- body: "*"
- };
- }
- }
- message SetIamPolicyRequest {
-
-
- string resource = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference).type = "*"];
-
-
-
-
- Policy policy = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
- google.protobuf.FieldMask update_mask = 3;
- }
- message GetIamPolicyRequest {
-
-
- string resource = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference).type = "*"];
-
-
- GetPolicyOptions options = 2;
- }
- message TestIamPermissionsRequest {
-
-
- string resource = 1[
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference).type = "*"];
-
-
-
-
- repeated string permissions = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message TestIamPermissionsResponse {
-
-
- repeated string permissions = 1;
- }
|