Reference documentation and code samples for the Google Cloud Deploy V1 API class Google::Cloud::Deploy::V1::Target.
A Target
resource in the Cloud Deploy API.
A Target
defines a location to which a Skaffold configuration
can be deployed.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#annotations
def annotations() -> ::Google::Protobuf::Map{::String => ::String}
- (::Google::Protobuf::Map{::String => ::String}) — Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
#annotations=
def annotations=(value) -> ::Google::Protobuf::Map{::String => ::String}
- value (::Google::Protobuf::Map{::String => ::String}) — Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
- (::Google::Protobuf::Map{::String => ::String}) — Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.
#anthos_cluster
def anthos_cluster() -> ::Google::Cloud::Deploy::V1::AnthosCluster
- (::Google::Cloud::Deploy::V1::AnthosCluster) — Optional. Information specifying an Anthos Cluster.
#anthos_cluster=
def anthos_cluster=(value) -> ::Google::Cloud::Deploy::V1::AnthosCluster
- value (::Google::Cloud::Deploy::V1::AnthosCluster) — Optional. Information specifying an Anthos Cluster.
- (::Google::Cloud::Deploy::V1::AnthosCluster) — Optional. Information specifying an Anthos Cluster.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
-
(::Google::Protobuf::Timestamp) — Output only. Time at which the
Target
was created.
#custom_target
def custom_target() -> ::Google::Cloud::Deploy::V1::CustomTarget
- (::Google::Cloud::Deploy::V1::CustomTarget) — Optional. Information specifying a Custom Target.
#custom_target=
def custom_target=(value) -> ::Google::Cloud::Deploy::V1::CustomTarget
- value (::Google::Cloud::Deploy::V1::CustomTarget) — Optional. Information specifying a Custom Target.
- (::Google::Cloud::Deploy::V1::CustomTarget) — Optional. Information specifying a Custom Target.
#deploy_parameters
def deploy_parameters() -> ::Google::Protobuf::Map{::String => ::String}
- (::Google::Protobuf::Map{::String => ::String}) — Optional. The deploy parameters to use for this target.
#deploy_parameters=
def deploy_parameters=(value) -> ::Google::Protobuf::Map{::String => ::String}
- value (::Google::Protobuf::Map{::String => ::String}) — Optional. The deploy parameters to use for this target.
- (::Google::Protobuf::Map{::String => ::String}) — Optional. The deploy parameters to use for this target.
#description
def description() -> ::String
-
(::String) — Optional. Description of the
Target
. Max length is 255 characters.
#description=
def description=(value) -> ::String
-
value (::String) — Optional. Description of the
Target
. Max length is 255 characters.
-
(::String) — Optional. Description of the
Target
. Max length is 255 characters.
#etag
def etag() -> ::String
- (::String) — Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
#etag=
def etag=(value) -> ::String
- value (::String) — Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
- (::String) — Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
#execution_configs
def execution_configs() -> ::Array<::Google::Cloud::Deploy::V1::ExecutionConfig>
-
(::Array<::Google::Cloud::Deploy::V1::ExecutionConfig>) — Configurations for all execution that relates to this
Target
. EachExecutionEnvironmentUsage
value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include theRENDER
andDEPLOY
ExecutionEnvironmentUsage
values. When no configurations are specified, execution will use the default specified inDefaultPool
.
#execution_configs=
def execution_configs=(value) -> ::Array<::Google::Cloud::Deploy::V1::ExecutionConfig>
-
value (::Array<::Google::Cloud::Deploy::V1::ExecutionConfig>) — Configurations for all execution that relates to this
Target
. EachExecutionEnvironmentUsage
value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include theRENDER
andDEPLOY
ExecutionEnvironmentUsage
values. When no configurations are specified, execution will use the default specified inDefaultPool
.
-
(::Array<::Google::Cloud::Deploy::V1::ExecutionConfig>) — Configurations for all execution that relates to this
Target
. EachExecutionEnvironmentUsage
value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include theRENDER
andDEPLOY
ExecutionEnvironmentUsage
values. When no configurations are specified, execution will use the default specified inDefaultPool
.
#gke
def gke() -> ::Google::Cloud::Deploy::V1::GkeCluster
- (::Google::Cloud::Deploy::V1::GkeCluster) — Optional. Information specifying a GKE Cluster.
#gke=
def gke=(value) -> ::Google::Cloud::Deploy::V1::GkeCluster
- value (::Google::Cloud::Deploy::V1::GkeCluster) — Optional. Information specifying a GKE Cluster.
- (::Google::Cloud::Deploy::V1::GkeCluster) — Optional. Information specifying a GKE Cluster.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
-
(::Google::Protobuf::Map{::String => ::String}) — Optional. Labels are attributes that can be set and used by both the
user and by Cloud Deploy. Labels must meet the following constraints:
- Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes.
- All characters must use UTF-8 encoding, and international characters are allowed.
- Keys must start with a lowercase letter or international character.
- Each resource is limited to a maximum of 64 labels.
Both keys and values are additionally constrained to be <= 128 bytes.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
-
value (::Google::Protobuf::Map{::String => ::String}) — Optional. Labels are attributes that can be set and used by both the
user and by Cloud Deploy. Labels must meet the following constraints:
- Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes.
- All characters must use UTF-8 encoding, and international characters are allowed.
- Keys must start with a lowercase letter or international character.
- Each resource is limited to a maximum of 64 labels.
Both keys and values are additionally constrained to be <= 128 bytes.
-
(::Google::Protobuf::Map{::String => ::String}) — Optional. Labels are attributes that can be set and used by both the
user and by Cloud Deploy. Labels must meet the following constraints:
- Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes.
- All characters must use UTF-8 encoding, and international characters are allowed.
- Keys must start with a lowercase letter or international character.
- Each resource is limited to a maximum of 64 labels.
Both keys and values are additionally constrained to be <= 128 bytes.
#multi_target
def multi_target() -> ::Google::Cloud::Deploy::V1::MultiTarget
- (::Google::Cloud::Deploy::V1::MultiTarget) — Optional. Information specifying a multiTarget.
#multi_target=
def multi_target=(value) -> ::Google::Cloud::Deploy::V1::MultiTarget
- value (::Google::Cloud::Deploy::V1::MultiTarget) — Optional. Information specifying a multiTarget.
- (::Google::Cloud::Deploy::V1::MultiTarget) — Optional. Information specifying a multiTarget.
#name
def name() -> ::String
-
(::String) — Optional. Name of the
Target
. Format isprojects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}
.
#name=
def name=(value) -> ::String
-
value (::String) — Optional. Name of the
Target
. Format isprojects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}
.
-
(::String) — Optional. Name of the
Target
. Format isprojects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}
.
#require_approval
def require_approval() -> ::Boolean
-
(::Boolean) — Optional. Whether or not the
Target
requires approval.
#require_approval=
def require_approval=(value) -> ::Boolean
-
value (::Boolean) — Optional. Whether or not the
Target
requires approval.
-
(::Boolean) — Optional. Whether or not the
Target
requires approval.
#run
def run() -> ::Google::Cloud::Deploy::V1::CloudRunLocation
- (::Google::Cloud::Deploy::V1::CloudRunLocation) — Optional. Information specifying a Cloud Run deployment target.
#run=
def run=(value) -> ::Google::Cloud::Deploy::V1::CloudRunLocation
- value (::Google::Cloud::Deploy::V1::CloudRunLocation) — Optional. Information specifying a Cloud Run deployment target.
- (::Google::Cloud::Deploy::V1::CloudRunLocation) — Optional. Information specifying a Cloud Run deployment target.
#target_id
def target_id() -> ::String
-
(::String) — Output only. Resource id of the
Target
.
#uid
def uid() -> ::String
-
(::String) — Output only. Unique identifier of the
Target
.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
-
(::Google::Protobuf::Timestamp) — Output only. Most recent time at which the
Target
was updated.