@@ -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 parameter’ s 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 `
0 commit comments