Google Cloud Telco Automation V1 Client - Class Deployment (0.1.0)

Reference documentation and code samples for the Google Cloud Telco Automation V1 Client class Deployment.

Deployment contains a collection of YAML files (This collection is also known as package) that can to applied on an orchestration cluster (GKE cluster with TNA addons) or a workload cluster.

Generated from protobuf message google.cloud.telcoautomation.v1.Deployment

Namespace

Google \ Cloud \ TelcoAutomation \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The name of the deployment.

↳ revision_id string

Output only. Immutable. The revision ID of the deployment. A new revision is committed whenever a change in deployment is applied.

↳ source_blueprint_revision string

Required. The blueprint revision from which this deployment was created.

↳ revision_create_time Google\Protobuf\Timestamp

Output only. The timestamp that the revision was created.

↳ state int

Output only. State of the deployment (DRAFT, APPLIED, DELETING).

↳ display_name string

Optional. Human readable name of a Deployment.

↳ repository string

Output only. Name of the repository where the deployment package files are stored.

↳ files array<Google\Cloud\TelcoAutomation\V1\File>

Optional. Files present in a deployment. When invoking UpdateDeployment API, only the modified files should be included in this. Files that are not included in the update of a deployment will not be changed.

↳ labels array|Google\Protobuf\Internal\MapField

Optional. Labels are key-value attributes that can be set on a deployment resource by the user.

↳ create_time Google\Protobuf\Timestamp

Output only. Deployment creation time.

↳ update_time Google\Protobuf\Timestamp

Output only. The timestamp when the deployment was updated.

↳ source_provider string

Output only. Source provider is the author of a public blueprint, from which this deployment is created.

↳ workload_cluster string

Optional. Immutable. The WorkloadCluster on which to create the Deployment.

↳ deployment_level int

Output only. Attributes to where the deployment can inflict changes. The value can only be [SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT].

↳ rollback_support bool

Output only. Indicates if the deployment can be rolled back, exported from public blueprint.

getName

The name of the deployment.

Returns
TypeDescription
string

setName

The name of the deployment.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRevisionId

Output only. Immutable. The revision ID of the deployment.

A new revision is committed whenever a change in deployment is applied.

Returns
TypeDescription
string

setRevisionId

Output only. Immutable. The revision ID of the deployment.

A new revision is committed whenever a change in deployment is applied.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSourceBlueprintRevision

Required. The blueprint revision from which this deployment was created.

Returns
TypeDescription
string

setSourceBlueprintRevision

Required. The blueprint revision from which this deployment was created.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRevisionCreateTime

Output only. The timestamp that the revision was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasRevisionCreateTime

clearRevisionCreateTime

setRevisionCreateTime

Output only. The timestamp that the revision was created.

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

getState

Output only. State of the deployment (DRAFT, APPLIED, DELETING).

Returns
TypeDescription
int

setState

Output only. State of the deployment (DRAFT, APPLIED, DELETING).

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getDisplayName

Optional. Human readable name of a Deployment.

Returns
TypeDescription
string

setDisplayName

Optional. Human readable name of a Deployment.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRepository

Output only. Name of the repository where the deployment package files are stored.

Returns
TypeDescription
string

setRepository

Output only. Name of the repository where the deployment package files are stored.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFiles

Optional. Files present in a deployment.

When invoking UpdateDeployment API, only the modified files should be included in this. Files that are not included in the update of a deployment will not be changed.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setFiles

Optional. Files present in a deployment.

When invoking UpdateDeployment API, only the modified files should be included in this. Files that are not included in the update of a deployment will not be changed.

Parameter
NameDescription
var array<Google\Cloud\TelcoAutomation\V1\File>
Returns
TypeDescription
$this

getLabels

Optional. Labels are key-value attributes that can be set on a deployment resource by the user.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

Optional. Labels are key-value attributes that can be set on a deployment resource by the user.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getCreateTime

Output only. Deployment creation time.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Deployment creation time.

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

getUpdateTime

Output only. The timestamp when the deployment was updated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The timestamp when the deployment was updated.

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

getSourceProvider

Output only. Source provider is the author of a public blueprint, from which this deployment is created.

Returns
TypeDescription
string

setSourceProvider

Output only. Source provider is the author of a public blueprint, from which this deployment is created.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getWorkloadCluster

Optional. Immutable. The WorkloadCluster on which to create the Deployment.

Returns
TypeDescription
string

setWorkloadCluster

Optional. Immutable. The WorkloadCluster on which to create the Deployment.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDeploymentLevel

Output only. Attributes to where the deployment can inflict changes. The value can only be [SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT].

Returns
TypeDescription
int

setDeploymentLevel

Output only. Attributes to where the deployment can inflict changes. The value can only be [SINGLE_DEPLOYMENT, MULTI_DEPLOYMENT].

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getRollbackSupport

Output only. Indicates if the deployment can be rolled back, exported from public blueprint.

Returns
TypeDescription
bool

setRollbackSupport

Output only. Indicates if the deployment can be rolled back, exported from public blueprint.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this