Class: OCI::Dts::Models::ApplianceExportJob

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/dts/models/appliance_export_job.rb

Overview

ApplianceExportJob model.

Constant Summary collapse

LIFECYCLE_STATE_ENUM =
[
  LIFECYCLE_STATE_CREATING = 'CREATING'.freeze,
  LIFECYCLE_STATE_ACTIVE = 'ACTIVE'.freeze,
  LIFECYCLE_STATE_INPROGRESS = 'INPROGRESS'.freeze,
  LIFECYCLE_STATE_SUCCEEDED = 'SUCCEEDED'.freeze,
  LIFECYCLE_STATE_FAILED = 'FAILED'.freeze,
  LIFECYCLE_STATE_CANCELLED = 'CANCELLED'.freeze,
  LIFECYCLE_STATE_DELETED = 'DELETED'.freeze,
  LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ApplianceExportJob

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):



270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
# File 'lib/oci/dts/models/appliance_export_job.rb', line 270

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  self.id = attributes[:'id'] if attributes[:'id']

  self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']

  raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')

  self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']

  self.bucket_name = attributes[:'bucketName'] if attributes[:'bucketName']

  raise 'You cannot provide both :bucketName and :bucket_name' if attributes.key?(:'bucketName') && attributes.key?(:'bucket_name')

  self.bucket_name = attributes[:'bucket_name'] if attributes[:'bucket_name']

  self.display_name = attributes[:'displayName'] if attributes[:'displayName']

  raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')

  self.display_name = attributes[:'display_name'] if attributes[:'display_name']

  self.creation_time = attributes[:'creationTime'] if attributes[:'creationTime']

  raise 'You cannot provide both :creationTime and :creation_time' if attributes.key?(:'creationTime') && attributes.key?(:'creation_time')

  self.creation_time = attributes[:'creation_time'] if attributes[:'creation_time']

  self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']

  raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')

  self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']

  self.lifecycle_state_details = attributes[:'lifecycleStateDetails'] if attributes[:'lifecycleStateDetails']

  raise 'You cannot provide both :lifecycleStateDetails and :lifecycle_state_details' if attributes.key?(:'lifecycleStateDetails') && attributes.key?(:'lifecycle_state_details')

  self.lifecycle_state_details = attributes[:'lifecycle_state_details'] if attributes[:'lifecycle_state_details']

  self.appliance_serial_number = attributes[:'applianceSerialNumber'] if attributes[:'applianceSerialNumber']

  raise 'You cannot provide both :applianceSerialNumber and :appliance_serial_number' if attributes.key?(:'applianceSerialNumber') && attributes.key?(:'appliance_serial_number')

  self.appliance_serial_number = attributes[:'appliance_serial_number'] if attributes[:'appliance_serial_number']

  self.appliance_decryption_passphrase = attributes[:'applianceDecryptionPassphrase'] if attributes[:'applianceDecryptionPassphrase']

  raise 'You cannot provide both :applianceDecryptionPassphrase and :appliance_decryption_passphrase' if attributes.key?(:'applianceDecryptionPassphrase') && attributes.key?(:'appliance_decryption_passphrase')

  self.appliance_decryption_passphrase = attributes[:'appliance_decryption_passphrase'] if attributes[:'appliance_decryption_passphrase']

  self.appliance_delivery_vendor = attributes[:'applianceDeliveryVendor'] if attributes[:'applianceDeliveryVendor']

  raise 'You cannot provide both :applianceDeliveryVendor and :appliance_delivery_vendor' if attributes.key?(:'applianceDeliveryVendor') && attributes.key?(:'appliance_delivery_vendor')

  self.appliance_delivery_vendor = attributes[:'appliance_delivery_vendor'] if attributes[:'appliance_delivery_vendor']

  self.appliance_delivery_tracking_number = attributes[:'applianceDeliveryTrackingNumber'] if attributes[:'applianceDeliveryTrackingNumber']

  raise 'You cannot provide both :applianceDeliveryTrackingNumber and :appliance_delivery_tracking_number' if attributes.key?(:'applianceDeliveryTrackingNumber') && attributes.key?(:'appliance_delivery_tracking_number')

  self.appliance_delivery_tracking_number = attributes[:'appliance_delivery_tracking_number'] if attributes[:'appliance_delivery_tracking_number']

  self.appliance_return_delivery_tracking_number = attributes[:'applianceReturnDeliveryTrackingNumber'] if attributes[:'applianceReturnDeliveryTrackingNumber']

  raise 'You cannot provide both :applianceReturnDeliveryTrackingNumber and :appliance_return_delivery_tracking_number' if attributes.key?(:'applianceReturnDeliveryTrackingNumber') && attributes.key?(:'appliance_return_delivery_tracking_number')

  self.appliance_return_delivery_tracking_number = attributes[:'appliance_return_delivery_tracking_number'] if attributes[:'appliance_return_delivery_tracking_number']

  self.sending_security_tie = attributes[:'sendingSecurityTie'] if attributes[:'sendingSecurityTie']

  raise 'You cannot provide both :sendingSecurityTie and :sending_security_tie' if attributes.key?(:'sendingSecurityTie') && attributes.key?(:'sending_security_tie')

  self.sending_security_tie = attributes[:'sending_security_tie'] if attributes[:'sending_security_tie']

  self.receiving_security_tie = attributes[:'receivingSecurityTie'] if attributes[:'receivingSecurityTie']

  raise 'You cannot provide both :receivingSecurityTie and :receiving_security_tie' if attributes.key?(:'receivingSecurityTie') && attributes.key?(:'receiving_security_tie')

  self.receiving_security_tie = attributes[:'receiving_security_tie'] if attributes[:'receiving_security_tie']

  self.prefix = attributes[:'prefix'] if attributes[:'prefix']

  self.range_start = attributes[:'rangeStart'] if attributes[:'rangeStart']

  raise 'You cannot provide both :rangeStart and :range_start' if attributes.key?(:'rangeStart') && attributes.key?(:'range_start')

  self.range_start = attributes[:'range_start'] if attributes[:'range_start']

  self.range_end = attributes[:'rangeEnd'] if attributes[:'rangeEnd']

  raise 'You cannot provide both :rangeEnd and :range_end' if attributes.key?(:'rangeEnd') && attributes.key?(:'range_end')

  self.range_end = attributes[:'range_end'] if attributes[:'range_end']

  self.number_of_objects = attributes[:'numberOfObjects'] if attributes[:'numberOfObjects']

  raise 'You cannot provide both :numberOfObjects and :number_of_objects' if attributes.key?(:'numberOfObjects') && attributes.key?(:'number_of_objects')

  self.number_of_objects = attributes[:'number_of_objects'] if attributes[:'number_of_objects']

  self.total_size_in_bytes = attributes[:'totalSizeInBytes'] if attributes[:'totalSizeInBytes']

  raise 'You cannot provide both :totalSizeInBytes and :total_size_in_bytes' if attributes.key?(:'totalSizeInBytes') && attributes.key?(:'total_size_in_bytes')

  self.total_size_in_bytes = attributes[:'total_size_in_bytes'] if attributes[:'total_size_in_bytes']

  self.first_object = attributes[:'firstObject'] if attributes[:'firstObject']

  raise 'You cannot provide both :firstObject and :first_object' if attributes.key?(:'firstObject') && attributes.key?(:'first_object')

  self.first_object = attributes[:'first_object'] if attributes[:'first_object']

  self.last_object = attributes[:'lastObject'] if attributes[:'lastObject']

  raise 'You cannot provide both :lastObject and :last_object' if attributes.key?(:'lastObject') && attributes.key?(:'last_object')

  self.last_object = attributes[:'last_object'] if attributes[:'last_object']

  self.next_object = attributes[:'nextObject'] if attributes[:'nextObject']

  raise 'You cannot provide both :nextObject and :next_object' if attributes.key?(:'nextObject') && attributes.key?(:'next_object')

  self.next_object = attributes[:'next_object'] if attributes[:'next_object']

  self.manifest_file = attributes[:'manifestFile'] if attributes[:'manifestFile']

  raise 'You cannot provide both :manifestFile and :manifest_file' if attributes.key?(:'manifestFile') && attributes.key?(:'manifest_file')

  self.manifest_file = attributes[:'manifest_file'] if attributes[:'manifest_file']

  self.manifest_md5 = attributes[:'manifestMd5'] if attributes[:'manifestMd5']

  raise 'You cannot provide both :manifestMd5 and :manifest_md5' if attributes.key?(:'manifestMd5') && attributes.key?(:'manifest_md5')

  self.manifest_md5 = attributes[:'manifest_md5'] if attributes[:'manifest_md5']

  self.bucket_access_policies = attributes[:'bucketAccessPolicies'] if attributes[:'bucketAccessPolicies']

  raise 'You cannot provide both :bucketAccessPolicies and :bucket_access_policies' if attributes.key?(:'bucketAccessPolicies') && attributes.key?(:'bucket_access_policies')

  self.bucket_access_policies = attributes[:'bucket_access_policies'] if attributes[:'bucket_access_policies']

  self.return_shipping_label_uri = attributes[:'returnShippingLabelUri'] if attributes[:'returnShippingLabelUri']

  raise 'You cannot provide both :returnShippingLabelUri and :return_shipping_label_uri' if attributes.key?(:'returnShippingLabelUri') && attributes.key?(:'return_shipping_label_uri')

  self.return_shipping_label_uri = attributes[:'return_shipping_label_uri'] if attributes[:'return_shipping_label_uri']

  self.expected_return_date = attributes[:'expectedReturnDate'] if attributes[:'expectedReturnDate']

  raise 'You cannot provide both :expectedReturnDate and :expected_return_date' if attributes.key?(:'expectedReturnDate') && attributes.key?(:'expected_return_date')

  self.expected_return_date = attributes[:'expected_return_date'] if attributes[:'expected_return_date']

  self.pickup_window_start_time = attributes[:'pickupWindowStartTime'] if attributes[:'pickupWindowStartTime']

  raise 'You cannot provide both :pickupWindowStartTime and :pickup_window_start_time' if attributes.key?(:'pickupWindowStartTime') && attributes.key?(:'pickup_window_start_time')

  self.pickup_window_start_time = attributes[:'pickup_window_start_time'] if attributes[:'pickup_window_start_time']

  self.pickup_window_end_time = attributes[:'pickupWindowEndTime'] if attributes[:'pickupWindowEndTime']

  raise 'You cannot provide both :pickupWindowEndTime and :pickup_window_end_time' if attributes.key?(:'pickupWindowEndTime') && attributes.key?(:'pickup_window_end_time')

  self.pickup_window_end_time = attributes[:'pickup_window_end_time'] if attributes[:'pickup_window_end_time']

  self.customer_shipping_address = attributes[:'customerShippingAddress'] if attributes[:'customerShippingAddress']

  raise 'You cannot provide both :customerShippingAddress and :customer_shipping_address' if attributes.key?(:'customerShippingAddress') && attributes.key?(:'customer_shipping_address')

  self.customer_shipping_address = attributes[:'customer_shipping_address'] if attributes[:'customer_shipping_address']

  self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']

  raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')

  self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']

  self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']

  raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')

  self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']
