access_policy.proto 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // Copyright 2021 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.identity.accesscontextmanager.v1;
  16. import "google/api/resource.proto";
  17. import "google/protobuf/timestamp.proto";
  18. import "google/api/annotations.proto";
  19. option csharp_namespace = "Google.Identity.AccessContextManager.V1";
  20. option go_package = "google.golang.org/genproto/googleapis/identity/accesscontextmanager/v1;accesscontextmanager";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "PolicyProto";
  23. option java_package = "com.google.identity.accesscontextmanager.v1";
  24. option objc_class_prefix = "GACM";
  25. option php_namespace = "Google\\Identity\\AccessContextManager\\V1";
  26. option ruby_package = "Google::Identity::AccessContextManager::V1";
  27. // `AccessPolicy` is a container for `AccessLevels` (which define the necessary
  28. // attributes to use Google Cloud services) and `ServicePerimeters` (which
  29. // define regions of services able to freely pass data within a perimeter). An
  30. // access policy is globally visible within an organization, and the
  31. // restrictions it specifies apply to all projects within an organization.
  32. message AccessPolicy {
  33. option (google.api.resource) = {
  34. type: "accesscontextmanager.googleapis.com/AccessPolicy"
  35. pattern: "accessPolicies/{access_policy}"
  36. };
  37. // Output only. Resource name of the `AccessPolicy`. Format:
  38. // `accessPolicies/{access_policy}`
  39. string name = 1;
  40. // Required. The parent of this `AccessPolicy` in the Cloud Resource
  41. // Hierarchy. Currently immutable once created. Format:
  42. // `organizations/{organization_id}`
  43. string parent = 2;
  44. // Required. Human readable title. Does not affect behavior.
  45. string title = 3;
  46. // Output only. Time the `AccessPolicy` was created in UTC.
  47. google.protobuf.Timestamp create_time = 4;
  48. // Output only. Time the `AccessPolicy` was updated in UTC.
  49. google.protobuf.Timestamp update_time = 5;
  50. // Output only. An opaque identifier for the current version of the
  51. // `AccessPolicy`. This will always be a strongly validated etag, meaning that
  52. // two Access Polices will be identical if and only if their etags are
  53. // identical. Clients should not expect this to be in any specific format.
  54. string etag = 6;
  55. }