droplet_kit 3.0.3 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 761e7eb61a3bb5f3db61f156b85d5a27e710ce05bdd07231dbcd5f930527a8f7
4
- data.tar.gz: 77df765f13544e42c62cd5fb507d2ffbab46486f5f9037ab3fdb870f2fc14975
3
+ metadata.gz: 23066062e13119e43659c08818ac400f8f059b7ab4fba6fd6ad932cf92424cc3
4
+ data.tar.gz: 429825725ffa50893fd84bedca6cdbbe22c52863d03fd19b3661334caab392a3
5
5
  SHA512:
6
- metadata.gz: '09a84d28e493adb0a1e1e1341581c4b34aceac24d763c6812675761fec5a593b370f8ef0c9df8102c3476de3ffdba5a1a1053d96351edd82fbe08f9d88b67e32'
7
- data.tar.gz: 1436b0199a817b255917d8afc7765c34457caac434d73c37dc712b61a80d5c60fd357967ad7813527c9703cdb792b0f08ea3938afc85e48df86583b3e8291ca8
6
+ metadata.gz: 6ac8efdcb36b8f2c6bd9022b7b28146a147d116b035857ecc1151aaf071ee203b2699331fe7ae04152cf1ae97cd3dadd2426e063b473d5f44d0e5ac9c32b6f52
7
+ data.tar.gz: cff9d0911da3b859df5f4b3b720ae7c345728c74bf7ec9e1f42d00fe7d47c1a0b3499bf886e0788e6b01c4c5c8143bef4db222aa0cdb8e9de02f9a3fcafe25ba
data/README.md CHANGED
@@ -500,7 +500,7 @@ Actions supported:
500
500
  * `client.volume_actions.detach(volume_id: volume.id, droplet_id: droplet.id, region: droplet.region.slug)`
501
501
  * `client.volume_actions.resize(volume_id: volume.id, size_gigabytes: 123, region: droplet.region.slug)`
502
502
 
503
- ## Volume resource
503
+ ## Snapshot resource
504
504
 
505
505
  client = DropletKit::Client.new(access_token: 'TOKEN')
506
506
  client.snapshots #=> DropletKit::SnapshotResource
@@ -116,6 +116,7 @@ module DropletKit
116
116
  autoload :FirewallPendingChangeMapping, 'droplet_kit/mappings/firewall_pending_change_mapping'
117
117
  autoload :CDNMapping, 'droplet_kit/mappings/cdn_mapping'
118
118
  autoload :KubernetesClusterMapping, 'droplet_kit/mappings/kubernetes_cluster_mapping'
119
+ autoload :KubernetesMaintenancePolicyMapping, 'droplet_kit/mappings/kubernetes_maintenance_policy_mapping'
119
120
  autoload :KubernetesNodePoolMapping, 'droplet_kit/mappings/kubernetes_node_pool_mapping'
120
121
  autoload :KubernetesNodeMapping, 'droplet_kit/mappings/kubernetes_node_mapping'
121
122
  autoload :KubernetesOptionsMapping, 'droplet_kit/mappings/kubernetes_options_mapping'
@@ -9,11 +9,13 @@ module DropletKit
9
9
  property :name, scopes: [:read, :update, :create]
10
10
  property :region, scopes: [:read, :create]
11
11
  property :version, scopes: [:read, :create]
12
+ property :auto_upgrade, scopes: [:read, :update, :create]
12
13
  property :cluster_subnet, scopes: [:read]
13
14
  property :service_subnet, scopes: [:read]
14
15
  property :ipv4, scopes: [:read]
15
16
  property :endpoint, scopes: [:read]
16
17
  property :tags, scopes: [:read, :update, :create]
18
+ property :maintenance_policy, scopes: [:read, :update, :create]
17
19
  property :node_pools, scopes: [:read, :create]
18
20
  property :vpc_uuid, scopes: [:read, :create]
19
21
  end