end

Instance Attribute Details

#appliance_decryption_passphraseString

Passphrase associated with the Appliance.

Returns:

  • (String)


52
53
54
# File 'lib/oci/dts/models/appliance_export_job.rb', line 52

def appliance_decryption_passphrase
  @appliance_decryption_passphrase
end

#appliance_delivery_tracking_numberString

Tracking number associated with the shipment while shipping the Appliance to Customer.

Returns:

  • (String)


60
61
62
# File 'lib/oci/dts/models/appliance_export_job.rb', line 60

def appliance_delivery_tracking_number
  @appliance_delivery_tracking_number
end

#appliance_delivery_vendorString

Shipping Vendor selected to ship the Appliance associated with this job.

Returns:

  • (String)


56
57
58
# File 'lib/oci/dts/models/appliance_export_job.rb', line 56

def appliance_delivery_vendor
  @appliance_delivery_vendor
end

#appliance_return_delivery_tracking_numberString

Tracking number associated with the shipment while shipping the Appliance back to Oracle.

Returns:

  • (String)


64
65
66
# File 'lib/oci/dts/models/appliance_export_job.rb', line 64

def appliance_return_delivery_tracking_number
  @appliance_return_delivery_tracking_number
end

#appliance_serial_numberString

Serial Number of the Appliance associated with this Export Job.

