Google Cloud OsConfig V1 Client - Class GetOSPolicyAssignmentRequest (1.1.1)

Reference documentation and code samples for the Google Cloud OsConfig V1 Client class GetOSPolicyAssignmentRequest.

A request message to get an OS policy assignment

Generated from protobuf message google.cloud.osconfig.v1.GetOSPolicyAssignmentRequest

Namespace

Google \ Cloud \ OsConfig \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. The resource name of OS policy assignment. Format: projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}@{revisionId}

getName

Required. The resource name of OS policy assignment.

Format: projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}@{revisionId}

Returns
TypeDescription
string

setName

Required. The resource name of OS policy assignment.

Format: projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}@{revisionId}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameter
NameDescription
name string

Required. The resource name of OS policy assignment.

Format: projects/{project}/locations/{location}/osPolicyAssignments/{os_policy_assignment}@{revisionId} Please see Google\Cloud\OsConfig\V1\OsConfigZonalServiceClient::oSPolicyAssignmentName() for help formatting this field.

Returns
TypeDescription
Google\Cloud\OsConfig\V1\GetOSPolicyAssignmentRequest