You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="firstline">Creates a CustomConstraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the organization does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the constraint already exists on the given organization.</p>
<pclass="firstline">Gets a CustomConstraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the CustomConstraint does not exist.</p>
<pclass="firstline">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.</p>
<pre>Creates a CustomConstraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the organization does not exist. Returns a `google.rpc.Status` with `google.rpc.Code.ALREADY_EXISTS` if the constraint already exists on the given organization.
107
+
108
+
Args:
109
+
parent: string, Required. Must be in the following form: * `organizations/{organization_id}` (required)
110
+
body: object, The request body.
111
+
The object takes the form of:
112
+
113
+
{ # 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*.
114
+
"actionType": "A String", # Allow or deny type.
"description": "A String", # Detailed information about this custom policy constraint.
117
+
"displayName": "A String", # One line display name for the UI.
118
+
"methodTypes": [ # All the operations being applied for this constraint.
119
+
"A String",
120
+
],
121
+
"name": "A String", # 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"
122
+
"resourceTypes": [ # Immutable. The Resource Instance type on which this policy applies to. Format will be of the form : "/" Example: * `compute.googleapis.com/Instance`.
123
+
"A String",
124
+
],
125
+
}
126
+
127
+
x__xgafv: string, V1 error format.
128
+
Allowed values
129
+
1 - v1 error format
130
+
2 - v2 error format
131
+
132
+
Returns:
133
+
An object of the form:
134
+
135
+
{ # 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*.
136
+
"actionType": "A String", # Allow or deny type.
"description": "A String", # Detailed information about this custom policy constraint.
139
+
"displayName": "A String", # One line display name for the UI.
140
+
"methodTypes": [ # All the operations being applied for this constraint.
141
+
"A String",
142
+
],
143
+
"name": "A String", # 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"
144
+
"resourceTypes": [ # Immutable. The Resource Instance type on which this policy applies to. Format will be of the form : "/" Example: * `compute.googleapis.com/Instance`.
<pre>Deletes a Custom Constraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the constraint does not exist.
153
+
154
+
Args:
155
+
name: string, Required. Name of the custom constraint to delete. See `CustomConstraint` for naming rules. (required)
156
+
x__xgafv: string, V1 error format.
157
+
Allowed values
158
+
1 - v1 error format
159
+
2 - v2 error format
160
+
161
+
Returns:
162
+
An object of the form:
163
+
164
+
{ # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
<pre>Gets a CustomConstraint. Returns a `google.rpc.Status` with `google.rpc.Code.NOT_FOUND` if the CustomConstraint does not exist.
171
+
172
+
Args:
173
+
name: string, Required. Resource name of the custom constraint. See `CustomConstraint` for naming requirements. (required)
174
+
x__xgafv: string, V1 error format.
175
+
Allowed values
176
+
1 - v1 error format
177
+
2 - v2 error format
178
+
179
+
Returns:
180
+
An object of the form:
181
+
182
+
{ # 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*.
183
+
"actionType": "A String", # Allow or deny type.
"description": "A String", # Detailed information about this custom policy constraint.
186
+
"displayName": "A String", # One line display name for the UI.
187
+
"methodTypes": [ # All the operations being applied for this constraint.
188
+
"A String",
189
+
],
190
+
"name": "A String", # 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"
191
+
"resourceTypes": [ # Immutable. The Resource Instance type on which this policy applies to. Format will be of the form : "/" Example: * `compute.googleapis.com/Instance`.
<pre>Retrieves all of the `CustomConstraints` that exist on a particular organization resource.
200
+
201
+
Args:
202
+
parent: string, Required. The target Cloud resource that parents the set of custom constraints that will be returned from this call. Must be in one of the following forms: * `organizations/{organization_id}` (required)
203
+
pageSize: integer, Size of the pages to be returned. This is currently unsupported and will be ignored. The server may at any point start using this field to limit page size.
204
+
pageToken: string, Page token used to retrieve the next page. This is currently unsupported and will be ignored. The server may at any point start using this field.
205
+
x__xgafv: string, V1 error format.
206
+
Allowed values
207
+
1 - v1 error format
208
+
2 - v2 error format
209
+
210
+
Returns:
211
+
An object of the form:
212
+
213
+
{ # The response returned from the ListCustomConstraints method. It will be empty if no `CustomConstraints` are set on the organization resource.
214
+
"customConstraints": [ # All `CustomConstraints` that exist on the organization resource. It will be empty if no `CustomConstraints` are set.
215
+
{ # 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*.
216
+
"actionType": "A String", # Allow or deny type.
"description": "A String", # Detailed information about this custom policy constraint.
219
+
"displayName": "A String", # One line display name for the UI.
220
+
"methodTypes": [ # All the operations being applied for this constraint.
221
+
"A String",
222
+
],
223
+
"name": "A String", # 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"
224
+
"resourceTypes": [ # Immutable. The Resource Instance type on which this policy applies to. Format will be of the form : "/" Example: * `compute.googleapis.com/Instance`.
225
+
"A String",
226
+
],
227
+
},
228
+
],
229
+
"nextPageToken": "A String", # Page token used to retrieve the next page. This is currently not used, but the server may at any point start supplying a valid token.
<pre>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.
0 commit comments