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.customConstraint.$ref (Total Keys: 1)
- schemas.GoogleCloudOrgpolicyV2ConstraintGoogleDefinedCustomConstraint (Total Keys: 8)
  • Loading branch information
yoshi-automation committed Apr 2, 2024
1 parent f0a44ad commit ac7a596
Show file tree
Hide file tree
Showing 4 changed files with 86 additions and 1 deletion.
10 changes: 10 additions & 0 deletions docs/dyn/orgpolicy_v2.folders.constraints.html
Expand Up @@ -111,6 +111,16 @@ <h3>Method Details</h3>
&quot;booleanConstraint&quot;: { # A constraint that is either enforced or not. For example, a constraint `constraints/compute.disableSerialPortAccess`. If it is enforced on a VM instance, serial port connections will not be opened to that instance. # Defines this constraint as being a BooleanConstraint.
},
&quot;constraintDefault&quot;: &quot;A String&quot;, # The evaluation behavior of this constraint in the absence of a policy.
&quot;customConstraint&quot;: { # A Google defined custom constraint. This represents a subset of fields missing from Constraint proto that are required to describe CustomConstraint # Defines this constraint as being a CustomConstraint.
&quot;actionType&quot;: &quot;A String&quot;, # Allow or deny type.
&quot;condition&quot;: &quot;A String&quot;, # Org policy condition/expression. For example: `resource.instanceName.matches(&quot;[production|test]_.*_(\d)+&quot;)` or, `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters.
&quot;methodTypes&quot;: [ # All the operations being applied for this constraint.
&quot;A String&quot;,
],
&quot;resourceTypes&quot;: [ # The resource instance type on which this policy applies. Format will be of the form : `/` Example: * `compute.googleapis.com/Instance`.
&quot;A String&quot;,
],
},
&quot;description&quot;: &quot;A String&quot;, # Detailed description of what this constraint controls as well as how and where it is enforced. Mutable.
&quot;displayName&quot;: &quot;A String&quot;, # The human readable name. Mutable.
&quot;listConstraint&quot;: { # A constraint that allows or disallows a list of string values, which are configured by an Organization Policy administrator with a policy. # Defines this constraint as being a ListConstraint.
Expand Down
10 changes: 10 additions & 0 deletions docs/dyn/orgpolicy_v2.organizations.constraints.html
Expand Up @@ -111,6 +111,16 @@ <h3>Method Details</h3>
&quot;booleanConstraint&quot;: { # A constraint that is either enforced or not. For example, a constraint `constraints/compute.disableSerialPortAccess`. If it is enforced on a VM instance, serial port connections will not be opened to that instance. # Defines this constraint as being a BooleanConstraint.
},
&quot;constraintDefault&quot;: &quot;A String&quot;, # The evaluation behavior of this constraint in the absence of a policy.
&quot;customConstraint&quot;: { # A Google defined custom constraint. This represents a subset of fields missing from Constraint proto that are required to describe CustomConstraint # Defines this constraint as being a CustomConstraint.
&quot;actionType&quot;: &quot;A String&quot;, # Allow or deny type.
&quot;condition&quot;: &quot;A String&quot;, # Org policy condition/expression. For example: `resource.instanceName.matches(&quot;[production|test]_.*_(\d)+&quot;)` or, `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters.
&quot;methodTypes&quot;: [ # All the operations being applied for this constraint.
&quot;A String&quot;,
],
&quot;resourceTypes&quot;: [ # The resource instance type on which this policy applies. Format will be of the form : `/` Example: * `compute.googleapis.com/Instance`.
&quot;A String&quot;,
],
},
&quot;description&quot;: &quot;A String&quot;, # Detailed description of what this constraint controls as well as how and where it is enforced. Mutable.
&quot;displayName&quot;: &quot;A String&quot;, # The human readable name. Mutable.
&quot;listConstraint&quot;: { # A constraint that allows or disallows a list of string values, which are configured by an Organization Policy administrator with a policy. # Defines this constraint as being a ListConstraint.
Expand Down
10 changes: 10 additions & 0 deletions docs/dyn/orgpolicy_v2.projects.constraints.html
Expand Up @@ -111,6 +111,16 @@ <h3>Method Details</h3>
&quot;booleanConstraint&quot;: { # A constraint that is either enforced or not. For example, a constraint `constraints/compute.disableSerialPortAccess`. If it is enforced on a VM instance, serial port connections will not be opened to that instance. # Defines this constraint as being a BooleanConstraint.
},
&quot;constraintDefault&quot;: &quot;A String&quot;, # The evaluation behavior of this constraint in the absence of a policy.
&quot;customConstraint&quot;: { # A Google defined custom constraint. This represents a subset of fields missing from Constraint proto that are required to describe CustomConstraint # Defines this constraint as being a CustomConstraint.
&quot;actionType&quot;: &quot;A String&quot;, # Allow or deny type.
&quot;condition&quot;: &quot;A String&quot;, # Org policy condition/expression. For example: `resource.instanceName.matches(&quot;[production|test]_.*_(\d)+&quot;)` or, `resource.management.auto_upgrade == true` The max length of the condition is 1000 characters.
&quot;methodTypes&quot;: [ # All the operations being applied for this constraint.
&quot;A String&quot;,
],
&quot;resourceTypes&quot;: [ # The resource instance type on which this policy applies. Format will be of the form : `/` Example: * `compute.googleapis.com/Instance`.
&quot;A String&quot;,
],
},
&quot;description&quot;: &quot;A String&quot;, # Detailed description of what this constraint controls as well as how and where it is enforced. Mutable.
&quot;displayName&quot;: &quot;A String&quot;, # The human readable name. Mutable.
&quot;listConstraint&quot;: { # A constraint that allows or disallows a list of string values, which are configured by an Organization Policy administrator with a policy. # Defines this constraint as being a ListConstraint.
Expand Down
57 changes: 56 additions & 1 deletion googleapiclient/discovery_cache/documents/orgpolicy.v2.json
Expand Up @@ -930,7 +930,7 @@
}
}
},
"revision": "20240318",
"revision": "20240325",
"rootUrl": "https://orgpolicy.googleapis.com/",
"schemas": {
"GoogleCloudOrgpolicyV2AlternatePolicySpec": {
Expand Down Expand Up @@ -970,6 +970,10 @@
],
"type": "string"
},
"customConstraint": {
"$ref": "GoogleCloudOrgpolicyV2ConstraintGoogleDefinedCustomConstraint",
"description": "Defines this constraint as being a CustomConstraint."
},
"description": {
"description": "Detailed description of what this constraint controls as well as how and where it is enforced. Mutable.",
"type": "string"
Expand Down Expand Up @@ -999,6 +1003,57 @@
"properties": {},
"type": "object"
},
"GoogleCloudOrgpolicyV2ConstraintGoogleDefinedCustomConstraint": {
"description": "A Google defined custom constraint. This represents a subset of fields missing from Constraint proto that are required to describe CustomConstraint",
"id": "GoogleCloudOrgpolicyV2ConstraintGoogleDefinedCustomConstraint",
"properties": {
"actionType": {
"description": "Allow or deny type.",
"enum": [
"ACTION_TYPE_UNSPECIFIED",
"ALLOW",
"DENY"
],
"enumDescriptions": [
"Unspecified. Results in an error.",
"Allowed action type.",
"Deny action type."
],
"type": "string"
},
"condition": {
"description": "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.",
"type": "string"
},
"methodTypes": {
"description": "All the operations being applied for this constraint.",
"items": {
"enum": [
"METHOD_TYPE_UNSPECIFIED",
"CREATE",
"UPDATE",
"DELETE"
],
"enumDescriptions": [
"Unspecified. Results in an error.",
"Constraint applied when creating the resource.",
"Constraint applied when updating the resource.",
"Constraint applied when deleting the resource. Not supported yet."
],
"type": "string"
},
"type": "array"
},
"resourceTypes": {
"description": "The resource instance type on which this policy applies. Format will be of the form : `/` Example: * `compute.googleapis.com/Instance`.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"GoogleCloudOrgpolicyV2ConstraintListConstraint": {
"description": "A constraint that allows or disallows a list of string values, which are configured by an Organization Policy administrator with a policy.",
"id": "GoogleCloudOrgpolicyV2ConstraintListConstraint",
Expand Down

0 comments on commit ac7a596

Please sign in to comment.