nex_client 0.1.0

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.
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+ module NexClient
3
+ class CubeTemplate < BaseResource
4
+ property :created_at, type: :time
5
+ property :updated_at, type: :time
6
+ property :min_pu, type: :int
7
+ end
8
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+ module NexClient
3
+ class Domain < BaseResource
4
+ property :created_at, type: :time
5
+ property :updated_at, type: :time
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+ module NexClient
3
+ class GatewayRack < BaseResource
4
+ property :created_at, type: :time
5
+ property :updated_at, type: :time
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+ module NexClient
3
+ class Organization < BaseResource
4
+ end
5
+ end
@@ -0,0 +1,17 @@
1
+ module NexClient
2
+ module ResourceWorkflow
3
+ self.included do
4
+ # PATCH <api_root>/<resource>/:id/provision
5
+ custom_endpoint :provision, on: :member, request_method: :patch
6
+
7
+ # PATCH <api_root>/<resource>/:id/start
8
+ custom_endpoint :start, on: :member, request_method: :patch
9
+
10
+ # PATCH <api_root>/<resource</:id/stop
11
+ custom_endpoint :stop, on: :member, request_method: :patch
12
+
13
+ # PATCH <api_root>/<resource</:id/restart
14
+ custom_endpoint :restart, on: :member, request_method: :patch
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+ module NexClient
3
+ class RoutingRack < BaseResource
4
+ property :created_at, type: :time
5
+ property :updated_at, type: :time
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+ module NexClient
3
+ class SslCertificate < BaseResource
4
+ property :created_at, type: :time
5
+ property :updated_at, type: :time
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+ module NexClient
3
+ class StorageRack < BaseResource
4
+ property :created_at, type: :time
5
+ property :updated_at, type: :time
6
+ property :total_su, type: :int
7
+ property :available_su, type: :int
8
+ property :used_su, type: :int
9
+ end
10
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+ module NexClient
3
+ class User < BaseResource
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ module NexClient
2
+ VERSION = '0.1.0'
3
+ end
metadata ADDED
@@ -0,0 +1,146 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nex_client
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Arnaud Lachaume
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-08-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: json_api_client
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: commander
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: terminal-table
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: colorize
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: Client library for Maestrano Nex!™ PaaS
84
+ email:
85
+ - developers@maestrano.com
86
+ executables:
87
+ - nex-cli
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - LICENSE
92
+ - README.md
93
+ - bin/nex-cli
94
+ - lib/nex_client.rb
95
+ - lib/nex_client/addon.rb
96
+ - lib/nex_client/app.rb
97
+ - lib/nex_client/base_resource.rb
98
+ - lib/nex_client/cli.rb
99
+ - lib/nex_client/commands.rb
100
+ - lib/nex_client/commands/addons.rb
101
+ - lib/nex_client/commands/apps.rb
102
+ - lib/nex_client/commands/cube_instances.rb
103
+ - lib/nex_client/commands/cube_templates.rb
104
+ - lib/nex_client/commands/domains.rb
105
+ - lib/nex_client/commands/helpers.rb
106
+ - lib/nex_client/commands/organizations.rb
107
+ - lib/nex_client/commands/racks.rb
108
+ - lib/nex_client/commands/ssl_certificates.rb
109
+ - lib/nex_client/commands/users.rb
110
+ - lib/nex_client/compute_rack.rb
111
+ - lib/nex_client/cube_instance.rb
112
+ - lib/nex_client/cube_template.rb
113
+ - lib/nex_client/domain.rb
114
+ - lib/nex_client/gateway_rack.rb
115
+ - lib/nex_client/organization.rb
116
+ - lib/nex_client/resource_workflow.rb
117
+ - lib/nex_client/routing_rack.rb
118
+ - lib/nex_client/ssl_certificate.rb
119
+ - lib/nex_client/storage_rack.rb
120
+ - lib/nex_client/user.rb
121
+ - lib/nex_client/version.rb
122
+ homepage: https://maestrano.com
123
+ licenses:
124
+ - Apache-2.0
125
+ metadata: {}
126
+ post_install_message:
127
+ rdoc_options: []
128
+ require_paths:
129
+ - lib
130
+ required_ruby_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ required_rubygems_version: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ requirements: []
141
+ rubyforge_project:
142
+ rubygems_version: 2.5.1
143
+ signing_key:
144
+ specification_version: 4
145
+ summary: Maestrano Nex!™ Client
146
+ test_files: []