Class: UntitledApi::ApiV1OrgsLicensesResponse

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/untitled_api/models/api_v1_orgs_licenses_response.rb

Overview

Response data

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_hash, #to_json

Constructor Details

#initialize(summary = SKIP, fully_loaded = SKIP, entitled = SKIP, licenses = SKIP, vna_ui = SKIP, vna_insufficient = SKIP, svna_ui = SKIP, svna_insufficient = SKIP, wvna_ui = SKIP, wvna_insufficient = SKIP, trial_enabled = SKIP, trial_end_time = SKIP) ⇒ ApiV1OrgsLicensesResponse

Returns a new instance of ApiV1OrgsLicensesResponse.



101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# File 'lib/untitled_api/models/api_v1_orgs_licenses_response.rb', line 101

def initialize(summary = SKIP,
               fully_loaded = SKIP,
               entitled = SKIP,
               licenses = SKIP,
               vna_ui = SKIP,
               vna_insufficient = SKIP,
               svna_ui = SKIP,
               svna_insufficient = SKIP,
               wvna_ui = SKIP,
               wvna_insufficient = SKIP,
               trial_enabled = SKIP,
               trial_end_time = SKIP)
  @summary = summary unless summary == SKIP
  @fully_loaded = fully_loaded unless fully_loaded == SKIP
  @entitled = entitled unless entitled == SKIP
  @licenses = licenses unless licenses == SKIP
  @vna_ui = vna_ui unless vna_ui == SKIP
  @vna_insufficient = vna_insufficient unless vna_insufficient == SKIP
  @svna_ui = svna_ui unless svna_ui == SKIP
  @svna_insufficient = svna_insufficient unless svna_insufficient == SKIP
  @wvna_ui = wvna_ui unless wvna_ui == SKIP
  @wvna_insufficient = wvna_insufficient unless wvna_insufficient == SKIP
  @trial_enabled = trial_enabled unless trial_enabled == SKIP
  @trial_end_time = trial_end_time unless trial_end_time == SKIP
end

Instance Attribute Details

#entitledObject

TODO: Write general description for this method

Returns:

  • (Object)


22
23
24
# File 'lib/untitled_api/models/api_v1_orgs_licenses_response.rb', line 22

def entitled
  @entitled
end

#fully_loadedObject

TODO: Write general description for this method

Returns:

  • (Object)


18
19
20
# File 'lib/untitled_api/models/api_v1_orgs_licenses_response.rb', line 18

def fully_loaded
  @fully_loaded
end

#licensesObject

TODO: Write general description for this method

Returns:

  • (Object)


26
27
28
# File 'lib/untitled_api/models/api_v1_orgs_licenses_response.rb', line 26

def licenses
  @licenses
end

#summaryObject

TODO: Write general description for this method

Returns:

  • (Object)


14
15
16
# File 'lib/untitled_api/models/api_v1_orgs_licenses_response.rb', line 14

def summary
  @summary
end

#svna_insufficientObject

TODO: Write general description for this method

Returns:

  • (Object)


42
43
44
# File 'lib/untitled_api/models/api_v1_orgs_licenses_response.rb', line 42

def svna_insufficient
  @svna_insufficient
end

#svna_uiObject

TODO: Write general description for this method

Returns:

  • (Object)


38
39
40
# File 'lib/untitled_api/models/api_v1_orgs_licenses_response.rb', line 38

def svna_ui
  @svna_ui
end

#trial_enabledObject

TODO: Write general description for this method

Returns:

  • (Object)


54
55
56
# File 'lib/untitled_api/models/api_v1_orgs_licenses_response.rb', line 54

def trial_enabled
  @trial_enabled
end

#trial_end_timeFloat

TODO: Write general description for this method

Returns:

  • (Float)


58
59
60
# File 'lib/untitled_api/models/api_v1_orgs_licenses_response.rb', line 58

def trial_end_time
  @trial_end_time
end

#vna_insufficientObject

TODO: Write general description for this method

Returns:

  • (Object)


34
35
36
# File 'lib/untitled_api/models/api_v1_orgs_licenses_response.rb', line 34

