apcera 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a579516160db9ae512619f98c785dd2ca369843
4
- data.tar.gz: a074f6b0e160609cceb2ee16e2317f538c0a54d6
3
+ metadata.gz: 38ca00de9ab3b81ae17071ea7c1e7825cb98e2ae
4
+ data.tar.gz: 08cc4263c0ed8fcb6906209a17035392f564cf18
5
5
  SHA512:
6
- metadata.gz: 942b850696a2ef0db3443f98db246342406ace7449625536a8a3b99cc1889b71b8d7d2bb7d7094c083a7a84b00e61e5ddb2c91b4c5ebf60107382bc832b6d5b9
7
- data.tar.gz: ac3fdbbd1abf46a29cf3d81894e96e7e1f111b138edba80137aab04895b376d3cdd60415e7ba826f9dd85ba453e6c06038fa46dc348df7186b9be481c0007b0a
6
+ metadata.gz: a895fc2271ea136c0441f40280a07069cad50a2d369acd792a78991bb2f156bf61ea728f1c05c2577e9e3f4335d74f147545340862e9c42999e23c48257093b6
7
+ data.tar.gz: affe9f1924092daff214940baa8df1ca47f63fbdca5a2a752e5dac76d36b1102ac15cf8e46587c9030dd64afec6fef2e9c9cd48e8235a9de8aca74ea39a2c3a0
@@ -1,7 +1,7 @@
1
1
  module Apcera
2
2
  #
3
3
  class Job < BaseObject
4
- attr_accessor :bindings, :created_at, :created_by, :docker_origin, :fqn, :hard_scheduling_tags, :health, :logs, :name, :num_instances, :packages, :ports, :processes, :resources, :restart, :rollout, :soft_scheduling_tags, :state, :tags, :updated_at, :updated_by, :uuid, :version_id, :weight
4
+ attr_accessor :bindings, :created_at, :created_by, :docker_origin, :fqn, :hard_scheduling_tags, :health, :logs, :name, :network_ref, :num_instances, :packages, :ports, :processes, :resources, :restart, :rollout, :soft_scheduling_tags, :state, :tags, :updated_at, :updated_by, :uuid, :version_id, :weight
5
5
  # attribute mapping from ruby-style variable name to JSON key
6
6
  def self.attribute_map
7
7
  {
@@ -33,6 +33,9 @@ module Apcera
33
33
  # Name of the job.
34
34
  :'name' => :'name',
35
35
 
36
+ # An object that contains information about the [virtual network](#virtualnetwork) the job belongs to.
37
+ :'network_ref' => :'network_ref',
38
+
36
39
  # The number of job instances currently running.
37
40
  :'num_instances' => :'num_instances',
38
41
 
@@ -93,10 +96,11 @@ module Apcera
93
96
  :'health' => :'JobHealth',
94
97
  :'logs' => :'Array<Log>',
95
98
  :'name' => :'String',
99
+ :'network_ref' => :'JobNetworkReference',
96
100
  :'num_instances' => :'Integer',
97
101
  :'packages' => :'Array<PackageInfo>',
98
102
  :'ports' => :'Array<Port>',
99
- :'processes' => :'Process',
103
+ :'processes' => :'Hash<String, Process>',
100
104
  :'resources' => :'Resource',
101
105
  :'restart' => :'RestartConfig',
102
106
  :'rollout' => :'RolloutConfig',
@@ -161,6 +165,10 @@ module Apcera
161
165
  self.name = attributes[:'name']
162
166
  end
163
167
 
168
+ if attributes[:'network_ref']
169
+ self.network_ref = attributes[:'network_ref']
170
+ end
171
+
164
172
  if attributes[:'num_instances']
165
173
  self.num_instances = attributes[:'num_instances']
166
174
  end
@@ -178,7 +186,9 @@ module Apcera
178
186
  end
179
187
 
180
188
  if attributes[:'processes']
181
- self.processes = attributes[:'processes']
189
+ if (value = attributes[:'processes']).is_a?(Array)
190
+ self.processes = value
191
+ end
182
192
  end
183
193
 
184
194
  if attributes[:'resources']
@@ -0,0 +1,37 @@
1
+ module Apcera
2
+ #
3
+ class JobNetworkReference < BaseObject
4
+ attr_accessor :uuid
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ # UUID of the virtual network the job belongs to.
10
+ :'uuid' => :'uuid'
11
+
12
+ }
13
+ end
14
+
15
+ # attribute type
16
+ def self.swagger_types
17
+ {
18
+ :'uuid' => :'String'
19
+
20
+ }
21
+ end
22
+
23
+ def initialize(attributes = {})
24
+ return if !attributes.is_a?(Hash) || attributes.empty?
25
+
26
+ # convert string to symbol for hash key
27
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
28
+
29
+
30
+ if attributes[:'uuid']
31
+ self.uuid = attributes[:'uuid']
32
+ end
33
+
34
+ end
35
+
36
+ end
37
+ end
@@ -1,13 +1,19 @@
1
1
  module Apcera
