Skip to content

Commit 12150a8

Browse files
feat(orgpolicy): update the api
#### orgpolicy:v2 The following keys were deleted: - schemas.GoogleCloudOrgpolicyV2Constraint.properties.customConstraint.$ref (Total Keys: 1) - schemas.GoogleCloudOrgpolicyV2ConstraintGoogleDefinedCustomConstraint (Total Keys: 8) The following keys were added: - schemas.GoogleCloudOrgpolicyV2Constraint.properties.googleManagedConstraint.$ref (Total Keys: 1) - schemas.GoogleCloudOrgpolicyV2ConstraintGoogleManagedConstraint (Total Keys: 8)
1 parent e482fb9 commit 12150a8

File tree

4 files changed

+21
-19
lines changed

4 files changed

+21
-19
lines changed

docs/dyn/orgpolicy_v2.folders.constraints.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ <h3>Method Details</h3>
111111
&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.
112112
},
113113
&quot;constraintDefault&quot;: &quot;A String&quot;, # The evaluation behavior of this constraint in the absence of a policy.
114-
&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.
114+
&quot;description&quot;: &quot;A String&quot;, # Detailed description of what this constraint controls as well as how and where it is enforced. Mutable.
115+
&quot;displayName&quot;: &quot;A String&quot;, # The human readable name. Mutable.
116+
&quot;googleManagedConstraint&quot;: { # A Google managed constraint. This represents a subset of fields missing from Constraint proto that are required to describe CustomConstraint # Defines this constraint as being a GoogleManagedConstraint.
115117
&quot;actionType&quot;: &quot;A String&quot;, # Allow or deny type.
116118
&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.
117119
&quot;methodTypes&quot;: [ # All the operations being applied for this constraint.
@@ -121,8 +123,6 @@ <h3>Method Details</h3>
121123
&quot;A String&quot;,
122124
],
123125
},
124-
&quot;description&quot;: &quot;A String&quot;, # Detailed description of what this constraint controls as well as how and where it is enforced. Mutable.
125-
&quot;displayName&quot;: &quot;A String&quot;, # The human readable name. Mutable.
126126
&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.
127127
&quot;supportsIn&quot;: True or False, # Indicates whether values grouped into categories can be used in `Policy.allowed_values` and `Policy.denied_values`. For example, `&quot;in:Python&quot;` would match any value in the &#x27;Python&#x27; group.
128128
&quot;supportsUnder&quot;: True or False, # Indicates whether subtrees of the Resource Manager resource hierarchy can be used in `Policy.allowed_values` and `Policy.denied_values`. For example, `&quot;under:folders/123&quot;` would match any resource under the &#x27;folders/123&#x27; folder.

docs/dyn/orgpolicy_v2.organizations.constraints.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ <h3>Method Details</h3>
111111
&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.
112112
},
113113
&quot;constraintDefault&quot;: &quot;A String&quot;, # The evaluation behavior of this constraint in the absence of a policy.
114-
&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.
114+
&quot;description&quot;: &quot;A String&quot;, # Detailed description of what this constraint controls as well as how and where it is enforced. Mutable.
115+
&quot;displayName&quot;: &quot;A String&quot;, # The human readable name. Mutable.
116+
&quot;googleManagedConstraint&quot;: { # A Google managed constraint. This represents a subset of fields missing from Constraint proto that are required to describe CustomConstraint # Defines this constraint as being a GoogleManagedConstraint.
115117
&quot;actionType&quot;: &quot;A String&quot;, # Allow or deny type.
116118
&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.
117119
&quot;methodTypes&quot;: [ # All the operations being applied for this constraint.
@@ -121,8 +123,6 @@ <h3>Method Details</h3>
121123
&quot;A String&quot;,
122124
],
123125
},
124-
&quot;description&quot;: &quot;A String&quot;, # Detailed description of what this constraint controls as well as how and where it is enforced. Mutable.
125-
&quot;displayName&quot;: &quot;A String&quot;, # The human readable name. Mutable.
126126
&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.
127127
&quot;supportsIn&quot;: True or False, # Indicates whether values grouped into categories can be used in `Policy.allowed_values` and `Policy.denied_values`. For example, `&quot;in:Python&quot;` would match any value in the &#x27;Python&#x27; group.
128128
&quot;supportsUnder&quot;: True or False, # Indicates whether subtrees of the Resource Manager resource hierarchy can be used in `Policy.allowed_values` and `Policy.denied_values`. For example, `&quot;under:folders/123&quot;` would match any resource under the &#x27;folders/123&#x27; folder.

