Class Deployment (0.1.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).

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. Immutable. 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_v1alpha1.types.Deployment.State
Output only. State of the deployment (DRAFT, APPLIED).
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_v1alpha1.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.

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 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.