2
2
  #
3
3
  class SemiPipeRuleAction < BaseObject
4
- attr_accessor :dummy
4
+ attr_accessor :commands, :uri, :inline
5
5
  # attribute mapping from ruby-style variable name to JSON key
6
6
  def self.attribute_map
7
7
  {
8
8
 
9
- #
10
- :'dummy' => :'dummy'
9
+ # Commands that will trigger the hook or notification.
10
+ :'commands' => :'commands',
11
+
12
+ # URL to receive the hook or notification request. Required for notifications, but optional for hooks.
13
+ :'uri' => :'uri',
14
+
15
+ # If no URL is given, you can specify an action directly. URL and action cannot be specified at the same time. Action can be &#39;allow&#39; or &#39;deny&#39;.
16
+ :'inline' => :'inline'
11
17
 
12
18
  }
13
19
  end
@@ -15,7 +21,9 @@ module Apcera
15
21
  # attribute type
16
22
  def self.swagger_types
17
23
  {
18
- :'dummy' => :'String'
24
+ :'commands' => :'Array<String>',
25
+ :'uri' => :'String',
26
+ :'inline' => :'String'
19
27
 
20
28
  }
21
29
  end
@@ -27,8 +35,18 @@ module Apcera
27
35
  attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
28
36
 
29
37
 
30
- if attributes[:'dummy']
31
- self.dummy = attributes[:'dummy']
38
+ if attributes[:'commands']
39
+ if (value = attributes[:'commands']).is_a?(Array)
40
+ self.commands = value
41
+ end
42
+ end
43
+
44
+ if attributes[:'uri']
45
+ self.uri = attributes[:'uri']
46
+ end
47
+
48
+ if attributes[:'inline']
49
+ self.inline = attributes[:'inline']
32
50
  end
33
51
 
34
52
  end
