Class: Google::Apis::MigrationcenterV1::ImportDataFile

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 represents a payload file in an import job.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImportDataFile

Returns a new instance of ImportDataFile.



1924
1925
1926
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1924

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

Instance Attribute Details

#create_timeString

Output only. The timestamp when the file was created. Corresponds to the JSON property createTime

Returns:

  • (String)


1897
1898
1899
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1897

def create_time
  @create_time
end

#display_nameString

User-friendly display name. Maximum length is 63 characters. Corresponds to the JSON property displayName

Returns:

  • (String)


1902
1903
1904
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1902

def display_name
  @display_name
end

#formatString

Required. The payload format. Corresponds to the JSON property format

Returns:

  • (String)


1907
1908
1909
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1907

def format
  @format
end

#nameString

Output only. The name of the file. Corresponds to the JSON property name

Returns:

  • (String)


1912
1913
1914
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1912

def name
  @name
end

#stateString

Output only. The state of the import data file. Corresponds to the JSON property state

Returns:

  • (String)


1917
1918
1919
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1917

def state
  @state
end

#upload_file_infoGoogle::Apis::MigrationcenterV1::UploadFileInfo

A resource that contains a URI to which a data file can be uploaded. Corresponds to the JSON property uploadFileInfo



1922
1923
1924
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1922

def upload_file_info
  @upload_file_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1929
1930
1931
1932
1933
1934
1935
1936
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1929

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @display_name = args[:display_name] if args.key?(:display_name)
  @format = args[:format] if args.key?(:format)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
  @upload_file_info = args[:upload_file_info] if args.key?(:upload_file_info)
end