google-apis-orgpolicy_v2 0.36.0 → 0.38.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: fa053dea3206c0a71cd1d3cba1b43519b957a85ca8d5f3f1d7246800aed7c568
4
- data.tar.gz: 6a6dc6fa9a793c6e177e3128d232fd5a7ba5b0d9c904939c198fa5b40001b1f6
3
+ metadata.gz: 5b2c2db7dbdc5f2ac6e32054b7865c0e417d52d81c2e22089ebfc2f27ecb1091
4
+ data.tar.gz: 00b34ca7a544636ffe8b78cfde64edcd03d10322ae6891f9d8150edc5e64e462
5
5
  SHA512:
6
- metadata.gz: f03c2562e2c83eaffee4547ab78c5bfaaa1b1c9d4b256c0f604d1ff56f84b5f5373559e48ff21a74397bc8584075e89962a69071adc4a4e639ac85ca620e6faf
7
- data.tar.gz: 78ccb0791b1d686be3c55874647c2857aa87388f1409dd3488a363f91fc0476dd98672a762e1c7cb76453ea009ef0b639842ec65a9b81932bb71fab460974531
6
+ metadata.gz: 10280416eb568e2b70cdd965a2d419f967a4ef50bf04ed915b7b026b081b2e7a44e12e0f98f1cb167277415f38d37af8928e3e7f3a2de4998f6d45ee6ec77eff
7
+ data.tar.gz: 208ecb75d816188575d581b2c8fd3da4ab846bba2a235696db1b7b712139b1c0e5fe22fbaade41321e472e10f66df19e5bfbb3fef40174d81f079de3bea7b6b8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-orgpolicy_v2
2
2
 
3
+ ### v0.38.0 (2025-01-26)
4
+
5
+ * Regenerated from discovery document revision 20250117
6
+ * Regenerated using generator version 0.16.0
7
+
8
+ ### v0.37.0 (2024-12-08)
9
+
10
+ * Regenerated from discovery document revision 20241129
11
+
3
12
  ### v0.36.0 (2024-10-27)
4
13
 
5
14
  * Regenerated from discovery document revision 20241021
@@ -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/darklaunch.
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 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.
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 that is either enforced or not. For example, a constraint `
69
- # constraints/compute.disableSerialPortAccess`. If it is enforced on a VM
70
- # instance, serial port connections will not be opened to that instance.
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,8 @@ module Google
88
88
  # @return [String]
89
89
  attr_accessor :display_name
90
90
 
91
- # A constraint that allows or disallows a list of string values, which are
92
- # configured by an Organization Policy administrator with a policy.
91
+ # A constraint type that allows or disallows a list of string values, which are
92
+ # configured in the `PolicyRule`.
93
93
  # Corresponds to the JSON property `listConstraint`
94
94
  # @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintListConstraint]
95
95
  attr_accessor :list_constraint
@@ -109,6 +109,12 @@ module Google
109
109
  attr_accessor :supports_dry_run
110
110
  alias_method :supports_dry_run?, :supports_dry_run
111
111
 
112
+ # Shows if simulation is supported for this constraint or not.
113
+ # Corresponds to the JSON property `supportsSimulation`
114
+ # @return [Boolean]
115
+ attr_accessor :supports_simulation
116
+ alias_method :supports_simulation?, :supports_simulation
117
+
112
118
  def initialize(**args)
113
119
  update!(**args)
114
120
  end
@@ -122,17 +128,17 @@ module Google
122
128
  @list_constraint = args[:list_constraint] if args.key?(:list_constraint)
123
129
  @name = args[:name] if args.key?(:name)
124
130
  @supports_dry_run = args[:supports_dry_run] if args.key?(:supports_dry_run)
131
+ @supports_simulation = args[:supports_simulation] if args.key?(:supports_simulation)
125
132
  end
126
133
  end
127
134
 
