TransformationRuleAction(mapping=None, *, ignore_unknown_fields=False, **kwargs)
TransformationRuleAction defines a TransformationRule action based on the JSON Patch RFC (https://www.rfc-editor.org/rfc/rfc6902)
Attributes |
|
---|---|
Name | Description |
op |
google.cloud.gke_backup_v1.types.RestoreConfig.TransformationRuleAction.Op
Required. op specifies the operation to perform. |
from_path |
str
Optional. A string containing a JSON Pointer value that references the location in the target document to move the value from. |
path |
str
Optional. A string containing a JSON-Pointer value that references a location within the target document where the operation is performed. |
value |
str
Optional. A string that specifies the desired value in string format to use for transformation. |
Classes
Op
Op(value)
Possible values for operations of a transformation rule action.
1. If the target location specifies an array
index, a new value is inserted into the
array at the specified index.
2. If the target location specifies an object
member that does not already exist, a new
member is added to the object.
3. If the target location specifies an object
member that does exist, that member's value
is replaced.
TEST (5):
The "test" operation tests that a value at
the target location is equal to a specified
value.
REPLACE (6):
The "replace" operation replaces the value at
the target location with a new value. The
operation object MUST contain a "value" member
whose content specifies the replacement value.