Show / Hide Table of Contents

Class PoliciesResource.CreatePolicyRequest

Creates a policy.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<GoogleLongrunningOperation>
IamBaseServiceRequest<GoogleLongrunningOperation>
PoliciesResource.CreatePolicyRequest
Implements
IClientServiceRequest<GoogleLongrunningOperation>
IClientServiceRequest
Inherited Members
IamBaseServiceRequest<GoogleLongrunningOperation>.Xgafv
IamBaseServiceRequest<GoogleLongrunningOperation>.AccessToken
IamBaseServiceRequest<GoogleLongrunningOperation>.Alt
IamBaseServiceRequest<GoogleLongrunningOperation>.Callback
IamBaseServiceRequest<GoogleLongrunningOperation>.Fields
IamBaseServiceRequest<GoogleLongrunningOperation>.Key
IamBaseServiceRequest<GoogleLongrunningOperation>.OauthToken
IamBaseServiceRequest<GoogleLongrunningOperation>.PrettyPrint
IamBaseServiceRequest<GoogleLongrunningOperation>.QuotaUser
IamBaseServiceRequest<GoogleLongrunningOperation>.UploadType
IamBaseServiceRequest<GoogleLongrunningOperation>.UploadProtocol
ClientServiceRequest<GoogleLongrunningOperation>.Execute()
ClientServiceRequest<GoogleLongrunningOperation>.ExecuteAsStream()
ClientServiceRequest<GoogleLongrunningOperation>.ExecuteAsync()
ClientServiceRequest<GoogleLongrunningOperation>.ExecuteAsync(CancellationToken)
ClientServiceRequest<GoogleLongrunningOperation>.ExecuteAsStreamAsync()
ClientServiceRequest<GoogleLongrunningOperation>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<GoogleLongrunningOperation>.CreateRequest(bool?)
ClientServiceRequest<GoogleLongrunningOperation>.GenerateRequestUri()
ClientServiceRequest<GoogleLongrunningOperation>.GetDefaultETagAction(string)
ClientServiceRequest<GoogleLongrunningOperation>.ETagAction
ClientServiceRequest<GoogleLongrunningOperation>.ModifyRequest
ClientServiceRequest<GoogleLongrunningOperation>.ValidateParameters
ClientServiceRequest<GoogleLongrunningOperation>.ApiVersion
ClientServiceRequest<GoogleLongrunningOperation>.RequestParameters
ClientServiceRequest<GoogleLongrunningOperation>.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.Iam.v2beta
Assembly: Google.Apis.Iam.v2beta.dll
Syntax
public class PoliciesResource.CreatePolicyRequest : IamBaseServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest

Constructors

CreatePolicyRequest(IClientService, GoogleIamV2betaPolicy, string)

Constructs a new CreatePolicy request.

Declaration
public CreatePolicyRequest(IClientService service, GoogleIamV2betaPolicy body, string parent)
Parameters
Type Name Description
IClientService service
GoogleIamV2betaPolicy body
string parent

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleLongrunningOperation>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleLongrunningOperation>.MethodName

Parent

Required. The resource that the policy is attached to, along with the kind of policy to create. Format: policies/{attachment_point}/denypolicies The attachment point is identified by its URL-encoded full resource name, which means that the forward-slash character, /, must be written as %2F. For example, policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies. For organizations and folders, use the numeric ID in the full resource name. For projects, you can use the alphanumeric or the numeric ID.

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

PolicyId

The ID to use for this policy, which will become the final component of the policy's resource name. The ID must contain 3 to 63 characters. It can contain lowercase letters and numbers, as well as dashes (-) and periods (.). The first character must be a lowercase letter.

Declaration
[RequestParameter("policyId", RequestParameterType.Query)]
public virtual string PolicyId { get; set; }
Property Value
Type Description
string

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<GoogleLongrunningOperation>.RestPath

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
ClientServiceRequest<GoogleLongrunningOperation>.GetBody()

InitParameters()

Initializes CreatePolicy parameter list.

Declaration
protected override void InitParameters()
Overrides
IamBaseServiceRequest<GoogleLongrunningOperation>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX