Class: Google::Apis::PolyV1::StartAssetImportResponse
- Inherits:
-
Object
- Object
- Google::Apis::PolyV1::StartAssetImportResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/poly_v1/classes.rb,
generated/google/apis/poly_v1/representations.rb,
generated/google/apis/poly_v1/representations.rb
Overview
A response message from a request to list. This is returned in the response field of the Operation.
Instance Attribute Summary collapse
-
#asset_id ⇒ String
The id of newly created asset.
-
#asset_import_id ⇒ String
The id of the asset import.
-
#asset_import_messages ⇒ Array<Google::Apis::PolyV1::AssetImportMessage>
The message from the asset import.
-
#publish_url ⇒ String
The publish URL for the asset.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StartAssetImportResponse
constructor
A new instance of StartAssetImportResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ StartAssetImportResponse
Returns a new instance of StartAssetImportResponse
552 553 554 |
# File 'generated/google/apis/poly_v1/classes.rb', line 552 def initialize(**args) update!(**args) end |
Instance Attribute Details
#asset_id ⇒ String
The id of newly created asset. If this is empty when the operation is
complete it means the import failed. Please refer to the
asset_import_message field to understand what went wrong.
Corresponds to the JSON property assetId
534 535 536 |
# File 'generated/google/apis/poly_v1/classes.rb', line 534 def asset_id @asset_id end |
#asset_import_id ⇒ String
The id of the asset import.
Corresponds to the JSON property assetImportId
539 540 541 |
# File 'generated/google/apis/poly_v1/classes.rb', line 539 def asset_import_id @asset_import_id end |
#asset_import_messages ⇒ Array<Google::Apis::PolyV1::AssetImportMessage>
The message from the asset import. This will contain any warnings
(or - in the case of failure - errors) that occurred during import.
Corresponds to the JSON property assetImportMessages
545 546 547 |
# File 'generated/google/apis/poly_v1/classes.rb', line 545 def @asset_import_messages end |
#publish_url ⇒ String
The publish URL for the asset.
Corresponds to the JSON property publishUrl
550 551 552 |
# File 'generated/google/apis/poly_v1/classes.rb', line 550 def publish_url @publish_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
557 558 559 560 561 562 |
# File 'generated/google/apis/poly_v1/classes.rb', line 557 def update!(**args) @asset_id = args[:asset_id] if args.key?(:asset_id) @asset_import_id = args[:asset_import_id] if args.key?(:asset_import_id) @asset_import_messages = args[:asset_import_messages] if args.key?(:asset_import_messages) @publish_url = args[:publish_url] if args.key?(:publish_url) end |