@@ -0,0 +1,37 @@
1
+ module Apcera
2
+ #
3
+ class SubnetInfo < BaseObject
4
+ attr_accessor :subnet
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ # The subnet assigned to a virtual network in CIDR notation (`192.168.1.0/24`, for example).
10
+ :'subnet' => :'Subnet'
11
+
12
+ }
13
+ end
14
+
15
+ # attribute type
16
+ def self.swagger_types
17
+ {
18
+ :'subnet' => :'String'
19
+
20
+ }
21
+ end
22
+
23
+ def initialize(attributes = {})
24
+ return if !attributes.is_a?(Hash) || attributes.empty?
25
+
26
+ # convert string to symbol for hash key
27
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
28
+
29
+
30
+ if attributes[:'Subnet']
31
+ self.subnet = attributes[:'Subnet']
32
+ end
33
+
34
+ end
35
+
36
+ end
37
+ end
@@ -0,0 +1,119 @@
1
+ module Apcera
2
+ #
3
+ class VirtualNetwork < BaseObject
4
+ attr_accessor :fqn, :name, :description, :uuid, :subnet_info, :updated_at, :updated_by, :created_at, :created_by, :network_end_points, :version_id
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ # Network&#39;s fully-qualified name.
10
+ :'fqn' => :'fqn',
11
+
12
+ # Network&#39;s local name.
13
+ :'name' => :'name',
14
+
15
+ # Network description.
16
+ :'description' => :'description',
17
+
18
+ # Network&#39;s unique ID.
19
+ :'uuid' => :'uuid',
20
+
21
+ # Contains information about the network&#39;s subnet.
22
+ :'subnet_info' => :'subnet_info',
23
+
24
+ # UNIX timestamp when the network was last updated.
25
+ :'updated_at' => :'updated_at',
26
+
27
+ # Principal name of user who last updated the network.
28
+ :'updated_by' => :'updated_by',
29
+
30
+ # UNIX timestamp when the network was created.
31
+ :'created_at' => :'created_at',
32
+
33
+ # Principal name of user who created the network.
34
+ :'created_by' => :'created_by',
35
+
36
+ # A list of network endpoints in the network.
37
+ :'network_end_points' => :'network_end_points',
38
+
39
+ # Auto-incrementing version number for the network.
40
+ :'version_id' => :'version_id'
41
+
42
+ }
43
+ end
44
+
45
+ # attribute type
46
+ def self.swagger_types
47
+ {
48
+ :'fqn' => :'String',
49
+ :'name' => :'String',
50
+ :'description' => :'String',
51
+ :'uuid' => :'String',
52
+ :'subnet_info' => :'SubnetInfo',
53
+ :'updated_at' => :'Float',
54
+ :'updated_by' => :'String',
55
+ :'created_at' => :'Float',
56
+ :'created_by' => :'String',
57
+ :'network_end_points' => :'Array<VirtualNetworkEndpoint>',
58
+ :'version_id' => :'Integer'
59
+
60
+ }
61
+ end
62
+
63
+ def initialize(attributes = {})
64
+ return if !attributes.is_a?(Hash) || attributes.empty?
65
+
66
+ # convert string to symbol for hash key
67
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
68
+
69
+
70
+ if attributes[:'fqn']
71
+ self.fqn = attributes[:'fqn']
72
+ end
73
+
74
+ if attributes[:'name']
75
+ self.name = attributes[:'name']
76
+ end
77
+
78
+ if attributes[:'description']
79
+ self.description = attributes[:'description']
80
+ end
81
+
82
+ if attributes[:'uuid']
83
+ self.uuid = attributes[:'uuid']
84
+ end
85
+
86
+ if attributes[:'subnet_info']
87
+ self.subnet_info = attributes[:'subnet_info']
88
+ end
89
+
90
+ if attributes[:'updated_at']
91
+ self.updated_at = attributes[:'updated_at']
92
+ end
93
+
94
+ if attributes[:'updated_by']
95
+ self.updated_by = attributes[:'updated_by']
96
+ end
97
+
98
+ if attributes[:'created_at']
99
+ self.created_at = attributes[:'created_at']
100
+ end
101
+
102
+ if attributes[:'created_by']
103
+ self.created_by = attributes[:'created_by']
104
+ end
105
+
106
+ if attributes[:'network_end_points']
107
+ if (value = attributes[:'network_end_points']).is_a?(Array)
108
+ self.network_end_points = value
109
+ end
110
+ end
111
+
112
+ if attributes[:'version_id']
113
+ self.version_id = attributes[:'version_id']
114
+ end
115
+
116
+ end
117
+
118
+ end
119
+ end
@@ -0,0 +1,63 @@
1
+ module Apcera
2
+ #
3
+ class VirtualNetworkEndpoint < BaseObject
4
+ attr_accessor :uuid, :fqn, :network_fqn, :end_point_interface
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ # The UUID of the network endpoint.
10
+ :'uuid' => :'uuid',
11
+
12
+ # Fully-qualified name of the job the endpoint is attached to.
13
+ :'fqn' => :'fqn',
14
+
15
+ # Fully-qualified name of the network that the endpoint belongs to.
16
+ :'network_fqn' => :'network_fqn',
17
+
18
+ # A list of interfaces associated with the job.
19
+ :'end_point_interface' => :'end_point_interface'
20
+
21
+ }
22
+ end
23
+
24
+ # attribute type
25
+ def self.swagger_types
26
+ {
27
+ :'uuid' => :'String',
28
+ :'fqn' => :'String',
29
+ :'network_fqn' => :'String',
30
+ :'end_point_interface' => :'Array<VirtualNetworkEndpointInterface>'
31
+
32
+ }
33
+ end
34
+
35
+ def initialize(attributes = {})
36
+ return if !attributes.is_a?(Hash) || attributes.empty?
37
+
38
+ # convert string to symbol for hash key
39
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
40
+
41
+
42
+ if attributes[:'uuid']
43
+ self.uuid = attributes[:'uuid']
44
+ end
45
+
46
+ if attributes[:'fqn']
47
+ self.fqn = attributes[:'fqn']
48
+ end
49
+
50
+ if attributes[:'network_fqn']
51
+ self.network_fqn = attributes[:'network_fqn']
52
+ end
53
+
54
+ if attributes[:'end_point_interface']
55
+ if (value = attributes[:'end_point_interface']).is_a?(Array)
56
+ self.end_point_interface = value
57
+ end
58
+ end
59
+
60
+ end
61
+
62
+ end
63
+ end
@@ -0,0 +1,53 @@
1
+ module Apcera
2
+ #
3
+ class VirtualNetworkEndpointInterface < BaseObject
4
+ attr_accessor :uuid, :hardware_addr, :ipv4_addr
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ # The UUID of the network endpoint.
10
+ :'uuid' => :'uuid',
11
+
12
+ # Unique identifier assigned to the network interface.
13
+ :'hardware_addr' => :'hardware_addr',
14
+
15
+ # Virtual IP address assigned to the instance.
16
+ :'ipv4_addr' => :'ipv4_addr'
17
+
18
+ }
19
+ end
20
+
21
+ # attribute type
22
+ def self.swagger_types
23
+ {
24
+ :'uuid' => :'String',
25
+ :'hardware_addr' => :'String',
26
+ :'ipv4_addr' => :'String'
27
+
28
+ }
29
+ end
30
+
31
+ def initialize(attributes = {})
32
+ return if !attributes.is_a?(Hash) || attributes.empty?
33
+
34
+ # convert string to symbol for hash key
35
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
36
+
37
+
38
+ if attributes[:'uuid']
39
+ self.uuid = attributes[:'uuid']
40
+ end
41
+
42
+ if attributes[:'hardware_addr']
43
+ self.hardware_addr = attributes[:'hardware_addr']
44
+ end
45
+
46
+ if attributes[:'ipv4_addr']
47
+ self.ipv4_addr = attributes[:'ipv4_addr']
48
+ end
49
+
50
+ end
51
+
52
+ end
53
+ end
@@ -1,3 +1,3 @@
1
1
  module Apcera
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/apcera.rb CHANGED
@@ -25,6 +25,7 @@ require 'apcera/models/instance_state'
25
25
  require 'apcera/models/instances'
