droplet_kit 3.13.1 → 3.16.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/droplet_kit/client.rb +2 -0
- data/lib/droplet_kit/error_handling_resourcable.rb +2 -0
- data/lib/droplet_kit/mappings/account_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/action_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/balance_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/cdn_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/certificate_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/container_registry_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/container_registry_repository_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/container_registry_repository_tag_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/database_backup_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/database_backup_restore_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/database_cluster_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/database_connection_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/database_connection_pool_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/database_eviction_policy_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/database_firewall_rule_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/database_maintenance_window_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/database_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/database_replica_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/database_sql_mode_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/database_user_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/database_user_reset_auth_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/domain_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/domain_record_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/droplet_mapping.rb +3 -0
- data/lib/droplet_kit/mappings/droplet_upgrade_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/error_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/firewall_inbound_rule_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/firewall_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/firewall_outbound_rule_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/firewall_pending_change_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/firewall_rule_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/floating_ip_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/forwarding_rule_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/health_check_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/image_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/invoice_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/kernel_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/kubernetes_cluster_mapping.rb +3 -0
- data/lib/droplet_kit/mappings/kubernetes_maintenance_policy_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/kubernetes_node_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/kubernetes_node_pool_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/kubernetes_options_mapping.rb +4 -1
- data/lib/droplet_kit/mappings/links_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/load_balancer_mapping.rb +5 -0
- data/lib/droplet_kit/mappings/network_detail_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/network_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/project_assignment_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/project_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/region_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/size_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/snapshot_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/ssh_key_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/sticky_session_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/tag_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/tagged_droplets_resources_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/tagged_images_resources_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/tagged_resources_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/volume_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/vpc_mapping.rb +2 -0
- data/lib/droplet_kit/mappings/vpc_member_mapping.rb +2 -0
- data/lib/droplet_kit/models/account.rb +2 -0
- data/lib/droplet_kit/models/action.rb +2 -0
- data/lib/droplet_kit/models/balance.rb +2 -0
- data/lib/droplet_kit/models/base_model.rb +2 -0
- data/lib/droplet_kit/models/cdn.rb +2 -0
- data/lib/droplet_kit/models/certificate.rb +2 -0
- data/lib/droplet_kit/models/container_registry.rb +2 -0
- data/lib/droplet_kit/models/container_registry_repository.rb +2 -0
- data/lib/droplet_kit/models/container_registry_repository_tag.rb +2 -0
- data/lib/droplet_kit/models/database.rb +2 -0
- data/lib/droplet_kit/models/database_backup.rb +2 -0
- data/lib/droplet_kit/models/database_cluster.rb +2 -0
- data/lib/droplet_kit/models/database_connection.rb +2 -0
- data/lib/droplet_kit/models/database_connection_pool.rb +2 -0
- data/lib/droplet_kit/models/database_eviction_policy.rb +2 -0
- data/lib/droplet_kit/models/database_firewall_rule.rb +2 -0
- data/lib/droplet_kit/models/database_maintenance_window.rb +2 -0
- data/lib/droplet_kit/models/database_replica.rb +2 -0
- data/lib/droplet_kit/models/database_sql_mode.rb +2 -0
- data/lib/droplet_kit/models/database_user.rb +2 -0
- data/lib/droplet_kit/models/database_user_mysql_settings.rb +2 -0
- data/lib/droplet_kit/models/database_user_reset_auth.rb +2 -0
- data/lib/droplet_kit/models/domain.rb +2 -0
- data/lib/droplet_kit/models/domain_record.rb +2 -0
- data/lib/droplet_kit/models/droplet.rb +3 -0
- data/lib/droplet_kit/models/droplet_upgrade.rb +2 -0
- data/lib/droplet_kit/models/firewall.rb +2 -0
- data/lib/droplet_kit/models/firewall_inbound_rule.rb +2 -0
- data/lib/droplet_kit/models/firewall_outbound_rule.rb +2 -0
- data/lib/droplet_kit/models/firewall_pending_change.rb +2 -0
- data/lib/droplet_kit/models/firewall_rule.rb +2 -0
- data/lib/droplet_kit/models/floating_ip.rb +2 -0
- data/lib/droplet_kit/models/forwarding_rule.rb +2 -0
- data/lib/droplet_kit/models/health_check.rb +2 -0
- data/lib/droplet_kit/models/image.rb +2 -0
- data/lib/droplet_kit/models/invoice.rb +2 -0
- data/lib/droplet_kit/models/kernel.rb +2 -0
- data/lib/droplet_kit/models/kubernetes_cluster.rb +3 -1
- data/lib/droplet_kit/models/kubernetes_maintenance_policy.rb +2 -0
- data/lib/droplet_kit/models/kubernetes_node.rb +2 -0
- data/lib/droplet_kit/models/kubernetes_node_pool.rb +2 -0
- data/lib/droplet_kit/models/kubernetes_options.rb +2 -0
- data/lib/droplet_kit/models/links.rb +2 -0
- data/lib/droplet_kit/models/load_balancer.rb +4 -0
- data/lib/droplet_kit/models/meta_information.rb +2 -0
- data/lib/droplet_kit/models/network.rb +2 -0
- data/lib/droplet_kit/models/network_hash.rb +2 -0
- data/lib/droplet_kit/models/pagination_information.rb +2 -0
- data/lib/droplet_kit/models/project.rb +2 -0
- data/lib/droplet_kit/models/project_assignment.rb +2 -0
- data/lib/droplet_kit/models/region.rb +2 -0
- data/lib/droplet_kit/models/size.rb +2 -0
- data/lib/droplet_kit/models/snapshot.rb +2 -0
- data/lib/droplet_kit/models/ssh_key.rb +2 -0
- data/lib/droplet_kit/models/sticky_session.rb +2 -0
- data/lib/droplet_kit/models/tag.rb +2 -0
- data/lib/droplet_kit/models/tagged_droplets_resources.rb +2 -0
- data/lib/droplet_kit/models/tagged_images_resources.rb +2 -0
- data/lib/droplet_kit/models/tagged_resources.rb +2 -0
- data/lib/droplet_kit/models/volume.rb +2 -0
- data/lib/droplet_kit/models/vpc.rb +2 -0
- data/lib/droplet_kit/models/vpc_member.rb +2 -0
- data/lib/droplet_kit/paginated_resource.rb +2 -0
- data/lib/droplet_kit/resources/account_resource.rb +3 -1
- data/lib/droplet_kit/resources/action_resource.rb +3 -1
- data/lib/droplet_kit/resources/balance_resource.rb +3 -1
- data/lib/droplet_kit/resources/cdn_resource.rb +2 -0
- data/lib/droplet_kit/resources/certificate_resource.rb +2 -0
- data/lib/droplet_kit/resources/container_registry_repository_resource.rb +26 -25
- data/lib/droplet_kit/resources/container_registry_resource.rb +22 -21
- data/lib/droplet_kit/resources/database_resource.rb +2 -0
- data/lib/droplet_kit/resources/domain_record_resource.rb +2 -0
- data/lib/droplet_kit/resources/domain_resource.rb +2 -0
- data/lib/droplet_kit/resources/droplet_action_resource.rb +2 -0
- data/lib/droplet_kit/resources/droplet_resource.rb +2 -0
- data/lib/droplet_kit/resources/droplet_upgrade_resource.rb +3 -1
- data/lib/droplet_kit/resources/firewall_resource.rb +2 -0
- data/lib/droplet_kit/resources/floating_ip_action_resource.rb +3 -1
- data/lib/droplet_kit/resources/floating_ip_resource.rb +3 -1
- data/lib/droplet_kit/resources/image_action_resource.rb +2 -0
- data/lib/droplet_kit/resources/image_resource.rb +3 -1
- data/lib/droplet_kit/resources/invoice_resource.rb +13 -11
- data/lib/droplet_kit/resources/kubernetes_cluster_resource.rb +16 -1
- data/lib/droplet_kit/resources/kubernetes_options_resource.rb +2 -0
- data/lib/droplet_kit/resources/load_balancer_resource.rb +2 -0
- data/lib/droplet_kit/resources/project_resource.rb +2 -0
- data/lib/droplet_kit/resources/region_resource.rb +2 -0
- data/lib/droplet_kit/resources/size_resource.rb +2 -0
- data/lib/droplet_kit/resources/snapshot_resource.rb +3 -1
- data/lib/droplet_kit/resources/ssh_key_resource.rb +2 -0
- data/lib/droplet_kit/resources/tag_resource.rb +2 -0
- data/lib/droplet_kit/resources/volume_action_resource.rb +3 -1
- data/lib/droplet_kit/resources/volume_resource.rb +2 -0
- data/lib/droplet_kit/resources/vpc_resource.rb +2 -0
- data/lib/droplet_kit/utils.rb +2 -0
- data/lib/droplet_kit/version.rb +3 -1
- data/lib/droplet_kit.rb +2 -0
- data/lib/tasks/resource_doc.rake +2 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ef77af6c3092397a941c75bd7c0ebc16d8c2d70252e8e0e6117bbc9e66c9566
|
4
|
+
data.tar.gz: a4daf17f1a429d6ca90f5318639608f2941e304539ed6a32040428e729179f9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d353e787ff838318bafff68bb64eb370a6b84b9da9ff79027116b6a9beda8de89c5a200a147fa891d877968ee62bacf6d88f71640bd9db2588ed3fff546162f
|
7
|
+
data.tar.gz: 030202d41f9f4a7cfe4a23e46dd0e6162c09107bb6ee12a133a600927db9bc29c9a8b493f5decaa722b11b74b8529039604736e7012745f6be8a0a8b49183757
|
data/README.md
CHANGED
@@ -284,7 +284,8 @@ inbound_rule = DropletKit::FirewallInboundRule.new(
|
|
284
284
|
ports: '0',
|
285
285
|
sources: {
|
286
286
|
tags: ['frontend', 'backend'],
|
287
|
-
load_balancer_uids: ['d2d3920a-9d45-41b0-b018-d15e18ec60a4']
|
287
|
+
load_balancer_uids: ['d2d3920a-9d45-41b0-b018-d15e18ec60a4'],
|
288
|
+
kubernetes_ids: ['a47b6fb1-4791-4b29-aae1-2b1b9f68a2da']
|
288
289
|
}
|
289
290
|
)
|
290
291
|
|
data/lib/droplet_kit/client.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module DropletKit
|
2
4
|
class DropletMapping
|
3
5
|
include Kartograph::DSL
|
@@ -38,6 +40,7 @@ module DropletKit
|
|
38
40
|
property :ssh_keys, scopes: [:create]
|
39
41
|
property :backups, scopes: [:create]
|
40
42
|
property :monitoring, scopes: [:create]
|
43
|
+
property :with_droplet_agent, scopes: [:create]
|
41
44
|
property :ipv6, scopes: [:create]
|
42
45
|
property :user_data, scopes: [:create]
|
43
46
|
property :private_networking, scopes: [:create]
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module DropletKit
|
2
4
|
class KubernetesClusterMapping
|
3
5
|
include Kartograph::DSL
|
@@ -18,6 +20,7 @@ module DropletKit
|
|
18
20
|
property :maintenance_policy, scopes: [:read, :update, :create]
|
19
21
|
property :node_pools, scopes: [:read, :create]
|
20
22
|
property :vpc_uuid, scopes: [:read, :create]
|
23
|
+
property :ha, scopes: [:read, :create]
|
21
24
|
end
|
22
25
|
end
|
23
26
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module DropletKit
|
2
4
|
class KubernetesOptionsMapping
|
3
5
|
include Kartograph::DSL
|
@@ -5,11 +7,12 @@ module DropletKit
|
|
5
7
|
mapping KubernetesOptions
|
6
8
|
root_key singular: 'options', scopes: [:read]
|
7
9
|
|
8
|
-
Version = Struct.new(:slug, :kubernetes_version)
|
10
|
+
Version = Struct.new(:slug, :kubernetes_version, :supported_features)
|
9
11
|
property :versions, plural: true, scopes: [:read] do
|
10
12
|
mapping Version
|
11
13
|
property :slug, scopes: [:read]
|
12
14
|
property :kubernetes_version, scopes: [:read]
|
15
|
+
property :supported_features, scopes: [:read]
|
13
16
|
end
|
14
17
|
|
15
18
|
Region = Struct.new(:name, :slug)
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module DropletKit
|
2
4
|
class LoadBalancerMapping
|
3
5
|
include Kartograph::DSL
|
@@ -13,6 +15,7 @@ module DropletKit
|
|
13
15
|
property :created_at
|
14
16
|
property :region, include: RegionMapping
|
15
17
|
property :size
|
18
|
+
property :size_unit
|
16
19
|
property :vpc_uuid
|
17
20
|
end
|
18
21
|
|
@@ -27,11 +30,13 @@ module DropletKit
|
|
27
30
|
property :sticky_sessions, include: StickySessionMapping
|
28
31
|
property :health_check, include: HealthCheckMapping
|
29
32
|
property :forwarding_rules, plural: true, include: ForwardingRuleMapping
|
33
|
+
property :disable_lets_encrypt_dns_records
|
30
34
|
end
|
31
35
|
|
32
36
|
scoped :update, :create do
|
33
37
|
property :region
|
34
38
|
property :size
|
39
|
+
property :size_unit
|
35
40
|
end
|
36
41
|
|
37
42
|
scoped :create do
|