Class: Google::Apis::MigrationcenterV1alpha1::ImportDataFile

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 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.



3157
3158
3159
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3157

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)


3130
3131
3132
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3130

def create_time
  @create_time
end

#display_nameString

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

Returns:

  • (String)


3135
3136
3137
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3135

def display_name
  @display_name
end

#formatString

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

Returns:

  • (String)


3140
3141
3142
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3140

def format
  @format
end

#nameString

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

Returns:

  • (String)


3145
3146
3147
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3145

def name
  @name
end

#stateString

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

Returns:

  • (String)


3150
3151
3152
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3150

def state
  @state
end

#upload_file_infoGoogle::Apis::MigrationcenterV1alpha1::UploadFileInfo

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



3155
3156
3157
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3155

def upload_file_info
  @upload_file_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3162
3163
3164
3165
3166
3167
3168
3169
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3162

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