access_policy.proto 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. // Copyright 2022 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. option csharp_namespace = "Google.Identity.AccessContextManager.V1";
  19. option go_package = "google.golang.org/genproto/googleapis/identity/accesscontextmanager/v1;accesscontextmanager";
  20. option java_multiple_files = true;
  21. option java_outer_classname = "PolicyProto";
  22. option java_package = "com.google.identity.accesscontextmanager.v1";
  23. option objc_class_prefix = "GACM";
  24. option php_namespace = "Google\\Identity\\AccessContextManager\\V1";
  25. option ruby_package = "Google::Identity::AccessContextManager::V1";
  26. // `AccessPolicy` is a container for `AccessLevels` (which define the necessary
  27. // attributes to use Google Cloud services) and `ServicePerimeters` (which
  28. // define regions of services able to freely pass data within a perimeter). An
  29. // access policy is globally visible within an organization, and the
  30. // restrictions it specifies apply to all projects within an organization.
  31. message AccessPolicy {
  32. option (google.api.resource) = {
  33. type: "accesscontextmanager.googleapis.com/AccessPolicy"
  34. pattern: "accessPolicies/{access_policy}"
  35. };
  36. // Output only. Resource name of the `AccessPolicy`. Format:
  37. // `accessPolicies/{access_policy}`
  38. string name = 1;
  39. // Required. The parent of this `AccessPolicy` in the Cloud Resource
  40. // Hierarchy. Currently immutable once created. Format:
  41. // `organizations/{organization_id}`
  42. string parent = 2;
  43. // Required. Human readable title. Does not affect behavior.
  44. string title = 3;
  45. // The scopes of a policy define which resources an ACM policy can restrict,
  46. // and where ACM resources can be referenced.
  47. // For example, a policy with scopes=["folders/123"] has the following
  48. // behavior:
  49. // - vpcsc perimeters can only restrict projects within folders/123
  50. // - access levels can only be referenced by resources within folders/123.
  51. // If empty, there are no limitations on which resources can be restricted by
  52. // an ACM policy, and there are no limitations on where ACM resources can be
  53. // referenced.
  54. // Only one policy can include a given scope (attempting to create a second
  55. // policy which includes "folders/123" will result in an error).
  56. // Currently, scopes cannot be modified after a policy is created.
  57. // Currently, policies can only have a single scope.
  58. // Format: list of `folders/{folder_number}` or `projects/{project_number}`
  59. repeated string scopes = 7;
  60. // Output only. Time the `AccessPolicy` was created in UTC.
  61. google.protobuf.Timestamp create_time = 4;
  62. // Output only. Time the `AccessPolicy` was updated in UTC.
  63. google.protobuf.Timestamp update_time = 5;
  64. // Output only. An opaque identifier for the current version of the
  65. // `AccessPolicy`. This will always be a strongly validated etag, meaning that
  66. // two Access Polices will be identical if and only if their etags are
  67. // identical. Clients should not expect this to be in any specific format.
  68. string etag = 6;
  69. }