Class: Verizon::RetrievesAvailableFilesResponse
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- Verizon::RetrievesAvailableFilesResponse
- Defined in:
- lib/verizon/models/retrieves_available_files_response.rb
Overview
RetrievesAvailableFilesResponse Model.
Instance Attribute Summary collapse
-
#device_platform_id ⇒ String
The platform (Android, iOS, etc.,) that the software can be applied to.
-
#distribution_type ⇒ String
Valid values.
-
#file_name ⇒ String
ThingSpace-generated name of the file.
-
#file_version ⇒ String
Version of the file.
-
#local_target_path ⇒ String
Local target path on the device.
-
#make ⇒ String
The software-applicable device make.
-
#model ⇒ String
The software-applicable device model.
-
#release_note ⇒ String
Software release note.
Class Method Summary collapse
-
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
-
.names ⇒ Object
A mapping from model property names to API property names.
-
.nullables ⇒ Object
An array for nullable fields.
-
.optionals ⇒ Object
An array for optional fields.
Instance Method Summary collapse
-
#initialize(file_name = SKIP, file_version = SKIP, release_note = SKIP, make = SKIP, model = SKIP, local_target_path = SKIP, distribution_type = SKIP, device_platform_id = SKIP) ⇒ RetrievesAvailableFilesResponse
constructor
A new instance of RetrievesAvailableFilesResponse.
Methods inherited from BaseModel
Constructor Details
#initialize(file_name = SKIP, file_version = SKIP, release_note = SKIP, make = SKIP, model = SKIP, local_target_path = SKIP, distribution_type = SKIP, device_platform_id = SKIP) ⇒ RetrievesAvailableFilesResponse
Returns a new instance of RetrievesAvailableFilesResponse.
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/verizon/models/retrieves_available_files_response.rb', line 78 def initialize(file_name = SKIP, file_version = SKIP, release_note = SKIP, make = SKIP, model = SKIP, local_target_path = SKIP, distribution_type = SKIP, device_platform_id = SKIP) @file_name = file_name unless file_name == SKIP @file_version = file_version unless file_version == SKIP @release_note = release_note unless release_note == SKIP @make = make unless make == SKIP @model = model unless model == SKIP @local_target_path = local_target_path unless local_target_path == SKIP @distribution_type = distribution_type unless distribution_type == SKIP @device_platform_id = device_platform_id unless device_platform_id == SKIP end |
Instance Attribute Details
#device_platform_id ⇒ String
The platform (Android, iOS, etc.,) that the software can be applied to.
43 44 45 |
# File 'lib/verizon/models/retrieves_available_files_response.rb', line 43 def device_platform_id @device_platform_id end |
#distribution_type ⇒ String
Valid values
39 40 41 |
# File 'lib/verizon/models/retrieves_available_files_response.rb', line 39 def distribution_type @distribution_type end |
#file_name ⇒ String
ThingSpace-generated name of the file. You will use this name when listing or scheduling campaigns for the file.
15 16 17 |
# File 'lib/verizon/models/retrieves_available_files_response.rb', line 15 def file_name @file_name end |
#file_version ⇒ String
Version of the file.
19 20 21 |
# File 'lib/verizon/models/retrieves_available_files_response.rb', line 19 def file_version @file_version end |
#local_target_path ⇒ String
Local target path on the device.
35 36 37 |
# File 'lib/verizon/models/retrieves_available_files_response.rb', line 35 def local_target_path @local_target_path end |
#make ⇒ String
The software-applicable device make.
27 28 29 |
# File 'lib/verizon/models/retrieves_available_files_response.rb', line 27 def make @make end |
#model ⇒ String
The software-applicable device model.
31 32 33 |
# File 'lib/verizon/models/retrieves_available_files_response.rb', line 31 def model @model end |
#release_note ⇒ String
Software release note.
23 24 25 |
# File 'lib/verizon/models/retrieves_available_files_response.rb', line 23 def release_note @release_note end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/verizon/models/retrieves_available_files_response.rb', line 97 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. file_name = hash.key?('fileName') ? hash['fileName'] : SKIP file_version = hash.key?('fileVersion') ? hash['fileVersion'] : SKIP release_note = hash.key?('releaseNote') ? hash['releaseNote'] : SKIP make = hash.key?('make') ? hash['make'] : SKIP model = hash.key?('model') ? hash['model'] : SKIP local_target_path = hash.key?('localTargetPath') ? hash['localTargetPath'] : SKIP distribution_type = hash.key?('distributionType') ? hash['distributionType'] : SKIP device_platform_id = hash.key?('devicePlatformId') ? hash['devicePlatformId'] : SKIP # Create object from extracted values. RetrievesAvailableFilesResponse.new(file_name, file_version, release_note, make, model, local_target_path, distribution_type, device_platform_id) end |
.names ⇒ Object
A mapping from model property names to API property names.
46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/verizon/models/retrieves_available_files_response.rb', line 46 def self.names @_hash = {} if @_hash.nil? @_hash['file_name'] = 'fileName' @_hash['file_version'] = 'fileVersion' @_hash['release_note'] = 'releaseNote' @_hash['make'] = 'make' @_hash['model'] = 'model' @_hash['local_target_path'] = 'localTargetPath' @_hash['distribution_type'] = 'distributionType' @_hash['device_platform_id'] = 'devicePlatformId' @_hash end |
.nullables ⇒ Object
An array for nullable fields
74 75 76 |
# File 'lib/verizon/models/retrieves_available_files_response.rb', line 74 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/verizon/models/retrieves_available_files_response.rb', line 60 def self.optionals %w[ file_name file_version release_note make model local_target_path distribution_type device_platform_id ] end |