Reference documentation and code samples for the Google Cloud Config Delivery V1 Client class VariantSelector.
VariantSelector contains information for selecting a variant in
ResourceBundle
to deploy to a target cluster.
Generated from protobuf message google.cloud.configdelivery.v1.FleetPackage.VariantSelector
Namespace
Google \ Cloud \ ConfigDelivery \ V1 \ FleetPackageMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ variant_name_template |
string
Required. variant_name_template is a template that can refer to variables containing cluster membership metadata such as location, name, and labels to generate the name of the variant for a target cluster. The variable syntax is similar to the unix shell variables. Available variables are |
getVariantNameTemplate
Required. variant_name_template is a template that can refer to variables containing cluster membership metadata such as location, name, and labels to generate the name of the variant for a target cluster. The variable syntax is similar to the unix shell variables.
Available variables are ${membership.name}
, ${membership.location}
,
${membership.project}
and ${membership.labels['label_name']}
.
If you want to deploy a specific variant, say "default" to all the
clusters, you can use "default" (string without any variables) as
the variant_name_template.
Returns | |
---|---|
Type | Description |
string |
hasVariantNameTemplate
setVariantNameTemplate
Required. variant_name_template is a template that can refer to variables containing cluster membership metadata such as location, name, and labels to generate the name of the variant for a target cluster. The variable syntax is similar to the unix shell variables.
Available variables are ${membership.name}
, ${membership.location}
,
${membership.project}
and ${membership.labels['label_name']}
.
If you want to deploy a specific variant, say "default" to all the
clusters, you can use "default" (string without any variables) as
the variant_name_template.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getStrategy
Returns | |
---|---|
Type | Description |
string |