gcp_user_access_binding.proto 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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/field_behavior.proto";
  17. import "google/api/resource.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 = "GcpUserAccessBindingProto";
  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. // Restricts access to Cloud Console and Google Cloud APIs for a set of users
  27. // using Context-Aware Access.
  28. message GcpUserAccessBinding {
  29. option (google.api.resource) = {
  30. type: "accesscontextmanager.googleapis.com/GcpUserAccessBinding"
  31. pattern: "organizations/{organization}/gcpUserAccessBindings/{gcp_user_access_binding}"
  32. };
  33. // Immutable. Assigned by the server during creation. The last segment has an arbitrary
  34. // length and has only URI unreserved characters (as defined by
  35. // [RFC 3986 Section 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)).
  36. // Should not be specified by the client during creation.
  37. // Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N"
  38. string name = 1 [(google.api.field_behavior) = IMMUTABLE];
  39. // Required. Immutable. Google Group id whose members are subject to this binding's restrictions.
  40. // See "id" in the [G Suite Directory API's Groups resource]
  41. // (https://developers.google.com/admin-sdk/directory/v1/reference/groups#resource).
  42. // If a group's email address/alias is changed, this resource will continue
  43. // to point at the changed group. This field does not accept group email
  44. // addresses or aliases.
  45. // Example: "01d520gv4vjcrht"
  46. string group_key = 2 [
  47. (google.api.field_behavior) = REQUIRED,
  48. (google.api.field_behavior) = IMMUTABLE
  49. ];
  50. // Required. Access level that a user must have to be granted access. Only one access
  51. // level is supported, not multiple. This repeated field must have exactly
  52. // one element.
  53. // Example: "accessPolicies/9522/accessLevels/device_trusted"
  54. repeated string access_levels = 3 [
  55. (google.api.field_behavior) = REQUIRED,
  56. (google.api.resource_reference) = {
  57. type: "accesscontextmanager.googleapis.com/AccessLevel"
  58. }
  59. ];
  60. }