Class: UntitledApi::InternalTopologiesWorkerStartedRequest

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

Overview

Request parameters

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_hash, #to_json

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

#envString

TODO: Write general description for this method

Returns:

  • (String)


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

def env
  @env
end

#hostnameString

TODO: Write general description for this method

Returns:

  • (String)


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

def hostname
  @hostname
end

#idString

TODO: Write general description for this method

Returns:

  • (String)


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

def id
  @id
end

#mobius_verString

TODO: Write general description for this method

Returns:

  • (String)


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

def mobius_ver
  @mobius_ver
end

#nameString

TODO: Write general description for this method

Returns:

  • (String)


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

def name
  @name
end

#ownersObject

TODO: Write general description for this method

Returns:

  • (Object)


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

def owners
  @owners
end

#providerString

TODO: Write general description for this method

Returns:

  • (String)


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

def provider
  @provider
end

#topo_verString

TODO: Write general description for this method

Returns:

  • (String)


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

def topo_ver
  @topo_ver
end

#topologyString

TODO: Write general description for this method

Returns:

  • (String)


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

def topology
  @topology
end

#workersFloat

TODO: Write general description for this method

Returns:

  • (Float)


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

.namesObject

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

.nullablesObject

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

.optionalsObject

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