Skip to content

Commit 6702866

Browse files
feat: Automated regeneration of OrgPolicy client (googleapis#12662)
Auto-created at 2024-12-07 13:17:39 +0000 using the toys pull request generator.
1 parent 80bfc5e commit 6702866

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

clients/org_policy/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_org_policy, "~> 0.8"}]
14+
[{:google_api_org_policy, "~> 0.9"}]
1515
end
1616
```
1717

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 "20241021"
23+
@discovery_revision "20241129"
2424

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

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ defmodule GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2Constraint do
2828
* `listConstraint` (*type:* `GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2ConstraintListConstraint.t`, *default:* `nil`) - Defines this constraint as being a ListConstraint.
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.
31+
* `supportsSimulation` (*type:* `boolean()`, *default:* `nil`) - Shows if simulation is supported for this constraint or not.
3132
"""
3233

3334
use GoogleApi.Gax.ModelBase
@@ -42,7 +43,8 @@ defmodule GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2Constraint do
4243
:listConstraint =>
4344
GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2ConstraintListConstraint.t() | nil,
4445
:name => String.t() | nil,
45-
:supportsDryRun => boolean() | nil
46+
:supportsDryRun => boolean() | nil,
47+
:supportsSimulation => boolean() | nil
4648
}
4749

4850
field(:booleanConstraint,
@@ -59,6 +61,7 @@ defmodule GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2Constraint do
5961

6062
field(:name)
6163
field(:supportsDryRun)
64+
field(:supportsSimulation)
6265
end
6366

6467
defimpl Poison.Decoder, for: GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2Constraint do

clients/org_policy/lib/google_api/org_policy/v2/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.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2PolicySpecPolicyRul
2525
* `condition` (*type:* `GoogleApi.OrgPolicy.V2.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.OrgPolicy.V2.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.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2PolicySpecPolicyRul
3536
:condition => GoogleApi.OrgPolicy.V2.Model.GoogleTypeExpr.t() | nil,
3637
:denyAll => boolean() | nil,
3738
:enforce => boolean() | nil,
39+
:parameters => map() | nil,
3840
:values =>
3941
GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues.t()
4042
| nil
@@ -44,6 +46,7 @@ defmodule GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2PolicySpecPolicyRul
4446
field(:condition, as: GoogleApi.OrgPolicy.V2.Model.GoogleTypeExpr)
4547
field(:denyAll)
4648
field(:enforce)
49+
field(:parameters, type: :map)
4750

4851
field(:values,
4952
as: GoogleApi.OrgPolicy.V2.Model.GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues

clients/org_policy/mix.exs

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

21-
@version "0.8.0"
21+
@version "0.9.0"
2222

2323
def project() do
2424
[

0 commit comments

Comments
 (0)