Google Cloud Config V1 Client - Class ImportStatefileRequest (1.0.0)

Reference documentation and code samples for the Google Cloud Config V1 Client class ImportStatefileRequest.

A request to import a state file passed to a 'ImportStatefile' call.

Generated from protobuf message google.cloud.config.v1.ImportStatefileRequest

Namespace

Google \ Cloud \ Config \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent in whose context the statefile is listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.

↳ lock_id int|string

Required. Lock ID of the lock file to verify that the user who is importing the state file previously locked the Deployment.

↳ skip_draft bool

Optional.

getParent

Required. The parent in whose context the statefile is listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.

Returns
Type Description
string

setParent

Required. The parent in whose context the statefile is listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'.

Parameter
Name Description
var string
Returns
Type Description
$this

getLockId

Required. Lock ID of the lock file to verify that the user who is importing the state file previously locked the Deployment.

Returns
Type Description
int|string

setLockId

Required. Lock ID of the lock file to verify that the user who is importing the state file previously locked the Deployment.

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

getSkipDraft

Optional.

Returns
Type Description
bool

setSkipDraft

Optional.

Parameter
Name Description
var bool
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The parent in whose context the statefile is listed. The parent value is in the format: 'projects/{project_id}/locations/{location}/deployments/{deployment}'. Please see Google\Cloud\Config\V1\ConfigClient::deploymentName() for help formatting this field.

lockId int

Required. Lock ID of the lock file to verify that the user who is importing the state file previously locked the Deployment.

Returns
Type Description
Google\Cloud\Config\V1\ImportStatefileRequest