@@ -0,0 +1,11 @@
1
+ module DropletKit
2
+ class KubernetesMaintenancePolicyMapping
3
+ include Kartograph::DSL
4
+ kartograph do
5
+ mapping KubernetesMaintenancePolicyMapping
6
+
7
+ property :id, scopes: [:read]
8
+ property :name, scopes: [:read]
9
+ end
10
+ end
11
+ end
@@ -10,6 +10,9 @@ module DropletKit
10
10
  property :size, scopes: [:read]
11
11
  property :count, scopes: [:read]
12
12
  property :tags, scopes: [:read]
13
+ property :auto_scale, scopes: [:read]
14
+ property :min_nodes, scopes: [:read]
15
+ property :max_nodes, scopes: [:read]
13
16
 
14
17
  property :nodes, plural: true, scopes: [:read], include: KubernetesNodeMapping
15
18
 
@@ -18,6 +21,9 @@ module DropletKit
18
21
  property :size, scopes: [:create, :update]
19
22
  property :count, scopes: [:create, :update]
20
23
  property :tags, scopes: [:create, :update]
24
+ property :auto_scale, scopes: [:create, :update]
25
+ property :min_nodes, scopes: [:create, :update]
26
+ property :max_nodes, scopes: [:create, :update]
21
27
 
22
28
  # recycle
23
29
  property :nodes, plural: true, scopes: [:recycle]
@@ -1,6 +1,6 @@
1
1
  module DropletKit
2
2
  class KubernetesCluster < BaseModel
3
- [:id, :name, :region, :version, :cluster_subnet, :service_subnet, :ipv4, :endpoint, :tags, :node_pools, :vpc_uuid].each do |key|
3
+ [:id, :name, :region, :version, :auto_upgrade, :cluster_subnet, :service_subnet, :ipv4, :endpoint, :tags, :maintenance_policy, :node_pools, :vpc_uuid].each do |key|
4
4
  attribute(key)
5
5
  end
6
6
  end
@@ -0,0 +1,6 @@
1
+ module DropletKit
2
+ class KubernetesMaintenancePolicy < BaseModel
3
+ attribute :start_time
4
+ attribute :day
5
+ end
6
+ end
@@ -1,6 +1,6 @@
1
1
  module DropletKit
2
2
  class KubernetesNodePool < BaseModel
3
- [:id, :name, :size, :count, :tags, :nodes].each do |key|
3
+ [:id, :name, :size, :count, :tags, :nodes, :auto_scale, :min_nodes, :max_nodes].each do |key|
4
4
  attribute(key)
5
5
  end
6
6
  end
@@ -1,3 +1,3 @@
1
1
  module DropletKit
2
- VERSION = "3.0.3"
2
+ VERSION = "3.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: droplet_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Ross
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-31 00:00:00.000000000 Z
11
+ date: 2019-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: virtus
@@ -202,6 +202,7 @@ files:
202
202
  - lib/droplet_kit/mappings/image_mapping.rb
203
203
  - lib/droplet_kit/mappings/kernel_mapping.rb
204
204
  - lib/droplet_kit/mappings/kubernetes_cluster_mapping.rb
205
+ - lib/droplet_kit/mappings/kubernetes_maintenance_policy_mapping.rb
205
206
  - lib/droplet_kit/mappings/kubernetes_node_mapping.rb
206
207
  - lib/droplet_kit/mappings/kubernetes_node_pool_mapping.rb
207
208
  - lib/droplet_kit/mappings/kubernetes_options_mapping.rb
@@ -243,6 +244,7 @@ files:
243
244
  - lib/droplet_kit/models/image.rb
244
245
  - lib/droplet_kit/models/kernel.rb
245
246
  - lib/droplet_kit/models/kubernetes_cluster.rb
247
+ - lib/droplet_kit/models/kubernetes_maintenance_policy.rb
246
248
  - lib/droplet_kit/models/kubernetes_node.rb
247
249
  - lib/droplet_kit/models/kubernetes_node_pool.rb
248
250
  - lib/droplet_kit/models/kubernetes_options.rb