|
362 | 362 | }
|
363 | 363 | }
|
364 | 364 | },
|
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 |
| - }, |
397 | 365 | "policies": {
|
398 | 366 | "methods": {
|
399 | 367 | "create": {
|
|
783 | 751 | }
|
784 | 752 | }
|
785 | 753 | },
|
786 |
| - "revision": "20220122", |
| 754 | + "revision": "20220205", |
787 | 755 | "rootUrl": "https://orgpolicy.googleapis.com/",
|
788 | 756 | "schemas": {
|
789 | 757 | "GoogleCloudOrgpolicyV2AlternatePolicySpec": {
|
|
863 | 831 | },
|
864 | 832 | "type": "object"
|
865 | 833 | },
|
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 |
| - }, |
929 | 834 | "GoogleCloudOrgpolicyV2ListConstraintsResponse": {
|
930 | 835 | "description": "The response returned from the ListConstraints method.",
|
931 | 836 | "id": "GoogleCloudOrgpolicyV2ListConstraintsResponse",
|
|
0 commit comments