Class OrganizationsResource.LocationsResource.OrgPolicyViolationsPreviewsResource.CreateRequest
CreateOrgPolicyViolationsPreview creates an OrgPolicyViolationsPreview for the proposed changes in
the provided OrgPolicyViolationsPreview.OrgPolicyOverlay. The changes to OrgPolicy are specified by
this OrgPolicyOverlay
. The resources to scan are inferred from these specified changes.
Inheritance
OrganizationsResource.LocationsResource.OrgPolicyViolationsPreviewsResource.CreateRequest
Inherited Members
Namespace: Google.Apis.PolicySimulator.v1
Assembly: Google.Apis.PolicySimulator.v1.dll
Syntax
public class OrganizationsResource.LocationsResource.OrgPolicyViolationsPreviewsResource.CreateRequest : PolicySimulatorBaseServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest
Constructors
CreateRequest(IClientService, GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudPolicysimulatorV1OrgPolicyViolationsPreview | 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.PolicySimulator.v1.Data.GoogleLongrunningOperation>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.PolicySimulator.v1.Data.GoogleLongrunningOperation>.MethodName
OrgPolicyViolationsPreviewId
Optional. An optional user-specified ID for the OrgPolicyViolationsPreview. If not provided, a random ID will be generated.
Declaration
[RequestParameter("orgPolicyViolationsPreviewId", RequestParameterType.Query)]
public virtual string OrgPolicyViolationsPreviewId { get; set; }
Property Value
Type | Description |
---|---|
string |
Parent
Required. The organization under which this OrgPolicyViolationsPreview will be created. Example:
organizations/my-example-org/locations/global
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.PolicySimulator.v1.Data.GoogleLongrunningOperation>.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.PolicySimulator.v1.Data.GoogleLongrunningOperation>.GetBody()
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()