Class: Google::Apis::MigrationcenterV1alpha1::UploadFileInfo

Inherits:
Object
  • Object
show all
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 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.



3682
3683
3684
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3682

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

Instance Attribute Details

#headersHash<String,String>

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

Returns:

  • (Hash<String,String>)


3665
3666
3667
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3665

def headers
  @headers
end

#signed_uriString

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

Returns:

  • (String)


3670
3671
3672
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3670

def signed_uri
  @signed_uri
end

#uriString

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

Returns:

  • (String)


3675
3676
3677
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3675

def uri
  @uri
end

#uri_expiration_timeString

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

Returns:

  • (String)


3680
3681
3682
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3680

def uri_expiration_time
  @uri_expiration_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3687
3688
3689
3690
3691
3692
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3687

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