Class: UntitledApi::InternalTopologiesWorkerStartedRequest
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- UntitledApi::InternalTopologiesWorkerStartedRequest
- Defined in:
- lib/untitled_api/models/internal_topologies_worker_started_request.rb
Overview
Request parameters
Instance Attribute Summary collapse
-
#env ⇒ String
TODO: Write general description for this method.
-
#hostname ⇒ String
TODO: Write general description for this method.
-
#id ⇒ String
TODO: Write general description for this method.
-
#mobius_ver ⇒ String
TODO: Write general description for this method.
-
#name ⇒ String
TODO: Write general description for this method.
-
#owners ⇒ Object
TODO: Write general description for this method.
-
#provider ⇒ String
TODO: Write general description for this method.
-
#topo_ver ⇒ String
TODO: Write general description for this method.
-
#topology ⇒ String
TODO: Write general description for this method.
-
#workers ⇒ Float
TODO: Write general description for this method.
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(topology = SKIP, name = SKIP, hostname = SKIP, topo_ver = SKIP, mobius_ver = SKIP, workers = SKIP, owners = SKIP, provider = SKIP, env = SKIP, id = SKIP) ⇒ InternalTopologiesWorkerStartedRequest
constructor
A new instance of InternalTopologiesWorkerStartedRequest.
Methods inherited from BaseModel
Constructor Details
#initialize(topology = SKIP, name = SKIP, hostname = SKIP, topo_ver = SKIP, mobius_ver = SKIP, workers = SKIP, owners = SKIP, provider = SKIP, env = SKIP, id = SKIP) ⇒ InternalTopologiesWorkerStartedRequest
Returns a new instance of InternalTopologiesWorkerStartedRequest.
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
# File 'lib/untitled_api/models/internal_topologies_worker_started_request.rb', line 89 def initialize(topology = SKIP, name = SKIP, hostname = SKIP, topo_ver = SKIP, mobius_ver = SKIP, workers = SKIP, owners = SKIP, provider = SKIP, env = SKIP, id = SKIP) @topology = topology unless topology == SKIP @name = name unless name == SKIP @hostname = hostname unless hostname == SKIP @topo_ver = topo_ver unless topo_ver == SKIP @mobius_ver = mobius_ver unless mobius_ver == SKIP @workers = workers unless workers == SKIP @owners = owners unless owners == SKIP @provider = provider unless provider == SKIP @env = env unless env == SKIP @id = id unless id == SKIP end |
Instance Attribute Details
#env ⇒ String
TODO: Write general description for this method
46 47 48 |
# File 'lib/untitled_api/models/internal_topologies_worker_started_request.rb', line 46 def env @env end |
#hostname ⇒ String
TODO: Write general description for this method
22 23 24 |
# File 'lib/untitled_api/models/internal_topologies_worker_started_request.rb', line 22 def hostname @hostname end |
#id ⇒ String
TODO: Write general description for this method
50 51 52 |
# File 'lib/untitled_api/models/internal_topologies_worker_started_request.rb', line 50 def id @id end |
#mobius_ver ⇒ String
TODO: Write general description for this method
30 31 32 |
# File 'lib/untitled_api/models/internal_topologies_worker_started_request.rb', line 30 def mobius_ver @mobius_ver end |
#name ⇒ String
TODO: Write general description for this method
18 19 20 |
# File 'lib/untitled_api/models/internal_topologies_worker_started_request.rb', line 18 def name @name end |
#owners ⇒ Object
TODO: Write general description for this method
38 39 40 |
# File 'lib/untitled_api/models/internal_topologies_worker_started_request.rb', line 38 def owners @owners end |
#provider ⇒ String
TODO: Write general description for this method
42 43 44 |
# File 'lib/untitled_api/models/internal_topologies_worker_started_request.rb', line 42 def provider @provider end |
#topo_ver ⇒ String
TODO: Write general description for this method
26 27 28 |
# File 'lib/untitled_api/models/internal_topologies_worker_started_request.rb', line 26 def topo_ver @topo_ver end |
#topology ⇒ String
TODO: Write general description for this method
14 15 16 |
# File 'lib/untitled_api/models/internal_topologies_worker_started_request.rb', line 14 def topology @topology end |
#workers ⇒ Float
TODO: Write general description for this method
34 35 36 |
# File 'lib/untitled_api/models/internal_topologies_worker_started_request.rb', line 34 def workers @workers end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 |
# File 'lib/untitled_api/models/internal_topologies_worker_started_request.rb', line 112 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. topology = hash.key?('topology') ? hash['topology'] : SKIP name = hash.key?('name') ? hash['name'] : SKIP hostname = hash.key?('hostname') ? hash['hostname'] : SKIP topo_ver = hash.key?('topo_ver') ? hash['topo_ver'] : SKIP mobius_ver = hash.key?('mobius_ver') ? hash['mobius_ver'] : SKIP workers = hash.key?('workers') ? hash['workers'] : SKIP owners = hash.key?('owners') ? hash['owners'] : SKIP provider = hash.key?('provider') ? hash['provider'] : SKIP env = hash.key?('env') ? hash['env'] : SKIP id = hash.key?('id') ? hash['id'] : SKIP # Create object from extracted values. InternalTopologiesWorkerStartedRequest.new(topology, name, hostname, topo_ver, mobius_ver, workers, owners, provider, env, id) end |
.names ⇒ Object
A mapping from model property names to API property names.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/untitled_api/models/internal_topologies_worker_started_request.rb', line 53 def self.names @_hash = {} if @_hash.nil? @_hash['topology'] = 'topology' @_hash['name'] = 'name' @_hash['hostname'] = 'hostname' @_hash['topo_ver'] = 'topo_ver' @_hash['mobius_ver'] = 'mobius_ver' @_hash['workers'] = 'workers' @_hash['owners'] = 'owners' @_hash['provider'] = 'provider' @_hash['env'] = 'env' @_hash['id'] = 'id' @_hash end |
.nullables ⇒ Object
An array for nullable fields
85 86 87 |
# File 'lib/untitled_api/models/internal_topologies_worker_started_request.rb', line 85 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/untitled_api/models/internal_topologies_worker_started_request.rb', line 69 def self.optionals %w[ topology name hostname topo_ver mobius_ver workers owners provider env id ] end |