apcera 0.1.7.0 → 0.1.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,87 @@
1
+ module Apcera
2
+ #
3
+ class VersionInfo < BaseObject
4
+ attr_accessor :build_id, :build_number, :download_urls, :major, :minor, :patch, :version
5
+ # attribute mapping from ruby-style variable name to JSON key
6
+ def self.attribute_map
7
+ {
8
+
9
+ # Cluster&#39;s build ID.
10
+ :'build_id' => :'build_id',
11
+
12
+ # Cluster build number composed of the cluster&#39;s major, minor and patch version numbers (for example, \&quot;2.2.0\&quot;).
13
+ :'build_number' => :'build_number',
14
+
15
+ # Provides download links for versions of APC compatible this cluster.
16
+ :'download_urls' => :'download_urls',
17
+
18
+ # Major Apcera cluster version number.
19
+ :'major' => :'major',
20
+
21
+ # Minor Apcera cluster version number.
22
+ :'minor' => :'minor',
23
+
24
+ # Cluster patch number.
25
+ :'patch' => :'patch',
26
+
27
+ # Cluster version string composed of the cluster&#39;s major, minor and patch version numbers (for example, \&quot;2.2.0\&quot;).
28
+ :'version' => :'version'
29
+
30
+ }
31
+ end
32
+
33
+ # attribute type
34
+ def self.swagger_types
35
+ {
36
+ :'build_id' => :'String',
37
+ :'build_number' => :'String',
38
+ :'download_urls' => :'Hash<String, APCDownloadURL>',
39
+ :'major' => :'Integer',
40
+ :'minor' => :'Integer',
41
+ :'patch' => :'Integer',
42
+ :'version' => :'String'
43
+
44
+ }
45
+ end
46
+
47
+ def initialize(attributes = {})
48
+ return if !attributes.is_a?(Hash) || attributes.empty?
49
+
50
+ # convert string to symbol for hash key
51
+ attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
52
+
53
+
54
+ if attributes[:'build_id']
55
+ self.build_id = attributes[:'build_id']
56
+ end
57
+
58
+ if attributes[:'build_number']
59
+ self.build_number = attributes[:'build_number']
60
+ end
61
+
62
+ if attributes[:'download_urls']
63
+ if (value = attributes[:'download_urls']).is_a?(Array)
64
+ self.download_urls = value
65
+ end
66
+ end
67
+
68
+ if attributes[:'major']
69
+ self.major = attributes[:'major']
70
+ end
71
+
72
+ if attributes[:'minor']
73
+ self.minor = attributes[:'minor']
74
+ end
75
+
76
+ if attributes[:'patch']
77
+ self.patch = attributes[:'patch']
78
+ end
79
+
80
+ if attributes[:'version']
81
+ self.version = attributes[:'version']
82
+ end
83
+
84
+ end
85
+
86
+ end
87
+ end
@@ -1,22 +1,28 @@
1
1
  module Apcera
2
2
  #
3
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
4
+ attr_accessor :created_at, :created_by, :description, :fqn, :name, :network_end_points, :subnet_info, :updated_at, :updated_by, :uuid, :version_id
5
5
  # attribute mapping from ruby-style variable name to JSON key
6
6
  def self.attribute_map