26
26
  require 'apcera/models/job'
27
27
  require 'apcera/models/job_health'
28
+ require 'apcera/models/job_network_reference'
28
29
  require 'apcera/models/job_preferences'
29
30
  require 'apcera/models/log'
30
31
  require 'apcera/models/metric_series'
@@ -51,12 +52,16 @@ require 'apcera/models/semi_pipe_rule'
51
52
  require 'apcera/models/semi_pipe_rule_action'
52
53
  require 'apcera/models/stager_job'
53
54
  require 'apcera/models/staging_pipeline'
55
+ require 'apcera/models/subnet_info'
54
56
  require 'apcera/models/sub_task'
55
57
  require 'apcera/models/task'
56
58
  require 'apcera/models/task_event'
57
59
  require 'apcera/models/task_progress'
58
60
  require 'apcera/models/unbind_parameter_object'
59
61
  require 'apcera/models/unlink_parameter_object'
62
+ require 'apcera/models/virtual_network'
63
+ require 'apcera/models/virtual_network_endpoint'
64
+ require 'apcera/models/virtual_network_endpoint_interface'
60
65
 
61
66
  # APIs
62
67
  require 'apcera/api/instances_api'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apcera
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-08 00:00:00.000000000 Z
11
+ date: 2016-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -233,6 +233,7 @@ files:
233
233
  - lib/apcera/models/instances.rb
234
234
  - lib/apcera/models/job.rb
235
235
  - lib/apcera/models/job_health.rb
236
+ - lib/apcera/models/job_network_reference.rb
236
237
  - lib/apcera/models/job_preferences.rb
237
238
  - lib/apcera/models/log.rb
238
239
  - lib/apcera/models/metric_series.rb
@@ -260,11 +261,15 @@ files:
260
261
  - lib/apcera/models/stager_job.rb
261
262
  - lib/apcera/models/staging_pipeline.rb
262
263
  - lib/apcera/models/sub_task.rb
264
+ - lib/apcera/models/subnet_info.rb
263
265
  - lib/apcera/models/task.rb
264
266
  - lib/apcera/models/task_event.rb
265
267
  - lib/apcera/models/task_progress.rb
266
268
  - lib/apcera/models/unbind_parameter_object.rb
267
269
  - lib/apcera/models/unlink_parameter_object.rb
270
+ - lib/apcera/models/virtual_network.rb
271
+ - lib/apcera/models/virtual_network_endpoint.rb
272
+ - lib/apcera/models/virtual_network_endpoint_interface.rb
268
273
  - lib/apcera/version.rb
269
274
  homepage: http://apcera.com
270
275
  licenses: