public sealed class FleetPackage.Types.VariantSelector : IMessage<FleetPackage.Types.VariantSelector>, IEquatable<FleetPackage.Types.VariantSelector>, IDeepCloneable<FleetPackage.Types.VariantSelector>, IBufferMessage, IMessageReference documentation and code samples for the Config Delivery v1beta API class FleetPackage.Types.VariantSelector.
VariantSelector contains information for selecting a variant in
ResourceBundle to deploy to a target cluster.
Implements
IMessageFleetPackageTypesVariantSelector, IEquatableFleetPackageTypesVariantSelector, IDeepCloneableFleetPackageTypesVariantSelector, IBufferMessage, IMessageNamespace
Google.Cloud.ConfigDelivery.V1BetaAssembly
Google.Cloud.ConfigDelivery.V1Beta.dll
Constructors
VariantSelector()
public VariantSelector()VariantSelector(VariantSelector)
public VariantSelector(FleetPackage.Types.VariantSelector other)| Parameter | |
|---|---|
| Name | Description |
other |
FleetPackageTypesVariantSelector |
Properties
HasVariantNameTemplate
public bool HasVariantNameTemplate { get; }Gets whether the "variant_name_template" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
StrategyCase
public FleetPackage.Types.VariantSelector.StrategyOneofCase StrategyCase { get; }| Property Value | |
|---|---|
| Type | Description |
FleetPackageTypesVariantSelectorStrategyOneofCase |
|
VariantNameTemplate
public string VariantNameTemplate { get; set; }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.
| Property Value | |
|---|---|
| Type | Description |
string |
|