Organization Policy v2 API - Class CreatePolicyRequest (2.3.0)

public sealed class CreatePolicyRequest : IMessage<CreatePolicyRequest>, IEquatable<CreatePolicyRequest>, IDeepCloneable<CreatePolicyRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Organization Policy v2 API class CreatePolicyRequest.

The request sent to the [CreatePolicyRequest] [google.cloud.orgpolicy.v2.OrgPolicy.CreatePolicy] method.

Inheritance

object > CreatePolicyRequest

Namespace

Google.Cloud.OrgPolicy.V2

Assembly

Google.Cloud.OrgPolicy.V2.dll

Constructors

CreatePolicyRequest()

public CreatePolicyRequest()

CreatePolicyRequest(CreatePolicyRequest)

public CreatePolicyRequest(CreatePolicyRequest other)
Parameter
NameDescription
otherCreatePolicyRequest

Properties

Parent

public string Parent { get; set; }

Required. The Google Cloud resource that will parent the new policy. Must be in one of the following forms:

  • projects/{project_number}
  • projects/{project_id}
  • folders/{folder_id}
  • organizations/{organization_id}
Property Value
TypeDescription
string

ParentAsFolderName

public FolderName ParentAsFolderName { get; set; }

FolderName-typed view over the Parent resource name property.

Property Value
TypeDescription
FolderName

ParentAsOrganizationName

public OrganizationName ParentAsOrganizationName { get; set; }

OrganizationName-typed view over the Parent resource name property.

Property Value
TypeDescription
OrganizationName

ParentAsProjectName

public ProjectName ParentAsProjectName { get; set; }

ProjectName-typed view over the Parent resource name property.

Property Value
TypeDescription
ProjectName

ParentAsResourceName

public IResourceName ParentAsResourceName { get; set; }

IResourceName-typed view over the Parent resource name property.

Property Value
TypeDescription
IResourceName

Policy

public Policy Policy { get; set; }

Required. Policy to create.

Property Value
TypeDescription
Policy