Show / Hide Table of Contents

Class OrganizationsResource.LocationsResource.WorkloadsResource.ViolationsResource

The "violations" collection of methods.

Inheritance
object
OrganizationsResource.LocationsResource.WorkloadsResource.ViolationsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Assuredworkloads.v1beta1
Assembly: Google.Apis.Assuredworkloads.v1beta1.dll
Syntax
public class OrganizationsResource.LocationsResource.WorkloadsResource.ViolationsResource

Constructors

ViolationsResource(IClientService)

Constructs a new resource.

Declaration
public ViolationsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Acknowledge(GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest, string)

Acknowledges an existing violation. By acknowledging a violation, users acknowledge the existence of a compliance violation in their workload and decide to ignore it due to a valid business justification. Acknowledgement is a permanent operation and it cannot be reverted.

Declaration
public virtual OrganizationsResource.LocationsResource.WorkloadsResource.ViolationsResource.AcknowledgeRequest Acknowledge(GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest body, string name)
Parameters
Type Name Description
GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest body

The body of the request.

string name

Required. The resource name of the Violation to acknowledge. Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}

Returns
Type Description
OrganizationsResource.LocationsResource.WorkloadsResource.ViolationsResource.AcknowledgeRequest

Get(string)

Retrieves Assured Workload Violation based on ID.

Declaration
public virtual OrganizationsResource.LocationsResource.WorkloadsResource.ViolationsResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The resource name of the Violation to fetch (ie. Violation.name). Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}

Returns
Type Description
OrganizationsResource.LocationsResource.WorkloadsResource.ViolationsResource.GetRequest

List(string)

Lists the Violations in the AssuredWorkload Environment. Callers may also choose to read across multiple Workloads as per AIP-159 by using '-' (the hyphen or dash character) as a wildcard character instead of workload-id in the parent. Format organizations/{org_id}/locations/{location}/workloads/-

Declaration
public virtual OrganizationsResource.LocationsResource.WorkloadsResource.ViolationsResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The Workload name. Format organizations/{org_id}/locations/{location}/workloads/{workload}.

Returns
Type Description
OrganizationsResource.LocationsResource.WorkloadsResource.ViolationsResource.ListRequest
In this article
Back to top Generated by DocFX