Skip to content

Commit 52b28ad

Browse files
feat: Automated regeneration of orgpolicy v2 client (#21489)
Auto-created at 2025-01-26 10:21:13 +0000 using the toys pull request generator.
1 parent eb357d9 commit 52b28ad

File tree

4 files changed

+45
-41
lines changed

4 files changed

+45
-41
lines changed

generated/google-apis-orgpolicy_v2/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-orgpolicy_v2
22

3+
### v0.38.0 (2025-01-26)
4+
5+
* Regenerated from discovery document revision 20250117
6+
* Regenerated using generator version 0.16.0
7+
38
### v0.37.0 (2024-12-08)
49

510
* Regenerated from discovery document revision 20241129

generated/google-apis-orgpolicy_v2/lib/google/apis/orgpolicy_v2/classes.rb

Lines changed: 33 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module Apis
2323
module OrgpolicyV2
2424

2525
# 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.
2727
class GoogleCloudOrgpolicyV2AlternatePolicySpec
2828
include Google::Apis::Core::Hashable
2929

@@ -58,16 +58,16 @@ def update!(**args)
5858
# setting a policy that includes constraints at different locations in the
5959
# organization's resource hierarchy. Policies are inherited down the resource
6060
# 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.
6565
class GoogleCloudOrgpolicyV2Constraint
6666
include Google::Apis::Core::Hashable
6767

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.
7171
# Corresponds to the JSON property `booleanConstraint`
7272
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintBooleanConstraint]
7373
attr_accessor :boolean_constraint
@@ -88,8 +88,8 @@ class GoogleCloudOrgpolicyV2Constraint
8888
# @return [String]
8989
attr_accessor :display_name
9090

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`.
9393
# Corresponds to the JSON property `listConstraint`
9494
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintListConstraint]
9595
attr_accessor :list_constraint
@@ -132,14 +132,13 @@ def update!(**args)
132132
end
133133
end
134134

135-
# A constraint that is either enforced or not. For example, a constraint `
136-
# constraints/compute.disableSerialPortAccess`. If it is enforced on a VM
137-
# 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.
138138
class GoogleCloudOrgpolicyV2ConstraintBooleanConstraint
139139
include Google::Apis::Core::Hashable
140140

141-
# Currently used for Managed Constraints. This represents a subset of fields
142-
# missing from Constraint proto that are required to describe CustomConstraint
141+
# Custom constraint definition. Defines this as a managed constraint.
143142
# Corresponds to the JSON property `customConstraintDefinition`
144143
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition]
145144
attr_accessor :custom_constraint_definition
@@ -154,8 +153,7 @@ def update!(**args)
154153
end
155154
end
156155

157-
# Currently used for Managed Constraints. This represents a subset of fields
158-
# missing from Constraint proto that are required to describe CustomConstraint
156+
# Custom constraint definition. Defines this as a managed constraint.
159157
class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
160158
include Google::Apis::Core::Hashable
161159

@@ -176,8 +174,8 @@ class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
176174
# @return [Array<String>]
177175
attr_accessor :method_types
178176

179-
# Stores Structure of parameters used by Constraint condition. Key of map
180-
# 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.
181179
# Corresponds to the JSON property `parameters`
182180
# @return [Hash<String,Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter>]
183181
attr_accessor :parameters
@@ -211,13 +209,13 @@ class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter
211209
# @return [Object]
212210
attr_accessor :default_value
213211

214-
# Determines the parameters value structure. For example, LIST can be specified
215-
# 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`.
216214
# Corresponds to the JSON property `item`
217215
# @return [String]
218216
attr_accessor :item
219217

220-
# Defines Medata structure.
218+
# Defines Metadata structure.
221219
# Corresponds to the JSON property `metadata`
222220
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata]
223221
attr_accessor :metadata
@@ -248,7 +246,7 @@ def update!(**args)
248246
end
249247
end
250248

