Class: Google::Apis::MigrationcenterV1alpha1::BatchUpdateAssetsRequest
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::BatchUpdateAssetsRequest
- 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 update a list of assets.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(**args) ⇒ BatchUpdateAssetsRequest
constructor
A new instance of BatchUpdateAssetsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BatchUpdateAssetsRequest
Returns a new instance of BatchUpdateAssetsRequest.
1411 1412 1413 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1411 def initialize(**args) update!(**args) end |
Instance Attribute Details
#requests ⇒ Array<Google::Apis::MigrationcenterV1alpha1::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
1409 1410 1411 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1409 def requests @requests end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1416 1417 1418 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1416 def update!(**args) @requests = args[:requests] if args.key?(:requests) end |