Class: Google::Apis::MigrationcenterV1alpha1::BatchDeleteAssetsRequest

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchDeleteAssetsRequest

Returns a new instance of BatchDeleteAssetsRequest.



861
862
863
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 861

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

Instance Attribute Details

#allow_missingBoolean 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

Returns:

  • (Boolean)


851
852
853
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 851

def allow_missing
  @allow_missing
end

#namesArray<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

Returns:

  • (Array<String>)


859
860
861
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 859

def names
  @names
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



866
867
868
869
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 866

def update!(**args)
  @allow_missing = args[:allow_missing] if args.key?(:allow_missing)
  @names = args[:names] if args.key?(:names)
end