Class: Google::Apis::MigrationcenterV1alpha1::ImportDataFile
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::ImportDataFile
- 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
-
#create_time ⇒ String
Output only.
-
#display_name ⇒ String
Optional.
-
#format ⇒ String
Required.
-
#name ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#upload_file_info ⇒ Google::Apis::MigrationcenterV1alpha1::UploadFileInfo
A resource that contains a URI to which a data file can be uploaded.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ImportDataFile
constructor
A new instance of ImportDataFile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ImportDataFile
Returns a new instance of ImportDataFile.
4086 4087 4088 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4086 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. The timestamp when the file was created.
Corresponds to the JSON property createTime
4059 4060 4061 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4059 def create_time @create_time end |
#display_name ⇒ String
Optional. User-friendly display name. Maximum length is 256 characters.
Corresponds to the JSON property displayName
4064 4065 4066 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4064 def display_name @display_name end |
#format ⇒ String
Required. The payload format.
Corresponds to the JSON property format
4069 4070 4071 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4069 def format @format end |
#name ⇒ String
Output only. The name of the file.
Corresponds to the JSON property name
4074 4075 4076 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4074 def name @name end |
#state ⇒ String
Output only. The state of the import data file.
Corresponds to the JSON property state
4079 4080 4081 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4079 def state @state end |
#upload_file_info ⇒ Google::Apis::MigrationcenterV1alpha1::UploadFileInfo
A resource that contains a URI to which a data file can be uploaded.
Corresponds to the JSON property uploadFileInfo
4084 4085 4086 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4084 def upload_file_info @upload_file_info end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4091 4092 4093 4094 4095 4096 4097 4098 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4091 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 |