Skip to content

Commit

Permalink
feat(orgpolicy): update the api
Browse files Browse the repository at this point in the history
#### orgpolicy:v2

The following keys were added:
- schemas.GoogleCloudOrgpolicyV2Constraint.properties.supportsSimulation.type (Total Keys: 1)
- schemas.GoogleCloudOrgpolicyV2PolicySpecPolicyRule.properties.parameters (Total Keys: 2)
  • Loading branch information
yoshi-automation committed Dec 10, 2024
1 parent dbe06d2 commit 2da03fb
Show file tree
Hide file tree
Showing 7 changed files with 205 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/dyn/orgpolicy_v2.folders.constraints.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ <h3>Method Details</h3>
},
&quot;name&quot;: &quot;A String&quot;, # 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, &quot;/projects/123/constraints/compute.disableSerialPortAccess&quot;.
&quot;supportsDryRun&quot;: True or False, # Shows if dry run is supported for this constraint or not.
&quot;supportsSimulation&quot;: True or False, # Shows if simulation is supported for this constraint or not.
},
],
&quot;nextPageToken&quot;: &quot;A String&quot;, # Page token used to retrieve the next page. This is currently not used.
Expand Down
63 changes: 63 additions & 0 deletions docs/dyn/orgpolicy_v2.folders.policies.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/dyn/orgpolicy_v2.organizations.constraints.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ <h3>Method Details</h3>
},
&quot;name&quot;: &quot;A String&quot;, # 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, &quot;/projects/123/constraints/compute.disableSerialPortAccess&quot;.
&quot;supportsDryRun&quot;: True or False, # Shows if dry run is supported for this constraint or not.
&quot;supportsSimulation&quot;: True or False, # Shows if simulation is supported for this constraint or not.
},
],
&quot;nextPageToken&quot;: &quot;A String&quot;, # Page token used to retrieve the next page. This is currently not used.
Expand Down
63 changes: 63 additions & 0 deletions docs/dyn/orgpolicy_v2.organizations.policies.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/dyn/orgpolicy_v2.projects.constraints.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ <h3>Method Details</h3>
},
&quot;name&quot;: &quot;A String&quot;, # 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, &quot;/projects/123/constraints/compute.disableSerialPortAccess&quot;.
&quot;supportsDryRun&quot;: True or False, # Shows if dry run is supported for this constraint or not.
&quot;supportsSimulation&quot;: True or False, # Shows if simulation is supported for this constraint or not.
},
],
&quot;nextPageToken&quot;: &quot;A String&quot;, # Page token used to retrieve the next page. This is currently not used.
Expand Down
63 changes: 63 additions & 0 deletions docs/dyn/orgpolicy_v2.projects.policies.html

Large diffs are not rendered by default.

14 changes: 13 additions & 1 deletion googleapiclient/discovery_cache/documents/orgpolicy.v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@
}
}
},
"revision": "20241021",
"revision": "20241129",
"rootUrl": "https://orgpolicy.googleapis.com/",
"schemas": {
"GoogleCloudOrgpolicyV2AlternatePolicySpec": {
Expand Down Expand Up @@ -989,6 +989,10 @@
"supportsDryRun": {
"description": "Shows if dry run is supported for this constraint or not.",
"type": "boolean"
},
"supportsSimulation": {
"description": "Shows if simulation is supported for this constraint or not.",
"type": "boolean"
}
},
"type": "object"
Expand Down Expand Up @@ -1350,6 +1354,14 @@
"description": "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.",
"type": "boolean"
},
"parameters": {
"additionalProperties": {
"description": "Properties of the object.",
"type": "any"
},
"description": "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 }",
"type": "object"
},
"values": {
"$ref": "GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues",
"description": "List of values to be used for this policy rule. This field can be set only in policies for list constraints."
Expand Down

0 comments on commit 2da03fb

Please sign in to comment.