Class Blueprint (0.1.2)

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

A Blueprint contains a collection of kubernetes resources in the form of YAML files. The file contents of a blueprint are collectively known as package. A blueprint can be a) imported from TNA's public catalog b) modified as per a user's need c) proposed and approved. On approval, a revision of blueprint is created which can be used to create a deployment on Orchestration Cluster.

Attributes

NameDescription
name str
The name of the blueprint. If unspecified, the name will be autogenerated from server side. Name of the blueprint must not contain @ character.
revision_id str
Output only. Immutable. The revision ID of the blueprint. A new revision is committed whenever a blueprint is approved.
source_blueprint str
Required. Immutable. The public blueprint ID from which this blueprint was created.
revision_create_time google.protobuf.timestamp_pb2.Timestamp
Output only. The timestamp that the revision was created.
approval_state google.cloud.telcoautomation_v1alpha1.types.Blueprint.ApprovalState
Output only. Approval state of the blueprint (DRAFT, PROPOSED, APPROVED)
display_name str
Optional. Human readable name of a Blueprint.
repository str
Output only. Name of the repository where the blueprint files are stored.
files MutableSequence[google.cloud.telcoautomation_v1alpha1.types.File]
Optional. Files present in a blueprint. When invoking UpdateBlueprint API, only the modified files should be included in this. Files that are not included in the update of a blueprint will not be changed.
labels MutableMapping[str, str]
Optional. Labels are key-value attributes that can be set on a blueprint resource by the user.
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. Blueprint creation time.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. The timestamp when the blueprint was updated.
source_provider str
Output only. Source provider is the author of a public blueprint, from which this blueprint is created.

Classes

ApprovalState

ApprovalState(value)

Approval state indicates the state of a Blueprint in its approval lifecycle.

Values: APPROVAL_STATE_UNSPECIFIED (0): Unspecified state. DRAFT (1): A blueprint starts in DRAFT state once it is created. All edits are made to the blueprint in DRAFT state. PROPOSED (2): When the edits are ready for review, blueprint can be proposed and moves to PROPOSED state. Edits cannot be made to a blueprint in PROPOSED state. APPROVED (3): When a proposed blueprint is approved, it moves to APPROVED state. A new revision is committed. The latest committed revision can be used to create a deployment on Orchestration Cluster. Edits to an APPROVED blueprint changes its state back to DRAFT. The last committed revision of a blueprint represents its latest APPROVED state.

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.