def vna_insufficient
  @vna_insufficient
end

#vna_uiObject

TODO: Write general description for this method

Returns:

  • (Object)


30
31
32
# File 'lib/untitled_api/models/api_v1_orgs_licenses_response.rb', line 30

def vna_ui
  @vna_ui
end

#wvna_insufficientObject

TODO: Write general description for this method

Returns:

  • (Object)


50
51
52
# File 'lib/untitled_api/models/api_v1_orgs_licenses_response.rb', line 50

def wvna_insufficient
  @wvna_insufficient
end

#wvna_uiObject

TODO: Write general description for this method

Returns:

  • (Object)


46
47
48
# File 'lib/untitled_api/models/api_v1_orgs_licenses_response.rb', line 46

def wvna_ui
  @wvna_ui
end

Class Method Details

.from_hash(hash) ⇒ Object

Creates an instance of the object from a hash.



128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# File 'lib/untitled_api/models/api_v1_orgs_licenses_response.rb', line 128

def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  summary = hash.key?('summary') ? hash['summary'] : SKIP
  fully_loaded = hash.key?('fully_loaded') ? hash['fully_loaded'] : SKIP
  entitled = hash.key?('entitled') ? hash['entitled'] : SKIP
  licenses = hash.key?('licenses') ? hash['licenses'] : SKIP
  vna_ui = hash.key?('vna_ui') ? hash['vna_ui'] : SKIP
  vna_insufficient =
    hash.key?('vna_insufficient') ? hash['vna_insufficient'] : SKIP
  svna_ui = hash.key?('svna_ui') ? hash['svna_ui'] : SKIP
  svna_insufficient =
    hash.key?('svna_insufficient') ? hash['svna_insufficient'] : SKIP
  wvna_ui = hash.key?('wvna_ui') ? hash['wvna_ui'] : SKIP
  wvna_insufficient =
    hash.key?('wvna_insufficient') ? hash['wvna_insufficient'] : SKIP
  trial_enabled = hash.key?('trial_enabled') ? hash['trial_enabled'] : SKIP
  trial_end_time =
    hash.key?('trial_end_time') ? hash['trial_end_time'] : SKIP

  # Create object from extracted values.
  ApiV1OrgsLicensesResponse.new(summary,
                                fully_loaded,
                                entitled,
                                licenses,
                                vna_ui,
                                vna_insufficient,
                                svna_ui,
                                svna_insufficient,
                                wvna_ui,
                                wvna_insufficient,
                                trial_enabled,
                                trial_end_time)
end

.namesObject

A mapping from model property names to API property names.



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/untitled_api/models/api_v1_orgs_licenses_response.rb', line 61

def self.names
  @_hash = {} if @_hash.nil?
  @_hash['summary'] = 'summary'
  @_hash['fully_loaded'] = 'fully_loaded'
  @_hash['entitled'] = 'entitled'
  @_hash['licenses'] = 'licenses'
  @_hash['vna_ui'] = 'vna_ui'
  @_hash['vna_insufficient'] = 'vna_insufficient'
  @_hash['svna_ui'] = 'svna_ui'
  @_hash['svna_insufficient'] = 'svna_insufficient'
  @_hash['wvna_ui'] = 'wvna_ui'
  @_hash['wvna_insufficient'] = 'wvna_insufficient'
  @_hash['trial_enabled'] = 'trial_enabled'
  @_hash['trial_end_time'] = 'trial_end_time'
  @_hash
end

.nullablesObject

An array for nullable fields



97
98
99
# File 'lib/untitled_api/models/api_v1_orgs_licenses_response.rb', line 97

def self.nullables
  []
end

.optionalsObject

An array for optional fields



79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'lib/untitled_api/models/api_v1_orgs_licenses_response.rb', line 79

def self.optionals
  %w[
    summary
    fully_loaded
    entitled
    licenses
    vna_ui
    vna_insufficient
    svna_ui
    svna_insufficient
    wvna_ui
    wvna_insufficient
    trial_enabled
    trial_end_time
  ]
end