Class: Google::Cloud::GkeBackup::V1::RestoreConfig::TransformationRuleAction
- Inherits:
-
Object
- Object
- Google::Cloud::GkeBackup::V1::RestoreConfig::TransformationRuleAction
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/gkebackup/v1/restore.rb
Overview
TransformationRuleAction defines a TransformationRule action based on the JSON Patch RFC (https://www.rfc-editor.org/rfc/rfc6902)
Defined Under Namespace
Modules: Op
Instance Attribute Summary collapse
-
#from_path ⇒ ::String
Optional.
-
#op ⇒ ::Google::Cloud::GkeBackup::V1::RestoreConfig::TransformationRuleAction::Op
Required.
-
#path ⇒ ::String
Optional.
-
#value ⇒ ::String
Optional.
Instance Attribute Details
#from_path ⇒ ::String
Returns Optional. A string containing a JSON Pointer value that references the location in the target document to move the value from.
374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 |
# File 'proto_docs/google/cloud/gkebackup/v1/restore.rb', line 374 class TransformationRuleAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Possible values for operations of a transformation rule action. module Op # Unspecified operation OP_UNSPECIFIED = 0 # The "remove" operation removes the value at the target location. REMOVE = 1 # The "move" operation removes the value at a specified location and # adds it to the target location. MOVE = 2 # The "copy" operation copies the value at a specified location to the # target location. COPY = 3 # The "add" operation performs one of the following functions, # depending upon what the target location references: # 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. ADD = 4 # The "test" operation tests that a value at the target location is # equal to a specified value. TEST = 5 # 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. REPLACE = 6 end end |
#op ⇒ ::Google::Cloud::GkeBackup::V1::RestoreConfig::TransformationRuleAction::Op
Returns Required. op specifies the operation to perform.
374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 |
# File 'proto_docs/google/cloud/gkebackup/v1/restore.rb', line 374 class TransformationRuleAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Possible values for operations of a transformation rule action. module Op # Unspecified operation OP_UNSPECIFIED = 0 # The "remove" operation removes the value at the target location. REMOVE = 1 # The "move" operation removes the value at a specified location and # adds it to the target location. MOVE = 2 # The "copy" operation copies the value at a specified location to the # target location. COPY = 3 # The "add" operation performs one of the following functions, # depending upon what the target location references: # 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. ADD = 4 # The "test" operation tests that a value at the target location is # equal to a specified value. TEST = 5 # 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. REPLACE = 6 end end |
#path ⇒ ::String
Returns Optional. A string containing a JSON-Pointer value that references a location within the target document where the operation is performed.
374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 |
# File 'proto_docs/google/cloud/gkebackup/v1/restore.rb', line 374 class TransformationRuleAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Possible values for operations of a transformation rule action. module Op # Unspecified operation OP_UNSPECIFIED = 0 # The "remove" operation removes the value at the target location. REMOVE = 1 # The "move" operation removes the value at a specified location and # adds it to the target location. MOVE = 2 # The "copy" operation copies the value at a specified location to the # target location. COPY = 3 # The "add" operation performs one of the following functions, # depending upon what the target location references: # 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. ADD = 4 # The "test" operation tests that a value at the target location is # equal to a specified value. TEST = 5 # 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. REPLACE = 6 end end |
#value ⇒ ::String
Returns Optional. A string that specifies the desired value in string format to use for transformation.
374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 |
# File 'proto_docs/google/cloud/gkebackup/v1/restore.rb', line 374 class TransformationRuleAction include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Possible values for operations of a transformation rule action. module Op # Unspecified operation OP_UNSPECIFIED = 0 # The "remove" operation removes the value at the target location. REMOVE = 1 # The "move" operation removes the value at a specified location and # adds it to the target location. MOVE = 2 # The "copy" operation copies the value at a specified location to the # target location. COPY = 3 # The "add" operation performs one of the following functions, # depending upon what the target location references: # 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. ADD = 4 # The "test" operation tests that a value at the target location is # equal to a specified value. TEST = 5 # 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. REPLACE = 6 end end |