Class OrganizationsResource.LocationsResource.OrgPolicyViolationsPreviewsResource.GenerateRequest
GenerateOrgPolicyViolationsPreview generates 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.GenerateRequest
Inherited Members
Namespace: Google.Apis.PolicySimulator.v1beta
Assembly: Google.Apis.PolicySimulator.v1beta.dll
Syntax
public class OrganizationsResource.LocationsResource.OrgPolicyViolationsPreviewsResource.GenerateRequest : PolicySimulatorBaseServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest
Constructors
GenerateRequest(IClientService, GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview, string)
Constructs a new Generate request.
Declaration
public GenerateRequest(IClientService service, GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview | body | |
| string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
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
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Generate parameter list.
Declaration
protected override void InitParameters()