123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283 |
- syntax = "proto3";
- package google.iam.v2beta;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/iam/v2beta/deny.proto";
- import "google/longrunning/operations.proto";
- import "google/protobuf/timestamp.proto";
- option csharp_namespace = "Google.Cloud.Iam.V2Beta";
- option go_package = "google.golang.org/genproto/googleapis/iam/v2beta;iam";
- option java_multiple_files = true;
- option java_outer_classname = "PolicyProto";
- option java_package = "com.google.iam.v2beta";
- option php_namespace = "Google\\Cloud\\Iam\\V2beta";
- service Policies {
- option (google.api.default_host) = "iam.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
-
-
-
-
-
- rpc ListPolicies(ListPoliciesRequest) returns (ListPoliciesResponse) {
- option (google.api.http) = {
- get: "/v2beta/{parent=policies/*/*}"
- };
- option (google.api.method_signature) = "parent";
- }
-
- rpc GetPolicy(GetPolicyRequest) returns (Policy) {
- option (google.api.http) = {
- get: "/v2beta/{name=policies/*/*/*}"
- };
- option (google.api.method_signature) = "name";
- }
-
- rpc CreatePolicy(CreatePolicyRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- post: "/v2beta/{parent=policies/*/*}"
- body: "policy"
- };
- option (google.api.method_signature) = "parent,policy,policy_id";
- option (google.longrunning.operation_info) = {
- response_type: "Policy"
- metadata_type: "PolicyOperationMetadata"
- };
- }
-
-
-
-
-
-
-
-
-
-
-
- rpc UpdatePolicy(UpdatePolicyRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- put: "/v2beta/{policy.name=policies/*/*/*}"
- body: "policy"
- };
- option (google.longrunning.operation_info) = {
- response_type: "Policy"
- metadata_type: "PolicyOperationMetadata"
- };
- }
-
- rpc DeletePolicy(DeletePolicyRequest) returns (google.longrunning.Operation) {
- option (google.api.http) = {
- delete: "/v2beta/{name=policies/*/*/*}"
- };
- option (google.api.method_signature) = "name";
- option (google.longrunning.operation_info) = {
- response_type: "Policy"
- metadata_type: "PolicyOperationMetadata"
- };
- }
- }
- message Policy {
-
-
-
-
-
-
-
-
-
-
-
-
- string name = 1 [(google.api.field_behavior) = IMMUTABLE];
-
-
- string uid = 2 [(google.api.field_behavior) = IMMUTABLE];
-
- string kind = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- string display_name = 4;
-
-
- map<string, string> annotations = 5;
-
-
-
-
-
-
- string etag = 6;
-
- google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.protobuf.Timestamp delete_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- repeated PolicyRule rules = 10;
- }
- message PolicyRule {
- oneof kind {
-
- DenyRule deny_rule = 2;
- }
-
-
- string description = 1;
- }
- message ListPoliciesRequest {
-
-
-
-
-
-
-
-
-
-
-
-
- string parent = 1 [(google.api.field_behavior) = REQUIRED];
-
-
- int32 page_size = 2;
-
-
- string page_token = 3;
- }
- message ListPoliciesResponse {
-
- repeated Policy policies = 1;
-
-
- string next_page_token = 2;
- }
- message GetPolicyRequest {
-
-
-
-
-
-
-
-
-
-
- string name = 1 [(google.api.field_behavior) = REQUIRED];
- }
- message CreatePolicyRequest {
-
-
-
-
-
-
-
-
-
-
-
- string parent = 1 [(google.api.field_behavior) = REQUIRED];
-
- Policy policy = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
- string policy_id = 3;
- }
- message UpdatePolicyRequest {
-
-
-
-
-
- Policy policy = 1 [(google.api.field_behavior) = REQUIRED];
- }
- message DeletePolicyRequest {
-
-
-
-
-
-
-
-
-
-
- string name = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
-
- string etag = 2 [(google.api.field_behavior) = OPTIONAL];
- }
- message PolicyOperationMetadata {
-
- google.protobuf.Timestamp create_time = 1;
- }
|