google-apis-orgpolicy_v2 0.22.0 → 0.23.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/CHANGELOG.md +4 -0
- data/lib/google/apis/orgpolicy_v2/classes.rb +76 -77
- data/lib/google/apis/orgpolicy_v2/gem_version.rb +2 -2
- data/lib/google/apis/orgpolicy_v2/service.rb +98 -98
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3aacebc2168abdd4c9804ba647b11239c279b385d3740880a292845306e4f2ca
|
|
4
|
+
data.tar.gz: 1996ed5c01eaccbb63c863534b81901ddfa251e43b8fa073ff42698cd312267a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b3af8a27f4b6f08dad0a88b1331d45a0209319a6c763a0c469dcc44fdc3045d87ec08671d2c204b4d5e6d07a81a928cd748eb15eb74d2d6011a8962af6b2cbc8
|
|
7
|
+
data.tar.gz: ed790ba25539af98540f5ea51b4de360b7fee91a5b874e1d87cbae2ebb93d25e8d26115a36b69cb8bdd0c0f359b67eff29be1ce9795d2250d51012e372b65b07
|
data/CHANGELOG.md
CHANGED
|
@@ -33,8 +33,8 @@ module Google
|
|
|
33
33
|
# @return [String]
|
|
34
34
|
attr_accessor :launch
|
|
35
35
|
|
|
36
|
-
# Defines a Cloud
|
|
37
|
-
#
|
|
36
|
+
# Defines a Google Cloud policy specification which is used to specify
|
|
37
|
+
# constraints for configurations of Google Cloud resources.
|
|
38
38
|
# Corresponds to the JSON property `spec`
|
|
39
39
|
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpec]
|
|
40
40
|
attr_accessor :spec
|
|
@@ -50,35 +50,35 @@ module Google
|
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
-
# A
|
|
54
|
-
#
|
|
53
|
+
# A constraint describes a way to restrict resource's configuration. For example,
|
|
54
|
+
# you could enforce a constraint that controls which Google Cloud services can
|
|
55
55
|
# be activated across an organization, or whether a Compute Engine instance can
|
|
56
|
-
# have serial port connections established.
|
|
57
|
-
#
|
|
58
|
-
#
|
|
59
|
-
#
|
|
60
|
-
#
|
|
61
|
-
#
|
|
62
|
-
#
|
|
63
|
-
# enforcement behavior that is used in the absence of a
|
|
64
|
-
#
|
|
56
|
+
# have serial port connections established. Constraints can be configured by the
|
|
57
|
+
# organization policy administrator to fit the needs of the organization by
|
|
58
|
+
# setting a policy that includes constraints at different locations in the
|
|
59
|
+
# organization's resource hierarchy. Policies are inherited down the resource
|
|
60
|
+
# hierarchy from higher levels, but can also be overridden. For details about
|
|
61
|
+
# the inheritance rules please read about `policies`. Constraints have a default
|
|
62
|
+
# behavior determined by the `constraint_default` field, which is the
|
|
63
|
+
# enforcement behavior that is used in the absence of a policy being defined or
|
|
64
|
+
# inherited for the resource in question.
|
|
65
65
|
class GoogleCloudOrgpolicyV2Constraint
|
|
66
66
|
include Google::Apis::Core::Hashable
|
|
67
67
|
|
|
68
|
-
# A
|
|
68
|
+
# A constraint that is either enforced or not. For example, a constraint `
|
|
69
69
|
# constraints/compute.disableSerialPortAccess`. If it is enforced on a VM
|
|
70
70
|
# instance, serial port connections will not be opened to that instance.
|
|
71
71
|
# Corresponds to the JSON property `booleanConstraint`
|
|
72
72
|
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintBooleanConstraint]
|
|
73
73
|
attr_accessor :boolean_constraint
|
|
74
74
|
|
|
75
|
-
# The evaluation behavior of this constraint in the absence of
|
|
75
|
+
# The evaluation behavior of this constraint in the absence of a policy.
|
|
76
76
|
# Corresponds to the JSON property `constraintDefault`
|
|
77
77
|
# @return [String]
|
|
78
78
|
attr_accessor :constraint_default
|
|
79
79
|
|
|
80
|
-
# Detailed description of what this
|
|
81
|
-
#
|
|
80
|
+
# Detailed description of what this constraint controls as well as how and where
|
|
81
|
+
# it is enforced. Mutable.
|
|
82
82
|
# Corresponds to the JSON property `description`
|
|
83
83
|
# @return [String]
|
|
84
84
|
attr_accessor :description
|
|
@@ -88,13 +88,13 @@ module Google
|
|
|
88
88
|
# @return [String]
|
|
89
89
|
attr_accessor :display_name
|
|
90
90
|
|
|
91
|
-
# A
|
|
92
|
-
# configured by an Organization
|
|
91
|
+
# A constraint that allows or disallows a list of string values, which are
|
|
92
|
+
# configured by an Organization Policy administrator with a policy.
|
|
93
93
|
# Corresponds to the JSON property `listConstraint`
|
|
94
94
|
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintListConstraint]
|
|
95
95
|
attr_accessor :list_constraint
|
|
96
96
|
|
|
97
|
-
# Immutable. The resource name of the
|
|
97
|
+
# Immutable. The resource name of the constraint. Must be in one of the
|
|
98
98
|
# following forms: * `projects/`project_number`/constraints/`constraint_name`` *
|
|
99
99
|
# `folders/`folder_id`/constraints/`constraint_name`` * `organizations/`
|
|
100
100
|
# organization_id`/constraints/`constraint_name`` For example, "/projects/123/
|
|
@@ -118,7 +118,7 @@ module Google
|
|
|
118
118
|
end
|
|
119
119
|
end
|
|
120
120
|
|
|
121
|
-
# A
|
|
121
|
+
# A constraint that is either enforced or not. For example, a constraint `
|
|
122
122
|
# constraints/compute.disableSerialPortAccess`. If it is enforced on a VM
|
|
123
123
|
# instance, serial port connections will not be opened to that instance.
|
|
124
124
|
class GoogleCloudOrgpolicyV2ConstraintBooleanConstraint
|
|
@@ -133,8 +133,8 @@ module Google
|
|
|
133
133
|
end
|
|
134
134
|
end
|
|
135
135
|
|
|
136
|
-
# A
|
|
137
|
-
# configured by an Organization
|
|
136
|
+
# A constraint that allows or disallows a list of string values, which are
|
|
137
|
+
# configured by an Organization Policy administrator with a policy.
|
|
138
138
|
class GoogleCloudOrgpolicyV2ConstraintListConstraint
|
|
139
139
|
include Google::Apis::Core::Hashable
|
|
140
140
|
|
|
@@ -146,7 +146,7 @@ module Google
|
|
|
146
146
|
attr_accessor :supports_in
|
|
147
147
|
alias_method :supports_in?, :supports_in
|
|
148
148
|
|
|
149
|
-
# Indicates whether subtrees of
|
|
149
|
+
# Indicates whether subtrees of the Resource Manager resource hierarchy can be
|
|
150
150
|
# used in `Policy.allowed_values` and `Policy.denied_values`. For example, `"
|
|
151
151
|
# under:folders/123"` would match any resource under the 'folders/123' folder.
|
|
152
152
|
# Corresponds to the JSON property `supportsUnder`
|
|
@@ -167,7 +167,7 @@ module Google
|
|
|
167
167
|
|
|
168
168
|
# A custom constraint defined by customers which can *only* be applied to the
|
|
169
169
|
# given resource types and organization. By creating a custom constraint,
|
|
170
|
-
# customers can
|
|
170
|
+
# customers can apply policies of this custom constraint. *Creating a custom
|
|
171
171
|
# constraint itself does NOT apply any policy enforcement*.
|
|
172
172
|
class GoogleCloudOrgpolicyV2CustomConstraint
|
|
173
173
|
include Google::Apis::Core::Hashable
|
|
@@ -203,15 +203,15 @@ module Google
|
|
|
203
203
|
|
|
204
204
|
# Immutable. Name of the constraint. This is unique within the organization.
|
|
205
205
|
# Format of the name should be * `organizations/`organization_id`/
|
|
206
|
-
# customConstraints/`custom_constraint_id`` Example
|
|
207
|
-
# customConstraints/custom.createOnlyE2TypeVms
|
|
208
|
-
# and the
|
|
209
|
-
# customConstraints
|
|
206
|
+
# customConstraints/`custom_constraint_id`` Example: `organizations/123/
|
|
207
|
+
# customConstraints/custom.createOnlyE2TypeVms` The max length is 70 characters
|
|
208
|
+
# and the minimum length is 1. Note that the prefix `organizations/`
|
|
209
|
+
# organization_id`/customConstraints/` is not counted.
|
|
210
210
|
# Corresponds to the JSON property `name`
|
|
211
211
|
# @return [String]
|
|
212
212
|
attr_accessor :name
|
|
213
213
|
|
|
214
|
-
# Immutable. The
|
|
214
|
+
# Immutable. The resource instance type on which this policy applies. Format
|
|
215
215
|
# will be of the form : "/" Example: * `compute.googleapis.com/Instance`.
|
|
216
216
|
# Corresponds to the JSON property `resourceTypes`
|
|
217
217
|
# @return [Array<String>]
|
|
@@ -267,12 +267,12 @@ module Google
|
|
|
267
267
|
end
|
|
268
268
|
|
|
269
269
|
# The response returned from the ListCustomConstraints method. It will be empty
|
|
270
|
-
# if no
|
|
270
|
+
# if no custom constraints are set on the organization resource.
|
|
271
271
|
class GoogleCloudOrgpolicyV2ListCustomConstraintsResponse
|
|
272
272
|
include Google::Apis::Core::Hashable
|
|
273
273
|
|
|
274
|
-
# All
|
|
275
|
-
# empty if no
|
|
274
|
+
# All custom constraints that exist on the organization resource. It will be
|
|
275
|
+
# empty if no custom constraints are set.
|
|
276
276
|
# Corresponds to the JSON property `customConstraints`
|
|
277
277
|
# @return [Array<Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2CustomConstraint>]
|
|
278
278
|
attr_accessor :custom_constraints
|
|
@@ -294,8 +294,8 @@ module Google
|
|
|
294
294
|
end
|
|
295
295
|
end
|
|
296
296
|
|
|
297
|
-
# The response returned from the ListPolicies method. It will be empty if no
|
|
298
|
-
#
|
|
297
|
+
# The response returned from the ListPolicies method. It will be empty if no
|
|
298
|
+
# policies are set on the resource.
|
|
299
299
|
class GoogleCloudOrgpolicyV2ListPoliciesResponse
|
|
300
300
|
include Google::Apis::Core::Hashable
|
|
301
301
|
|
|
@@ -305,8 +305,8 @@ module Google
|
|
|
305
305
|
# @return [String]
|
|
306
306
|
attr_accessor :next_page_token
|
|
307
307
|
|
|
308
|
-
# All
|
|
309
|
-
#
|
|
308
|
+
# All policies that exist on the resource. It will be empty if no policies are
|
|
309
|
+
# set.
|
|
310
310
|
# Corresponds to the JSON property `policies`
|
|
311
311
|
# @return [Array<Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy>]
|
|
312
312
|
attr_accessor :policies
|
|
@@ -322,8 +322,8 @@ module Google
|
|
|
322
322
|
end
|
|
323
323
|
end
|
|
324
324
|
|
|
325
|
-
# Defines
|
|
326
|
-
#
|
|
325
|
+
# Defines an organization policy which is used to specify constraints for
|
|
326
|
+
# configurations of Google Cloud resources.
|
|
327
327
|
class GoogleCloudOrgpolicyV2Policy
|
|
328
328
|
include Google::Apis::Core::Hashable
|
|
329
329
|
|
|
@@ -333,14 +333,14 @@ module Google
|
|
|
333
333
|
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2AlternatePolicySpec]
|
|
334
334
|
attr_accessor :alternate
|
|
335
335
|
|
|
336
|
-
# Defines a Cloud
|
|
337
|
-
#
|
|
336
|
+
# Defines a Google Cloud policy specification which is used to specify
|
|
337
|
+
# constraints for configurations of Google Cloud resources.
|
|
338
338
|
# Corresponds to the JSON property `dryRunSpec`
|
|
339
339
|
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpec]
|
|
340
340
|
attr_accessor :dry_run_spec
|
|
341
341
|
|
|
342
|
-
# Immutable. The resource name of the
|
|
343
|
-
# where constraint_name is the name of the constraint which this
|
|
342
|
+
# Immutable. The resource name of the policy. Must be one of the following forms,
|
|
343
|
+
# where constraint_name is the name of the constraint which this policy
|
|
344
344
|
# configures: * `projects/`project_number`/policies/`constraint_name`` * `
|
|
345
345
|
# folders/`folder_id`/policies/`constraint_name`` * `organizations/`
|
|
346
346
|
# organization_id`/policies/`constraint_name`` For example, "projects/123/
|
|
@@ -351,8 +351,8 @@ module Google
|
|
|
351
351
|
# @return [String]
|
|
352
352
|
attr_accessor :name
|
|
353
353
|
|
|
354
|
-
# Defines a Cloud
|
|
355
|
-
#
|
|
354
|
+
# Defines a Google Cloud policy specification which is used to specify
|
|
355
|
+
# constraints for configurations of Google Cloud resources.
|
|
356
356
|
# Corresponds to the JSON property `spec`
|
|
357
357
|
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpec]
|
|
358
358
|
attr_accessor :spec
|
|
@@ -370,33 +370,33 @@ module Google
|
|
|
370
370
|
end
|
|
371
371
|
end
|
|
372
372
|
|
|
373
|
-
# Defines a Cloud
|
|
374
|
-
#
|
|
373
|
+
# Defines a Google Cloud policy specification which is used to specify
|
|
374
|
+
# constraints for configurations of Google Cloud resources.
|
|
375
375
|
class GoogleCloudOrgpolicyV2PolicySpec
|
|
376
376
|
include Google::Apis::Core::Hashable
|
|
377
377
|
|
|
378
|
-
# An opaque tag indicating the current version of the
|
|
378
|
+
# An opaque tag indicating the current version of the policy, used for
|
|
379
379
|
# concurrency control. This field is ignored if used in a `CreatePolicy` request.
|
|
380
|
-
# When the `
|
|
381
|
-
# request, this `etag` indicates the version of the current
|
|
382
|
-
# executing a read-modify-write loop. When the
|
|
380
|
+
# When the policy` is returned from either a `GetPolicy` or a `ListPolicies`
|
|
381
|
+
# request, this `etag` indicates the version of the current policy to use when
|
|
382
|
+
# executing a read-modify-write loop. When the policy is returned from a `
|
|
383
383
|
# GetEffectivePolicy` request, the `etag` will be unset.
|
|
384
384
|
# Corresponds to the JSON property `etag`
|
|
385
385
|
# @return [String]
|
|
386
386
|
attr_accessor :etag
|
|
387
387
|
|
|
388
|
-
# Determines the inheritance behavior for this
|
|
389
|
-
# is true,
|
|
388
|
+
# Determines the inheritance behavior for this policy. If `inherit_from_parent`
|
|
389
|
+
# is true, policy rules set higher up in the hierarchy (up to the closest root)
|
|
390
390
|
# are inherited and present in the effective policy. If it is false, then no
|
|
391
|
-
# rules are inherited, and this
|
|
392
|
-
# field can be set only for
|
|
391
|
+
# rules are inherited, and this policy becomes the new root for evaluation. This
|
|
392
|
+
# field can be set only for policies which configure list constraints.
|
|
393
393
|
# Corresponds to the JSON property `inheritFromParent`
|
|
394
394
|
# @return [Boolean]
|
|
395
395
|
attr_accessor :inherit_from_parent
|
|
396
396
|
alias_method :inherit_from_parent?, :inherit_from_parent
|
|
397
397
|
|
|
398
398
|
# Ignores policies set above this resource and restores the `constraint_default`
|
|
399
|
-
# enforcement behavior of the specific
|
|
399
|
+
# enforcement behavior of the specific constraint at this resource. This field
|
|
400
400
|
# can be set in policies for either list or boolean constraints. If set, `rules`
|
|
401
401
|
# must be empty and `inherit_from_parent` must be set to false.
|
|
402
402
|
# Corresponds to the JSON property `reset`
|
|
@@ -404,19 +404,18 @@ module Google
|
|
|
404
404
|
attr_accessor :reset
|
|
405
405
|
alias_method :reset?, :reset
|
|
406
406
|
|
|
407
|
-
# Up to 10
|
|
408
|
-
# following requirements apply: - There must be one and only one
|
|
409
|
-
# where condition is unset. -
|
|
410
|
-
# enforced` to the opposite of the
|
|
411
|
-
# policy evaluation,
|
|
407
|
+
# Up to 10 policy rules are allowed. In policies for boolean constraints, the
|
|
408
|
+
# following requirements apply: - There must be one and only one policy rule
|
|
409
|
+
# where condition is unset. - Boolean policy rules with conditions must set `
|
|
410
|
+
# enforced` to the opposite of the policy rule without a condition. - During
|
|
411
|
+
# policy evaluation, policy rules with conditions that are true for a target
|
|
412
412
|
# resource take precedence.
|
|
413
413
|
# Corresponds to the JSON property `rules`
|
|
414
414
|
# @return [Array<Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpecPolicyRule>]
|
|
415
415
|
attr_accessor :rules
|
|
416
416
|
|
|
417
417
|
# Output only. The time stamp this was previously updated. This represents the
|
|
418
|
-
# last time a call to `CreatePolicy` or `UpdatePolicy` was made for that
|
|
419
|
-
# .
|
|
418
|
+
# last time a call to `CreatePolicy` or `UpdatePolicy` was made for that policy.
|
|
420
419
|
# Corresponds to the JSON property `updateTime`
|
|
421
420
|
# @return [String]
|
|
422
421
|
attr_accessor :update_time
|
|
@@ -440,7 +439,7 @@ module Google
|
|
|
440
439
|
include Google::Apis::Core::Hashable
|
|
441
440
|
|
|
442
441
|
# Setting this to true means that all values are allowed. This field can be set
|
|
443
|
-
# only in
|
|
442
|
+
# only in policies for list constraints.
|
|
444
443
|
# Corresponds to the JSON property `allowAll`
|
|
445
444
|
# @return [Boolean]
|
|
446
445
|
attr_accessor :allow_all
|
|
@@ -466,25 +465,25 @@ module Google
|
|
|
466
465
|
attr_accessor :condition
|
|
467
466
|
|
|
468
467
|
# Setting this to true means that all values are denied. This field can be set
|
|
469
|
-
# only in
|
|
468
|
+
# only in policies for list constraints.
|
|
470
469
|
# Corresponds to the JSON property `denyAll`
|
|
471
470
|
# @return [Boolean]
|
|
472
471
|
attr_accessor :deny_all
|
|
473
472
|
alias_method :deny_all?, :deny_all
|
|
474
473
|
|
|
475
|
-
# If `true`, then the
|
|
476
|
-
#
|
|
474
|
+
# If `true`, then the policy is enforced. If `false`, then any configuration is
|
|
475
|
+
# acceptable. This field can be set only in policies for boolean constraints.
|
|
477
476
|
# Corresponds to the JSON property `enforce`
|
|
478
477
|
# @return [Boolean]
|
|
479
478
|
attr_accessor :enforce
|
|
480
479
|
alias_method :enforce?, :enforce
|
|
481
480
|
|
|
482
481
|
# A message that holds specific allowed and denied values. This message can
|
|
483
|
-
# define specific values and subtrees of
|
|
484
|
-
#
|
|
485
|
-
#
|
|
486
|
-
#
|
|
487
|
-
#
|
|
482
|
+
# define specific values and subtrees of the Resource Manager resource hierarchy
|
|
483
|
+
# (`Organizations`, `Folders`, `Projects`) that are allowed or denied. This is
|
|
484
|
+
# achieved by using the `under:` and optional `is:` prefixes. The `under:`
|
|
485
|
+
# prefix is used to denote resource subtree values. The `is:` prefix is used to
|
|
486
|
+
# denote specific values, and is required only if the value contains a ":".
|
|
488
487
|
# Values prefixed with "is:" are treated the same as values with no prefix.
|
|
489
488
|
# Ancestry subtrees must be in one of the following formats: - "projects/", e.g.
|
|
490
489
|
# "projects/tokyo-rain-123" - "folders/", e.g. "folders/1234" - "organizations/",
|
|
@@ -509,11 +508,11 @@ module Google
|
|
|
509
508
|
end
|
|
510
509
|
|
|
511
510
|
# A message that holds specific allowed and denied values. This message can
|
|
512
|
-
# define specific values and subtrees of
|
|
513
|
-
#
|
|
514
|
-
#
|
|
515
|
-
#
|
|
516
|
-
#
|
|
511
|
+
# define specific values and subtrees of the Resource Manager resource hierarchy
|
|
512
|
+
# (`Organizations`, `Folders`, `Projects`) that are allowed or denied. This is
|
|
513
|
+
# achieved by using the `under:` and optional `is:` prefixes. The `under:`
|
|
514
|
+
# prefix is used to denote resource subtree values. The `is:` prefix is used to
|
|
515
|
+
# denote specific values, and is required only if the value contains a ":".
|
|
517
516
|
# Values prefixed with "is:" are treated the same as values with no prefix.
|
|
518
517
|
# Ancestry subtrees must be in one of the following formats: - "projects/", e.g.
|
|
519
518
|
# "projects/tokyo-rain-123" - "folders/", e.g. "folders/1234" - "organizations/",
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module OrgpolicyV2
|
|
18
18
|
# Version of the google-apis-orgpolicy_v2 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.23.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
22
|
GENERATOR_VERSION = "0.11.1"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20230207"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -50,11 +50,11 @@ module Google
|
|
|
50
50
|
@batch_path = 'batch'
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
-
# Lists
|
|
53
|
+
# Lists constraints that could be applied on the specified resource.
|
|
54
54
|
# @param [String] parent
|
|
55
|
-
# Required. The Cloud resource that parents the constraint. Must be in
|
|
56
|
-
# the following forms: * `projects/`project_number`` * `projects/`
|
|
57
|
-
# `folders/`folder_id`` * `organizations/`organization_id``
|
|
55
|
+
# Required. The Google Cloud resource that parents the constraint. Must be in
|
|
56
|
+
# one of the following forms: * `projects/`project_number`` * `projects/`
|
|
57
|
+
# project_id`` * `folders/`folder_id`` * `organizations/`organization_id``
|
|
58
58
|
# @param [Fixnum] page_size
|
|
59
59
|
# Size of the pages to be returned. This is currently unsupported and will be
|
|
60
60
|
# ignored. The server may at any point start using this field to limit page size.
|
|
@@ -90,14 +90,14 @@ module Google
|
|
|
90
90
|
execute_or_queue_command(command, &block)
|
|
91
91
|
end
|
|
92
92
|
|
|
93
|
-
# Creates a
|
|
93
|
+
# Creates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.
|
|
94
94
|
# NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status`
|
|
95
95
|
# with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the
|
|
96
|
-
# given Cloud resource.
|
|
96
|
+
# given Google Cloud resource.
|
|
97
97
|
# @param [String] parent
|
|
98
|
-
# Required. The Cloud resource that will parent the new
|
|
99
|
-
# of the following forms: * `projects/`project_number`` * `projects/`
|
|
100
|
-
# * `folders/`folder_id`` * `organizations/`organization_id``
|
|
98
|
+
# Required. The Google Cloud resource that will parent the new policy. Must be
|
|
99
|
+
# in one of the following forms: * `projects/`project_number`` * `projects/`
|
|
100
|
+
# project_id`` * `folders/`folder_id`` * `organizations/`organization_id``
|
|
101
101
|
# @param [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy] google_cloud_orgpolicy_v2_policy_object
|
|
102
102
|
# @param [String] fields
|
|
103
103
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -128,10 +128,10 @@ module Google
|
|
|
128
128
|
execute_or_queue_command(command, &block)
|
|
129
129
|
end
|
|
130
130
|
|
|
131
|
-
# Deletes a
|
|
132
|
-
# NOT_FOUND` if the constraint or
|
|
131
|
+
# Deletes a policy. Returns a `google.rpc.Status` with `google.rpc.Code.
|
|
132
|
+
# NOT_FOUND` if the constraint or organization policy does not exist.
|
|
133
133
|
# @param [String] name
|
|
134
|
-
# Required. Name of the policy to delete. See
|
|
134
|
+
# Required. Name of the policy to delete. See the policy entry for naming rules.
|
|
135
135
|
# @param [String] fields
|
|
136
136
|
# Selector specifying which fields to include in a partial response.
|
|
137
137
|
# @param [String] quota_user
|
|
@@ -159,9 +159,9 @@ module Google
|
|
|
159
159
|
execute_or_queue_command(command, &block)
|
|
160
160
|
end
|
|
161
161
|
|
|
162
|
-
# Gets a
|
|
163
|
-
#
|
|
164
|
-
#
|
|
162
|
+
# Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND`
|
|
163
|
+
# is returned. The `etag` value can be used with `UpdatePolicy()` to update a
|
|
164
|
+
# policy during read-modify-write.
|
|
165
165
|
# @param [String] name
|
|
166
166
|
# Required. Resource name of the policy. See `Policy` for naming requirements.
|
|
167
167
|
# @param [String] fields
|
|
@@ -191,10 +191,10 @@ module Google
|
|
|
191
191
|
execute_or_queue_command(command, &block)
|
|
192
192
|
end
|
|
193
193
|
|
|
194
|
-
# Gets the effective
|
|
195
|
-
#
|
|
196
|
-
#
|
|
197
|
-
#
|
|
194
|
+
# Gets the effective policy on a resource. This is the result of merging
|
|
195
|
+
# policies in the resource hierarchy and evaluating conditions. The returned
|
|
196
|
+
# policy will not have an `etag` or `condition` set because it is an evaluated
|
|
197
|
+
# policy across multiple resources. Subtrees of Resource Manager resource
|
|
198
198
|
# hierarchy with 'under:' prefix will not be expanded.
|
|
199
199
|
# @param [String] name
|
|
200
200
|
# Required. The effective policy to compute. See `Policy` for naming rules.
|
|
@@ -225,12 +225,12 @@ module Google
|
|
|
225
225
|
execute_or_queue_command(command, &block)
|
|
226
226
|
end
|
|
227
227
|
|
|
228
|
-
# Retrieves all of the
|
|
228
|
+
# Retrieves all of the policies that exist on a particular resource.
|
|
229
229
|
# @param [String] parent
|
|
230
|
-
# Required. The target Cloud resource that parents the set of constraints
|
|
231
|
-
# policies that will be returned from this call. Must be in one of the
|
|
232
|
-
# forms: * `projects/`project_number`` * `projects/`project_id`` * `
|
|
233
|
-
# folder_id`` * `organizations/`organization_id``
|
|
230
|
+
# Required. The target Google Cloud resource that parents the set of constraints
|
|
231
|
+
# and policies that will be returned from this call. Must be in one of the
|
|
232
|
+
# following forms: * `projects/`project_number`` * `projects/`project_id`` * `
|
|
233
|
+
# folders/`folder_id`` * `organizations/`organization_id``
|
|
234
234
|
# @param [Fixnum] page_size
|
|
235
235
|
# Size of the pages to be returned. This is currently unsupported and will be
|
|
236
236
|
# ignored. The server may at any point start using this field to limit page size.
|
|
@@ -266,14 +266,14 @@ module Google
|
|
|
266
266
|
execute_or_queue_command(command, &block)
|
|
267
267
|
end
|
|
268
268
|
|
|
269
|
-
# Updates a
|
|
269
|
+
# Updates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.
|
|
270
270
|
# NOT_FOUND` if the constraint or the policy do not exist. Returns a `google.rpc.
|
|
271
271
|
# Status` with `google.rpc.Code.ABORTED` if the etag supplied in the request
|
|
272
272
|
# does not match the persisted etag of the policy Note: the supplied policy will
|
|
273
273
|
# perform a full overwrite of all fields.
|
|
274
274
|
# @param [String] name
|
|
275
|
-
# Immutable. The resource name of the
|
|
276
|
-
# where constraint_name is the name of the constraint which this
|
|
275
|
+
# Immutable. The resource name of the policy. Must be one of the following forms,
|
|
276
|
+
# where constraint_name is the name of the constraint which this policy
|
|
277
277
|
# configures: * `projects/`project_number`/policies/`constraint_name`` * `
|
|
278
278
|
# folders/`folder_id`/policies/`constraint_name`` * `organizations/`
|
|
279
279
|
# organization_id`/policies/`constraint_name`` For example, "projects/123/
|
|
@@ -315,11 +315,11 @@ module Google
|
|
|
315
315
|
execute_or_queue_command(command, &block)
|
|
316
316
|
end
|
|
317
317
|
|
|
318
|
-
# Lists
|
|
318
|
+
# Lists constraints that could be applied on the specified resource.
|
|
319
319
|
# @param [String] parent
|
|
320
|
-
# Required. The Cloud resource that parents the constraint. Must be in
|
|
321
|
-
# the following forms: * `projects/`project_number`` * `projects/`
|
|
322
|
-
# `folders/`folder_id`` * `organizations/`organization_id``
|
|
320
|
+
# Required. The Google Cloud resource that parents the constraint. Must be in
|
|
321
|
+
# one of the following forms: * `projects/`project_number`` * `projects/`
|
|
322
|
+
# project_id`` * `folders/`folder_id`` * `organizations/`organization_id``
|
|
323
323
|
# @param [Fixnum] page_size
|
|
324
324
|
# Size of the pages to be returned. This is currently unsupported and will be
|
|
325
325
|
# ignored. The server may at any point start using this field to limit page size.
|
|
@@ -355,7 +355,7 @@ module Google
|
|
|
355
355
|
execute_or_queue_command(command, &block)
|
|
356
356
|
end
|
|
357
357
|
|
|
358
|
-
# Creates a
|
|
358
|
+
# Creates a custom constraint. Returns a `google.rpc.Status` with `google.rpc.
|
|
359
359
|
# Code.NOT_FOUND` if the organization does not exist. Returns a `google.rpc.
|
|
360
360
|
# Status` with `google.rpc.Code.ALREADY_EXISTS` if the constraint already exists
|
|
361
361
|
# on the given organization.
|
|
@@ -391,11 +391,11 @@ module Google
|
|
|
391
391
|
execute_or_queue_command(command, &block)
|
|
392
392
|
end
|
|
393
393
|
|
|
394
|
-
# Deletes a
|
|
394
|
+
# Deletes a custom constraint. Returns a `google.rpc.Status` with `google.rpc.
|
|
395
395
|
# Code.NOT_FOUND` if the constraint does not exist.
|
|
396
396
|
# @param [String] name
|
|
397
|
-
# Required. Name of the custom constraint to delete. See
|
|
398
|
-
# naming rules.
|
|
397
|
+
# Required. Name of the custom constraint to delete. See the custom constraint
|
|
398
|
+
# entry for naming rules.
|
|
399
399
|
# @param [String] fields
|
|
400
400
|
# Selector specifying which fields to include in a partial response.
|
|
401
401
|
# @param [String] quota_user
|
|
@@ -423,11 +423,11 @@ module Google
|
|
|
423
423
|
execute_or_queue_command(command, &block)
|
|
424
424
|
end
|
|
425
425
|
|
|
426
|
-
# Gets a
|
|
427
|
-
# NOT_FOUND` if the
|
|
426
|
+
# Gets a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.
|
|
427
|
+
# NOT_FOUND` if the custom constraint does not exist.
|
|
428
428
|
# @param [String] name
|
|
429
|
-
# Required. Resource name of the custom constraint. See
|
|
430
|
-
# naming requirements.
|
|
429
|
+
# Required. Resource name of the custom constraint. See the custom constraint
|
|
430
|
+
# entry for naming requirements.
|
|
431
431
|
# @param [String] fields
|
|
432
432
|
# Selector specifying which fields to include in a partial response.
|
|
433
433
|
# @param [String] quota_user
|
|
@@ -455,12 +455,12 @@ module Google
|
|
|
455
455
|
execute_or_queue_command(command, &block)
|
|
456
456
|
end
|
|
457
457
|
|
|
458
|
-
# Retrieves all of the
|
|
458
|
+
# Retrieves all of the custom constraints that exist on a particular
|
|
459
459
|
# organization resource.
|
|
460
460
|
# @param [String] parent
|
|
461
|
-
# Required. The target Cloud resource that parents the set of custom
|
|
462
|
-
# that will be returned from this call. Must be in one of the
|
|
463
|
-
# `organizations/`organization_id``
|
|
461
|
+
# Required. The target Google Cloud resource that parents the set of custom
|
|
462
|
+
# constraints that will be returned from this call. Must be in one of the
|
|
463
|
+
# following forms: * `organizations/`organization_id``
|
|
464
464
|
# @param [Fixnum] page_size
|
|
465
465
|
# Size of the pages to be returned. This is currently unsupported and will be
|
|
466
466
|
# ignored. The server may at any point start using this field to limit page size.
|
|
@@ -496,16 +496,16 @@ module Google
|
|
|
496
496
|
execute_or_queue_command(command, &block)
|
|
497
497
|
end
|
|
498
498
|
|
|
499
|
-
# Updates a
|
|
499
|
+
# Updates a custom constraint. Returns a `google.rpc.Status` with `google.rpc.
|
|
500
500
|
# Code.NOT_FOUND` if the constraint does not exist. Note: the supplied policy
|
|
501
501
|
# will perform a full overwrite of all fields.
|
|
502
502
|
# @param [String] name
|
|
503
503
|
# Immutable. Name of the constraint. This is unique within the organization.
|
|
504
504
|
# Format of the name should be * `organizations/`organization_id`/
|
|
505
|
-
# customConstraints/`custom_constraint_id`` Example
|
|
506
|
-
# customConstraints/custom.createOnlyE2TypeVms
|
|
507
|
-
# and the
|
|
508
|
-
# customConstraints
|
|
505
|
+
# customConstraints/`custom_constraint_id`` Example: `organizations/123/
|
|
506
|
+
# customConstraints/custom.createOnlyE2TypeVms` The max length is 70 characters
|
|
507
|
+
# and the minimum length is 1. Note that the prefix `organizations/`
|
|
508
|
+
# organization_id`/customConstraints/` is not counted.
|
|
509
509
|
# @param [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2CustomConstraint] google_cloud_orgpolicy_v2_custom_constraint_object
|
|
510
510
|
# @param [String] fields
|
|
511
511
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -536,14 +536,14 @@ module Google
|
|
|
536
536
|
execute_or_queue_command(command, &block)
|
|
537
537
|
end
|
|
538
538
|
|
|
539
|
-
# Creates a
|
|
539
|
+
# Creates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.
|
|
540
540
|
# NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status`
|
|
541
541
|
# with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the
|
|
542
|
-
# given Cloud resource.
|
|
542
|
+
# given Google Cloud resource.
|
|
543
543
|
# @param [String] parent
|
|
544
|
-
# Required. The Cloud resource that will parent the new
|
|
545
|
-
# of the following forms: * `projects/`project_number`` * `projects/`
|
|
546
|
-
# * `folders/`folder_id`` * `organizations/`organization_id``
|
|
544
|
+
# Required. The Google Cloud resource that will parent the new policy. Must be
|
|
545
|
+
# in one of the following forms: * `projects/`project_number`` * `projects/`
|
|
546
|
+
# project_id`` * `folders/`folder_id`` * `organizations/`organization_id``
|
|
547
547
|
# @param [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy] google_cloud_orgpolicy_v2_policy_object
|
|
548
548
|
# @param [String] fields
|
|
549
549
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -574,10 +574,10 @@ module Google
|
|
|
574
574
|
execute_or_queue_command(command, &block)
|
|
575
575
|
end
|
|
576
576
|
|
|
577
|
-
# Deletes a
|
|
578
|
-
# NOT_FOUND` if the constraint or
|
|
577
|
+
# Deletes a policy. Returns a `google.rpc.Status` with `google.rpc.Code.
|
|
578
|
+
# NOT_FOUND` if the constraint or organization policy does not exist.
|
|
579
579
|
# @param [String] name
|
|
580
|
-
# Required. Name of the policy to delete. See
|
|
580
|
+
# Required. Name of the policy to delete. See the policy entry for naming rules.
|
|
581
581
|
# @param [String] fields
|
|
582
582
|
# Selector specifying which fields to include in a partial response.
|
|
583
583
|
# @param [String] quota_user
|
|
@@ -605,9 +605,9 @@ module Google
|
|
|
605
605
|
execute_or_queue_command(command, &block)
|
|
606
606
|
end
|
|
607
607
|
|
|
608
|
-
# Gets a
|
|
609
|
-
#
|
|
610
|
-
#
|
|
608
|
+
# Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND`
|
|
609
|
+
# is returned. The `etag` value can be used with `UpdatePolicy()` to update a
|
|
610
|
+
# policy during read-modify-write.
|
|
611
611
|
# @param [String] name
|
|
612
612
|
# Required. Resource name of the policy. See `Policy` for naming requirements.
|
|
613
613
|
# @param [String] fields
|
|
@@ -637,10 +637,10 @@ module Google
|
|
|
637
637
|
execute_or_queue_command(command, &block)
|
|
638
638
|
end
|
|
639
639
|
|
|
640
|
-
# Gets the effective
|
|
641
|
-
#
|
|
642
|
-
#
|
|
643
|
-
#
|
|
640
|
+
# Gets the effective policy on a resource. This is the result of merging
|
|
641
|
+
# policies in the resource hierarchy and evaluating conditions. The returned
|
|
642
|
+
# policy will not have an `etag` or `condition` set because it is an evaluated
|
|
643
|
+
# policy across multiple resources. Subtrees of Resource Manager resource
|
|
644
644
|
# hierarchy with 'under:' prefix will not be expanded.
|
|
645
645
|
# @param [String] name
|
|
646
646
|
# Required. The effective policy to compute. See `Policy` for naming rules.
|
|
@@ -671,12 +671,12 @@ module Google
|
|
|
671
671
|
execute_or_queue_command(command, &block)
|
|
672
672
|
end
|
|
673
673
|
|
|
674
|
-
# Retrieves all of the
|
|
674
|
+
# Retrieves all of the policies that exist on a particular resource.
|
|
675
675
|
# @param [String] parent
|
|
676
|
-
# Required. The target Cloud resource that parents the set of constraints
|
|
677
|
-
# policies that will be returned from this call. Must be in one of the
|
|
678
|
-
# forms: * `projects/`project_number`` * `projects/`project_id`` * `
|
|
679
|
-
# folder_id`` * `organizations/`organization_id``
|
|
676
|
+
# Required. The target Google Cloud resource that parents the set of constraints
|
|
677
|
+
# and policies that will be returned from this call. Must be in one of the
|
|
678
|
+
# following forms: * `projects/`project_number`` * `projects/`project_id`` * `
|
|
679
|
+
# folders/`folder_id`` * `organizations/`organization_id``
|
|
680
680
|
# @param [Fixnum] page_size
|
|
681
681
|
# Size of the pages to be returned. This is currently unsupported and will be
|
|
682
682
|
# ignored. The server may at any point start using this field to limit page size.
|
|
@@ -712,14 +712,14 @@ module Google
|
|
|
712
712
|
execute_or_queue_command(command, &block)
|
|
713
713
|
end
|
|
714
714
|
|
|
715
|
-
# Updates a
|
|
715
|
+
# Updates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.
|
|
716
716
|
# NOT_FOUND` if the constraint or the policy do not exist. Returns a `google.rpc.
|
|
717
717
|
# Status` with `google.rpc.Code.ABORTED` if the etag supplied in the request
|
|
718
718
|
# does not match the persisted etag of the policy Note: the supplied policy will
|
|
719
719
|
# perform a full overwrite of all fields.
|
|
720
720
|
# @param [String] name
|
|
721
|
-
# Immutable. The resource name of the
|
|
722
|
-
# where constraint_name is the name of the constraint which this
|
|
721
|
+
# Immutable. The resource name of the policy. Must be one of the following forms,
|
|
722
|
+
# where constraint_name is the name of the constraint which this policy
|
|
723
723
|
# configures: * `projects/`project_number`/policies/`constraint_name`` * `
|
|
724
724
|
# folders/`folder_id`/policies/`constraint_name`` * `organizations/`
|
|
725
725
|
# organization_id`/policies/`constraint_name`` For example, "projects/123/
|
|
@@ -761,11 +761,11 @@ module Google
|
|
|
761
761
|
execute_or_queue_command(command, &block)
|
|
762
762
|
end
|
|
763
763
|
|
|
764
|
-
# Lists
|
|
764
|
+
# Lists constraints that could be applied on the specified resource.
|
|
765
765
|
# @param [String] parent
|
|
766
|
-
# Required. The Cloud resource that parents the constraint. Must be in
|
|
767
|
-
# the following forms: * `projects/`project_number`` * `projects/`
|
|
768
|
-
# `folders/`folder_id`` * `organizations/`organization_id``
|
|
766
|
+
# Required. The Google Cloud resource that parents the constraint. Must be in
|
|
767
|
+
# one of the following forms: * `projects/`project_number`` * `projects/`
|
|
768
|
+
# project_id`` * `folders/`folder_id`` * `organizations/`organization_id``
|
|
769
769
|
# @param [Fixnum] page_size
|
|
770
770
|
# Size of the pages to be returned. This is currently unsupported and will be
|
|
771
771
|
# ignored. The server may at any point start using this field to limit page size.
|
|
@@ -801,14 +801,14 @@ module Google
|
|
|
801
801
|
execute_or_queue_command(command, &block)
|
|
802
802
|
end
|
|
803
803
|
|
|
804
|
-
# Creates a
|
|
804
|
+
# Creates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.
|
|
805
805
|
# NOT_FOUND` if the constraint does not exist. Returns a `google.rpc.Status`
|
|
806
806
|
# with `google.rpc.Code.ALREADY_EXISTS` if the policy already exists on the
|
|
807
|
-
# given Cloud resource.
|
|
807
|
+
# given Google Cloud resource.
|
|
808
808
|
# @param [String] parent
|
|
809
|
-
# Required. The Cloud resource that will parent the new
|
|
810
|
-
# of the following forms: * `projects/`project_number`` * `projects/`
|
|
811
|
-
# * `folders/`folder_id`` * `organizations/`organization_id``
|
|
809
|
+
# Required. The Google Cloud resource that will parent the new policy. Must be
|
|
810
|
+
# in one of the following forms: * `projects/`project_number`` * `projects/`
|
|
811
|
+
# project_id`` * `folders/`folder_id`` * `organizations/`organization_id``
|
|
812
812
|
# @param [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2Policy] google_cloud_orgpolicy_v2_policy_object
|
|
813
813
|
# @param [String] fields
|
|
814
814
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -839,10 +839,10 @@ module Google
|
|
|
839
839
|
execute_or_queue_command(command, &block)
|
|
840
840
|
end
|
|
841
841
|
|
|
842
|
-
# Deletes a
|
|
843
|
-
# NOT_FOUND` if the constraint or
|
|
842
|
+
# Deletes a policy. Returns a `google.rpc.Status` with `google.rpc.Code.
|
|
843
|
+
# NOT_FOUND` if the constraint or organization policy does not exist.
|
|
844
844
|
# @param [String] name
|
|
845
|
-
# Required. Name of the policy to delete. See
|
|
845
|
+
# Required. Name of the policy to delete. See the policy entry for naming rules.
|
|
846
846
|
# @param [String] fields
|
|
847
847
|
# Selector specifying which fields to include in a partial response.
|
|
848
848
|
# @param [String] quota_user
|
|
@@ -870,9 +870,9 @@ module Google
|
|
|
870
870
|
execute_or_queue_command(command, &block)
|
|
871
871
|
end
|
|
872
872
|
|
|
873
|
-
# Gets a
|
|
874
|
-
#
|
|
875
|
-
#
|
|
873
|
+
# Gets a policy on a resource. If no policy is set on the resource, `NOT_FOUND`
|
|
874
|
+
# is returned. The `etag` value can be used with `UpdatePolicy()` to update a
|
|
875
|
+
# policy during read-modify-write.
|
|
876
876
|
# @param [String] name
|
|
877
877
|
# Required. Resource name of the policy. See `Policy` for naming requirements.
|
|
878
878
|
# @param [String] fields
|
|
@@ -902,10 +902,10 @@ module Google
|
|
|
902
902
|
execute_or_queue_command(command, &block)
|
|
903
903
|
end
|
|
904
904
|
|
|
905
|
-
# Gets the effective
|
|
906
|
-
#
|
|
907
|
-
#
|
|
908
|
-
#
|
|
905
|
+
# Gets the effective policy on a resource. This is the result of merging
|
|
906
|
+
# policies in the resource hierarchy and evaluating conditions. The returned
|
|
907
|
+
# policy will not have an `etag` or `condition` set because it is an evaluated
|
|
908
|
+
# policy across multiple resources. Subtrees of Resource Manager resource
|
|
909
909
|
# hierarchy with 'under:' prefix will not be expanded.
|
|
910
910
|
# @param [String] name
|
|
911
911
|
# Required. The effective policy to compute. See `Policy` for naming rules.
|
|
@@ -936,12 +936,12 @@ module Google
|
|
|
936
936
|
execute_or_queue_command(command, &block)
|
|
937
937
|
end
|
|
938
938
|
|
|
939
|
-
# Retrieves all of the
|
|
939
|
+
# Retrieves all of the policies that exist on a particular resource.
|
|
940
940
|
# @param [String] parent
|
|
941
|
-
# Required. The target Cloud resource that parents the set of constraints
|
|
942
|
-
# policies that will be returned from this call. Must be in one of the
|
|
943
|
-
# forms: * `projects/`project_number`` * `projects/`project_id`` * `
|
|
944
|
-
# folder_id`` * `organizations/`organization_id``
|
|
941
|
+
# Required. The target Google Cloud resource that parents the set of constraints
|
|
942
|
+
# and policies that will be returned from this call. Must be in one of the
|
|
943
|
+
# following forms: * `projects/`project_number`` * `projects/`project_id`` * `
|
|
944
|
+
# folders/`folder_id`` * `organizations/`organization_id``
|
|
945
945
|
# @param [Fixnum] page_size
|
|
946
946
|
# Size of the pages to be returned. This is currently unsupported and will be
|
|
947
947
|
# ignored. The server may at any point start using this field to limit page size.
|
|
@@ -977,14 +977,14 @@ module Google
|
|
|
977
977
|
execute_or_queue_command(command, &block)
|
|
978
978
|
end
|
|
979
979
|
|
|
980
|
-
# Updates a
|
|
980
|
+
# Updates a policy. Returns a `google.rpc.Status` with `google.rpc.Code.
|
|
981
981
|
# NOT_FOUND` if the constraint or the policy do not exist. Returns a `google.rpc.
|
|
982
982
|
# Status` with `google.rpc.Code.ABORTED` if the etag supplied in the request
|
|
983
983
|
# does not match the persisted etag of the policy Note: the supplied policy will
|
|
984
984
|
# perform a full overwrite of all fields.
|
|
985
985
|
# @param [String] name
|
|
986
|
-
# Immutable. The resource name of the
|
|
987
|
-
# where constraint_name is the name of the constraint which this
|
|
986
|
+
# Immutable. The resource name of the policy. Must be one of the following forms,
|
|
987
|
+
# where constraint_name is the name of the constraint which this policy
|
|
988
988
|
# configures: * `projects/`project_number`/policies/`constraint_name`` * `
|
|
989
989
|
# folders/`folder_id`/policies/`constraint_name`` * `organizations/`
|
|
990
990
|
# organization_id`/policies/`constraint_name`` For example, "projects/123/
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-orgpolicy_v2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.23.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: 2023-
|
|
11
|
+
date: 2023-02-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-apis-core
|
|
@@ -58,7 +58,7 @@ licenses:
|
|
|
58
58
|
metadata:
|
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-orgpolicy_v2/CHANGELOG.md
|
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-orgpolicy_v2/v0.
|
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-orgpolicy_v2/v0.23.0
|
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-orgpolicy_v2
|
|
63
63
|
post_install_message:
|
|
64
64
|
rdoc_options: []
|