Class OrganizationsResource.CustomConstraintsResource.PatchRequest
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.
Inheritance
OrganizationsResource.CustomConstraintsResource.PatchRequest
Inherited Members
Namespace: Google.Apis.OrgPolicyAPI.v2
Assembly: Google.Apis.OrgPolicyAPI.v2.dll
Syntax
public class OrganizationsResource.CustomConstraintsResource.PatchRequest : OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>, IClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>, IClientServiceRequest
Constructors
PatchRequest(IClientService, GoogleCloudOrgpolicyV2CustomConstraint, string)
Constructs a new Patch request.
Declaration
public PatchRequest(IClientService service, GoogleCloudOrgpolicyV2CustomConstraint body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudOrgpolicyV2CustomConstraint | body | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Name
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
The max length is 70 characters and
the minimum length is 1. Note that the prefix organizations/{organization_id}/customConstraints/
is not counted.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Patch parameter list.
Declaration
protected override void InitParameters()