Returns:

  • (String)


48
49
50
# File 'lib/oci/dts/models/appliance_export_job.rb', line 48

def appliance_serial_number
  @appliance_serial_number
end

#bucket_access_policiesArray<String>

Polices to grant Data Transfer Service to access objects in the Bucket

Returns:

  • (Array<String>)


116
117
118
# File 'lib/oci/dts/models/appliance_export_job.rb', line 116

def bucket_access_policies
  @bucket_access_policies
end

#bucket_nameString

Returns:

  • (String)


31
32
33
# File 'lib/oci/dts/models/appliance_export_job.rb', line 31

def bucket_name
  @bucket_name
end

#compartment_idString

Returns:

  • (String)


28
29
30
# File 'lib/oci/dts/models/appliance_export_job.rb', line 28

def compartment_id
  @compartment_id
end

#creation_timeDateTime

Returns:

  • (DateTime)


37
38
39
# File 'lib/oci/dts/models/appliance_export_job.rb', line 37

def creation_time
  @creation_time
end

#customer_shipping_addressOCI::Dts::Models::ShippingAddress



134
135
136
# File 'lib/oci/dts/models/appliance_export_job.rb', line 134

def customer_shipping_address
  @customer_shipping_address
end

#defined_tagsHash<String, Hash<String, Object>>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

