google-apis-orgpolicy_v2 0.37.0 → 0.39.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af08a13acc314f9148859004b9c97b49f376627a90b68aee3f0a685d4684e00a
|
4
|
+
data.tar.gz: cba184accad75c46a31e44dadfdfc9067d83a4bb6c65ba0fdd797dc21e88e017
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c17ddbfc0e90295bf7fb8f5b16a6388ed6d99d4756ea30ce06326abf88c3fa049b3cf6dcf7b47573e8cb94f4629c8de63fc996422488a566b9797be07c8a4f9e
|
7
|
+
data.tar.gz: 1a3fea838ea768dc044024d26d77c6277368063f78c91d7e13f178b5accc9b90db04018d08ff6ca93fbf8db9f6ba08e499a12b43683d914d7730bccd29f18f97
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-orgpolicy_v2
|
2
2
|
|
3
|
+
### v0.39.0 (2025-04-27)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250418
|
6
|
+
|
7
|
+
### v0.38.0 (2025-01-26)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20250117
|
10
|
+
* Regenerated using generator version 0.16.0
|
11
|
+
|
3
12
|
### v0.37.0 (2024-12-08)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20241129
|
@@ -23,7 +23,7 @@ module Google
|
|
23
23
|
module OrgpolicyV2
|
24
24
|
|
25
25
|
# Similar to PolicySpec but with an extra 'launch' field for launch reference.
|
26
|
-
# The PolicySpec here is specific for dry-run
|
26
|
+
# The PolicySpec here is specific for dry-run.
|
27
27
|
class GoogleCloudOrgpolicyV2AlternatePolicySpec
|
28
28
|
include Google::Apis::Core::Hashable
|
29
29
|
|
@@ -58,16 +58,16 @@ module Google
|
|
58
58
|
# setting a policy that includes constraints at different locations in the
|
59
59
|
# organization's resource hierarchy. Policies are inherited down the resource
|
60
60
|
# hierarchy from higher levels, but can also be overridden. For details about
|
61
|
-
# the inheritance rules
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
61
|
+
# the inheritance rules, see `Policy`. Constraints have a default behavior
|
62
|
+
# determined by the `constraint_default` field, which is the enforcement
|
63
|
+
# behavior that is used in the absence of a policy being defined or inherited
|
64
|
+
# for the resource in question.
|
65
65
|
class GoogleCloudOrgpolicyV2Constraint
|
66
66
|
include Google::Apis::Core::Hashable
|
67
67
|
|
68
|
-
# A constraint
|
69
|
-
#
|
70
|
-
#
|
68
|
+
# A constraint type is enforced or not enforced, which is configured in the `
|
69
|
+
# PolicyRule`. If `customConstraintDefinition` is defined, this constraint is a
|
70
|
+
# managed constraint.
|
71
71
|
# Corresponds to the JSON property `booleanConstraint`
|
72
72
|
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintBooleanConstraint]
|
73
73
|
attr_accessor :boolean_constraint
|
@@ -88,8 +88,14 @@ module Google
|
|
88
88
|
# @return [String]
|
89
89
|
attr_accessor :display_name
|
90
90
|
|
91
|
-
#
|
92
|
-
#
|
91
|
+
# Managed constraint and canned constraint sometimes can have equivalents. This
|
92
|
+
# field is used to store the equivalent constraint name.
|
93
|
+
# Corresponds to the JSON property `equivalentConstraint`
|
94
|
+
# @return [String]
|
95
|
+
attr_accessor :equivalent_constraint
|
96
|
+
|
97
|
+
# A constraint type that allows or disallows a list of string values, which are
|
98
|
+
# configured in the `PolicyRule`.
|
93
99
|
# Corresponds to the JSON property `listConstraint`
|
94
100
|
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintListConstraint]
|
95
101
|
attr_accessor :list_constraint
|
@@ -125,6 +131,7 @@ module Google
|
|
125
131
|
@constraint_default = args[:constraint_default] if args.key?(:constraint_default)
|
126
132
|
@description = args[:description] if args.key?(:description)
|
127
133
|
@display_name = args[:display_name] if args.key?(:display_name)
|
134
|
+
@equivalent_constraint = args[:equivalent_constraint] if args.key?(:equivalent_constraint)
|
128
135
|
@list_constraint = args[:list_constraint] if args.key?(:list_constraint)
|
129
136
|
@name = args[:name] if args.key?(:name)
|
130
137
|
@supports_dry_run = args[:supports_dry_run] if args.key?(:supports_dry_run)
|
@@ -132,14 +139,13 @@ module Google
|
|
132
139
|
end
|
133
140
|
end
|
134
141
|
|
135
|
-
# A constraint
|
136
|
-
#
|
137
|
-
#
|
142
|
+
# A constraint type is enforced or not enforced, which is configured in the `
|
143
|
+
# PolicyRule`. If `customConstraintDefinition` is defined, this constraint is a
|
144
|
+
# managed constraint.
|
138
145
|
class GoogleCloudOrgpolicyV2ConstraintBooleanConstraint
|
139
146
|
include Google::Apis::Core::Hashable
|
140
147
|
|
141
|
-
#
|
142
|
-
# missing from Constraint proto that are required to describe CustomConstraint
|
148
|
+
# Custom constraint definition. Defines this as a managed constraint.
|
143
149
|
# Corresponds to the JSON property `customConstraintDefinition`
|
144
150
|
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition]
|
145
151
|
attr_accessor :custom_constraint_definition
|
@@ -154,8 +160,7 @@ module Google
|
|
154
160
|
end
|
155
161
|
end
|
156
162
|
|
157
|
-
#
|
158
|
-
# missing from Constraint proto that are required to describe CustomConstraint
|
163
|
+
# Custom constraint definition. Defines this as a managed constraint.
|
159
164
|
class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
|
160
165
|
include Google::Apis::Core::Hashable
|
161
166
|
|
@@ -176,8 +181,8 @@ module Google
|
|
176
181
|
# @return [Array<String>]
|
177
182
|
attr_accessor :method_types
|
178
183
|
|
179
|
-
# Stores
|
180
|
-
# represents name of the parameter.
|
184
|
+
# Stores the structure of `Parameters` used by the constraint condition. The key
|
185
|
+
# of `map` represents the name of the parameter.
|
181
186
|
# Corresponds to the JSON property `parameters`
|
182
187
|
# @return [Hash<String,Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter>]
|
183
188
|
attr_accessor :parameters
|
@@ -211,13 +216,13 @@ module Google
|
|
211
216
|
# @return [Object]
|
212
217
|
attr_accessor :default_value
|
213
218
|
|
214
|
-
# Determines the parameter
|
215
|
-
# by defining type
|
219
|
+
# Determines the parameter's value structure. For example, `LIST` can be
|
220
|
+
# specified by defining `type: LIST`, and `item: STRING`.
|
216
221
|
# Corresponds to the JSON property `item`
|
217
222
|
# @return [String]
|
218
223
|
attr_accessor :item
|
219
224
|
|
220
|
-
# Defines
|
225
|
+
# Defines Metadata structure.
|
221
226
|
# Corresponds to the JSON property `metadata`
|
222
227
|
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata]
|
223
228
|
attr_accessor :metadata
|
@@ -248,7 +253,7 @@ module Google
|
|
248
253
|
end
|
249
254
|
end
|
250
255
|
|
251
|
-
# Defines
|
256
|
+
# Defines Metadata structure.
|
252
257
|
class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata
|
253
258
|
include Google::Apis::Core::Hashable
|
254
259
|
|
@@ -267,8 +272,8 @@ module Google
|
|
267
272
|
end
|
268
273
|
end
|
269
274
|
|
270
|
-
# A constraint that allows or disallows a list of string values, which are
|
271
|
-
# configured
|
275
|
+
# A constraint type that allows or disallows a list of string values, which are
|
276
|
+
# configured in the `PolicyRule`.
|
272
277
|
class GoogleCloudOrgpolicyV2ConstraintListConstraint
|
273
278
|
include Google::Apis::Core::Hashable
|
274
279
|
|
@@ -311,9 +316,10 @@ module Google
|
|
311
316
|
# @return [String]
|
312
317
|
attr_accessor :action_type
|
313
318
|
|
314
|
-
#
|
315
|
-
#
|
316
|
-
#
|
319
|
+
# A Common Expression Language (CEL) condition which is used in the evaluation
|
320
|
+
# of the constraint. For example: `resource.instanceName.matches("[production|
|
321
|
+
# test]_.*_(\d)+")` or, `resource.management.auto_upgrade == true` The max
|
322
|
+
# length of the condition is 1000 characters.
|
317
323
|
# Corresponds to the JSON property `condition`
|
318
324
|
# @return [String]
|
319
325
|
attr_accessor :condition
|
@@ -353,7 +359,7 @@ module Google
|
|
353
359
|
|
354
360
|
# Output only. The last time this custom constraint was updated. This represents
|
355
361
|
# the last time that the `CreateCustomConstraint` or `UpdateCustomConstraint`
|
356
|
-
#
|
362
|
+
# methods were called.
|
357
363
|
# Corresponds to the JSON property `updateTime`
|
358
364
|
# @return [String]
|
359
365
|
attr_accessor :update_time
|
@@ -401,12 +407,12 @@ module Google
|
|
401
407
|
end
|
402
408
|
|
403
409
|
# The response returned from the ListCustomConstraints method. It will be empty
|
404
|
-
# if no custom constraints are set on the organization resource.
|
410
|
+
# if no custom or managed constraints are set on the organization resource.
|
405
411
|
class GoogleCloudOrgpolicyV2ListCustomConstraintsResponse
|
406
412
|
include Google::Apis::Core::Hashable
|
407
413
|
|
408
|
-
# All custom constraints that exist on the organization resource. It
|
409
|
-
# empty if no custom constraints are set.
|
414
|
+
# All custom and managed constraints that exist on the organization resource. It
|
415
|
+
# will be empty if no custom constraints are set.
|
410
416
|
# Corresponds to the JSON property `customConstraints`
|
411
417
|
# @return [Array<Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2CustomConstraint>]
|
412
418
|
attr_accessor :custom_constraints
|
@@ -462,7 +468,7 @@ module Google
|
|
462
468
|
include Google::Apis::Core::Hashable
|
463
469
|
|
464
470
|
# Similar to PolicySpec but with an extra 'launch' field for launch reference.
|
465
|
-
# The PolicySpec here is specific for dry-run
|
471
|
+
# The PolicySpec here is specific for dry-run.
|
466
472
|
# Corresponds to the JSON property `alternate`
|
467
473
|
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2AlternatePolicySpec]
|
468
474
|
attr_accessor :alternate
|
@@ -620,7 +626,7 @@ module Google
|
|
620
626
|
attr_accessor :enforce
|
621
627
|
alias_method :enforce?, :enforce
|
622
628
|
|
623
|
-
# Optional. Required for
|
629
|
+
# Optional. Required for managed constraints if parameters are defined. Passes
|
624
630
|
# parameter values when policy enforcement is enabled. Ensure that parameter
|
625
631
|
# value types match those defined in the constraint definition. For example: ` "
|
626
632
|
# allowedLocations" : ["us-east1", "us-west1"], "allowAll" : true `
|
@@ -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.39.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250418"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -141,6 +141,7 @@ module Google
|
|
141
141
|
property :constraint_default, as: 'constraintDefault'
|
142
142
|
property :description, as: 'description'
|
143
143
|
property :display_name, as: 'displayName'
|
144
|
+
property :equivalent_constraint, as: 'equivalentConstraint'
|
144
145
|
property :list_constraint, as: 'listConstraint', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintListConstraint, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintListConstraint::Representation
|
145
146
|
|
146
147
|
property :name, as: 'name'
|
@@ -430,11 +430,11 @@ module Google
|
|
430
430
|
execute_or_queue_command(command, &block)
|
431
431
|
end
|
432
432
|
|
433
|
-
# Gets a custom constraint. Returns a `google.rpc.Status` with `
|
434
|
-
# NOT_FOUND` if the custom constraint does not exist.
|
433
|
+
# Gets a custom or managed constraint. Returns a `google.rpc.Status` with `
|
434
|
+
# google.rpc.Code.NOT_FOUND` if the custom or managed constraint does not exist.
|
435
435
|
# @param [String] name
|
436
|
-
# Required. Resource name of the custom constraint. See the custom
|
437
|
-
# entry for naming requirements.
|
436
|
+
# Required. Resource name of the custom or managed constraint. See the custom
|
437
|
+
# constraint entry for naming requirements.
|
438
438
|
# @param [String] fields
|
439
439
|
# Selector specifying which fields to include in a partial response.
|
440
440
|
# @param [String] quota_user
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
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.39.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-04-27 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: google-apis-core
|
@@ -58,9 +57,8 @@ licenses:
|
|
58
57
|
metadata:
|
59
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
59
|
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.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-orgpolicy_v2/v0.39.0
|
62
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-orgpolicy_v2
|
63
|
-
post_install_message:
|
64
62
|
rdoc_options: []
|
65
63
|
require_paths:
|
66
64
|
- lib
|
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
73
|
- !ruby/object:Gem::Version
|
76
74
|
version: '0'
|
77
75
|
requirements: []
|
78
|
-
rubygems_version: 3.5
|
79
|
-
signing_key:
|
76
|
+
rubygems_version: 3.6.5
|
80
77
|
specification_version: 4
|
81
78
|
summary: Simple REST client for Organization Policy API V2
|
82
79
|
test_files: []
|