Google Cloud Cloud Controls Partner V1beta Client - Class Workload (0.2.1)

Reference documentation and code samples for the Google Cloud Cloud Controls Partner V1beta Client class Workload.

Contains metadata around the Workload resource in the Assured Workloads API.

Generated from protobuf message google.cloud.cloudcontrolspartner.v1beta.Workload

Namespace

Google \ Cloud \ CloudControlsPartner \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Identifier. Format: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}

↳ folder_id int|string

Output only. Folder id this workload is associated with

↳ create_time Google\Protobuf\Timestamp

Output only. Time the resource was created.

↳ folder string

Output only. The name of container folder of the assured workload

↳ workload_onboarding_state WorkloadOnboardingState

Container for workload onboarding steps.

↳ is_onboarded bool

Indicates whether a workload is fully onboarded.

↳ key_management_project_id string

The project id of the key management project for the workload

↳ location string

The Google Cloud location of the workload

↳ partner int

Partner associated with this workload.

getName

Identifier. Format: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}

Returns
Type Description
string

setName

Identifier. Format: organizations/{organization}/locations/{location}/customers/{customer}/workloads/{workload}

Parameter
Name Description
var string
Returns
Type Description
$this

getFolderId

Output only. Folder id this workload is associated with

Returns
Type Description
int|string

setFolderId

Output only. Folder id this workload is associated with

Parameter
Name Description
var int|string
Returns
Type Description
$this

getCreateTime

Output only. Time the resource was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Time the resource was created.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getFolder

Output only. The name of container folder of the assured workload

Returns
Type Description
string

setFolder

Output only. The name of container folder of the assured workload

Parameter
Name Description
var string
Returns
Type Description
$this

getWorkloadOnboardingState

Container for workload onboarding steps.

Returns
Type Description
WorkloadOnboardingState|null

hasWorkloadOnboardingState

clearWorkloadOnboardingState

setWorkloadOnboardingState

Container for workload onboarding steps.

Parameter
Name Description
var WorkloadOnboardingState
Returns
Type Description
$this

getIsOnboarded

Indicates whether a workload is fully onboarded.

Returns
Type Description
bool

setIsOnboarded

Indicates whether a workload is fully onboarded.

Parameter
Name Description
var bool
Returns
Type Description
$this

getKeyManagementProjectId

The project id of the key management project for the workload

Returns
Type Description
string

setKeyManagementProjectId

The project id of the key management project for the workload

Parameter
Name Description
var string
Returns
Type Description
$this

getLocation

The Google Cloud location of the workload

Returns
Type Description
string

setLocation

The Google Cloud location of the workload

Parameter
Name Description
var string
Returns
Type Description
$this

getPartner

Partner associated with this workload.

Returns
Type Description
int

setPartner

Partner associated with this workload.

Parameter
Name Description
var int
Returns
Type Description
$this