Class: Google::Apis::PolyV1::StartAssetImportResponse

Inherits:
Object
  • Object
show all
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 startImport. This is returned in the response field of the Operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ StartAssetImportResponse

Returns a new instance of StartAssetImportResponse



562
563
564
# File 'generated/google/apis/poly_v1/classes.rb', line 562

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

Instance Attribute Details

#asset_idString

The id of newly created asset. If this is empty when the operation is complete it means the import failed. Please refer to the assetImportMessages field to understand what went wrong. Corresponds to the JSON property assetId

Returns:

  • (String)


544
545
546
# File 'generated/google/apis/poly_v1/classes.rb', line 544

def asset_id
  @asset_id
end

#asset_import_idString

The id of the asset import. Corresponds to the JSON property assetImportId

Returns:

  • (String)


549
550
551
# File 'generated/google/apis/poly_v1/classes.rb', line 549

def asset_import_id
  @asset_import_id
end

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



555
556
557
# File 'generated/google/apis/poly_v1/classes.rb', line 555

def asset_import_messages
  @asset_import_messages
end

#publish_urlString

The publish URL for the asset. Corresponds to the JSON property publishUrl

Returns:

  • (String)


560
561
562
# File 'generated/google/apis/poly_v1/classes.rb', line 560

def publish_url
  @publish_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



567
568
569
570
571
572
# File 'generated/google/apis/poly_v1/classes.rb', line 567

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