Skip to content

Commit

Permalink
feat: Automated regeneration of PolicySimulator client (#12591)
Browse files Browse the repository at this point in the history
Auto-created at 2024-11-21 13:18:29 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Nov 26, 2024
1 parent efdd622 commit 55c29eb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clients/policy_simulator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding

```elixir
def deps do
[{:google_api_policy_simulator, "~> 0.5"}]
[{:google_api_policy_simulator, "~> 0.6"}]
end
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule GoogleApi.PolicySimulator.V1 do
API client metadata for GoogleApi.PolicySimulator.V1.
"""

@discovery_revision "20240617"
@discovery_revision "20241118"

def discovery_revision(), do: @discovery_revision
end
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ defmodule GoogleApi.PolicySimulator.V1.Model.GoogleCloudOrgpolicyV2PolicySpecPol
* `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')".
* `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.
* `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.
* `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 }
* `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.
"""

Expand All @@ -35,6 +36,7 @@ defmodule GoogleApi.PolicySimulator.V1.Model.GoogleCloudOrgpolicyV2PolicySpecPol
:condition => GoogleApi.PolicySimulator.V1.Model.GoogleTypeExpr.t() | nil,
:denyAll => boolean() | nil,
:enforce => boolean() | nil,
:parameters => map() | nil,
:values =>
GoogleApi.PolicySimulator.V1.Model.GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues.t()
| nil
Expand All @@ -44,6 +46,7 @@ defmodule GoogleApi.PolicySimulator.V1.Model.GoogleCloudOrgpolicyV2PolicySpecPol
field(:condition, as: GoogleApi.PolicySimulator.V1.Model.GoogleTypeExpr)
field(:denyAll)
field(:enforce)
field(:parameters, type: :map)

field(:values,
as: GoogleApi.PolicySimulator.V1.Model.GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
Expand Down
2 changes: 1 addition & 1 deletion clients/policy_simulator/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
defmodule GoogleApi.PolicySimulator.Mixfile do
use Mix.Project

@version "0.5.0"
@version "0.6.0"

def project() do
[
Expand Down

0 comments on commit 55c29eb

Please sign in to comment.