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.
Implements
IMessage<CreatePolicyRequest>, IEquatable<CreatePolicyRequest>, IDeepCloneable<CreatePolicyRequest>, IBufferMessage, IMessageNamespace
Google.Cloud.OrgPolicy.V2Assembly
Google.Cloud.OrgPolicy.V2.dll
Constructors
CreatePolicyRequest()
public CreatePolicyRequest()
CreatePolicyRequest(CreatePolicyRequest)
public CreatePolicyRequest(CreatePolicyRequest other)
Parameter | |
---|---|
Name | Description |
other | CreatePolicyRequest |
Properties
Parent
public string Parent { get; set; }
Required. The 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 | |
---|---|
Type | Description |
String |
ParentAsFolderName
public FolderName ParentAsFolderName { get; set; }
FolderName-typed view over the Parent resource name property.
Property Value | |
---|---|
Type | Description |
FolderName |
ParentAsOrganizationName
public OrganizationName ParentAsOrganizationName { get; set; }
OrganizationName-typed view over the Parent resource name property.
Property Value | |
---|---|
Type | Description |
OrganizationName |
ParentAsProjectName
public ProjectName ParentAsProjectName { get; set; }
ProjectName-typed view over the Parent resource name property.
Property Value | |
---|---|
Type | Description |
ProjectName |
ParentAsResourceName
public IResourceName ParentAsResourceName { get; set; }
IResourceName-typed view over the Parent resource name property.
Property Value | |
---|---|
Type | Description |
IResourceName |
Policy
public Policy Policy { get; set; }
Required. Policy
to create.
Property Value | |
---|---|
Type | Description |
Policy |