Class: Google::Apis::GkebackupV1::TransformationRuleAction
- Inherits:
-
Object
- Object
- Google::Apis::GkebackupV1::TransformationRuleAction
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkebackup_v1/classes.rb,
lib/google/apis/gkebackup_v1/representations.rb,
lib/google/apis/gkebackup_v1/representations.rb
Overview
TransformationRuleAction defines a TransformationRule action based on the JSON Patch RFC (https://www.rfc-editor.org/rfc/rfc6902)
Instance Attribute Summary collapse
-
#from_path ⇒ String
A string containing a JSON Pointer value that references the location in the target document to move the value from.
-
#op ⇒ String
Required.
-
#path ⇒ String
A string containing a JSON-Pointer value that references a location within the target document where the operation is performed.
-
#value ⇒ String
A string that specifies the desired value in string format to use for transformation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TransformationRuleAction
constructor
A new instance of TransformationRuleAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TransformationRuleAction
Returns a new instance of TransformationRuleAction.
2076 2077 2078 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2076 def initialize(**args) update!(**args) end |
Instance Attribute Details
#from_path ⇒ String
A string containing a JSON Pointer value that references the location in the
target document to move the value from.
Corresponds to the JSON property fromPath
2057 2058 2059 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2057 def from_path @from_path end |
#op ⇒ String
Required. op specifies the operation to perform.
Corresponds to the JSON property op
2062 2063 2064 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2062 def op @op end |
#path ⇒ String
A string containing a JSON-Pointer value that references a location within the
target document where the operation is performed.
Corresponds to the JSON property path
2068 2069 2070 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2068 def path @path end |
#value ⇒ String
A string that specifies the desired value in string format to use for
transformation.
Corresponds to the JSON property value
2074 2075 2076 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2074 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2081 2082 2083 2084 2085 2086 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2081 def update!(**args) @from_path = args[:from_path] if args.key?(:from_path) @op = args[:op] if args.key?(:op) @path = args[:path] if args.key?(:path) @value = args[:value] if args.key?(:value) end |