Class: Google::Apis::GkebackupV1::TransformationRuleAction

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TransformationRuleAction

Returns a new instance of TransformationRuleAction.



2346
2347
2348
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2346

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#from_pathString

Optional. 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

Returns:

  • (String)


2327
2328
2329
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2327

def from_path
  @from_path
end

#opString

Required. op specifies the operation to perform. Corresponds to the JSON property op

Returns:

  • (String)


2332
2333
2334
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2332

def op
  @op
end

#pathString

Optional. 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

Returns:

  • (String)


2338
2339
2340
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2338

def path
  @path
end

#valueString

Optional. A string that specifies the desired value in string format to use for transformation. Corresponds to the JSON property value

Returns:

  • (String)


2344
2345
2346
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2344

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2351
2352
2353
2354
2355
2356
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2351

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