Example: {\"Operations\": {\"CostCenter\": \"42\"}}

Returns:

  • (Hash<String, Hash<String, Object>>)


150
151
152
# File 'lib/oci/dts/models/appliance_export_job.rb', line 150

def defined_tags
  @defined_tags
end

#display_nameString

Returns:

  • (String)


34
35
36
# File 'lib/oci/dts/models/appliance_export_job.rb', line 34

def display_name
  @display_name
end

#expected_return_dateDateTime

Expected return date from customer for the device, time portion should be zero.

Returns:

  • (DateTime)


123
124
125
# File 'lib/oci/dts/models/appliance_export_job.rb', line 123

def expected_return_date
  @expected_return_date
end

#first_objectString

First object in the list of objects that are exported in this job.

Returns:

  • (String)


96
97
98
# File 'lib/oci/dts/models/appliance_export_job.rb', line 96

def first_object
  @first_object
end

#freeform_tagsHash<String, String>

Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

Example: {\"Department\": \"Finance\"}

Returns:

  • (Hash<String, String>)


142
143
144
# File 'lib/oci/dts/models/appliance_export_job.rb', line 142

def freeform_tags
  @freeform_tags
end

#idString

This attribute is required.

Returns:

  • (String)


25
26
27
# File 'lib/oci/dts/models/appliance_export_job.rb', line 25

def id
  @id
end

#last_objectString

Last object in the list of objects that are exported in this job.

Returns:

  • (String)


100
101
102
# File 'lib/oci/dts/models/appliance_export_job.rb', line 100

def last_object
  @last_object
end

#lifecycle_stateString

Returns:

  • (String)


40
41
42
# File 'lib/oci/dts/models/appliance_export_job.rb', line 40

def lifecycle_state
  @lifecycle_state
end

#lifecycle_state_detailsString

A property that can contain details on the lifecycle.

Returns:

  • (String)


44
45
46
# File 'lib/oci/dts/models/appliance_export_job.rb', line 44

def lifecycle_state_details
  @lifecycle_state_details
end

#manifest_fileString

Url of the Manifest File associated with this export job.

Returns:

  • (String)


108
109
110
# File 'lib/oci/dts/models/appliance_export_job.rb', line 108

def manifest_file
  @manifest_file
end

#manifest_md5String

md5 digest of the manifest file.

Returns:

  • (String)


112
113
114
# File 'lib/oci/dts/models/appliance_export_job.rb', line 112

def manifest_md5
  @manifest_md5
end

#next_objectString

First object from which the next potential export job could start.

Returns:

  • (String)


104
105
106
# File 'lib/oci/dts/models/appliance_export_job.rb', line 104

def next_object
  @next_object
end

#number_of_objectsString

Total number of objects that are exported in this job.

Returns:

  • (String)


88
89
90
# File 'lib/oci/dts/models/appliance_export_job.rb', line 88

def number_of_objects
  @number_of_objects
end

#pickup_window_end_timeDateTime

End time for the window to pickup the device from customer.

Returns:

  • (DateTime)


131
132
133
# File 'lib/oci/dts/models/appliance_export_job.rb', line 131

def pickup_window_end_time
  @pickup_window_end_time
end

#pickup_window_start_timeDateTime

Start time for the window to pickup the device from customer.

Returns:

  • (DateTime)


127
128
129
# File 'lib/oci/dts/models/appliance_export_job.rb', line 127

def pickup_window_start_time
  @pickup_window_start_time
end

#prefixString

List of objects with names matching this prefix would be part of this export job.

Returns:

  • (String)


76
77
78
# File 'lib/oci/dts/models/appliance_export_job.rb', line 76

def prefix
  @prefix
end

#range_endString

The name of the last object in the range of objects that are expected to be part of this export job.

Returns:

  • (String)


84
85
86
# File 'lib/oci/dts/models/appliance_export_job.rb', line 84

def range_end
  @range_end
end

#range_startString

The name of the first object in the range of objects that are expected to be part of this export job.

Returns:

  • (String)


80
81
82
# File 'lib/oci/dts/models/appliance_export_job.rb', line 80

def range_start
  @range_start
end

#receiving_security_tieString

Unique number associated with the return security tie used to seal the Appliance case.

Returns:

  • (String)


72
73
74
# File 'lib/oci/dts/models/appliance_export_job.rb', line 72

def receiving_security_tie
  @receiving_security_tie
end

#return_shipping_label_uriString

Returns:

  • (String)


119
120
121
# File 'lib/oci/dts/models/appliance_export_job.rb', line 119

def return_shipping_label_uri
  @return_shipping_label_uri
end

#sending_security_tieString

Unique number associated with the security tie used to seal the Appliance case.

Returns:

  • (String)


68
69
70
# File 'lib/oci/dts/models/appliance_export_job.rb', line 68

def sending_security_tie
  @sending_security_tie
end

#total_size_in_bytesString

Total size of objects in Bytes that are exported in this job.

Returns:

  • (String)


92
93
94
# File 'lib/oci/dts/models/appliance_export_job.rb', line 92

def total_size_in_bytes
  @total_size_in_bytes
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
# File 'lib/oci/dts/models/appliance_export_job.rb', line 153

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'id',
    'compartment_id': :'compartmentId',
    'bucket_name': :'bucketName',
    'display_name': :'displayName',
    'creation_time': :'creationTime',
    'lifecycle_state': :'lifecycleState',
    'lifecycle_state_details': :'lifecycleStateDetails',
    'appliance_serial_number': :'applianceSerialNumber',
    'appliance_decryption_passphrase': :'applianceDecryptionPassphrase',
    'appliance_delivery_vendor': :'applianceDeliveryVendor',
    'appliance_delivery_tracking_number': :'applianceDeliveryTrackingNumber',
    'appliance_return_delivery_tracking_number': :'applianceReturnDeliveryTrackingNumber',
    'sending_security_tie': :'sendingSecurityTie',
    'receiving_security_tie': :'receivingSecurityTie',
    'prefix': :'prefix',
    'range_start': :'rangeStart',
    'range_end': :'rangeEnd',
    'number_of_objects': :'numberOfObjects',
    'total_size_in_bytes': :'totalSizeInBytes',
    'first_object': :'firstObject',
    'last_object': :'lastObject',
    'next_object': :'nextObject',
    'manifest_file': :'manifestFile',
    'manifest_md5': :'manifestMd5',
    'bucket_access_policies': :'bucketAccessPolicies',
    'return_shipping_label_uri': :'returnShippingLabelUri',
    'expected_return_date': :'expectedReturnDate',
    'pickup_window_start_time': :'pickupWindowStartTime',
    'pickup_window_end_time': :'pickupWindowEndTime',
    'customer_shipping_address': :'customerShippingAddress',
    'freeform_tags': :'freeformTags',
    'defined_tags': :'definedTags'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
# File 'lib/oci/dts/models/appliance_export_job.rb', line 193

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'String',
    'compartment_id': :'String',
    'bucket_name': :'String',
    'display_name': :'String',
    'creation_time': :'DateTime',
    'lifecycle_state': :'String',
    'lifecycle_state_details': :'String',
    'appliance_serial_number': :'String',
    'appliance_decryption_passphrase': :'String',
    'appliance_delivery_vendor': :'String',
    'appliance_delivery_tracking_number': :'String',
    'appliance_return_delivery_tracking_number': :'String',
    'sending_security_tie': :'String',
    'receiving_security_tie': :'String',
    'prefix': :'String',
    'range_start': :'String',
    'range_end': :'String',
    'number_of_objects': :'String',
    'total_size_in_bytes': :'String',
    'first_object': :'String',
    'last_object': :'String',
    'next_object': :'String',
    'manifest_file': :'String',
    'manifest_md5': :'String',
    'bucket_access_policies': :'Array<String>',
    'return_shipping_label_uri': :'String',
    'expected_return_date': :'DateTime',
    'pickup_window_start_time': :'DateTime',
    'pickup_window_end_time': :'DateTime',
    'customer_shipping_address': :'OCI::Dts::Models::ShippingAddress',
    'freeform_tags': :'Hash<String, String>',
    'defined_tags': :'Hash<String, Hash<String, Object>>'
    # rubocop:enable Style/SymbolLiteral
  }
end

Instance Method Details

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • other (Object)

    the other object to be compared



481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
# File 'lib/oci/dts/models/appliance_export_job.rb', line 481

def ==(other)
  return true if equal?(other)

  self.class == other.class &&
    id == other.id &&
    compartment_id == other.compartment_id &&
    bucket_name == other.bucket_name &&
    display_name == other.display_name &&
    creation_time == other.creation_time &&
    lifecycle_state == other.lifecycle_state &&
    lifecycle_state_details == other.lifecycle_state_details &&
    appliance_serial_number == other.appliance_serial_number &&
    appliance_decryption_passphrase == other.appliance_decryption_passphrase &&
    appliance_delivery_vendor == other.appliance_delivery_vendor &&
    appliance_delivery_tracking_number == other.appliance_delivery_tracking_number &&
    appliance_return_delivery_tracking_number == other.appliance_return_delivery_tracking_number &&
    sending_security_tie == other.sending_security_tie &&
    receiving_security_tie == other.receiving_security_tie &&
    prefix == other.prefix &&
    range_start == other.range_start &&
    range_end == other.range_end &&
    number_of_objects == other.number_of_objects &&
    total_size_in_bytes == other.total_size_in_bytes &&
    first_object == other.first_object &&
    last_object == other.last_object &&
    next_object == other.next_object &&
    manifest_file == other.manifest_file &&
    manifest_md5 == other.manifest_md5 &&
    bucket_access_policies == other.bucket_access_policies &&
    return_shipping_label_uri == other.return_shipping_label_uri &&
    expected_return_date == other.expected_return_date &&
    pickup_window_start_time == other.pickup_window_start_time &&
    pickup_window_end_time == other.pickup_window_end_time &&
    customer_shipping_address == other.customer_shipping_address &&
    freeform_tags == other.freeform_tags &&
    defined_tags == other.defined_tags
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
# File 'lib/oci/dts/models/appliance_export_job.rb', line 542

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)

  self.class.swagger_types.each_pair do |key, type|
    if type =~ /^Array<(.*)>/i
      # check to ensure the input is an array given that the the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        public_method("#{key}=").call(
          attributes[self.class.attribute_map[key]]
            .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
        )
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      public_method("#{key}=").call(
        OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
      )
    end
    # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end

#eql?(other) ⇒ Boolean

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


522
523
524
# File 'lib/oci/dts/models/appliance_export_job.rb', line 522

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



531
532
533
# File 'lib/oci/dts/models/appliance_export_job.rb', line 531

def hash
  [id, compartment_id, bucket_name, display_name, creation_time, lifecycle_state, lifecycle_state_details, appliance_serial_number, appliance_decryption_passphrase, appliance_delivery_vendor, appliance_delivery_tracking_number, appliance_return_delivery_tracking_number, sending_security_tie, receiving_security_tie, prefix, range_start, range_end, number_of_objects, total_size_in_bytes, first_object, last_object, next_object, manifest_file, manifest_md5, bucket_access_policies, return_shipping_label_uri, expected_return_date, pickup_window_start_time, pickup_window_end_time, customer_shipping_address, freeform_tags, defined_tags].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



575
576
577
578
579
580
581
582
583
584
# File 'lib/oci/dts/models/appliance_export_job.rb', line 575

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = public_method(attr).call
    next if value.nil? && !instance_variable_defined?("@#{attr}")

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



569
570
571
# File 'lib/oci/dts/models/appliance_export_job.rb', line 569

def to_s
  to_hash.to_s
end