Skip to content

Commit 55c29eb

Browse files
feat: Automated regeneration of PolicySimulator client (googleapis#12591)
Auto-created at 2024-11-21 13:18:29 +0000 using the toys pull request generator.
1 parent efdd622 commit 55c29eb

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

clients/policy_simulator/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding
1111

1212
```elixir
1313
def deps do
14-
[{:google_api_policy_simulator, "~> 0.5"}]
14+
[{:google_api_policy_simulator, "~> 0.6"}]
1515
end
1616
```
1717

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 "20240617"
23+
@discovery_revision "20241118"
2424

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

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +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 }
2829
* `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.
2930
"""
3031

@@ -35,6 +36,7 @@ defmodule GoogleApi.PolicySimulator.V1.Model.GoogleCloudOrgpolicyV2PolicySpecPol
3536
:condition => GoogleApi.PolicySimulator.V1.Model.GoogleTypeExpr.t() | nil,
3637
:denyAll => boolean() | nil,
3738
:enforce => boolean() | nil,
39+
:parameters => map() | nil,
3840
:values =>
3941
GoogleApi.PolicySimulator.V1.Model.GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues.t()
4042
| nil
@@ -44,6 +46,7 @@ defmodule GoogleApi.PolicySimulator.V1.Model.GoogleCloudOrgpolicyV2PolicySpecPol
4446
field(:condition, as: GoogleApi.PolicySimulator.V1.Model.GoogleTypeExpr)
4547
field(:denyAll)
4648
field(:enforce)
49+
field(:parameters, type: :map)
4750

4851
field(:values,
4952
as: GoogleApi.PolicySimulator.V1.Model.GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues

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.5.0"
21+
@version "0.6.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)