Google Cloud OsConfig V1 Client - Class OSPolicyAssignmentOperationMetadata (1.1.1)

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

OS policy assignment operation metadata provided by OS policy assignment API methods that return long running operations.

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

Namespace

Google \ Cloud \ OsConfig \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ os_policy_assignment string

Reference to the OSPolicyAssignment API resource. Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}

↳ api_method int

The OS policy assignment API method.

↳ rollout_state int

State of the rollout

↳ rollout_start_time Google\Protobuf\Timestamp

Rollout start time

↳ rollout_update_time Google\Protobuf\Timestamp

Rollout update time

getOsPolicyAssignment

Reference to the OSPolicyAssignment API resource.

Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}

Returns
TypeDescription
string

setOsPolicyAssignment

Reference to the OSPolicyAssignment API resource.

Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getApiMethod

The OS policy assignment API method.

Returns
TypeDescription
int

setApiMethod

The OS policy assignment API method.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getRolloutState

State of the rollout

Returns
TypeDescription
int

setRolloutState

State of the rollout

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getRolloutStartTime

Rollout start time

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasRolloutStartTime

clearRolloutStartTime

setRolloutStartTime

Rollout start time

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getRolloutUpdateTime

Rollout update time

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasRolloutUpdateTime

clearRolloutUpdateTime

setRolloutUpdateTime

Rollout update time

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this