128
- # A constraint that is either enforced or not. For example, a constraint `
129
- # constraints/compute.disableSerialPortAccess`. If it is enforced on a VM
130
- # instance, serial port connections will not be opened to that instance.
135
+ # A constraint type is enforced or not enforced, which is configured in the `
136
+ # PolicyRule`. If `customConstraintDefinition` is defined, this constraint is a
137
+ # managed constraint.
131
138
  class GoogleCloudOrgpolicyV2ConstraintBooleanConstraint
132
139
  include Google::Apis::Core::Hashable
133
140
 
134
- # Currently used for Managed Constraints. This represents a subset of fields
135
- # missing from Constraint proto that are required to describe CustomConstraint
141
+ # Custom constraint definition. Defines this as a managed constraint.
136
142
  # Corresponds to the JSON property `customConstraintDefinition`
137
143
  # @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition]
138
144
  attr_accessor :custom_constraint_definition
@@ -147,8 +153,7 @@ module Google
147
153
  end
148
154
  end
149
155
 
150
- # Currently used for Managed Constraints. This represents a subset of fields
151
- # missing from Constraint proto that are required to describe CustomConstraint
156
+ # Custom constraint definition. Defines this as a managed constraint.
152
157
  class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
153
158
  include Google::Apis::Core::Hashable
154
159
 
@@ -169,8 +174,8 @@ module Google
169
174
  # @return [Array<String>]
170
175
  attr_accessor :method_types
171
176
 
172
- # Stores Structure of parameters used by Constraint condition. Key of map
173
- # represents name of the parameter.
177
+ # Stores the structure of `Parameters` used by the constraint condition. The key
178
+ # of `map` represents the name of the parameter.
174
179
  # Corresponds to the JSON property `parameters`
175
180
  # @return [Hash<String,Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter>]
176
181
  attr_accessor :parameters
@@ -204,13 +209,13 @@ module Google
204
209
  # @return [Object]
205
210
  attr_accessor :default_value
206
211
 
207
- # Determines the parameters value structure. For example, LIST can be specified
208
- # by defining type : LIST, and item type as : STRING.
212
+ # Determines the parameter's value structure. For example, `LIST` can be
213
+ # specified by defining `type: LIST`, and `item: STRING`.
209
214
  # Corresponds to the JSON property `item`
210
215
  # @return [String]
211
216
  attr_accessor :item
212
217
 
213
- # Defines Medata structure.
218
+ # Defines Metadata structure.
214
219
  # Corresponds to the JSON property `metadata`
215
220
  # @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata]
216
221
  attr_accessor :metadata
@@ -241,7 +246,7 @@ module Google
241
246
  end
242
247
  end
243
248
 
244
- # Defines Medata structure.
249
+ # Defines Metadata structure.
245
250
  class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata
246
251
  include Google::Apis::Core::Hashable
247
252
 
@@ -260,8 +265,8 @@ module Google
260
265
  end
261
266
  end
262
267
 
263
- # A constraint that allows or disallows a list of string values, which are
264
- # configured by an Organization Policy administrator with a policy.
268
+ # A constraint type that allows or disallows a list of string values, which are
269
+ # configured in the `PolicyRule`.
265
270
  class GoogleCloudOrgpolicyV2ConstraintListConstraint
266
271
  include Google::Apis::Core::Hashable
267
272
 
@@ -304,9 +309,10 @@ module Google
304
309
  # @return [String]
305
310
  attr_accessor :action_type
306
311
 
307
- # Org policy condition/expression. For example: `resource.instanceName.matches("[
308
- # production|test]_.*_(\d)+")` or, `resource.management.auto_upgrade == true`
309
- # The max length of the condition is 1000 characters.
312
+ # A Common Expression Language (CEL) condition which is used in the evaluation
313
+ # of the constraint. For example: `resource.instanceName.matches("[production|
314
+ # test]_.*_(\d)+")` or, `resource.management.auto_upgrade == true` The max
315
+ # length of the condition is 1000 characters.
310
316
  # Corresponds to the JSON property `condition`
311
317
  # @return [String]
312
318
  attr_accessor :condition
@@ -346,7 +352,7 @@ module Google
346
352
 
