Class: Google::Apis::MigrationcenterV1::UploadFileInfo

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 resource that contains a URI to which a data file can be uploaded.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UploadFileInfo

Returns a new instance of UploadFileInfo.



4617
4618
4619
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4617

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

Instance Attribute Details

#headersHash<String,String>

Output only. The headers that were used to sign the URI. Corresponds to the JSON property headers

Returns:

  • (Hash<String,String>)


4605
4606
4607
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4605

def headers
  @headers
end

#signed_uriString

Output only. Upload URI for the file. Corresponds to the JSON property signedUri

Returns:

  • (String)


4610
4611
4612
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4610

def signed_uri
  @signed_uri
end

#uri_expiration_timeString

Output only. Expiration time of the upload URI. Corresponds to the JSON property uriExpirationTime

Returns:

  • (String)


4615
4616
4617
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4615

def uri_expiration_time
  @uri_expiration_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4622
4623
4624
4625
4626
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4622

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