251-
# Defines Medata structure.
249+
# Defines Metadata structure.
252250
class GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata
253251
include Google::Apis::Core::Hashable
254252

@@ -267,8 +265,8 @@ def update!(**args)
267265
end
268266
end
269267

270-
# A constraint that allows or disallows a list of string values, which are
271-
# 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`.
272270
class GoogleCloudOrgpolicyV2ConstraintListConstraint
273271
include Google::Apis::Core::Hashable
274272

@@ -311,9 +309,10 @@ class GoogleCloudOrgpolicyV2CustomConstraint
311309
# @return [String]
312310
attr_accessor :action_type
313311

314-
# Org policy condition/expression. For example: `resource.instanceName.matches("[
315-
# production|test]_.*_(\d)+")` or, `resource.management.auto_upgrade == true`
316-
# 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.
317316
# Corresponds to the JSON property `condition`
318317
# @return [String]
319318
attr_accessor :condition
@@ -353,7 +352,7 @@ class GoogleCloudOrgpolicyV2CustomConstraint
353352

354353
# Output only. The last time this custom constraint was updated. This represents
355354
# the last time that the `CreateCustomConstraint` or `UpdateCustomConstraint`
356-
# RPC was called
355+
# methods were called.
357356
# Corresponds to the JSON property `updateTime`
358357
# @return [String]
359358
attr_accessor :update_time
@@ -401,12 +400,12 @@ def update!(**args)
401400
end
402401

403402
# The response returned from the ListCustomConstraints method. It will be empty
404-
# if no custom constraints are set on the organization resource.
403+
# if no custom or managed constraints are set on the organization resource.
405404
class GoogleCloudOrgpolicyV2ListCustomConstraintsResponse
406405
include Google::Apis::Core::Hashable
407406

408-
# All custom constraints that exist on the organization resource. It will be
409-
# 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.
410409
# Corresponds to the JSON property `customConstraints`
411410
# @return [Array<Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2CustomConstraint>]
412411
attr_accessor :custom_constraints
@@ -462,7 +461,7 @@ class GoogleCloudOrgpolicyV2Policy
462461
include Google::Apis::Core::Hashable
463462

464463
# Similar to PolicySpec but with an extra 'launch' field for launch reference.
465-
# The PolicySpec here is specific for dry-run/darklaunch.
464+
# The PolicySpec here is specific for dry-run.
466465
# Corresponds to the JSON property `alternate`
467466
# @return [Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2AlternatePolicySpec]
468467
attr_accessor :alternate
@@ -620,7 +619,7 @@ class GoogleCloudOrgpolicyV2PolicySpecPolicyRule
620619
attr_accessor :enforce
621620
alias_method :enforce?, :enforce
622621

623-
# Optional. Required for GMCs if parameters defined in constraints. Pass
622+
# Optional. Required for managed constraints if parameters are defined. Passes
624623
# parameter values when policy enforcement is enabled. Ensure that parameter
625624
# value types match those defined in the constraint definition. For example: ` "
626625
# allowedLocations" : ["us-east1", "us-west1"], "allowAll" : true `

generated/google-apis-orgpolicy_v2/lib/google/apis/orgpolicy_v2/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module OrgpolicyV2
1818
# Version of the google-apis-orgpolicy_v2 gem
19-
GEM_VERSION = "0.37.0"
19+
GEM_VERSION = "0.38.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.15.1"
22+
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20241129"
25+
REVISION = "20250117"
2626
end
2727
end
2828
end

generated/google-apis-orgpolicy_v2/lib/google/apis/orgpolicy_v2/service.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -430,11 +430,11 @@ def delete_organization_custom_constraint(name, fields: nil, quota_user: nil, op
430430
execute_or_queue_command(command, &block)
431431
end
432432

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.
435435
# @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.
438438
# @param [String] fields
439439
# Selector specifying which fields to include in a partial response.
440440
# @param [String] quota_user

0 commit comments

Comments
 (0)