347
353
  # Output only. The last time this custom constraint was updated. This represents
348
354
  # the last time that the `CreateCustomConstraint` or `UpdateCustomConstraint`
349
- # RPC was called
355
+ # methods were called.
350
356
  # Corresponds to the JSON property `updateTime`
351
357
  # @return [String]
352
358
  attr_accessor :update_time
@@ -394,12 +400,12 @@ module Google
394
400
  end
395
401
 
396
402
  # The response returned from the ListCustomConstraints method. It will be empty
397
- # if no custom constraints are set on the organization resource.
403
+ # if no custom or managed constraints are set on the organization resource.
398
404
  class GoogleCloudOrgpolicyV2ListCustomConstraintsResponse
399
405
  include Google::Apis::Core::Hashable
400
406
 
401
- # All custom constraints that exist on the organization resource. It will be
402
- # empty if no custom constraints are set.
407
+ # All custom and managed constraints that exist on the organization resource. It
408
+ # will be empty if no custom constraints are set.
403
409
  # Corresponds to the JSON property `customConstraints`
404
410
  # @return [Array<Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2CustomConstraint>]
405
411
  attr_accessor :custom_constraints
@@ -455,7 +461,7 @@ module Google
455
461
  include Google::Apis::Core::Hashable
456
462
 
457
463
  # Similar to PolicySpec but with an extra 'launch' field for launch reference.
458
- # The PolicySpec here is specific for dry-run/darklaunch.
464
+ # The PolicySpec here is specific for dry-run.
459
465
  # Corresponds to the JSON property `alternate`
460
466
  # @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2AlternatePolicySpec]
461
467
  attr_accessor :alternate
@@ -613,6 +619,14 @@ module Google
613
619
  attr_accessor :enforce
614
620
  alias_method :enforce?, :enforce
615
621
 
622
+ # Optional. Required for managed constraints if parameters are defined. Passes
623
+ # parameter values when policy enforcement is enabled. Ensure that parameter
624
+ # value types match those defined in the constraint definition. For example: ` "
625
+ # allowedLocations" : ["us-east1", "us-west1"], "allowAll" : true `
626
+ # Corresponds to the JSON property `parameters`
627
+ # @return [Hash<String,Object>]
628
+ attr_accessor :parameters
629
+
616
630
  # A message that holds specific allowed and denied values. This message can
617
631
  # define specific values and subtrees of the Resource Manager resource hierarchy
618
632
  # (`Organizations`, `Folders`, `Projects`) that are allowed or denied. This is
@@ -639,6 +653,7 @@ module Google
639
653
  @condition = args[:condition] if args.key?(:condition)
640
654
  @deny_all = args[:deny_all] if args.key?(:deny_all)
641
655
  @enforce = args[:enforce] if args.key?(:enforce)
656
+ @parameters = args[:parameters] if args.key?(:parameters)
642
657
  @values = args[:values] if args.key?(:values)
643
658
  end
644
659
  end
@@ -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.36.0"
19
+ GEM_VERSION = "0.38.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.1"
22
+ GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241021"
25
+ REVISION = "20250117"
26
26
  end
27
27
  end
28
28
  end
@@ -145,6 +145,7 @@ module Google
145
145
 
146
146
  property :name, as: 'name'
147
147
  property :supports_dry_run, as: 'supportsDryRun'
148
+ property :supports_simulation, as: 'supportsSimulation'
148
149
  end
149
150
  end
150
151
 
@@ -270,6 +271,7 @@ module Google
270
271
 
271
272
  property :deny_all, as: 'denyAll'
272
273
  property :enforce, as: 'enforce'
274
+ hash :parameters, as: 'parameters'
273
275
  property :values, as: 'values', class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues, decorator: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues::Representation
274
276
 
275
277
  end
@@ -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 `google.rpc.Code.
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 constraint
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.36.0
4
+ version: 0.38.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-10-27 00:00:00.000000000 Z
10
+ date: 2025-03-02 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.36.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-orgpolicy_v2/v0.38.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.21
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: []