public sealed class ResourceSelector : IMessage<ResourceSelector>, IEquatable<ResourceSelector>, IDeepCloneable<ResourceSelector>, IBufferMessage, IMessage
Reference documentation and code samples for the Backup for GKE v1 API class ResourceSelector.
Defines a selector to identify a single or a group of resources. Conditions in the selector are optional, but at least one field should be set to a non-empty value. If a condition is not specified, no restrictions will be applied on that dimension. If more than one condition is specified, a resource will be selected if and only if all conditions are met.
Implements
IMessageResourceSelector, IEquatableResourceSelector, IDeepCloneableResourceSelector, IBufferMessage, IMessageNamespace
Google.Cloud.GkeBackup.V1Assembly
Google.Cloud.GkeBackup.V1.dll
Constructors
ResourceSelector()
public ResourceSelector()
ResourceSelector(ResourceSelector)
public ResourceSelector(ResourceSelector other)
Parameter | |
---|---|
Name | Description |
other |
ResourceSelector |
Properties
GroupKind
public RestoreConfig.Types.GroupKind GroupKind { get; set; }
Optional. Selects resources using their Kubernetes GroupKinds. If specified, only resources of provided GroupKind will be selected.
Property Value | |
---|---|
Type | Description |
RestoreConfigTypesGroupKind |
Labels
public MapField<string, string> Labels { get; }
Optional. Selects resources using Kubernetes labels. If specified, a resource will be selected if and only if the resource has all of the provided labels and all the label values match.
Property Value | |
---|---|
Type | Description |
MapFieldstringstring |
Name
public string Name { get; set; }
Optional. Selects resources using their resource names. If specified, only resources with the provided name will be selected.
Property Value | |
---|---|
Type | Description |
string |
Namespace
public string Namespace { get; set; }
Optional. Selects resources using their namespaces. This only applies to namespace scoped resources and cannot be used for selecting cluster scoped resources. If specified, only resources in the provided namespace will be selected. If not specified, the filter will apply to both cluster scoped and namespace scoped resources (e.g. name or label). The Namespace resource itself will be restored if and only if any resources within the namespace are restored.
Property Value | |
---|---|
Type | Description |
string |