docs/dyn/orgpolicy_v2.projects.constraints.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ <h3>Method Details</h3>
111111
&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.
112112
},
113113
&quot;constraintDefault&quot;: &quot;A String&quot;, # The evaluation behavior of this constraint in the absence of a policy.
114-
&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.
114+
&quot;description&quot;: &quot;A String&quot;, # Detailed description of what this constraint controls as well as how and where it is enforced. Mutable.
115+
&quot;displayName&quot;: &quot;A String&quot;, # The human readable name. Mutable.
116+
&quot;googleManagedConstraint&quot;: { # A Google managed constraint. This represents a subset of fields missing from Constraint proto that are required to describe CustomConstraint # Defines this constraint as being a GoogleManagedConstraint.
115117
&quot;actionType&quot;: &quot;A String&quot;, # Allow or deny type.
116118
&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.
117119
&quot;methodTypes&quot;: [ # All the operations being applied for this constraint.
@@ -121,8 +123,6 @@ <h3>Method Details</h3>
121123
&quot;A String&quot;,
122124
],
123125
},
124-
&quot;description&quot;: &quot;A String&quot;, # Detailed description of what this constraint controls as well as how and where it is enforced. Mutable.
125-
&quot;displayName&quot;: &quot;A String&quot;, # The human readable name. Mutable.
126126
&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.
127127
&quot;supportsIn&quot;: True or False, # Indicates whether values grouped into categories can be used in `Policy.allowed_values` and `Policy.denied_values`. For example, `&quot;in:Python&quot;` would match any value in the &#x27;Python&#x27; group.
128128
&quot;supportsUnder&quot;: True or False, # Indicates whether subtrees of the Resource Manager resource hierarchy can be used in `Policy.allowed_values` and `Policy.denied_values`. For example, `&quot;under:folders/123&quot;` would match any resource under the &#x27;folders/123&#x27; folder.

googleapiclient/discovery_cache/documents/orgpolicy.v2.json

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@
930930
}
931931
}
932932
},
933-
"revision": "20240325",
933+
"revision": "20240422",
934934
"rootUrl": "https://orgpolicy.googleapis.com/",
935935
"schemas": {
936936
"GoogleCloudOrgpolicyV2AlternatePolicySpec": {
@@ -970,10 +970,6 @@
970970
],
971971
"type": "string"
972972
},
973-
"customConstraint": {
974-
"$ref": "GoogleCloudOrgpolicyV2ConstraintGoogleDefinedCustomConstraint",
975-
"description": "Defines this constraint as being a CustomConstraint."
976-
},
977973
"description": {
978974
"description": "Detailed description of what this constraint controls as well as how and where it is enforced. Mutable.",
979975
"type": "string"
@@ -982,6 +978,10 @@
982978
"description": "The human readable name. Mutable.",
983979
"type": "string"
984980
},
981+
"googleManagedConstraint": {
982+
"$ref": "GoogleCloudOrgpolicyV2ConstraintGoogleManagedConstraint",
983+
"description": "Defines this constraint as being a GoogleManagedConstraint."
984+
},
985985
"listConstraint": {
986986
"$ref": "GoogleCloudOrgpolicyV2ConstraintListConstraint",
987987
"description": "Defines this constraint as being a ListConstraint."
@@ -1003,9 +1003,9 @@
10031003
"properties": {},
10041004
"type": "object"
10051005
},
1006-
"GoogleCloudOrgpolicyV2ConstraintGoogleDefinedCustomConstraint": {
1007-
"description": "A Google defined custom constraint. This represents a subset of fields missing from Constraint proto that are required to describe CustomConstraint",
1008-
"id": "GoogleCloudOrgpolicyV2ConstraintGoogleDefinedCustomConstraint",
1006+
"GoogleCloudOrgpolicyV2ConstraintGoogleManagedConstraint": {
1007+
"description": "A Google managed constraint. This represents a subset of fields missing from Constraint proto that are required to describe CustomConstraint",
1008+
"id": "GoogleCloudOrgpolicyV2ConstraintGoogleManagedConstraint",
10091009
"properties": {
10101010
"actionType": {
10111011
"description": "Allow or deny type.",
@@ -1106,13 +1106,15 @@
11061106
"METHOD_TYPE_UNSPECIFIED",
11071107
"CREATE",
11081108
"UPDATE",
1109-
"DELETE"
1109+
"DELETE",
1110+
"REMOVE_GRANT"
11101111
],
11111112
"enumDescriptions": [
11121113
"Unspecified. Results in an error.",
11131114
"Constraint applied when creating the resource.",
11141115
"Constraint applied when updating the resource.",
1115-
"Constraint applied when deleting the resource. Not supported yet."
1116+
"Constraint applied when deleting the resource. Not supported yet.",
1117+
"Constraint applied when removing an IAM grant."
11161118
],
11171119
"type": "string"
11181120
},

0 commit comments

Comments
 (0)