Google Cloud Assured Workloads V1 Client - Class GetViolationRequest (0.9.1)

Reference documentation and code samples for the Google Cloud Assured Workloads V1 Client class GetViolationRequest.

Request for fetching a Workload Violation.

Generated from protobuf message google.cloud.assuredworkloads.v1.GetViolationRequest

Namespace

Google \ Cloud \ AssuredWorkloads \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

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

getName

Required. The resource name of the Violation to fetch (ie. Violation.name).

Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}

Returns
TypeDescription
string

setName

Required. The resource name of the Violation to fetch (ie. Violation.name).

Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameter
NameDescription
name string

Required. The resource name of the Violation to fetch (ie. Violation.name). Format: organizations/{organization}/locations/{location}/workloads/{workload}/violations/{violation} Please see Google\Cloud\AssuredWorkloads\V1\AssuredWorkloadsServiceClient::violationName() for help formatting this field.

Returns
TypeDescription
Google\Cloud\AssuredWorkloads\V1\GetViolationRequest