Skip to content

Commit 5d0705a

Browse files
feat: Automated regeneration of PolicySimulator client (googleapis#12854)
Auto-created at 2025-01-23 13:11:52 +0000 using the toys pull request generator.
1 parent d80e36b commit 5d0705a

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

clients/policy_simulator/lib/google_api/policy_simulator/v1/metadata.ex

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

23-
@discovery_revision "20241118"
23+
@discovery_revision "20250119"
2424

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

clients/policy_simulator/lib/google_api/policy_simulator/v1/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.PolicySimulator.V1.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/policy_simulator/lib/google_api/policy_simulator/v1/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.PolicySimulator.V1.Model.GoogleCloudOrgpolicyV2CustomConstra
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

clients/policy_simulator/lib/google_api/policy_simulator/v1/model/google_cloud_orgpolicy_v2_policy.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ defmodule GoogleApi.PolicySimulator.V1.Model.GoogleCloudOrgpolicyV2Policy do
2525
* `dryRunSpec` (*type:* `GoogleApi.PolicySimulator.V1.Model.GoogleCloudOrgpolicyV2PolicySpec.t`, *default:* `nil`) - Dry-run policy. Audit-only policy, can be used to monitor how the policy would have impacted the existing and future resources if it's enforced.
2626
* `etag` (*type:* `String.t`, *default:* `nil`) - Optional. An opaque tag indicating the current state of the policy, used for concurrency control. This 'etag' is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
2727
* `name` (*type:* `String.t`, *default:* `nil`) - Immutable. The resource name of the policy. Must be one of the following forms, where `constraint_name` is the name of the constraint which this policy configures: * `projects/{project_number}/policies/{constraint_name}` * `folders/{folder_id}/policies/{constraint_name}` * `organizations/{organization_id}/policies/{constraint_name}` For example, `projects/123/policies/compute.disableSerialPortAccess`. Note: `projects/{project_id}/policies/{constraint_name}` is also an acceptable name for API requests, but responses will return the name using the equivalent project number.
28-
* `spec` (*type:* `GoogleApi.PolicySimulator.V1.Model.GoogleCloudOrgpolicyV2PolicySpec.t`, *default:* `nil`) - Basic information about the Organization Policy.
28+
* `spec` (*type:* `GoogleApi.PolicySimulator.V1.Model.GoogleCloudOrgpolicyV2PolicySpec.t`, *default:* `nil`) - Basic information about the organization policy.
2929
"""
3030

3131
use GoogleApi.Gax.ModelBase

clients/policy_simulator/lib/google_api/policy_simulator/v1/model/google_cloud_orgpolicy_v2_policy_spec_policy_rule.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ defmodule GoogleApi.PolicySimulator.V1.Model.GoogleCloudOrgpolicyV2PolicySpecPol
2525
* `condition` (*type:* `GoogleApi.PolicySimulator.V1.Model.GoogleTypeExpr.t`, *default:* `nil`) - A condition which determines whether this rule is used in the evaluation of the policy. When set, the `expression` field in the `Expr' must include from 1 to 10 subexpressions, joined by the "||" or "&&" operators. Each subexpression must be of the form "resource.matchTag('/tag_key_short_name, 'tag_value_short_name')". or "resource.matchTagId('tagKeys/key_id', 'tagValues/value_id')". where key_name and value_name are the resource names for Label Keys and Values. These names are available from the Tag Manager Service. An example expression is: "resource.matchTag('123456789/environment, 'prod')". or "resource.matchTagId('tagKeys/123', 'tagValues/456')".
2626
* `denyAll` (*type:* `boolean()`, *default:* `nil`) - Setting this to true means that all values are denied. This field can be set only in policies for list constraints.
2727
* `enforce` (*type:* `boolean()`, *default:* `nil`) - If `true`, then the policy is enforced. If `false`, then any configuration is acceptable. This field can be set only in policies for boolean constraints.
28-
* `parameters` (*type:* `map()`, *default:* `nil`) - Optional. Required for GMCs if parameters defined in constraints. Pass parameter values when policy enforcement is enabled. Ensure that parameter value types match those defined in the constraint definition. For example: { "allowedLocations" : ["us-east1", "us-west1"], "allowAll" : true }
28+
* `parameters` (*type:* `map()`, *default:* `nil`) - Optional. Required for managed constraints if parameters are defined. Passes parameter values when policy enforcement is enabled. Ensure that parameter value types match those defined in the constraint definition. For example: { "allowedLocations" : ["us-east1", "us-west1"], "allowAll" : true }
2929
* `values` (*type:* `GoogleApi.PolicySimulator.V1.Model.GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues.t`, *default:* `nil`) - List of values to be used for this policy rule. This field can be set only in policies for list constraints.
3030
"""
3131

clients/policy_simulator/mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
defmodule GoogleApi.PolicySimulator.Mixfile do
1919
use Mix.Project
2020

21-
@version "0.6.0"
21+
@version "0.6.1"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)