Google Cloud Config V1 Client - Class ImportStatefileRequest (0.2.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
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var int|string
Returns
TypeDescription
$this

getSkipDraft

Optional.

Returns
TypeDescription
bool

setSkipDraft

Optional.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
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
TypeDescription
Google\Cloud\Config\V1\ImportStatefileRequest