7
7
  {
8
8
 
9
+ # UNIX timestamp when the network was created.
10
+ :'created_at' => :'created_at',
11
+
12
+ # Principal name of user who created the network.
13
+ :'created_by' => :'created_by',
14
+
15
+ # Network description.
16
+ :'description' => :'description',
17
+
9
18
  # Network&#39;s fully-qualified name.
10
19
  :'fqn' => :'fqn',
11
20
 
12
21
  # Network&#39;s local name.
13
22
  :'name' => :'name',
14
23
 
15
- # Network description.
16
- :'description' => :'description',
17
-
18
- # Network&#39;s unique ID.
19
- :'uuid' => :'uuid',
24
+ # A list of network endpoints in the network.
25
+ :'network_end_points' => :'network_end_points',
20
26
 
21
27
  # Contains information about the network&#39;s subnet.
22
28
  :'subnet_info' => :'subnet_info',
@@ -27,14 +33,8 @@ module Apcera
27
33
  # Principal name of user who last updated the network.
28
34
  :'updated_by' => :'updated_by',
29
35
 
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',
36
+ # Network&#39;s unique ID.
37
+ :'uuid' => :'uuid',
38
38
 
39
39
  # Auto-incrementing version number for the network.
40
40
  :'version_id' => :'version_id'
@@ -45,16 +45,16 @@ module Apcera
45
45
  # attribute type
46
46
  def self.swagger_types
47
47
  {
48
+ :'created_at' => :'Float',
49
+ :'created_by' => :'String',
50
+ :'description' => :'String',
48
51
  :'fqn' => :'String',
49
52
  :'name' => :'String',
50
- :'description' => :'String',
51
- :'uuid' => :'String',
53
+ :'network_end_points' => :'Array<VirtualNetworkEndpoint>',
52
54
  :'subnet_info' => :'SubnetInfo',
53
55
  :'updated_at' => :'Float',
54
56
  :'updated_by' => :'String',
55
- :'created_at' => :'Float',
56
- :'created_by' => :'String',
57
- :'network_end_points' => :'Array<VirtualNetworkEndpoint>',
57
+ :'uuid' => :'String',
58
58
  :'version_id' => :'Integer'
59
59
 
60
60
  }
@@ -67,20 +67,30 @@ module Apcera
67
67
  attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
68
68
 
69
69
 
70
- if attributes[:'fqn']
71
- self.fqn = attributes[:'fqn']
70
+ if attributes[:'created_at']
71
+ self.created_at = attributes[:'created_at']
72
72
  end
73
73
 
74
- if attributes[:'name']
75
- self.name = attributes[:'name']
74
+ if attributes[:'created_by']
75
+ self.created_by = attributes[:'created_by']
76
76
  end
77
77
 
78
78
  if attributes[:'description']
79
79
  self.description = attributes[:'description']
80
80
  end
81
81
 
82
- if attributes[:'uuid']
83
- self.uuid = attributes[:'uuid']
82
+ if attributes[:'fqn']
83
+ self.fqn = attributes[:'fqn']
84
+ end
85
+
86
+ if attributes[:'name']
87
+ self.name = attributes[:'name']
88
+ end
89
+
90
+ if attributes[:'network_end_points']
91
+ if (value = attributes[:'network_end_points']).is_a?(Array)
92
+ self.network_end_points = value
93
+ end
84
94
  end
85
95
 
86
96
  if attributes[:'subnet_info']
@@ -95,18 +105,8 @@ module Apcera
95
105
  self.updated_by = attributes[:'updated_by']
96
106
  end
97
107
 
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
108
+ if attributes[:'uuid']
109
+ self.uuid = attributes[:'uuid']
110
110
  end
111
111
 
112
112
  if attributes[:'version_id']
@@ -1,13 +1,13 @@
1
1
  module Apcera
2
2
  #
3
3
  class VirtualNetworkEndpoint < BaseObject
4
- attr_accessor :uuid, :fqn, :network_fqn, :end_point_interface
4
+ attr_accessor :end_point_interface, :fqn, :network_fqn, :uuid
5
5
  # attribute mapping from ruby-style variable name to JSON key
6
6
  def self.attribute_map
7
7
  {
8
8
 
9
- # The UUID of the network endpoint.
10
- :'uuid' => :'uuid',
9
+ # A list of interfaces associated with the job.
10
+ :'end_point_interface' => :'end_point_interface',
11
11
 
12
12
  # Fully-qualified name of the job the endpoint is attached to.
13
13
  :'fqn' => :'fqn',
@@ -15,8 +15,8 @@ module Apcera
15
15
  # Fully-qualified name of the network that the endpoint belongs to.
16
16
  :'network_fqn' => :'network_fqn',
17
17
 
18
- # A list of interfaces associated with the job.
19
- :'end_point_interface' => :'end_point_interface'
18
+ # The UUID of the network endpoint.
19
+ :'uuid' => :'uuid'
20
20
 
21
21
  }
22
22
  end
@@ -24,10 +24,10 @@ module Apcera
24
24
  # attribute type
25
25
  def self.swagger_types
26
26
  {
27
- :'uuid' => :'String',
27
+ :'end_point_interface' => :'Array<VirtualNetworkEndpointInterface>',
28
28
  :'fqn' => :'String',
29
29
  :'network_fqn' => :'String',
30
- :'end_point_interface' => :'Array<VirtualNetworkEndpointInterface>'
30
+ :'uuid' => :'String'
31
31
 
32
32
  }
33
33
  end
@@ -39,8 +39,10 @@ module Apcera
39
39
  attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
40
40
 
41
41
 
42
- if attributes[:'uuid']
43
- self.uuid = attributes[:'uuid']
42
+ if attributes[:'end_point_interface']
43
+ if (value = attributes[:'end_point_interface']).is_a?(Array)
44
+ self.end_point_interface = value
45
+ end
44
46
  end
45
47
 
46
48
  if attributes[:'fqn']
@@ -51,10 +53,8 @@ module Apcera
51
53
  self.network_fqn = attributes[:'network_fqn']
52
54
  end
53
55
 
54
- if attributes[:'end_point_interface']
55
- if (value = attributes[:'end_point_interface']).is_a?(Array)
56
- self.end_point_interface = value
57
- end
56
+ if attributes[:'uuid']
57
+ self.uuid = attributes[:'uuid']
58
58
  end
59
59
 
60
60
  end
@@ -1,19 +1,19 @@
1
1
  module Apcera
2
2
  #
3
3
  class VirtualNetworkEndpointInterface < BaseObject
4
- attr_accessor :uuid, :hardware_addr, :ipv4_addr
4
+ attr_accessor :hardware_addr, :ipv4_addr, :uuid
5
5
  # attribute mapping from ruby-style variable name to JSON key
6
6
  def self.attribute_map
7
7
  {
8
8
 
9
- # The UUID of the network endpoint.
10
- :'uuid' => :'uuid',
11
-
12
9
  # Unique identifier assigned to the network interface.
13
10
  :'hardware_addr' => :'hardware_addr',
14
11
 
15
12
  # Virtual IP address assigned to the instance.
16
- :'ipv4_addr' => :'ipv4_addr'
13
+ :'ipv4_addr' => :'ipv4_addr',
14
+
15
+ # The UUID of the network endpoint.
16
+ :'uuid' => :'uuid'
17
17
 
18
18
  }
19
19
  end
@@ -21,9 +21,9 @@ module Apcera
21
21
  # attribute type
22
22
  def self.swagger_types
23
23
  {
24
- :'uuid' => :'String',
25
24
  :'hardware_addr' => :'String',
26
- :'ipv4_addr' => :'String'
25
+ :'ipv4_addr' => :'String',
26
+ :'uuid' => :'String'
27
27
 
28
28
  }
29
29
  end
@@ -35,10 +35,6 @@ module Apcera
35
35
  attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
36
36
 
37
37
 
38
- if attributes[:'uuid']
39
- self.uuid = attributes[:'uuid']
40
- end
41
-
42
38
  if attributes[:'hardware_addr']
43
39
  self.hardware_addr = attributes[:'hardware_addr']
44
40
  end
@@ -47,6 +43,10 @@ module Apcera
47
43
  self.ipv4_addr = attributes[:'ipv4_addr']
48
44
  end
49
45
 
46
+ if attributes[:'uuid']
47
+ self.uuid = attributes[:'uuid']
48
+ end
49
+
50
50
  end
51
51
 
52
52
  end
@@ -1,3 +1,3 @@
1
1
  module Apcera
2
- VERSION = "0.1.7.0"
2
+ VERSION = "0.1.7.1"
3
3
  end
@@ -615,6 +615,7 @@ class ApceraApiHelper
615
615
 
616
616
  process = Apcera::Process.new({ :app => app})
617
617
 
618
+ # If restart mode is always, max needs to be set - if it is set to
618
619
  restart = Apcera::RestartConfig.new({
619
620
  :restart_mode => "always",
620
621
  :maximum_attempts => 0
@@ -701,8 +702,8 @@ class ApceraApiHelper
701
702
  })
702
703
 
703
704
  restart = Apcera::RestartConfig.new({
704
- :restart_mode => "no",
705
- :maximum_attempts => 0
705
+ :restart_mode => "always",
706
+ :maximum_attempts => 3
706
707
  })
707
708
 
708
709
  docker_job = Apcera::CreateDockerJobRequest.new({
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.7.0
4
+ version: 0.1.7.1
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-08-01 00:00:00.000000000 Z
11
+ date: 2016-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -210,9 +210,11 @@ files:
210
210
  - lib/apcera/api/services_and_bindings_api.rb
211
211
  - lib/apcera/api/staging_pipelines_api.rb
212
212
  - lib/apcera/api/utilities_api.rb
213
+ - lib/apcera/api/virtual_networks_api.rb
213
214
  - lib/apcera/api_client.rb
214
215
  - lib/apcera/api_error.rb
215
216
  - lib/apcera/configuration.rb
217
+ - lib/apcera/models/apc_download_url.rb
216
218
  - lib/apcera/models/apc_version_object.rb
217
219
  - lib/apcera/models/api_error.rb
218
220
  - lib/apcera/models/audit_log_item.rb
@@ -259,6 +261,7 @@ files:
259
261
  - lib/apcera/models/semi_pipe_rule.rb
260
262
  - lib/apcera/models/semi_pipe_rule_action.rb
261
263
  - lib/apcera/models/service.rb
264
+ - lib/apcera/models/service_request_object.rb
262
265
  - lib/apcera/models/stager_job.rb
263
266
  - lib/apcera/models/staging_pipeline.rb
264
267
  - lib/apcera/models/sub_task.rb
@@ -268,6 +271,7 @@ files:
268
271
  - lib/apcera/models/task_progress.rb
269
272
  - lib/apcera/models/unbind_parameter_object.rb
270
273
  - lib/apcera/models/unlink_parameter_object.rb
274
+ - lib/apcera/models/version_info.rb
271
275
  - lib/apcera/models/virtual_network.rb
272
276
  - lib/apcera/models/virtual_network_endpoint.rb
273
277
  - lib/apcera/models/virtual_network_endpoint_interface.rb