Class: Google::Apis::GkebackupV1::TransformationRule
- Inherits:
-
Object
- Object
- Google::Apis::GkebackupV1::TransformationRule
- 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
A transformation rule to be applied against Kubernetes resources as they are selected for restoration from a Backup. A rule contains both filtering logic ( which resources are subject to transform) and transformation logic.
Instance Attribute Summary collapse
-
#description ⇒ String
The description is a user specified string description of the transformation rule.
-
#field_actions ⇒ Array<Google::Apis::GkebackupV1::TransformationRuleAction>
Required.
-
#resource_filter ⇒ Google::Apis::GkebackupV1::ResourceFilter
ResourceFilter specifies matching criteria to limit the scope of a change to a specific set of kubernetes resources that are selected for restoration from a backup.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TransformationRule
constructor
A new instance of TransformationRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TransformationRule
Returns a new instance of TransformationRule.
2036 2037 2038 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2036 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
The description is a user specified string description of the transformation
rule.
Corresponds to the JSON property description
2019 2020 2021 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2019 def description @description end |
#field_actions ⇒ Array<Google::Apis::GkebackupV1::TransformationRuleAction>
Required. A list of transformation rule actions to take against candidate
resources. Actions are executed in order defined - this order matters, as they
could potentially interfere with each other and the first operation could
affect the outcome of the second operation.
Corresponds to the JSON property fieldActions
2027 2028 2029 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2027 def field_actions @field_actions end |
#resource_filter ⇒ Google::Apis::GkebackupV1::ResourceFilter
ResourceFilter specifies matching criteria to limit the scope of a change to a
specific set of kubernetes resources that are selected for restoration from a
backup.
Corresponds to the JSON property resourceFilter
2034 2035 2036 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2034 def resource_filter @resource_filter end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2041 2042 2043 2044 2045 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 2041 def update!(**args) @description = args[:description] if args.key?(:description) @field_actions = args[:field_actions] if args.key?(:field_actions) @resource_filter = args[:resource_filter] if args.key?(:resource_filter) end |