fog-brightbox 0.15.0 → 0.16.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.
- checksums.yaml +4 -4
- data/.travis.yml +6 -3
- data/CHANGELOG.md +12 -0
- data/fog-brightbox.gemspec +3 -3
- data/lib/fog/brightbox/compute/shared.rb +1 -2
- data/lib/fog/brightbox/model_helper.rb +9 -3
- data/lib/fog/brightbox/requests/compute/create_database_server.rb +3 -0
- data/lib/fog/brightbox/requests/compute/create_load_balancer.rb +1 -1
- data/lib/fog/brightbox/requests/compute/create_server.rb +1 -0
- data/lib/fog/brightbox/requests/compute/reset_password_database_server.rb +2 -0
- data/lib/fog/brightbox/requests/compute/snapshot_database_server.rb +2 -0
- data/lib/fog/brightbox/requests/compute/update_database_server.rb +3 -0
- data/lib/fog/brightbox/requests/compute/update_load_balancer.rb +1 -1
- data/lib/fog/brightbox/requests/compute/update_server.rb +1 -0
- data/lib/fog/brightbox/version.rb +1 -1
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e0a7fbcbe8d4b8cf7cfce8065121a8017116ad5caf17f22463df71971b2f3bc
|
4
|
+
data.tar.gz: f29b9da66790d0090a76c65d34526e51561a2d6dc4ad9313d2daa1ccf801c6b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f55119efd95aaed7239c3c88e92ea884c21fca0169abd3dc47712b3848dabcec9706c98858154fd3de2423323ff1a1a1dc6215936c26d8adc14974ac52c8d6b
|
7
|
+
data.tar.gz: 817d96a885f8b0177f91f972c2cb172d987b040859694fdc27b078475af0c5866c195c73f12981dca32e7ea1e7ffc1b7435e0e0a8602a0c42b2c032fdb058311
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/fog-brightbox.gemspec
CHANGED
@@ -19,12 +19,12 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_dependency "fog-core"
|
22
|
+
spec.add_dependency "fog-core"
|
23
23
|
spec.add_dependency "fog-json"
|
24
|
-
spec.add_dependency "
|
24
|
+
spec.add_dependency "dry-inflector"
|
25
25
|
spec.add_dependency "mime-types"
|
26
26
|
|
27
|
-
spec.add_development_dependency "bundler"
|
27
|
+
spec.add_development_dependency "bundler"
|
28
28
|
spec.add_development_dependency "minitest"
|
29
29
|
spec.add_development_dependency "pry"
|
30
30
|
spec.add_development_dependency "rake"
|
@@ -151,8 +151,7 @@ module Fog
|
|
151
151
|
# @return [NilClass] if no image is found or an error occurs
|
152
152
|
#
|
153
153
|
def default_image
|
154
|
-
|
155
|
-
@default_image_id = @config.default_image_id || select_default_image
|
154
|
+
@default_image_id ||= (@config.default_image_id || select_default_image)
|
156
155
|
end
|
157
156
|
|
158
157
|
private
|
@@ -1,14 +1,20 @@
|
|
1
|
-
require "
|
1
|
+
require "dry/inflector"
|
2
2
|
|
3
3
|
module Fog
|
4
4
|
module Brightbox
|
5
5
|
module ModelHelper
|
6
6
|
def resource_name
|
7
|
-
|
7
|
+
inflector.underscore(inflector.demodulize(self.class))
|
8
8
|
end
|
9
9
|
|
10
10
|
def collection_name
|
11
|
-
|
11
|
+
inflector.pluralize(resource_name)
|
12
|
+
end
|
13
|
+
|
14
|
+
private
|
15
|
+
|
16
|
+
def inflector
|
17
|
+
@inflector ||= Dry::Inflector.new
|
12
18
|
end
|
13
19
|
end
|
14
20
|
end
|
@@ -8,6 +8,9 @@ module Fog
|
|
8
8
|
# @option options [String] :engine Database engine to request
|
9
9
|
# @option options [String] :version Database version to request
|
10
10
|
# @option options [Array] :allow_access ...
|
11
|
+
# @option options [String] :maintenance_weekday Numerical index of weekday (0 is Sunday, 1 is Monday...) to set when automatic updates may be performed
|
12
|
+
# @option options [String] :maintenance_hour Number representing 24hr time start of maintenance window hour for x:00-x:59 (0-23)
|
13
|
+
# @option options [String] :snapshots_schedule Crontab pattern for scheduled snapshots. Must be at least hourly
|
11
14
|
# @option options [String] :snapshot
|
12
15
|
# @option options [String] :zone
|
13
16
|
# @option options [Boolean] :nested passed through with the API request. When true nested resources are expanded.
|
@@ -11,7 +11,7 @@ module Fog
|
|
11
11
|
# @option options [String] :certificate_pem A X509 SSL certificate in PEM format. Must be included along with 'certificate_key'. If intermediate certificates are required they should be concatenated after the main certificate
|
12
12
|
# @option options [String] :certificate_key The RSA private key used to sign the certificate in PEM format. Must be included along with 'certificate_pem'
|
13
13
|
# @option options [Boolean] :sslv3 Allow SSL v3 to be used (default: false)
|
14
|
-
# @option options [Array] :listeners What port to listen on, port to pass through to and protocol (tcp, http
|
14
|
+
# @option options [Array] :listeners What port to listen on, port to pass through to and protocol (tcp, http, https, http+ws, https+wss) of listener. Timeout is optional and specified in milliseconds (default is 50000).
|
15
15
|
# @option options [String] :healthcheck Healthcheck options - only "port" and "type" required
|
16
16
|
# @option options [String] :buffer_size Buffer size in bytes
|
17
17
|
# @option options [Boolean] :nested passed through with the API request. When true nested resources are expanded.
|
@@ -13,6 +13,7 @@ module Fog
|
|
13
13
|
# @option options [String] :zone Zone in which to create new Server
|
14
14
|
# @option options [String] :user_data
|
15
15
|
# @option options [Array] :server_groups Array of server groups to add server to
|
16
|
+
# @option options [String] :cloud_ip A Cloud IP that should be mapped as soon as the server is built. Either `true` to allocate a new Cloud IP or the identifier of an unmapped Cloud IP to reserve
|
16
17
|
# @option options [Boolean] :nested passed through with the API request. When true nested resources are expanded.
|
17
18
|
#
|
18
19
|
# @return [Hash] if successful Hash version of JSON object
|
@@ -2,6 +2,8 @@ module Fog
|
|
2
2
|
module Compute
|
3
3
|
class Brightbox
|
4
4
|
class Real
|
5
|
+
# This requests the admin password for the database server is reset. The new `admin_password` is only returned in the JSON response to this request.
|
6
|
+
#
|
5
7
|
# @param [String] identifier Unique reference to identify the resource
|
6
8
|
# @param [Hash] options
|
7
9
|
# @option options [Boolean] :nested passed through with the API request. When true nested resources are expanded.
|
@@ -2,6 +2,8 @@ module Fog
|
|
2
2
|
module Compute
|
3
3
|
class Brightbox
|
4
4
|
class Real
|
5
|
+
# Requests a snapshot of the database server to be made for restoring back to when it was made. The identifier of the new snapshot is returned by the response in a Link header
|
6
|
+
#
|
5
7
|
# @param [String] identifier Unique reference to identify the resource
|
6
8
|
# @param [Hash] options
|
7
9
|
# @option options [Boolean] :return_link Return the Link header as a second return value
|
@@ -7,6 +7,9 @@ module Fog
|
|
7
7
|
# @option options [String] :name
|
8
8
|
# @option options [String] :description
|
9
9
|
# @option options [Array] :allow_access ...
|
10
|
+
# @option options [String] :maintenance_weekday Numerical index of weekday (0 is Sunday, 1 is Monday...) to set when automatic updates may be performed
|
11
|
+
# @option options [String] :maintenance_hour Number representing 24hr time start of maintenance window hour for x:00-x:59 (0-23)
|
12
|
+
# @option options [String] :snapshots_schedule Crontab pattern for scheduled snapshots. Must be at least hourly
|
10
13
|
# @option options [Boolean] :nested passed through with the API request. When true nested resources are expanded.
|
11
14
|
#
|
12
15
|
# @return [Hash] if successful Hash version of JSON object
|
@@ -12,7 +12,7 @@ module Fog
|
|
12
12
|
# @option options [String] :certificate_pem A X509 SSL certificate in PEM format. Must be included along with 'certificate_key'. If intermediate certificates are required they should be concatenated after the main certificate
|
13
13
|
# @option options [String] :certificate_key The RSA private key used to sign the certificate in PEM format. Must be included along with 'certificate_pem'
|
14
14
|
# @option options [Boolean] :sslv3 Allow SSL v3 to be used (default: false)
|
15
|
-
# @option options [Array] :listeners What port to listen on, port to pass through to and protocol (tcp, http
|
15
|
+
# @option options [Array] :listeners What port to listen on, port to pass through to and protocol (tcp, http, https, http+ws, https+wss) of listener. Timeout is optional and specified in milliseconds (default is 50000).
|
16
16
|
# @option options [String] :healthcheck Healthcheck options - only "port" and "type" required
|
17
17
|
# @option options [String] :buffer_size Buffer size in bytes
|
18
18
|
# @option options [Boolean] :nested passed through with the API request. When true nested resources are expanded.
|
@@ -8,6 +8,7 @@ module Fog
|
|
8
8
|
# @param [Hash] options
|
9
9
|
# @option options [String] :name Editable label
|
10
10
|
# @option options [String] :user_data User defined metadata
|
11
|
+
# @option options [Array] :server_groups Array of server groups to update server to being a member of. This replaces any existing groups
|
11
12
|
# @option options [Boolean] :compatibility_mode Server needs to be shutdown and restarted for changes to this to take effect
|
12
13
|
# @option options [Boolean] :nested passed through with the API request. When true nested resources are expanded.
|
13
14
|
#
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-brightbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Thornthwaite
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: fog-json
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,19 +39,19 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: dry-inflector
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0
|
47
|
+
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: mime-types
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -70,16 +70,16 @@ dependencies:
|
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: minitest
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -474,7 +474,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
474
474
|
version: '0'
|
475
475
|
requirements: []
|
476
476
|
rubyforge_project:
|
477
|
-
rubygems_version: 2.7.
|
477
|
+
rubygems_version: 2.7.7
|
478
478
|
signing_key:
|
479
479
|
specification_version: 4
|
480
480
|
summary: This library can be used as a module for `fog` or as standalone provider
|