google-cloud-resource_manager-v3 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/resource_manager/v3/folders/client.rb +8 -2
- data/lib/google/cloud/resource_manager/v3/organizations/client.rb +8 -2
- data/lib/google/cloud/resource_manager/v3/projects/client.rb +8 -2
- data/lib/google/cloud/resource_manager/v3/tag_keys/client.rb +8 -2
- data/lib/google/cloud/resource_manager/v3/tag_values/client.rb +8 -2
- data/lib/google/cloud/resource_manager/v3/version.rb +1 -1
- data/lib/google/cloud/resource_manager/v3.rb +2 -0
- data/proto_docs/google/iam/v1/iam_policy.rb +8 -1
- data/proto_docs/google/iam/v1/options.rb +14 -4
- data/proto_docs/google/iam/v1/policy.rb +208 -38
- metadata +7 -13
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 16bb00438dba33ecb8014be7a9f3ea87ee36f5229c8c16a08d69f48ac59346a9
|
|
4
|
+
data.tar.gz: 7a1357019595e4cbf9b587d6b4338a9ca1af2fa1f57d10e85d0c0728806bfd61
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0f6b8221c30a2723405172c60ae93356fc1301277e72fc05e5f2990cf27e28710bc08170729389c8457d7f0e4f7d9467053086e314ac3aa4890e5a43b9ee21ac
|
|
7
|
+
data.tar.gz: 645c36f4d58480ed1ebfbe7ce0545d6275b88ac81330ce7c54bd0ceb429e2b3e7393bdc8c1522157bc44aa2bee7e43da36652fbd1a59c3c0ec8f71932f9a4606
|
data/README.md
CHANGED
|
@@ -37,7 +37,7 @@ request = ::Google::Cloud::ResourceManager::V3::GetFolderRequest.new # (request
|
|
|
37
37
|
response = client.get_folder request
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
View the [Client Library Documentation](https://
|
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-resource_manager-v3/latest)
|
|
41
41
|
for class and method documentation.
|
|
42
42
|
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/resource-manager/)
|
|
@@ -1075,7 +1075,7 @@ module Google
|
|
|
1075
1075
|
# See the operation documentation for the appropriate value for this field.
|
|
1076
1076
|
# @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
|
|
1077
1077
|
# OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
|
1078
|
-
# `GetIamPolicy`.
|
|
1078
|
+
# `GetIamPolicy`.
|
|
1079
1079
|
#
|
|
1080
1080
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
1081
1081
|
# @yieldparam response [::Google::Iam::V1::Policy]
|
|
@@ -1158,7 +1158,7 @@ module Google
|
|
|
1158
1158
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1159
1159
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1160
1160
|
#
|
|
1161
|
-
# @overload set_iam_policy(resource: nil, policy: nil)
|
|
1161
|
+
# @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil)
|
|
1162
1162
|
# Pass arguments to `set_iam_policy` via keyword arguments. Note that at
|
|
1163
1163
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1164
1164
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -1171,6 +1171,12 @@ module Google
|
|
|
1171
1171
|
# the policy is limited to a few 10s of KB. An empty policy is a
|
|
1172
1172
|
# valid policy but certain Cloud Platform services (such as Projects)
|
|
1173
1173
|
# might reject them.
|
|
1174
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
1175
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
|
1176
|
+
# the fields in the mask will be modified. If no mask is provided, the
|
|
1177
|
+
# following default mask is used:
|
|
1178
|
+
#
|
|
1179
|
+
# `paths: "bindings, etag"`
|
|
1174
1180
|
#
|
|
1175
1181
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
1176
1182
|
# @yieldparam response [::Google::Iam::V1::Policy]
|
|
@@ -386,7 +386,7 @@ module Google
|
|
|
386
386
|
# See the operation documentation for the appropriate value for this field.
|
|
387
387
|
# @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
|
|
388
388
|
# OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
|
389
|
-
# `GetIamPolicy`.
|
|
389
|
+
# `GetIamPolicy`.
|
|
390
390
|
#
|
|
391
391
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
392
392
|
# @yieldparam response [::Google::Iam::V1::Policy]
|
|
@@ -470,7 +470,7 @@ module Google
|
|
|
470
470
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
471
471
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
472
472
|
#
|
|
473
|
-
# @overload set_iam_policy(resource: nil, policy: nil)
|
|
473
|
+
# @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil)
|
|
474
474
|
# Pass arguments to `set_iam_policy` via keyword arguments. Note that at
|
|
475
475
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
476
476
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -483,6 +483,12 @@ module Google
|
|
|
483
483
|
# the policy is limited to a few 10s of KB. An empty policy is a
|
|
484
484
|
# valid policy but certain Cloud Platform services (such as Projects)
|
|
485
485
|
# might reject them.
|
|
486
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
487
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
|
488
|
+
# the fields in the mask will be modified. If no mask is provided, the
|
|
489
|
+
# following default mask is used:
|
|
490
|
+
#
|
|
491
|
+
# `paths: "bindings, etag"`
|
|
486
492
|
#
|
|
487
493
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
488
494
|
# @yieldparam response [::Google::Iam::V1::Policy]
|
|
@@ -1070,7 +1070,7 @@ module Google
|
|
|
1070
1070
|
# See the operation documentation for the appropriate value for this field.
|
|
1071
1071
|
# @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
|
|
1072
1072
|
# OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
|
1073
|
-
# `GetIamPolicy`.
|
|
1073
|
+
# `GetIamPolicy`.
|
|
1074
1074
|
#
|
|
1075
1075
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
1076
1076
|
# @yieldparam response [::Google::Iam::V1::Policy]
|
|
@@ -1192,7 +1192,7 @@ module Google
|
|
|
1192
1192
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1193
1193
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
1194
1194
|
#
|
|
1195
|
-
# @overload set_iam_policy(resource: nil, policy: nil)
|
|
1195
|
+
# @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil)
|
|
1196
1196
|
# Pass arguments to `set_iam_policy` via keyword arguments. Note that at
|
|
1197
1197
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1198
1198
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -1205,6 +1205,12 @@ module Google
|
|
|
1205
1205
|
# the policy is limited to a few 10s of KB. An empty policy is a
|
|
1206
1206
|
# valid policy but certain Cloud Platform services (such as Projects)
|
|
1207
1207
|
# might reject them.
|
|
1208
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
1209
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
|
1210
|
+
# the fields in the mask will be modified. If no mask is provided, the
|
|
1211
|
+
# following default mask is used:
|
|
1212
|
+
#
|
|
1213
|
+
# `paths: "bindings, etag"`
|
|
1208
1214
|
#
|
|
1209
1215
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
1210
1216
|
# @yieldparam response [::Google::Iam::V1::Policy]
|
|
@@ -684,7 +684,7 @@ module Google
|
|
|
684
684
|
# See the operation documentation for the appropriate value for this field.
|
|
685
685
|
# @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
|
|
686
686
|
# OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
|
687
|
-
# `GetIamPolicy`.
|
|
687
|
+
# `GetIamPolicy`.
|
|
688
688
|
#
|
|
689
689
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
690
690
|
# @yieldparam response [::Google::Iam::V1::Policy]
|
|
@@ -767,7 +767,7 @@ module Google
|
|
|
767
767
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
768
768
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
769
769
|
#
|
|
770
|
-
# @overload set_iam_policy(resource: nil, policy: nil)
|
|
770
|
+
# @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil)
|
|
771
771
|
# Pass arguments to `set_iam_policy` via keyword arguments. Note that at
|
|
772
772
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
773
773
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -780,6 +780,12 @@ module Google
|
|
|
780
780
|
# the policy is limited to a few 10s of KB. An empty policy is a
|
|
781
781
|
# valid policy but certain Cloud Platform services (such as Projects)
|
|
782
782
|
# might reject them.
|
|
783
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
784
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
|
785
|
+
# the fields in the mask will be modified. If no mask is provided, the
|
|
786
|
+
# following default mask is used:
|
|
787
|
+
#
|
|
788
|
+
# `paths: "bindings, etag"`
|
|
783
789
|
#
|
|
784
790
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
785
791
|
# @yieldparam response [::Google::Iam::V1::Policy]
|
|
@@ -680,7 +680,7 @@ module Google
|
|
|
680
680
|
# See the operation documentation for the appropriate value for this field.
|
|
681
681
|
# @param options [::Google::Iam::V1::GetPolicyOptions, ::Hash]
|
|
682
682
|
# OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
|
683
|
-
# `GetIamPolicy`.
|
|
683
|
+
# `GetIamPolicy`.
|
|
684
684
|
#
|
|
685
685
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
686
686
|
# @yieldparam response [::Google::Iam::V1::Policy]
|
|
@@ -763,7 +763,7 @@ module Google
|
|
|
763
763
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
764
764
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
765
765
|
#
|
|
766
|
-
# @overload set_iam_policy(resource: nil, policy: nil)
|
|
766
|
+
# @overload set_iam_policy(resource: nil, policy: nil, update_mask: nil)
|
|
767
767
|
# Pass arguments to `set_iam_policy` via keyword arguments. Note that at
|
|
768
768
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
769
769
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -776,6 +776,12 @@ module Google
|
|
|
776
776
|
# the policy is limited to a few 10s of KB. An empty policy is a
|
|
777
777
|
# valid policy but certain Cloud Platform services (such as Projects)
|
|
778
778
|
# might reject them.
|
|
779
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
780
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
|
781
|
+
# the fields in the mask will be modified. If no mask is provided, the
|
|
782
|
+
# following default mask is used:
|
|
783
|
+
#
|
|
784
|
+
# `paths: "bindings, etag"`
|
|
779
785
|
#
|
|
780
786
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
781
787
|
# @yieldparam response [::Google::Iam::V1::Policy]
|
|
@@ -31,6 +31,13 @@ module Google
|
|
|
31
31
|
# the policy is limited to a few 10s of KB. An empty policy is a
|
|
32
32
|
# valid policy but certain Cloud Platform services (such as Projects)
|
|
33
33
|
# might reject them.
|
|
34
|
+
# @!attribute [rw] update_mask
|
|
35
|
+
# @return [::Google::Protobuf::FieldMask]
|
|
36
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
|
37
|
+
# the fields in the mask will be modified. If no mask is provided, the
|
|
38
|
+
# following default mask is used:
|
|
39
|
+
#
|
|
40
|
+
# `paths: "bindings, etag"`
|
|
34
41
|
class SetIamPolicyRequest
|
|
35
42
|
include ::Google::Protobuf::MessageExts
|
|
36
43
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -44,7 +51,7 @@ module Google
|
|
|
44
51
|
# @!attribute [rw] options
|
|
45
52
|
# @return [::Google::Iam::V1::GetPolicyOptions]
|
|
46
53
|
# OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
|
47
|
-
# `GetIamPolicy`.
|
|
54
|
+
# `GetIamPolicy`.
|
|
48
55
|
class GetIamPolicyRequest
|
|
49
56
|
include ::Google::Protobuf::MessageExts
|
|
50
57
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -23,14 +23,24 @@ module Google
|
|
|
23
23
|
# Encapsulates settings provided to GetIamPolicy.
|
|
24
24
|
# @!attribute [rw] requested_policy_version
|
|
25
25
|
# @return [::Integer]
|
|
26
|
-
# Optional. The policy
|
|
26
|
+
# Optional. The maximum policy version that will be used to format the
|
|
27
|
+
# policy.
|
|
27
28
|
#
|
|
28
29
|
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
|
29
30
|
# rejected.
|
|
30
31
|
#
|
|
31
|
-
# Requests for policies with any conditional bindings must specify
|
|
32
|
-
# Policies
|
|
33
|
-
# leave the field unset.
|
|
32
|
+
# Requests for policies with any conditional role bindings must specify
|
|
33
|
+
# version 3. Policies with no conditional role bindings may specify any valid
|
|
34
|
+
# value or leave the field unset.
|
|
35
|
+
#
|
|
36
|
+
# The policy in the response might use the policy version that you specified,
|
|
37
|
+
# or it might use a lower policy version. For example, if you specify version
|
|
38
|
+
# 3, but the policy has no conditional role bindings, the response uses
|
|
39
|
+
# version 1.
|
|
40
|
+
#
|
|
41
|
+
# To learn which resources support conditions in their IAM policies, see the
|
|
42
|
+
# [IAM
|
|
43
|
+
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
34
44
|
class GetPolicyOptions
|
|
35
45
|
include ::Google::Protobuf::MessageExts
|
|
36
46
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -20,19 +20,24 @@
|
|
|
20
20
|
module Google
|
|
21
21
|
module Iam
|
|
22
22
|
module V1
|
|
23
|
-
#
|
|
24
|
-
#
|
|
23
|
+
# An Identity and Access Management (IAM) policy, which specifies access
|
|
24
|
+
# controls for Google Cloud resources.
|
|
25
25
|
#
|
|
26
26
|
#
|
|
27
27
|
# A `Policy` is a collection of `bindings`. A `binding` binds one or more
|
|
28
|
-
# `members
|
|
29
|
-
# Google groups, and domains (such as G Suite). A
|
|
30
|
-
#
|
|
31
|
-
#
|
|
32
|
-
# constrains the role binding based on attributes about the request and/or
|
|
33
|
-
# target resource.
|
|
28
|
+
# `members`, or principals, to a single `role`. Principals can be user
|
|
29
|
+
# accounts, service accounts, Google groups, and domains (such as G Suite). A
|
|
30
|
+
# `role` is a named list of permissions; each `role` can be an IAM predefined
|
|
31
|
+
# role or a user-created custom role.
|
|
34
32
|
#
|
|
35
|
-
#
|
|
33
|
+
# For some types of Google Cloud resources, a `binding` can also specify a
|
|
34
|
+
# `condition`, which is a logical expression that allows access to a resource
|
|
35
|
+
# only if the expression evaluates to `true`. A condition can add constraints
|
|
36
|
+
# based on attributes of the request, the resource, or both. To learn which
|
|
37
|
+
# resources support conditions in their IAM policies, see the
|
|
38
|
+
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
39
|
+
#
|
|
40
|
+
# **JSON example:**
|
|
36
41
|
#
|
|
37
42
|
# {
|
|
38
43
|
# "bindings": [
|
|
@@ -47,18 +52,21 @@ module Google
|
|
|
47
52
|
# },
|
|
48
53
|
# {
|
|
49
54
|
# "role": "roles/resourcemanager.organizationViewer",
|
|
50
|
-
# "members": [
|
|
55
|
+
# "members": [
|
|
56
|
+
# "user:eve@example.com"
|
|
57
|
+
# ],
|
|
51
58
|
# "condition": {
|
|
52
59
|
# "title": "expirable access",
|
|
53
60
|
# "description": "Does not grant access after Sep 2020",
|
|
54
|
-
# "expression": "request.time <
|
|
55
|
-
# timestamp('2020-10-01T00:00:00.000Z')",
|
|
61
|
+
# "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')",
|
|
56
62
|
# }
|
|
57
63
|
# }
|
|
58
|
-
# ]
|
|
64
|
+
# ],
|
|
65
|
+
# "etag": "BwWWja0YfJA=",
|
|
66
|
+
# "version": 3
|
|
59
67
|
# }
|
|
60
68
|
#
|
|
61
|
-
# **YAML
|
|
69
|
+
# **YAML example:**
|
|
62
70
|
#
|
|
63
71
|
# bindings:
|
|
64
72
|
# - members:
|
|
@@ -74,30 +82,52 @@ module Google
|
|
|
74
82
|
# title: expirable access
|
|
75
83
|
# description: Does not grant access after Sep 2020
|
|
76
84
|
# expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
|
|
85
|
+
# etag: BwWWja0YfJA=
|
|
86
|
+
# version: 3
|
|
77
87
|
#
|
|
78
88
|
# For a description of IAM and its features, see the
|
|
79
|
-
# [IAM
|
|
89
|
+
# [IAM documentation](https://cloud.google.com/iam/docs/).
|
|
80
90
|
# @!attribute [rw] version
|
|
81
91
|
# @return [::Integer]
|
|
82
92
|
# Specifies the format of the policy.
|
|
83
93
|
#
|
|
84
|
-
# Valid values are 0
|
|
85
|
-
# rejected.
|
|
94
|
+
# Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
|
|
95
|
+
# are rejected.
|
|
96
|
+
#
|
|
97
|
+
# Any operation that affects conditional role bindings must specify version
|
|
98
|
+
# `3`. This requirement applies to the following operations:
|
|
86
99
|
#
|
|
87
|
-
#
|
|
88
|
-
#
|
|
89
|
-
#
|
|
90
|
-
#
|
|
91
|
-
#
|
|
92
|
-
# leave the field unset.
|
|
100
|
+
# * Getting a policy that includes a conditional role binding
|
|
101
|
+
# * Adding a conditional role binding to a policy
|
|
102
|
+
# * Changing a conditional role binding in a policy
|
|
103
|
+
# * Removing any role binding, with or without a condition, from a policy
|
|
104
|
+
# that includes conditions
|
|
93
105
|
#
|
|
94
|
-
# If
|
|
95
|
-
#
|
|
106
|
+
# **Important:** If you use IAM Conditions, you must include the `etag` field
|
|
107
|
+
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows
|
|
108
|
+
# you to overwrite a version `3` policy with a version `1` policy, and all of
|
|
109
|
+
# the conditions in the version `3` policy are lost.
|
|
110
|
+
#
|
|
111
|
+
# If a policy does not include any conditions, operations on that policy may
|
|
112
|
+
# specify any valid version or leave the field unset.
|
|
113
|
+
#
|
|
114
|
+
# To learn which resources support conditions in their IAM policies, see the
|
|
115
|
+
# [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
96
116
|
# @!attribute [rw] bindings
|
|
97
117
|
# @return [::Array<::Google::Iam::V1::Binding>]
|
|
98
|
-
# Associates a list of `members
|
|
99
|
-
# `condition` that determines when
|
|
100
|
-
# `bindings`
|
|
118
|
+
# Associates a list of `members`, or principals, with a `role`. Optionally,
|
|
119
|
+
# may specify a `condition` that determines how and when the `bindings` are
|
|
120
|
+
# applied. Each of the `bindings` must contain at least one principal.
|
|
121
|
+
#
|
|
122
|
+
# The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250
|
|
123
|
+
# of these principals can be Google groups. Each occurrence of a principal
|
|
124
|
+
# counts towards these limits. For example, if the `bindings` grant 50
|
|
125
|
+
# different roles to `user:alice@example.com`, and not to any other
|
|
126
|
+
# principal, then you can add another 1,450 principals to the `bindings` in
|
|
127
|
+
# the `Policy`.
|
|
128
|
+
# @!attribute [rw] audit_configs
|
|
129
|
+
# @return [::Array<::Google::Iam::V1::AuditConfig>]
|
|
130
|
+
# Specifies cloud audit logging configuration for this policy.
|
|
101
131
|
# @!attribute [rw] etag
|
|
102
132
|
# @return [::String]
|
|
103
133
|
# `etag` is used for optimistic concurrency control as a way to help
|
|
@@ -108,23 +138,23 @@ module Google
|
|
|
108
138
|
# systems are expected to put that etag in the request to `setIamPolicy` to
|
|
109
139
|
# ensure that their change will be applied to the same version of the policy.
|
|
110
140
|
#
|
|
111
|
-
# If
|
|
112
|
-
#
|
|
113
|
-
#
|
|
114
|
-
#
|
|
141
|
+
# **Important:** If you use IAM Conditions, you must include the `etag` field
|
|
142
|
+
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows
|
|
143
|
+
# you to overwrite a version `3` policy with a version `1` policy, and all of
|
|
144
|
+
# the conditions in the version `3` policy are lost.
|
|
115
145
|
class Policy
|
|
116
146
|
include ::Google::Protobuf::MessageExts
|
|
117
147
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
118
148
|
end
|
|
119
149
|
|
|
120
|
-
# Associates `members
|
|
150
|
+
# Associates `members`, or principals, with a `role`.
|
|
121
151
|
# @!attribute [rw] role
|
|
122
152
|
# @return [::String]
|
|
123
|
-
# Role that is assigned to `members
|
|
153
|
+
# Role that is assigned to the list of `members`, or principals.
|
|
124
154
|
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
|
125
155
|
# @!attribute [rw] members
|
|
126
156
|
# @return [::Array<::String>]
|
|
127
|
-
# Specifies the
|
|
157
|
+
# Specifies the principals requesting access for a Cloud Platform resource.
|
|
128
158
|
# `members` can have the following values:
|
|
129
159
|
#
|
|
130
160
|
# * `allUsers`: A special identifier that represents anyone who is
|
|
@@ -143,20 +173,160 @@ module Google
|
|
|
143
173
|
# * `group:{emailid}`: An email address that represents a Google group.
|
|
144
174
|
# For example, `admins@example.com`.
|
|
145
175
|
#
|
|
176
|
+
# * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
|
|
177
|
+
# identifier) representing a user that has been recently deleted. For
|
|
178
|
+
# example, `alice@example.com?uid=123456789012345678901`. If the user is
|
|
179
|
+
# recovered, this value reverts to `user:{emailid}` and the recovered user
|
|
180
|
+
# retains the role in the binding.
|
|
181
|
+
#
|
|
182
|
+
# * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
|
|
183
|
+
# unique identifier) representing a service account that has been recently
|
|
184
|
+
# deleted. For example,
|
|
185
|
+
# `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
|
|
186
|
+
# If the service account is undeleted, this value reverts to
|
|
187
|
+
# `serviceAccount:{emailid}` and the undeleted service account retains the
|
|
188
|
+
# role in the binding.
|
|
189
|
+
#
|
|
190
|
+
# * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
|
|
191
|
+
# identifier) representing a Google group that has been recently
|
|
192
|
+
# deleted. For example, `admins@example.com?uid=123456789012345678901`. If
|
|
193
|
+
# the group is recovered, this value reverts to `group:{emailid}` and the
|
|
194
|
+
# recovered group retains the role in the binding.
|
|
195
|
+
#
|
|
146
196
|
#
|
|
147
197
|
# * `domain:{domain}`: The G Suite domain (primary) that represents all the
|
|
148
198
|
# users of that domain. For example, `google.com` or `example.com`.
|
|
149
199
|
# @!attribute [rw] condition
|
|
150
200
|
# @return [::Google::Type::Expr]
|
|
151
201
|
# The condition that is associated with this binding.
|
|
152
|
-
#
|
|
153
|
-
#
|
|
154
|
-
#
|
|
202
|
+
#
|
|
203
|
+
# If the condition evaluates to `true`, then this binding applies to the
|
|
204
|
+
# current request.
|
|
205
|
+
#
|
|
206
|
+
# If the condition evaluates to `false`, then this binding does not apply to
|
|
207
|
+
# the current request. However, a different role binding might grant the same
|
|
208
|
+
# role to one or more of the principals in this binding.
|
|
209
|
+
#
|
|
210
|
+
# To learn which resources support conditions in their IAM policies, see the
|
|
211
|
+
# [IAM
|
|
212
|
+
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
155
213
|
class Binding
|
|
156
214
|
include ::Google::Protobuf::MessageExts
|
|
157
215
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
158
216
|
end
|
|
159
217
|
|
|
218
|
+
# Specifies the audit configuration for a service.
|
|
219
|
+
# The configuration determines which permission types are logged, and what
|
|
220
|
+
# identities, if any, are exempted from logging.
|
|
221
|
+
# An AuditConfig must have one or more AuditLogConfigs.
|
|
222
|
+
#
|
|
223
|
+
# If there are AuditConfigs for both `allServices` and a specific service,
|
|
224
|
+
# the union of the two AuditConfigs is used for that service: the log_types
|
|
225
|
+
# specified in each AuditConfig are enabled, and the exempted_members in each
|
|
226
|
+
# AuditLogConfig are exempted.
|
|
227
|
+
#
|
|
228
|
+
# Example Policy with multiple AuditConfigs:
|
|
229
|
+
#
|
|
230
|
+
# {
|
|
231
|
+
# "audit_configs": [
|
|
232
|
+
# {
|
|
233
|
+
# "service": "allServices",
|
|
234
|
+
# "audit_log_configs": [
|
|
235
|
+
# {
|
|
236
|
+
# "log_type": "DATA_READ",
|
|
237
|
+
# "exempted_members": [
|
|
238
|
+
# "user:jose@example.com"
|
|
239
|
+
# ]
|
|
240
|
+
# },
|
|
241
|
+
# {
|
|
242
|
+
# "log_type": "DATA_WRITE"
|
|
243
|
+
# },
|
|
244
|
+
# {
|
|
245
|
+
# "log_type": "ADMIN_READ"
|
|
246
|
+
# }
|
|
247
|
+
# ]
|
|
248
|
+
# },
|
|
249
|
+
# {
|
|
250
|
+
# "service": "sampleservice.googleapis.com",
|
|
251
|
+
# "audit_log_configs": [
|
|
252
|
+
# {
|
|
253
|
+
# "log_type": "DATA_READ"
|
|
254
|
+
# },
|
|
255
|
+
# {
|
|
256
|
+
# "log_type": "DATA_WRITE",
|
|
257
|
+
# "exempted_members": [
|
|
258
|
+
# "user:aliya@example.com"
|
|
259
|
+
# ]
|
|
260
|
+
# }
|
|
261
|
+
# ]
|
|
262
|
+
# }
|
|
263
|
+
# ]
|
|
264
|
+
# }
|
|
265
|
+
#
|
|
266
|
+
# For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
|
267
|
+
# logging. It also exempts jose@example.com from DATA_READ logging, and
|
|
268
|
+
# aliya@example.com from DATA_WRITE logging.
|
|
269
|
+
# @!attribute [rw] service
|
|
270
|
+
# @return [::String]
|
|
271
|
+
# Specifies a service that will be enabled for audit logging.
|
|
272
|
+
# For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
|
|
273
|
+
# `allServices` is a special value that covers all services.
|
|
274
|
+
# @!attribute [rw] audit_log_configs
|
|
275
|
+
# @return [::Array<::Google::Iam::V1::AuditLogConfig>]
|
|
276
|
+
# The configuration for logging of each type of permission.
|
|
277
|
+
class AuditConfig
|
|
278
|
+
include ::Google::Protobuf::MessageExts
|
|
279
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
# Provides the configuration for logging a type of permissions.
|
|
283
|
+
# Example:
|
|
284
|
+
#
|
|
285
|
+
# {
|
|
286
|
+
# "audit_log_configs": [
|
|
287
|
+
# {
|
|
288
|
+
# "log_type": "DATA_READ",
|
|
289
|
+
# "exempted_members": [
|
|
290
|
+
# "user:jose@example.com"
|
|
291
|
+
# ]
|
|
292
|
+
# },
|
|
293
|
+
# {
|
|
294
|
+
# "log_type": "DATA_WRITE"
|
|
295
|
+
# }
|
|
296
|
+
# ]
|
|
297
|
+
# }
|
|
298
|
+
#
|
|
299
|
+
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
|
|
300
|
+
# jose@example.com from DATA_READ logging.
|
|
301
|
+
# @!attribute [rw] log_type
|
|
302
|
+
# @return [::Google::Iam::V1::AuditLogConfig::LogType]
|
|
303
|
+
# The log type that this config enables.
|
|
304
|
+
# @!attribute [rw] exempted_members
|
|
305
|
+
# @return [::Array<::String>]
|
|
306
|
+
# Specifies the identities that do not cause logging for this type of
|
|
307
|
+
# permission.
|
|
308
|
+
# Follows the same format of {::Google::Iam::V1::Binding#members Binding.members}.
|
|
309
|
+
class AuditLogConfig
|
|
310
|
+
include ::Google::Protobuf::MessageExts
|
|
311
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
312
|
+
|
|
313
|
+
# The list of valid permission types for which logging can be configured.
|
|
314
|
+
# Admin writes are always logged, and are not configurable.
|
|
315
|
+
module LogType
|
|
316
|
+
# Default case. Should never be this.
|
|
317
|
+
LOG_TYPE_UNSPECIFIED = 0
|
|
318
|
+
|
|
319
|
+
# Admin reads. Example: CloudIAM getIamPolicy
|
|
320
|
+
ADMIN_READ = 1
|
|
321
|
+
|
|
322
|
+
# Data writes. Example: CloudSQL Users create
|
|
323
|
+
DATA_WRITE = 2
|
|
324
|
+
|
|
325
|
+
# Data reads. Example: CloudSQL Users list
|
|
326
|
+
DATA_READ = 3
|
|
327
|
+
end
|
|
328
|
+
end
|
|
329
|
+
|
|
160
330
|
# The difference delta between two policies.
|
|
161
331
|
# @!attribute [rw] binding_deltas
|
|
162
332
|
# @return [::Array<::Google::Iam::V1::BindingDelta>]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-resource_manager-v3
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-04-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|
|
@@ -48,22 +48,16 @@ dependencies:
|
|
|
48
48
|
name: grpc-google-iam-v1
|
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
|
-
- - "
|
|
52
|
-
- !ruby/object:Gem::Version
|
|
53
|
-
version: 0.6.10
|
|
54
|
-
- - "<"
|
|
51
|
+
- - "~>"
|
|
55
52
|
- !ruby/object:Gem::Version
|
|
56
|
-
version:
|
|
53
|
+
version: '1.1'
|
|
57
54
|
type: :runtime
|
|
58
55
|
prerelease: false
|
|
59
56
|
version_requirements: !ruby/object:Gem::Requirement
|
|
60
57
|
requirements:
|
|
61
|
-
- - "
|
|
62
|
-
- !ruby/object:Gem::Version
|
|
63
|
-
version: 0.6.10
|
|
64
|
-
- - "<"
|
|
58
|
+
- - "~>"
|
|
65
59
|
- !ruby/object:Gem::Version
|
|
66
|
-
version:
|
|
60
|
+
version: '1.1'
|
|
67
61
|
- !ruby/object:Gem::Dependency
|
|
68
62
|
name: google-style
|
|
69
63
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -276,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
276
270
|
- !ruby/object:Gem::Version
|
|
277
271
|
version: '0'
|
|
278
272
|
requirements: []
|
|
279
|
-
rubygems_version: 3.3.
|
|
273
|
+
rubygems_version: 3.3.5
|
|
280
274
|
signing_key:
|
|
281
275
|
specification_version: 4
|
|
282
276
|
summary: API Client library for the Resource Manager V3 API
|