Class: Google::Apis::GkebackupV1::Filter
- Inherits:
-
Object
- Object
- Google::Apis::GkebackupV1::Filter
- 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
Defines the filter for Restore
. This filter can be used to further refine
the resource selection of the Restore
beyond the coarse-grained scope
defined in the RestorePlan
. exclusion_filters
take precedence over
inclusion_filters
. If a resource matches both inclusion_filters
and
exclusion_filters
, it will not be restored.
Instance Attribute Summary collapse
-
#exclusion_filters ⇒ Array<Google::Apis::GkebackupV1::ResourceSelector>
Optional.
-
#inclusion_filters ⇒ Array<Google::Apis::GkebackupV1::ResourceSelector>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Filter
constructor
A new instance of Filter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Filter
Returns a new instance of Filter.
951 952 953 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 951 def initialize(**args) update!(**args) end |
Instance Attribute Details
#exclusion_filters ⇒ Array<Google::Apis::GkebackupV1::ResourceSelector>
Optional. Excludes resources from restoration. If specified, a resource will
not be restored if it matches any ResourceSelector
of the exclusion_filters
.
Corresponds to the JSON property exclusionFilters
941 942 943 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 941 def exclusion_filters @exclusion_filters end |
#inclusion_filters ⇒ Array<Google::Apis::GkebackupV1::ResourceSelector>
Optional. Selects resources for restoration. If specified, only resources
which match inclusion_filters
will be selected for restoration. A resource
will be selected if it matches any ResourceSelector
of the
inclusion_filters
.
Corresponds to the JSON property inclusionFilters
949 950 951 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 949 def inclusion_filters @inclusion_filters end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
956 957 958 959 |
# File 'lib/google/apis/gkebackup_v1/classes.rb', line 956 def update!(**args) @exclusion_filters = args[:exclusion_filters] if args.key?(:exclusion_filters) @inclusion_filters = args[:inclusion_filters] if args.key?(:inclusion_filters) end |