Class: Google::Apis::MigrationcenterV1alpha1::BatchDeleteAssetsRequest
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::BatchDeleteAssetsRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/migrationcenter_v1alpha1/classes.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb
Overview
A request to delete a list of asset.
Instance Attribute Summary collapse
-
#allow_missing ⇒ Boolean
(also: #allow_missing?)
Optional.
-
#cascading_rules ⇒ Array<Google::Apis::MigrationcenterV1alpha1::CascadingRule>
Optional.
-
#names ⇒ Array<String>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BatchDeleteAssetsRequest
constructor
A new instance of BatchDeleteAssetsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BatchDeleteAssetsRequest
Returns a new instance of BatchDeleteAssetsRequest.
1389 1390 1391 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1389 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_missing ⇒ Boolean Also known as: allow_missing?
Optional. When this value is set to true the request is a no-op for non-
existing assets. See https://google.aip.dev/135#delete-if-existing for
additional details. Default value is false.
Corresponds to the JSON property allowMissing
1374 1375 1376 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1374 def allow_missing @allow_missing end |
#cascading_rules ⇒ Array<Google::Apis::MigrationcenterV1alpha1::CascadingRule>
Optional. Optional cascading rules for deleting related assets.
Corresponds to the JSON property cascadingRules
1380 1381 1382 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1380 def cascading_rules @cascading_rules end |
#names ⇒ Array<String>
Required. The IDs of the assets to delete. A maximum of 1000 assets can be
deleted in a batch. Format: projects/project/locations/location/assets/
name.
Corresponds to the JSON property names
1387 1388 1389 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1387 def names @names end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1394 1395 1396 1397 1398 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1394 def update!(**args) @allow_missing = args[:allow_missing] if args.key?(:allow_missing) @cascading_rules = args[:cascading_rules] if args.key?(:cascading_rules) @names = args[:names] if args.key?(:names) end |