Skip to content

Commit 04de88b

Browse files
feat(orgpolicy): update the api
#### orgpolicy:v2 The following keys were deleted: - resources.organizations.resources.customConstraints.methods.patch (Total Keys: 12) - schemas.GoogleCloudOrgpolicyV2CustomConstraint (Total Keys: 10)
1 parent dcc99b9 commit 04de88b

File tree

2 files changed

+1
-101
lines changed

2 files changed

+1
-101
lines changed

docs/dyn/orgpolicy_v2.organizations.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ <h2>Instance Methods</h2>
7979
</p>
8080
<p class="firstline">Returns the constraints Resource.</p>
8181

82-
<p class="toc_element">
83-
<code><a href="orgpolicy_v2.organizations.customConstraints.html">customConstraints()</a></code>
84-
</p>
85-
<p class="firstline">Returns the customConstraints Resource.</p>
86-
8782
<p class="toc_element">
8883
<code><a href="orgpolicy_v2.organizations.policies.html">policies()</a></code>
8984
</p>

googleapiclient/discovery_cache/documents/orgpolicy.v2.json

Lines changed: 1 addition & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -362,38 +362,6 @@
362362
}
363363
}
364364
},
365-
"customConstraints": {
366-
"methods": {
367-
"patch": {
368-
"description": "Updates a Custom Constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist. Note: the supplied policy will perform a full overwrite of all fields.",
369-
"flatPath": "v2/organizations/{organizationsId}/customConstraints/{customConstraintsId}",
370-
"httpMethod": "PATCH",
371-
"id": "orgpolicy.organizations.customConstraints.patch",
372-
"parameterOrder": [
373-
"name"
374-
],
375-
"parameters": {
376-
"name": {
377-
"description": "Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example : \"organizations/123/customConstraints/custom.createOnlyE2TypeVms\"",
378-
"location": "path",
379-
"pattern": "^organizations/[^/]+/customConstraints/[^/]+$",
380-
"required": true,
381-
"type": "string"
382-
}
383-
},
384-
"path": "v2/{+name}",
385-
"request": {
386-
"$ref": "GoogleCloudOrgpolicyV2CustomConstraint"
387-
},
388-
"response": {
389-
"$ref": "GoogleCloudOrgpolicyV2CustomConstraint"
390-
},
391-
"scopes": [
392-
"https://www.googleapis.com/auth/cloud-platform"
393-
]
394-
}
395-
}
396-
},
397365
"policies": {
398366
"methods": {
399367
"create": {
@@ -783,7 +751,7 @@
783751
}
784752
}
785753
},
786-
"revision": "20220122",
754+
"revision": "20220205",
787755
"rootUrl": "https://orgpolicy.googleapis.com/",
788756
"schemas": {
789757
"GoogleCloudOrgpolicyV2AlternatePolicySpec": {
@@ -863,69 +831,6 @@
863831
},
864832
"type": "object"
865833
},
866-
"GoogleCloudOrgpolicyV2CustomConstraint": {
867-
"description": "A custom constraint defined by customers which can *only* be applied to the given resource types and organization. By creating a custom constraint, customers can applied policies of this custom constraint. *Creating a custom constraint itself does NOT apply any policy enforcement*.",
868-
"id": "GoogleCloudOrgpolicyV2CustomConstraint",
869-
"properties": {
870-
"actionType": {
871-
"description": "Allow or deny type.",
872-
"enum": [
873-
"ACTION_TYPE_UNSPECIFIED",
874-
"ALLOW",
875-
"DENY"
876-
],
877-
"enumDescriptions": [
878-
"Unspecified. Will results in user error.",
879-
"Allowed action type.",
880-
"Deny action type."
881-
],
882-
"type": "string"
883-
},
884-
"condition": {
885-
"description": "Org policy condition/expression. For example: `resource.instanceName.matches(\"[production|test]_.*_(\\d)+\")'` or, `resource.management.auto_upgrade == true`",
886-
"type": "string"
887-
},
888-
"description": {
889-
"description": "Detailed information about this custom policy constraint.",
890-
"type": "string"
891-
},
892-
"displayName": {
893-
"description": "One line display name for the UI.",
894-
"type": "string"
895-
},
896-
"methodTypes": {
897-
"description": "All the operations being applied for this constraint.",
898-
"items": {
899-
"enum": [
900-
"METHOD_TYPE_UNSPECIFIED",
901-
"CREATE",
902-
"UPDATE",
903-
"DELETE"
904-
],
905-
"enumDescriptions": [
906-
"Unspecified. Will results in user error.",
907-
"Constraint applied when creating the resource.",
908-
"Constraint applied when updating the resource.",
909-
"Constraint applied when deleting the resource."
910-
],
911-
"type": "string"
912-
},
913-
"type": "array"
914-
},
915-
"name": {
916-
"description": "Immutable. Name of the constraint. This is unique within the organization. Format of the name should be * `organizations/{organization_id}/customConstraints/{custom_constraint_id}` Example : \"organizations/123/customConstraints/custom.createOnlyE2TypeVms\"",
917-
"type": "string"
918-
},
919-
"resourceTypes": {
920-
"description": "Immutable. The Resource Instance type on which this policy applies to. Format will be of the form : \"/\" Example: * `compute.googleapis.com/Instance`.",
921-
"items": {
922-
"type": "string"
923-
},
924-
"type": "array"
925-
}
926-
},
927-
"type": "object"
928-
},
929834
"GoogleCloudOrgpolicyV2ListConstraintsResponse": {
930835
"description": "The response returned from the ListConstraints method.",
931836
"id": "GoogleCloudOrgpolicyV2ListConstraintsResponse",

0 commit comments

Comments
 (0)