Reference documentation and code samples for the Google Cloud OsConfig V1 Client class OSPolicyAssignmentReport.
A report of the OS policy assignment status for a given instance.
Generated from protobuf message google.cloud.osconfig.v1.OSPolicyAssignmentReport
Namespace
Google \ Cloud \ OsConfig \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
The OSPolicyAssignmentReport
API resource name. Format: projects/{project_number}/locations/{location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report
↳ instance
string
The Compute Engine VM instance name.
↳ os_policy_assignment
string
Reference to the OSPolicyAssignment
API resource that the OSPolicy
belongs to. Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}
↳ os_policy_compliances
array< Google\Cloud\OsConfig\V1\OSPolicyAssignmentReport\OSPolicyCompliance
>
Compliance data for each OSPolicy
that is applied to the VM.
↳ update_time
↳ last_run_id
string
Unique identifier of the last attempted run to apply the OS policies associated with this assignment on the VM. This ID is logged by the OS Config agent while applying the OS policies associated with this assignment on the VM. NOTE: If the service is unable to successfully connect to the agent for this run, then this id will not be available in the agent logs.
getName
The OSPolicyAssignmentReport
API resource name.
Format: projects/{project_number}/locations/{location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report
string
setName
The OSPolicyAssignmentReport
API resource name.
Format: projects/{project_number}/locations/{location}/instances/{instance_id}/osPolicyAssignments/{os_policy_assignment_id}/report
var
string
$this
getInstance
The Compute Engine VM instance name.
string
setInstance
The Compute Engine VM instance name.
var
string
$this
getOsPolicyAssignment
Reference to the OSPolicyAssignment
API resource that the OSPolicy
belongs to.
Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}
string
setOsPolicyAssignment
Reference to the OSPolicyAssignment
API resource that the OSPolicy
belongs to.
Format: projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}
var
string
$this
getOsPolicyCompliances
Compliance data for each OSPolicy
that is applied to the VM.
setOsPolicyCompliances
Compliance data for each OSPolicy
that is applied to the VM.
$this
getUpdateTime
Timestamp for when the report was last generated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Timestamp for when the report was last generated.
$this
getLastRunId
Unique identifier of the last attempted run to apply the OS policies associated with this assignment on the VM.
This ID is logged by the OS Config agent while applying the OS policies associated with this assignment on the VM. NOTE: If the service is unable to successfully connect to the agent for this run, then this id will not be available in the agent logs.
string
setLastRunId
Unique identifier of the last attempted run to apply the OS policies associated with this assignment on the VM.
This ID is logged by the OS Config agent while applying the OS policies associated with this assignment on the VM. NOTE: If the service is unable to successfully connect to the agent for this run, then this id will not be available in the agent logs.
var
string
$this