Class: Google::Apis::MigrationcenterV1::BatchUpdateAssetsRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/migrationcenter_v1/classes.rb,
lib/google/apis/migrationcenter_v1/representations.rb,
lib/google/apis/migrationcenter_v1/representations.rb

Overview

A request to update a list of assets.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchUpdateAssetsRequest

Returns a new instance of BatchUpdateAssetsRequest.



645
646
647
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 645

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

Instance Attribute Details

#requestsArray<Google::Apis::MigrationcenterV1::UpdateAssetRequest>

Required. The request message specifying the resources to update. A maximum of 1000 assets can be modified in a batch. Corresponds to the JSON property requests



643
644
645
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 643

def requests
  @requests
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



650
651
652
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 650

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