Show / Hide Table of Contents

Class OrganizationsResource.CustomConstraintsResource.CreateRequest

Creates a custom constraint. 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.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>
OrganizationsResource.CustomConstraintsResource.CreateRequest
Implements
IClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>
IClientServiceRequest
Inherited Members
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.Xgafv
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.AccessToken
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.Alt
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.Callback
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.Fields
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.Key
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.OauthToken
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.PrettyPrint
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.QuotaUser
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.UploadType
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.UploadProtocol
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.Execute()
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.ExecuteAsStream()
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.ExecuteAsync()
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.ExecuteAsync(CancellationToken)
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.ExecuteAsStreamAsync()
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.CreateRequest(bool?)
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.GenerateRequestUri()
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.GetDefaultETagAction(string)
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.ETagAction
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.ModifyRequest
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.ValidateParameters
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.RequestParameters
ClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.OrgPolicyAPI.v2
Assembly: Google.Apis.OrgPolicyAPI.v2.dll
Syntax
public class OrganizationsResource.CustomConstraintsResource.CreateRequest : OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>, IClientServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>, IClientServiceRequest

Constructors

CreateRequest(IClientService, GoogleCloudOrgpolicyV2CustomConstraint, string)

Constructs a new Create request.

Declaration
public CreateRequest(IClientService service, GoogleCloudOrgpolicyV2CustomConstraint body, string parent)
Parameters
Type Name Description
IClientService service
GoogleCloudOrgpolicyV2CustomConstraint body
string parent

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.OrgPolicyAPI.v2.Data.GoogleCloudOrgpolicyV2CustomConstraint>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.OrgPolicyAPI.v2.Data.GoogleCloudOrgpolicyV2CustomConstraint>.MethodName

Parent

Required. Must be in the following form: * organizations/{organization_id}

Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type Description
string

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.OrgPolicyAPI.v2.Data.GoogleCloudOrgpolicyV2CustomConstraint>.RestPath

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.OrgPolicyAPI.v2.Data.GoogleCloudOrgpolicyV2CustomConstraint>.GetBody()

InitParameters()

Initializes Create parameter list.

Declaration
protected override void InitParameters()
Overrides
OrgPolicyAPIBaseServiceRequest<GoogleCloudOrgpolicyV2CustomConstraint>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In This Article
Back to top Generated by DocFX