Class Deployment (0.2.2)

Deployment(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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.

Attributes

NameDescription
name str
The name of the deployment.
revision_id str
Output only. Immutable. The revision ID of the deployment. A new revision is committed whenever a change in deployment is applied.
source_blueprint_revision str
Required. The blueprint revision from which this deployment was created.
revision_create_time google.protobuf.timestamp_pb2.Timestamp
Output only. The timestamp that the revision was created.
state google.cloud.telcoautomation_v1.types.Deployment.State
Output only. State of the deployment (DRAFT, APPLIED, DELETING).
display_name str
Optional. Human readable name of a Deployment.
repository str
Output only. Name of the repository where the deployment package files are stored.
files MutableSequence[google.cloud.telcoautomation_v1.types.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 MutableMapping[str, str]
Optional. Labels are key-value attributes that can be set on a deployment resource by the user.
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. Deployment creation time.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. The timestamp when the deployment was updated.
source_provider str
Output only. Source provider is the author of a public blueprint, from which this deployment is created.
workload_cluster str
Optional. Immutable. The WorkloadCluster on which to create the Deployment. This field should only be passed when the deployment_level of the source blueprint specifies deployments on workload clusters e.g. WORKLOAD_CLUSTER_DEPLOYMENT.
deployment_level google.cloud.telcoautomation_v1.types.DeploymentLevel
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.

Classes

LabelsEntry

LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

State

State(value)

State defines which state the current deployment is in.

Values: STATE_UNSPECIFIED (0): Unspecified state. DRAFT (1): A deployment starts in DRAFT state. All edits are made in DRAFT state. A deployment opened for editing after applying will be in draft state, while its prevision revision will be its current applied version. APPLIED (2): This state means that the contents (YAML files containing kubernetes resources) of the deployment have been applied to an Orchestration or Workload Cluster. A revision is created when a deployment is applied. This revision will represent the latest view of what is applied on the cluster until the deployment is modified and applied again, which will create a new revision. DELETING (3): A deployment in DELETING state has been marked for deletion. Its deletion status can be queried using ComputeDeploymentStatus API. No updates are allowed to a deployment in DELETING state.