options.proto 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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.iam.v1;
  16. option cc_enable_arenas = true;
  17. option csharp_namespace = "Google.Cloud.Iam.V1";
  18. option go_package = "google.golang.org/genproto/googleapis/iam/v1;iam";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "OptionsProto";
  21. option java_package = "com.google.iam.v1";
  22. option php_namespace = "Google\\Cloud\\Iam\\V1";
  23. // Encapsulates settings provided to GetIamPolicy.
  24. message GetPolicyOptions {
  25. // Optional. The maximum policy version that will be used to format the
  26. // policy.
  27. //
  28. // Valid values are 0, 1, and 3. Requests specifying an invalid value will be
  29. // rejected.
  30. //
  31. // Requests for policies with any conditional role bindings must specify
  32. // version 3. Policies with no conditional role bindings may specify any valid
  33. // value or leave the field unset.
  34. //
  35. // The policy in the response might use the policy version that you specified,
  36. // or it might use a lower policy version. For example, if you specify version
  37. // 3, but the policy has no conditional role bindings, the response uses
  38. // version 1.
  39. //
  40. // To learn which resources support conditions in their IAM policies, see the
  41. // [IAM
  42. // documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
  43. int32 requested_policy_version = 1;
  44. }