Package com.google.cloud.gkebackup.v1
Interface RestoreConfig.SubstitutionRuleOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
RestoreConfig.SubstitutionRule
,RestoreConfig.SubstitutionRule.Builder
- Enclosing class:
- RestoreConfig
public static interface RestoreConfig.SubstitutionRuleOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getNewValue()
This is the new value to set for any fields that pass the filtering and selection criteria.com.google.protobuf.ByteString
getNewValueBytes()
This is the new value to set for any fields that pass the filtering and selection criteria.String
getOriginalValuePattern()
(Filtering parameter) This is a [regular expression] (https://en.wikipedia.org/wiki/Regular_expression) that is compared against the fields matched by the target_json_path expression (and must also have passed the previous filters).com.google.protobuf.ByteString
getOriginalValuePatternBytes()
(Filtering parameter) This is a [regular expression] (https://en.wikipedia.org/wiki/Regular_expression) that is compared against the fields matched by the target_json_path expression (and must also have passed the previous filters).RestoreConfig.GroupKind
getTargetGroupKinds(int index)
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".int
getTargetGroupKindsCount()
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".List<RestoreConfig.GroupKind>
getTargetGroupKindsList()
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".RestoreConfig.GroupKindOrBuilder
getTargetGroupKindsOrBuilder(int index)
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".List<? extends RestoreConfig.GroupKindOrBuilder>
getTargetGroupKindsOrBuilderList()
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types".String
getTargetJsonPath()
Required.com.google.protobuf.ByteString
getTargetJsonPathBytes()
Required.String
getTargetNamespaces(int index)
(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup.com.google.protobuf.ByteString
getTargetNamespacesBytes(int index)
(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup.int
getTargetNamespacesCount()
(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup.List<String>
getTargetNamespacesList()
(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getTargetNamespacesList
List<String> getTargetNamespacesList()
(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for substitution). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.
repeated string target_namespaces = 1;
- Returns:
- A list containing the targetNamespaces.
-
getTargetNamespacesCount
int getTargetNamespacesCount()
(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for substitution). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.
repeated string target_namespaces = 1;
- Returns:
- The count of targetNamespaces.
-
getTargetNamespaces
String getTargetNamespaces(int index)
(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for substitution). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.
repeated string target_namespaces = 1;
- Parameters:
index
- The index of the element to return.- Returns:
- The targetNamespaces at the given index.
-
getTargetNamespacesBytes
com.google.protobuf.ByteString getTargetNamespacesBytes(int index)
(Filtering parameter) Any resource subject to substitution must be contained within one of the listed Kubernetes Namespace in the Backup. If this field is not provided, no namespace filtering will be performed (all resources in all Namespaces, including all cluster-scoped resources, will be candidates for substitution). To mix cluster-scoped and namespaced resources in the same rule, use an empty string ("") as one of the target namespaces.
repeated string target_namespaces = 1;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the targetNamespaces at the given index.
-
getTargetGroupKindsList
List<RestoreConfig.GroupKind> getTargetGroupKindsList()
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;
-
getTargetGroupKinds
RestoreConfig.GroupKind getTargetGroupKinds(int index)
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;
-
getTargetGroupKindsCount
int getTargetGroupKindsCount()
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;
-
getTargetGroupKindsOrBuilderList
List<? extends RestoreConfig.GroupKindOrBuilder> getTargetGroupKindsOrBuilderList()
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;
-
getTargetGroupKindsOrBuilder
RestoreConfig.GroupKindOrBuilder getTargetGroupKindsOrBuilder(int index)
(Filtering parameter) Any resource subject to substitution must belong to one of the listed "types". If this field is not provided, no type filtering will be performed (all resources of all types matching previous filtering parameters will be candidates for substitution).
repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2;
-
getTargetJsonPath
String getTargetJsonPath()
Required. This is a [JSONPath] (https://kubernetes.io/docs/reference/kubectl/jsonpath/) expression that matches specific fields of candidate resources and it operates as both a filtering parameter (resources that are not matched with this expression will not be candidates for substitution) as well as a field identifier (identifies exactly which fields out of the candidate resources will be modified).
string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The targetJsonPath.
-
getTargetJsonPathBytes
com.google.protobuf.ByteString getTargetJsonPathBytes()
Required. This is a [JSONPath] (https://kubernetes.io/docs/reference/kubectl/jsonpath/) expression that matches specific fields of candidate resources and it operates as both a filtering parameter (resources that are not matched with this expression will not be candidates for substitution) as well as a field identifier (identifies exactly which fields out of the candidate resources will be modified).
string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The bytes for targetJsonPath.
-
getOriginalValuePattern
String getOriginalValuePattern()
(Filtering parameter) This is a [regular expression] (https://en.wikipedia.org/wiki/Regular_expression) that is compared against the fields matched by the target_json_path expression (and must also have passed the previous filters). Substitution will not be performed against fields whose value does not match this expression. If this field is NOT specified, then ALL fields matched by the target_json_path expression will undergo substitution. Note that an empty (e.g., "", rather than unspecified) value for this field will only match empty fields.
string original_value_pattern = 4;
- Returns:
- The originalValuePattern.
-
getOriginalValuePatternBytes
com.google.protobuf.ByteString getOriginalValuePatternBytes()
(Filtering parameter) This is a [regular expression] (https://en.wikipedia.org/wiki/Regular_expression) that is compared against the fields matched by the target_json_path expression (and must also have passed the previous filters). Substitution will not be performed against fields whose value does not match this expression. If this field is NOT specified, then ALL fields matched by the target_json_path expression will undergo substitution. Note that an empty (e.g., "", rather than unspecified) value for this field will only match empty fields.
string original_value_pattern = 4;
- Returns:
- The bytes for originalValuePattern.
-
getNewValue
String getNewValue()
This is the new value to set for any fields that pass the filtering and selection criteria. To remove a value from a Kubernetes resource, either leave this field unspecified, or set it to the empty string ("").
string new_value = 5;
- Returns:
- The newValue.
-
getNewValueBytes
com.google.protobuf.ByteString getNewValueBytes()
This is the new value to set for any fields that pass the filtering and selection criteria. To remove a value from a Kubernetes resource, either leave this field unspecified, or set it to the empty string ("").
string new_value = 5;
- Returns:
- The bytes for newValue.
-
-