Class OrganizationsResource.LocationsResource.OrgPolicyViolationsPreviewsResource
The "orgPolicyViolationsPreviews" collection of methods.
Inherited Members
Namespace: Google.Apis.PolicySimulator.v1beta
Assembly: Google.Apis.PolicySimulator.v1beta.dll
Syntax
public class OrganizationsResource.LocationsResource.OrgPolicyViolationsPreviewsResource
Constructors
OrgPolicyViolationsPreviewsResource(IClientService)
Constructs a new resource.
Declaration
public OrgPolicyViolationsPreviewsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Properties
Operations
Gets the Operations resource.
Declaration
public virtual OrganizationsResource.LocationsResource.OrgPolicyViolationsPreviewsResource.OperationsResource Operations { get; }
Property Value
| Type | Description |
|---|---|
| OrganizationsResource.LocationsResource.OrgPolicyViolationsPreviewsResource.OperationsResource |
OrgPolicyViolations
Gets the OrgPolicyViolations resource.
Declaration
public virtual OrganizationsResource.LocationsResource.OrgPolicyViolationsPreviewsResource.OrgPolicyViolationsResource OrgPolicyViolations { get; }
Property Value
| Type | Description |
|---|---|
| OrganizationsResource.LocationsResource.OrgPolicyViolationsPreviewsResource.OrgPolicyViolationsResource |
Methods
Create(GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview, string)
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.
Declaration
public virtual OrganizationsResource.LocationsResource.OrgPolicyViolationsPreviewsResource.CreateRequest Create(GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview | body | The body of the request. |
| string | parent | Required. The organization under which this OrgPolicyViolationsPreview will be created. Example:
|
Returns
| Type | Description |
|---|---|
| OrganizationsResource.LocationsResource.OrgPolicyViolationsPreviewsResource.CreateRequest |
Generate(GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview, string)
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.
Declaration
public virtual OrganizationsResource.LocationsResource.OrgPolicyViolationsPreviewsResource.GenerateRequest Generate(GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudPolicysimulatorV1betaOrgPolicyViolationsPreview | body | The body of the request. |
| string | parent | Required. The organization under which this OrgPolicyViolationsPreview will be created. Example:
|
Returns
| Type | Description |
|---|---|
| OrganizationsResource.LocationsResource.OrgPolicyViolationsPreviewsResource.GenerateRequest |
Get(string)
GetOrgPolicyViolationsPreview gets the specified OrgPolicyViolationsPreview. Each OrgPolicyViolationsPreview is available for at least 7 days.
Declaration
public virtual OrganizationsResource.LocationsResource.OrgPolicyViolationsPreviewsResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The name of the OrgPolicyViolationsPreview to get. |
Returns
| Type | Description |
|---|---|
| OrganizationsResource.LocationsResource.OrgPolicyViolationsPreviewsResource.GetRequest |
List(string)
ListOrgPolicyViolationsPreviews lists each OrgPolicyViolationsPreview in an organization. Each OrgPolicyViolationsPreview is available for at least 7 days.
Declaration
public virtual OrganizationsResource.LocationsResource.OrgPolicyViolationsPreviewsResource.ListRequest List(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent the violations are scoped to. Format:
|
Returns
| Type | Description |
|---|---|
| OrganizationsResource.LocationsResource.OrgPolicyViolationsPreviewsResource.ListRequest |