Skip to content

Commit 87062c1

Browse files
feat: Automated regeneration of OrgPolicy client (googleapis#12850)
Auto-created at 2025-01-22 13:13:21 +0000 using the toys pull request generator.
1 parent f8f1827 commit 87062c1

14 files changed

+21
-21
lines changed

clients/org_policy/lib/google_api/org_policy/v2/api/organizations.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,12 +247,12 @@ defmodule GoogleApi.OrgPolicy.V2.Api.Organizations do
247247
end
248248

249249
@doc """
250-
Gets a custom constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the custom constraint does not exist.
250+
Gets a custom or managed constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the custom or managed constraint does not exist.
251251
252252
## Parameters
253253
254254
* `connection` (*type:* `GoogleApi.OrgPolicy.V2.Connection.t`) - Connection to server
255-
* `name` (*type:* `String.t`) - Required. Resource name of the custom constraint. See the custom constraint entry for naming requirements.
255+
* `name` (*type:* `String.t`) - Required. Resource name of the custom or managed constraint. See the custom constraint entry for naming requirements.
256256
* `optional_params` (*type:* `keyword()`) - Optional parameters
257257
* `:"$.xgafv"` (*type:* `String.t`) - V1 error format.
258258
* `:access_token` (*type:* `String.t`) - OAuth access token.

clients/org_policy/lib/google_api/org_policy/v2/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.OrgPolicy.V2 do
2020
API client metadata for GoogleApi.OrgPolicy.V2.
2121
"""
2222

23-
@discovery_revision "20241129"
23+
@discovery_revision "20250117"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/org_policy/lib/google_api/org_policy/v2/model/google_cloud_orgpolicy_v2_alternate_policy_spec.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2AlternatePolicySpec do
1919
@moduledoc """
20-
Similar to PolicySpec but with an extra 'launch' field for launch reference. The PolicySpec here is specific for dry-run/darklaunch.
20+
Similar to PolicySpec but with an extra 'launch' field for launch reference. The PolicySpec here is specific for dry-run.
2121
2222
## Attributes
2323

clients/org_policy/lib/google_api/org_policy/v2/model/google_cloud_orgpolicy_v2_constraint.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717

1818
defmodule GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2Constraint do
1919
@moduledoc """
20-
A constraint describes a way to restrict resource's configuration. For example, you could enforce a constraint that controls which Google Cloud services can be activated across an organization, or whether a Compute Engine instance can have serial port connections established. Constraints can be configured by the organization policy administrator to fit the needs of the organization by setting a policy that includes constraints at different locations in the organization's resource hierarchy. Policies are inherited down the resource hierarchy from higher levels, but can also be overridden. For details about the inheritance rules please read about `policies`. Constraints have a default behavior determined by the `constraint_default` field, which is the enforcement behavior that is used in the absence of a policy being defined or inherited for the resource in question.
20+
A constraint describes a way to restrict resource's configuration. For example, you could enforce a constraint that controls which Google Cloud services can be activated across an organization, or whether a Compute Engine instance can have serial port connections established. Constraints can be configured by the organization policy administrator to fit the needs of the organization by setting a policy that includes constraints at different locations in the organization's resource hierarchy. Policies are inherited down the resource hierarchy from higher levels, but can also be overridden. For details about the inheritance rules, see `Policy`. Constraints have a default behavior determined by the `constraint_default` field, which is the enforcement behavior that is used in the absence of a policy being defined or inherited for the resource in question.
2121
2222
## Attributes
2323
24-
* `booleanConstraint` (*type:* `GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2ConstraintBooleanConstraint.t`, *default:* `nil`) - Defines this constraint as being a BooleanConstraint.
24+
* `booleanConstraint` (*type:* `GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2ConstraintBooleanConstraint.t`, *default:* `nil`) - Defines this constraint as being a boolean constraint.
2525
* `constraintDefault` (*type:* `String.t`, *default:* `nil`) - The evaluation behavior of this constraint in the absence of a policy.
2626
* `description` (*type:* `String.t`, *default:* `nil`) - Detailed description of what this constraint controls as well as how and where it is enforced. Mutable.
2727
* `displayName` (*type:* `String.t`, *default:* `nil`) - The human readable name. Mutable.
28-
* `listConstraint` (*type:* `GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2ConstraintListConstraint.t`, *default:* `nil`) - Defines this constraint as being a ListConstraint.
28+
* `listConstraint` (*type:* `GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2ConstraintListConstraint.t`, *default:* `nil`) - Defines this constraint as being a list constraint.
2929
* `name` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the constraint. Must be in one of the following forms: * `projects/{project_number}/constraints/{constraint_name}` * `folders/{folder_id}/constraints/{constraint_name}` * `organizations/{organization_id}/constraints/{constraint_name}` For example, "/projects/123/constraints/compute.disableSerialPortAccess".
3030
* `supportsDryRun` (*type:* `boolean()`, *default:* `nil`) - Shows if dry run is supported for this constraint or not.
3131
* `supportsSimulation` (*type:* `boolean()`, *default:* `nil`) - Shows if simulation is supported for this constraint or not.

clients/org_policy/lib/google_api/org_policy/v2/model/google_cloud_orgpolicy_v2_constraint_boolean_constraint.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717

1818
defmodule GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2ConstraintBooleanConstraint do
1919
@moduledoc """
20-
A constraint that is either enforced or not. For example, a constraint `constraints/compute.disableSerialPortAccess`. If it is enforced on a VM instance, serial port connections will not be opened to that instance.
20+
A constraint type is enforced or not enforced, which is configured in the `PolicyRule`. If `customConstraintDefinition` is defined, this constraint is a managed constraint.
2121
2222
## Attributes
2323
24-
* `customConstraintDefinition` (*type:* `GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition.t`, *default:* `nil`) - Custom constraint definition. This is set only for Managed Constraints
24+
* `customConstraintDefinition` (*type:* `GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition.t`, *default:* `nil`) - Custom constraint definition. Defines this as a managed constraint.
2525
"""
2626

2727
use GoogleApi.Gax.ModelBase

clients/org_policy/lib/google_api/org_policy/v2/model/google_cloud_orgpolicy_v2_constraint_custom_constraint_definition.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717

1818
defmodule GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition do
1919
@moduledoc """
20-
Currently used for Managed Constraints. This represents a subset of fields missing from Constraint proto that are required to describe CustomConstraint
20+
Custom constraint definition. Defines this as a managed constraint.
2121
2222
## Attributes
2323
2424
* `actionType` (*type:* `String.t`, *default:* `nil`) - Allow or deny type.
2525
* `condition` (*type:* `String.t`, *default:* `nil`) - Org policy condition/expression. For example: `resource.instanceName.matches("[production|test]_.*_(\\d)+")` or, `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters.
2626
* `methodTypes` (*type:* `list(String.t)`, *default:* `nil`) - All the operations being applied for this constraint.
27-
* `parameters` (*type:* `%{optional(String.t) => GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter.t}`, *default:* `nil`) - Stores Structure of parameters used by Constraint condition. Key of map represents name of the parameter.
27+
* `parameters` (*type:* `%{optional(String.t) => GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter.t}`, *default:* `nil`) - Stores the structure of `Parameters` used by the constraint condition. The key of `map` represents the name of the parameter.
2828
* `resourceTypes` (*type:* `list(String.t)`, *default:* `nil`) - The resource instance type on which this policy applies. Format will be of the form : `/` Example: * `compute.googleapis.com/Instance`.
2929
"""
3030

clients/org_policy/lib/google_api/org_policy/v2/model/google_cloud_orgpolicy_v2_constraint_custom_constraint_definition_parameter.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ defmodule GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2ConstraintCustomCon
2222
## Attributes
2323
2424
* `defaultValue` (*type:* `any()`, *default:* `nil`) - Sets the value of the parameter in an assignment if no value is given.
25-
* `item` (*type:* `String.t`, *default:* `nil`) - Determines the parameters value structure. For example, LIST can be specified by defining type : LIST, and item type as : STRING.
25+
* `item` (*type:* `String.t`, *default:* `nil`) - Determines the parameter's value structure. For example, `LIST` can be specified by defining `type: LIST`, and `item: STRING`.
2626
* `metadata` (*type:* `GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata.t`, *default:* `nil`) - Defines subproperties primarily used by the UI to display user-friendly information.
2727
* `type` (*type:* `String.t`, *default:* `nil`) - Type of the parameter.
2828
* `validValuesExpr` (*type:* `String.t`, *default:* `nil`) - Provides a CEL expression to specify the acceptable parameter values during assignment. For example, parameterName in ("parameterValue1", "parameterValue2")

clients/org_policy/lib/google_api/org_policy/v2/model/google_cloud_orgpolicy_v2_constraint_custom_constraint_definition_parameter_metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata do
1919
@moduledoc """
20-
Defines Medata structure.
20+
Defines Metadata structure.
2121
2222
## Attributes
2323

clients/org_policy/lib/google_api/org_policy/v2/model/google_cloud_orgpolicy_v2_constraint_list_constraint.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
defmodule GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2ConstraintListConstraint do
1919
@moduledoc """
20-
A constraint that allows or disallows a list of string values, which are configured by an Organization Policy administrator with a policy.
20+
A constraint type that allows or disallows a list of string values, which are configured in the `PolicyRule`.
2121
2222
## Attributes
2323

clients/org_policy/lib/google_api/org_policy/v2/model/google_cloud_orgpolicy_v2_custom_constraint.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ defmodule GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2CustomConstraint do
2222
## Attributes
2323
2424
* `actionType` (*type:* `String.t`, *default:* `nil`) - Allow or deny type.
25-
* `condition` (*type:* `String.t`, *default:* `nil`) - Org policy condition/expression. For example: `resource.instanceName.matches("[production|test]_.*_(\\d)+")` or, `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters.
25+
* `condition` (*type:* `String.t`, *default:* `nil`) - A Common Expression Language (CEL) condition which is used in the evaluation of the constraint. For example: `resource.instanceName.matches("[production|test]_.*_(\\d)+")` or, `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters.
2626
* `description` (*type:* `String.t`, *default:* `nil`) - Detailed information about this custom policy constraint. The max length of the description is 2000 characters.
2727
* `displayName` (*type:* `String.t`, *default:* `nil`) - One line display name for the UI. The max length of the display_name is 200 characters.
2828
* `methodTypes` (*type:* `list(String.t)`, *default:* `nil`) - All the operations being applied for this constraint.
2929
* `name` (*type:* `String.t`, *default:* `nil`) - Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example: `organizations/123/customConstraints/custom.createOnlyE2TypeVms` The max length is 70 characters and the minimum length is 1. Note that the prefix `organizations/{organization_id}/customConstraints/` is not counted.
3030
* `resourceTypes` (*type:* `list(String.t)`, *default:* `nil`) - Immutable. The resource instance type on which this policy applies. Format will be of the form : `/` Example: * `compute.googleapis.com/Instance`.
31-
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The last time this custom constraint was updated. This represents the last time that the `CreateCustomConstraint` or `UpdateCustomConstraint` RPC was called
31+
* `updateTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The last time this custom constraint was updated. This represents the last time that the `CreateCustomConstraint` or `UpdateCustomConstraint` methods were called.
3232
"""
3333

3434
use GoogleApi.Gax.ModelBase

0 commit comments

Comments
 (0)