scalingo 3.4.0 → 4.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/dependabot.yml +17 -0
- data/.github/workflows/publish.yml +6 -3
- data/.github/workflows/ruby.yml +3 -3
- data/.rubocop.yml +46 -17
- data/CHANGELOG.md +20 -1
- data/Gemfile +2 -0
- data/README.md +13 -62
- data/bin/console +11 -1
- data/bin/lint +2 -0
- data/bin/setup +21 -6
- data/bin/specs +2 -0
- data/lib/scalingo/api/client.rb +26 -53
- data/lib/scalingo/api/endpoint.rb +88 -11
- data/lib/scalingo/auth/keys.rb +4 -50
- data/lib/scalingo/auth/scm_integrations.rb +4 -51
- data/lib/scalingo/auth/tokens.rb +5 -72
- data/lib/scalingo/auth/two_factor_auth.rb +4 -55
- data/lib/scalingo/auth/user.rb +3 -38
- data/lib/scalingo/auth.rb +1 -1
- data/lib/scalingo/bearer_token.rb +16 -9
- data/lib/scalingo/billing/profile.rb +3 -40
- data/lib/scalingo/billing.rb +1 -1
- data/lib/scalingo/client.rb +21 -31
- data/lib/scalingo/configuration.rb +3 -27
- data/lib/scalingo/core_client.rb +9 -30
- data/lib/scalingo/database/backups.rb +9 -0
- data/lib/scalingo/database/databases.rb +8 -0
- data/lib/scalingo/database.rb +13 -0
- data/lib/scalingo/faraday/extract_meta.rb +33 -0
- data/lib/scalingo/faraday/extract_root_value.rb +18 -0
- data/lib/scalingo/faraday/response.rb +36 -0
- data/lib/scalingo/regional/addons.rb +18 -130
- data/lib/scalingo/regional/apps.rb +10 -103
- data/lib/scalingo/regional/autoscalers.rb +5 -64
- data/lib/scalingo/regional/collaborators.rb +4 -51
- data/lib/scalingo/regional/containers.rb +4 -51
- data/lib/scalingo/regional/deployments.rb +3 -38
- data/lib/scalingo/regional/domains.rb +5 -64
- data/lib/scalingo/regional/environment.rb +6 -77
- data/lib/scalingo/regional/events.rb +5 -50
- data/lib/scalingo/regional/logs.rb +10 -28
- data/lib/scalingo/regional/metrics.rb +2 -34
- data/lib/scalingo/regional/notifiers.rb +7 -90
- data/lib/scalingo/regional/operations.rb +5 -18
- data/lib/scalingo/regional/scm_repo_links.rb +8 -103
- data/lib/scalingo/regional.rb +1 -1
- data/lib/scalingo/token_holder.rb +1 -46
- data/lib/scalingo/version.rb +1 -1
- data/scalingo.gemspec +7 -7
- metadata +63 -285
- data/lib/scalingo/api/response.rb +0 -69
- data/lib/scalingo/regional_database/backups.rb +0 -44
- data/lib/scalingo/regional_database/databases.rb +0 -31
- data/lib/scalingo/regional_database.rb +0 -13
- data/samples/auth/keys/_meta.json +0 -13
- data/samples/auth/keys/all-200.json +0 -62
- data/samples/auth/keys/create-201.json +0 -67
- data/samples/auth/keys/create-422.json +0 -34
- data/samples/auth/keys/destroy-204.json +0 -19
- data/samples/auth/keys/destroy-404.json +0 -19
- data/samples/auth/keys/show-200.json +0 -60
- data/samples/auth/keys/show-404.json +0 -19
- data/samples/auth/scm_integrations/_meta.json +0 -14
- data/samples/auth/scm_integrations/all-200.json +0 -41
- data/samples/auth/scm_integrations/create-201.json +0 -41
- data/samples/auth/scm_integrations/create-422.json +0 -36
- data/samples/auth/scm_integrations/destroy-204.json +0 -15
- data/samples/auth/scm_integrations/destroy-404.json +0 -23
- data/samples/auth/scm_integrations/show-200.json +0 -34
- data/samples/auth/scm_integrations/show-404.json +0 -23
- data/samples/auth/tokens/_meta.json +0 -13
- data/samples/auth/tokens/all-200.json +0 -32
- data/samples/auth/tokens/create-201.json +0 -37
- data/samples/auth/tokens/destroy-204.json +0 -19
- data/samples/auth/tokens/destroy-404.json +0 -19
- data/samples/auth/tokens/exchange-200.json +0 -25
- data/samples/auth/tokens/exchange-401.json +0 -24
- data/samples/auth/tokens/renew-200.json +0 -32
- data/samples/auth/tokens/renew-404.json +0 -20
- data/samples/auth/two_factor_auth/_meta.json +0 -10
- data/samples/auth/two_factor_auth/disable-not-initiated.json +0 -23
- data/samples/auth/two_factor_auth/disable-success.json +0 -29
- data/samples/auth/two_factor_auth/initiate-already-enabled.json +0 -29
- data/samples/auth/two_factor_auth/initiate-success.json +0 -36
- data/samples/auth/two_factor_auth/initiate-wrong-provider.json +0 -29
- data/samples/auth/two_factor_auth/status.json +0 -29
- data/samples/auth/two_factor_auth/validate-not-initiated.json +0 -29
- data/samples/auth/two_factor_auth/validate-success.json +0 -49
- data/samples/auth/two_factor_auth/validate-wrong.json +0 -29
- data/samples/auth/user/_meta.json +0 -10
- data/samples/auth/user/self.json +0 -54
- data/samples/auth/user/stop-free-trial.json +0 -24
- data/samples/auth/user/update-200.json +0 -59
- data/samples/auth/user/update-422.json +0 -33
- data/samples/billing/profile/_meta.json +0 -23
- data/samples/billing/profile/create-201.json +0 -50
- data/samples/billing/profile/create-400.json +0 -27
- data/samples/billing/profile/create-422.json +0 -44
- data/samples/billing/profile/show-200.json +0 -41
- data/samples/billing/profile/show-404.json +0 -22
- data/samples/billing/profile/update-200.json +0 -47
- data/samples/billing/profile/update-422.json +0 -32
- data/samples/regional/addons/_meta.json +0 -22
- data/samples/regional/addons/categories-guest.json +0 -36
- data/samples/regional/addons/categories-logged.json +0 -37
- data/samples/regional/addons/destroy-204.json +0 -19
- data/samples/regional/addons/destroy-404.json +0 -24
- data/samples/regional/addons/find-200.json +0 -48
- data/samples/regional/addons/find-404.json +0 -24
- data/samples/regional/addons/for-200.json +0 -50
- data/samples/regional/addons/providers-guest.json +0 -588
- data/samples/regional/addons/providers-logged.json +0 -705
- data/samples/regional/addons/provision-201.json +0 -58
- data/samples/regional/addons/provision-400.json +0 -29
- data/samples/regional/addons/sso-200.json +0 -49
- data/samples/regional/addons/sso-404.json +0 -24
- data/samples/regional/addons/token-200.json +0 -49
- data/samples/regional/addons/token-404.json +0 -24
- data/samples/regional/addons/update-200.json +0 -58
- data/samples/regional/addons/update-404.json +0 -30
- data/samples/regional/apps/_meta.json +0 -52
- data/samples/regional/apps/all.json +0 -99
- data/samples/regional/apps/create-201.json +0 -66
- data/samples/regional/apps/create-422.json +0 -34
- data/samples/regional/apps/destroy-204.json +0 -19
- data/samples/regional/apps/destroy-404.json +0 -24
- data/samples/regional/apps/destroy-422.json +0 -27
- data/samples/regional/apps/find-200.json +0 -60
- data/samples/regional/apps/find-404.json +0 -24
- data/samples/regional/apps/logs_url.json +0 -62
- data/samples/regional/apps/rename-200.json +0 -65
- data/samples/regional/apps/rename-404.json +0 -29
- data/samples/regional/apps/rename-422.json +0 -33
- data/samples/regional/apps/transfer-200.json +0 -65
- data/samples/regional/apps/transfer-404.json +0 -27
- data/samples/regional/apps/transfer-422.json +0 -34
- data/samples/regional/apps/update-200.json +0 -66
- data/samples/regional/apps/update-stack-404.json +0 -30
- data/samples/regional/autoscalers/_meta.json +0 -27
- data/samples/regional/autoscalers/create-201.json +0 -49
- data/samples/regional/autoscalers/create-500.json +0 -32
- data/samples/regional/autoscalers/destroy-204.json +0 -20
- data/samples/regional/autoscalers/destroy-404.json +0 -25
- data/samples/regional/autoscalers/find-200.json +0 -39
- data/samples/regional/autoscalers/find-404.json +0 -25
- data/samples/regional/autoscalers/for-200.json +0 -41
- data/samples/regional/autoscalers/update-200.json +0 -45
- data/samples/regional/autoscalers/update-404.json +0 -31
- data/samples/regional/autoscalers/update-500.json +0 -30
- data/samples/regional/collaborators/_meta.json +0 -17
- data/samples/regional/collaborators/accept-200.json +0 -60
- data/samples/regional/collaborators/accept-400.json +0 -24
- data/samples/regional/collaborators/accept-404.json +0 -24
- data/samples/regional/collaborators/destroy-204.json +0 -19
- data/samples/regional/collaborators/destroy-404.json +0 -24
- data/samples/regional/collaborators/for-200.json +0 -34
- data/samples/regional/collaborators/invite-201.json +0 -37
- data/samples/regional/collaborators/invite-422.json +0 -34
- data/samples/regional/containers/_meta.json +0 -25
- data/samples/regional/containers/for-200.json +0 -39
- data/samples/regional/containers/restart-202.json +0 -28
- data/samples/regional/containers/restart-422.json +0 -33
- data/samples/regional/containers/scale-202.json +0 -48
- data/samples/regional/containers/scale-422.json +0 -36
- data/samples/regional/containers/sizes-guest.json +0 -115
- data/samples/regional/containers/sizes-logged.json +0 -116
- data/samples/regional/deployments/_meta.json +0 -8
- data/samples/regional/deployments/find-200.json +0 -45
- data/samples/regional/deployments/find-404.json +0 -24
- data/samples/regional/deployments/for-with-paging.json +0 -35
- data/samples/regional/deployments/for-without-pages.json +0 -56
- data/samples/regional/deployments/logs-200.json +0 -22
- data/samples/regional/deployments/logs-404.json +0 -24
- data/samples/regional/domains/_meta.json +0 -21
- data/samples/regional/domains/create-201.json +0 -44
- data/samples/regional/domains/create-422.json +0 -33
- data/samples/regional/domains/destroy-204.json +0 -19
- data/samples/regional/domains/destroy-404.json +0 -24
- data/samples/regional/domains/find-200.json +0 -38
- data/samples/regional/domains/find-404.json +0 -24
- data/samples/regional/domains/for-200.json +0 -40
- data/samples/regional/domains/update-200.json +0 -44
- data/samples/regional/domains/update-404.json +0 -30
- data/samples/regional/domains/update-422.json +0 -33
- data/samples/regional/environment/_meta.json +0 -43
- data/samples/regional/environment/bulk-destroy-204.json +0 -19
- data/samples/regional/environment/bulk-update-200.json +0 -70
- data/samples/regional/environment/create-201.json +0 -36
- data/samples/regional/environment/create-422.json +0 -37
- data/samples/regional/environment/destroy-204.json +0 -19
- data/samples/regional/environment/destroy-404.json +0 -24
- data/samples/regional/environment/for-200.json +0 -31
- data/samples/regional/environment/update-200.json +0 -35
- data/samples/regional/environment/update-404.json +0 -30
- data/samples/regional/events/_meta.json +0 -3
- data/samples/regional/events/all-200.json +0 -619
- data/samples/regional/events/categories-guest.json +0 -66
- data/samples/regional/events/categories-logged.json +0 -67
- data/samples/regional/events/for-200.json +0 -404
- data/samples/regional/events/types-guest.json +0 -288
- data/samples/regional/events/types-logged.json +0 -289
- data/samples/regional/logs/_meta.json +0 -11
- data/samples/regional/logs/archives-200.json +0 -28
- data/samples/regional/logs/get-guest-200.json +0 -18
- data/samples/regional/logs/get-logged-200.json +0 -19
- data/samples/regional/logs/get-with-limit-200.json +0 -18
- data/samples/regional/metrics/_meta.json +0 -15
- data/samples/regional/metrics/for-invalid-400.json +0 -23
- data/samples/regional/metrics/for-valid-cpu-200.json +0 -747
- data/samples/regional/metrics/for-valid-router-404.json +0 -23
- data/samples/regional/metrics/types-guest.json +0 -66
- data/samples/regional/metrics/types-logged.json +0 -67
- data/samples/regional/notifiers/_meta.json +0 -23
- data/samples/regional/notifiers/create-201.json +0 -55
- data/samples/regional/notifiers/create-404.json +0 -30
- data/samples/regional/notifiers/create-422.json +0 -36
- data/samples/regional/notifiers/destroy-204.json +0 -19
- data/samples/regional/notifiers/destroy-404.json +0 -24
- data/samples/regional/notifiers/find-200.json +0 -47
- data/samples/regional/notifiers/find-404.json +0 -24
- data/samples/regional/notifiers/for-200.json +0 -49
- data/samples/regional/notifiers/platforms-guest.json +0 -184
- data/samples/regional/notifiers/platforms-logged.json +0 -185
- data/samples/regional/notifiers/test-200.json +0 -22
- data/samples/regional/notifiers/test-404.json +0 -25
- data/samples/regional/notifiers/update-200.json +0 -53
- data/samples/regional/operations/_meta.json +0 -5
- data/samples/regional/operations/find-200.json +0 -31
- data/samples/regional/operations/find-404.json +0 -24
- data/samples/regional/scm_repo_links/_meta.json +0 -22
- data/samples/regional/scm_repo_links/create-201.json +0 -54
- data/samples/regional/scm_repo_links/destroy-204.json +0 -15
- data/samples/regional/scm_repo_links/manual-deploy-200.json +0 -32
- data/samples/regional/scm_repo_links/show-200.json +0 -43
- data/samples/regional/scm_repo_links/update-200.json +0 -50
- data/samples/regional_database/backups/_meta.json +0 -4
- data/samples/regional_database/backups/archive-200.json +0 -24
- data/samples/regional_database/backups/archive-400.json +0 -24
- data/samples/regional_database/backups/create-201.json +0 -32
- data/samples/regional_database/backups/create-400.json +0 -24
- data/samples/regional_database/backups/for-200.json +0 -52
- data/samples/regional_database/backups/for-400.json +0 -24
- data/samples/regional_database/databases/_meta.json +0 -3
- data/samples/regional_database/databases/find-200.json +0 -47
- data/samples/regional_database/databases/find-400.json +0 -24
- data/samples/regional_database/databases/upgrade-202.json +0 -39
- data/samples/regional_database/databases/upgrade-400.json +0 -24
- data/spec/scalingo/api/client_spec.rb +0 -256
- data/spec/scalingo/api/endpoint_spec.rb +0 -45
- data/spec/scalingo/api/response_spec.rb +0 -301
- data/spec/scalingo/auth/keys_spec.rb +0 -58
- data/spec/scalingo/auth/scm_integrations_spec.rb +0 -58
- data/spec/scalingo/auth/tokens_spec.rb +0 -74
- data/spec/scalingo/auth/two_factor_auth_spec.rb +0 -69
- data/spec/scalingo/auth/user_spec.rb +0 -31
- data/spec/scalingo/auth_spec.rb +0 -15
- data/spec/scalingo/bearer_token_spec.rb +0 -72
- data/spec/scalingo/billing/profile_spec.rb +0 -55
- data/spec/scalingo/billing_spec.rb +0 -11
- data/spec/scalingo/client_spec.rb +0 -93
- data/spec/scalingo/configuration_spec.rb +0 -57
- data/spec/scalingo/core_client_spec.rb +0 -23
- data/spec/scalingo/regional/addons_spec.rb +0 -169
- data/spec/scalingo/regional/apps_spec.rb +0 -137
- data/spec/scalingo/regional/autoscalers_spec.rb +0 -84
- data/spec/scalingo/regional/collaborators_spec.rb +0 -69
- data/spec/scalingo/regional/containers_spec.rb +0 -67
- data/spec/scalingo/regional/deployments_spec.rb +0 -45
- data/spec/scalingo/regional/domains_spec.rb +0 -84
- data/spec/scalingo/regional/environment_spec.rb +0 -77
- data/spec/scalingo/regional/events_spec.rb +0 -65
- data/spec/scalingo/regional/logs_spec.rb +0 -39
- data/spec/scalingo/regional/metrics_spec.rb +0 -46
- data/spec/scalingo/regional/notifiers_spec.rb +0 -113
- data/spec/scalingo/regional/operations_spec.rb +0 -27
- data/spec/scalingo/regional/scm_repo_links_spec.rb +0 -48
- data/spec/scalingo/regional_database/backups_spec.rb +0 -58
- data/spec/scalingo/regional_database/databases_spec.rb +0 -39
- data/spec/scalingo/regional_database_spec.rb +0 -11
- data/spec/scalingo/regional_spec.rb +0 -14
- data/spec/scalingo/token_holder_spec.rb +0 -81
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scalingo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leo Unbekandt
|
@@ -9,8 +9,28 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-04-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: addressable
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: 2.8.0
|
21
|
+
- - "<"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '3'
|
24
|
+
type: :runtime
|
25
|
+
prerelease: false
|
26
|
+
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
requirements:
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 2.8.0
|
31
|
+
- - "<"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3'
|
14
34
|
- !ruby/object:Gem::Dependency
|
15
35
|
name: activesupport
|
16
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -37,18 +57,21 @@ dependencies:
|
|
37
57
|
requirements:
|
38
58
|
- - "~>"
|
39
59
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
60
|
+
version: '2.0'
|
41
61
|
type: :runtime
|
42
62
|
prerelease: false
|
43
63
|
version_requirements: !ruby/object:Gem::Requirement
|
44
64
|
requirements:
|
45
65
|
- - "~>"
|
46
66
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
67
|
+
version: '2.0'
|
48
68
|
- !ruby/object:Gem::Dependency
|
49
|
-
name:
|
69
|
+
name: multi_json
|
50
70
|
requirement: !ruby/object:Gem::Requirement
|
51
71
|
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 1.0.3
|
52
75
|
- - "~>"
|
53
76
|
- !ruby/object:Gem::Version
|
54
77
|
version: '1.0'
|
@@ -56,29 +79,26 @@ dependencies:
|
|
56
79
|
prerelease: false
|
57
80
|
version_requirements: !ruby/object:Gem::Requirement
|
58
81
|
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 1.0.3
|
59
85
|
- - "~>"
|
60
86
|
- !ruby/object:Gem::Version
|
61
87
|
version: '1.0'
|
62
88
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
89
|
+
name: jwt
|
64
90
|
requirement: !ruby/object:Gem::Requirement
|
65
91
|
requirements:
|
66
92
|
- - ">="
|
67
93
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
69
|
-
- - "~>"
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
version: '1.0'
|
94
|
+
version: '0'
|
72
95
|
type: :runtime
|
73
96
|
prerelease: false
|
74
97
|
version_requirements: !ruby/object:Gem::Requirement
|
75
98
|
requirements:
|
76
99
|
- - ">="
|
77
100
|
- !ruby/object:Gem::Version
|
78
|
-
version:
|
79
|
-
- - "~>"
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '1.0'
|
101
|
+
version: '0'
|
82
102
|
- !ruby/object:Gem::Dependency
|
83
103
|
name: bundler
|
84
104
|
requirement: !ruby/object:Gem::Requirement
|
@@ -93,6 +113,20 @@ dependencies:
|
|
93
113
|
- - "~>"
|
94
114
|
- !ruby/object:Gem::Version
|
95
115
|
version: '2.0'
|
116
|
+
- !ruby/object:Gem::Dependency
|
117
|
+
name: dotenv
|
118
|
+
requirement: !ruby/object:Gem::Requirement
|
119
|
+
requirements:
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0'
|
123
|
+
type: :development
|
124
|
+
prerelease: false
|
125
|
+
version_requirements: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - ">="
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '0'
|
96
130
|
- !ruby/object:Gem::Dependency
|
97
131
|
name: rake
|
98
132
|
requirement: !ruby/object:Gem::Requirement
|
@@ -127,14 +161,14 @@ dependencies:
|
|
127
161
|
requirements:
|
128
162
|
- - "~>"
|
129
163
|
- !ruby/object:Gem::Version
|
130
|
-
version: 1.
|
164
|
+
version: '1.32'
|
131
165
|
type: :development
|
132
166
|
prerelease: false
|
133
167
|
version_requirements: !ruby/object:Gem::Requirement
|
134
168
|
requirements:
|
135
169
|
- - "~>"
|
136
170
|
- !ruby/object:Gem::Version
|
137
|
-
version: 1.
|
171
|
+
version: '1.32'
|
138
172
|
- !ruby/object:Gem::Dependency
|
139
173
|
name: rubocop-rspec
|
140
174
|
requirement: !ruby/object:Gem::Requirement
|
@@ -169,14 +203,14 @@ dependencies:
|
|
169
203
|
requirements:
|
170
204
|
- - "~>"
|
171
205
|
- !ruby/object:Gem::Version
|
172
|
-
version: 3.
|
206
|
+
version: '3.19'
|
173
207
|
type: :development
|
174
208
|
prerelease: false
|
175
209
|
version_requirements: !ruby/object:Gem::Requirement
|
176
210
|
requirements:
|
177
211
|
- - "~>"
|
178
212
|
- !ruby/object:Gem::Version
|
179
|
-
version: 3.
|
213
|
+
version: '3.19'
|
180
214
|
description: Ruby client library for the web APIs of Scalingo, a european Platform-as-a-Service
|
181
215
|
email:
|
182
216
|
- leo@scalingo.com
|
@@ -186,6 +220,7 @@ extensions: []
|
|
186
220
|
extra_rdoc_files: []
|
187
221
|
files:
|
188
222
|
- ".github/dependabot.yml"
|
223
|
+
- ".github/workflows/dependabot.yml"
|
189
224
|
- ".github/workflows/publish.yml"
|
190
225
|
- ".github/workflows/ruby.yml"
|
191
226
|
- ".gitignore"
|
@@ -197,11 +232,12 @@ files:
|
|
197
232
|
- README.md
|
198
233
|
- Rakefile
|
199
234
|
- bin/console
|
235
|
+
- bin/lint
|
200
236
|
- bin/setup
|
237
|
+
- bin/specs
|
201
238
|
- lib/scalingo.rb
|
202
239
|
- lib/scalingo/api/client.rb
|
203
240
|
- lib/scalingo/api/endpoint.rb
|
204
|
-
- lib/scalingo/api/response.rb
|
205
241
|
- lib/scalingo/auth.rb
|
206
242
|
- lib/scalingo/auth/keys.rb
|
207
243
|
- lib/scalingo/auth/scm_integrations.rb
|
@@ -214,9 +250,15 @@ files:
|
|
214
250
|
- lib/scalingo/client.rb
|
215
251
|
- lib/scalingo/configuration.rb
|
216
252
|
- lib/scalingo/core_client.rb
|
253
|
+
- lib/scalingo/database.rb
|
254
|
+
- lib/scalingo/database/backups.rb
|
255
|
+
- lib/scalingo/database/databases.rb
|
217
256
|
- lib/scalingo/error/expired_token.rb
|
218
257
|
- lib/scalingo/error/unauthenticated.rb
|
219
258
|
- lib/scalingo/errors.rb
|
259
|
+
- lib/scalingo/faraday/extract_meta.rb
|
260
|
+
- lib/scalingo/faraday/extract_root_value.rb
|
261
|
+
- lib/scalingo/faraday/response.rb
|
220
262
|
- lib/scalingo/regional.rb
|
221
263
|
- lib/scalingo/regional/addons.rb
|
222
264
|
- lib/scalingo/regional/apps.rb
|
@@ -232,239 +274,9 @@ files:
|
|
232
274
|
- lib/scalingo/regional/notifiers.rb
|
233
275
|
- lib/scalingo/regional/operations.rb
|
234
276
|
- lib/scalingo/regional/scm_repo_links.rb
|
235
|
-
- lib/scalingo/regional_database.rb
|
236
|
-
- lib/scalingo/regional_database/backups.rb
|
237
|
-
- lib/scalingo/regional_database/databases.rb
|
238
277
|
- lib/scalingo/token_holder.rb
|
239
278
|
- lib/scalingo/version.rb
|
240
|
-
- samples/auth/keys/_meta.json
|
241
|
-
- samples/auth/keys/all-200.json
|
242
|
-
- samples/auth/keys/create-201.json
|
243
|
-
- samples/auth/keys/create-422.json
|
244
|
-
- samples/auth/keys/destroy-204.json
|
245
|
-
- samples/auth/keys/destroy-404.json
|
246
|
-
- samples/auth/keys/show-200.json
|
247
|
-
- samples/auth/keys/show-404.json
|
248
|
-
- samples/auth/scm_integrations/_meta.json
|
249
|
-
- samples/auth/scm_integrations/all-200.json
|
250
|
-
- samples/auth/scm_integrations/create-201.json
|
251
|
-
- samples/auth/scm_integrations/create-422.json
|
252
|
-
- samples/auth/scm_integrations/destroy-204.json
|
253
|
-
- samples/auth/scm_integrations/destroy-404.json
|
254
|
-
- samples/auth/scm_integrations/show-200.json
|
255
|
-
- samples/auth/scm_integrations/show-404.json
|
256
|
-
- samples/auth/tokens/_meta.json
|
257
|
-
- samples/auth/tokens/all-200.json
|
258
|
-
- samples/auth/tokens/create-201.json
|
259
|
-
- samples/auth/tokens/destroy-204.json
|
260
|
-
- samples/auth/tokens/destroy-404.json
|
261
|
-
- samples/auth/tokens/exchange-200.json
|
262
|
-
- samples/auth/tokens/exchange-401.json
|
263
|
-
- samples/auth/tokens/renew-200.json
|
264
|
-
- samples/auth/tokens/renew-404.json
|
265
|
-
- samples/auth/two_factor_auth/_meta.json
|
266
|
-
- samples/auth/two_factor_auth/disable-not-initiated.json
|
267
|
-
- samples/auth/two_factor_auth/disable-success.json
|
268
|
-
- samples/auth/two_factor_auth/initiate-already-enabled.json
|
269
|
-
- samples/auth/two_factor_auth/initiate-success.json
|
270
|
-
- samples/auth/two_factor_auth/initiate-wrong-provider.json
|
271
|
-
- samples/auth/two_factor_auth/status.json
|
272
|
-
- samples/auth/two_factor_auth/validate-not-initiated.json
|
273
|
-
- samples/auth/two_factor_auth/validate-success.json
|
274
|
-
- samples/auth/two_factor_auth/validate-wrong.json
|
275
|
-
- samples/auth/user/_meta.json
|
276
|
-
- samples/auth/user/self.json
|
277
|
-
- samples/auth/user/stop-free-trial.json
|
278
|
-
- samples/auth/user/update-200.json
|
279
|
-
- samples/auth/user/update-422.json
|
280
|
-
- samples/billing/profile/_meta.json
|
281
|
-
- samples/billing/profile/create-201.json
|
282
|
-
- samples/billing/profile/create-400.json
|
283
|
-
- samples/billing/profile/create-422.json
|
284
|
-
- samples/billing/profile/show-200.json
|
285
|
-
- samples/billing/profile/show-404.json
|
286
|
-
- samples/billing/profile/update-200.json
|
287
|
-
- samples/billing/profile/update-422.json
|
288
|
-
- samples/regional/addons/_meta.json
|
289
|
-
- samples/regional/addons/categories-guest.json
|
290
|
-
- samples/regional/addons/categories-logged.json
|
291
|
-
- samples/regional/addons/destroy-204.json
|
292
|
-
- samples/regional/addons/destroy-404.json
|
293
|
-
- samples/regional/addons/find-200.json
|
294
|
-
- samples/regional/addons/find-404.json
|
295
|
-
- samples/regional/addons/for-200.json
|
296
|
-
- samples/regional/addons/providers-guest.json
|
297
|
-
- samples/regional/addons/providers-logged.json
|
298
|
-
- samples/regional/addons/provision-201.json
|
299
|
-
- samples/regional/addons/provision-400.json
|
300
|
-
- samples/regional/addons/sso-200.json
|
301
|
-
- samples/regional/addons/sso-404.json
|
302
|
-
- samples/regional/addons/token-200.json
|
303
|
-
- samples/regional/addons/token-404.json
|
304
|
-
- samples/regional/addons/update-200.json
|
305
|
-
- samples/regional/addons/update-404.json
|
306
|
-
- samples/regional/apps/_meta.json
|
307
|
-
- samples/regional/apps/all.json
|
308
|
-
- samples/regional/apps/create-201.json
|
309
|
-
- samples/regional/apps/create-422.json
|
310
|
-
- samples/regional/apps/destroy-204.json
|
311
|
-
- samples/regional/apps/destroy-404.json
|
312
|
-
- samples/regional/apps/destroy-422.json
|
313
|
-
- samples/regional/apps/find-200.json
|
314
|
-
- samples/regional/apps/find-404.json
|
315
|
-
- samples/regional/apps/logs_url.json
|
316
|
-
- samples/regional/apps/rename-200.json
|
317
|
-
- samples/regional/apps/rename-404.json
|
318
|
-
- samples/regional/apps/rename-422.json
|
319
|
-
- samples/regional/apps/transfer-200.json
|
320
|
-
- samples/regional/apps/transfer-404.json
|
321
|
-
- samples/regional/apps/transfer-422.json
|
322
|
-
- samples/regional/apps/update-200.json
|
323
|
-
- samples/regional/apps/update-stack-404.json
|
324
|
-
- samples/regional/autoscalers/_meta.json
|
325
|
-
- samples/regional/autoscalers/create-201.json
|
326
|
-
- samples/regional/autoscalers/create-500.json
|
327
|
-
- samples/regional/autoscalers/destroy-204.json
|
328
|
-
- samples/regional/autoscalers/destroy-404.json
|
329
|
-
- samples/regional/autoscalers/find-200.json
|
330
|
-
- samples/regional/autoscalers/find-404.json
|
331
|
-
- samples/regional/autoscalers/for-200.json
|
332
|
-
- samples/regional/autoscalers/update-200.json
|
333
|
-
- samples/regional/autoscalers/update-404.json
|
334
|
-
- samples/regional/autoscalers/update-500.json
|
335
|
-
- samples/regional/collaborators/_meta.json
|
336
|
-
- samples/regional/collaborators/accept-200.json
|
337
|
-
- samples/regional/collaborators/accept-400.json
|
338
|
-
- samples/regional/collaborators/accept-404.json
|
339
|
-
- samples/regional/collaborators/destroy-204.json
|
340
|
-
- samples/regional/collaborators/destroy-404.json
|
341
|
-
- samples/regional/collaborators/for-200.json
|
342
|
-
- samples/regional/collaborators/invite-201.json
|
343
|
-
- samples/regional/collaborators/invite-422.json
|
344
|
-
- samples/regional/containers/_meta.json
|
345
|
-
- samples/regional/containers/for-200.json
|
346
|
-
- samples/regional/containers/restart-202.json
|
347
|
-
- samples/regional/containers/restart-422.json
|
348
|
-
- samples/regional/containers/scale-202.json
|
349
|
-
- samples/regional/containers/scale-422.json
|
350
|
-
- samples/regional/containers/sizes-guest.json
|
351
|
-
- samples/regional/containers/sizes-logged.json
|
352
|
-
- samples/regional/deployments/_meta.json
|
353
|
-
- samples/regional/deployments/find-200.json
|
354
|
-
- samples/regional/deployments/find-404.json
|
355
|
-
- samples/regional/deployments/for-with-paging.json
|
356
|
-
- samples/regional/deployments/for-without-pages.json
|
357
|
-
- samples/regional/deployments/logs-200.json
|
358
|
-
- samples/regional/deployments/logs-404.json
|
359
|
-
- samples/regional/domains/_meta.json
|
360
|
-
- samples/regional/domains/create-201.json
|
361
|
-
- samples/regional/domains/create-422.json
|
362
|
-
- samples/regional/domains/destroy-204.json
|
363
|
-
- samples/regional/domains/destroy-404.json
|
364
|
-
- samples/regional/domains/find-200.json
|
365
|
-
- samples/regional/domains/find-404.json
|
366
|
-
- samples/regional/domains/for-200.json
|
367
|
-
- samples/regional/domains/update-200.json
|
368
|
-
- samples/regional/domains/update-404.json
|
369
|
-
- samples/regional/domains/update-422.json
|
370
|
-
- samples/regional/environment/_meta.json
|
371
|
-
- samples/regional/environment/bulk-destroy-204.json
|
372
|
-
- samples/regional/environment/bulk-update-200.json
|
373
|
-
- samples/regional/environment/create-201.json
|
374
|
-
- samples/regional/environment/create-422.json
|
375
|
-
- samples/regional/environment/destroy-204.json
|
376
|
-
- samples/regional/environment/destroy-404.json
|
377
|
-
- samples/regional/environment/for-200.json
|
378
|
-
- samples/regional/environment/update-200.json
|
379
|
-
- samples/regional/environment/update-404.json
|
380
|
-
- samples/regional/events/_meta.json
|
381
|
-
- samples/regional/events/all-200.json
|
382
|
-
- samples/regional/events/categories-guest.json
|
383
|
-
- samples/regional/events/categories-logged.json
|
384
|
-
- samples/regional/events/for-200.json
|
385
|
-
- samples/regional/events/types-guest.json
|
386
|
-
- samples/regional/events/types-logged.json
|
387
|
-
- samples/regional/logs/_meta.json
|
388
|
-
- samples/regional/logs/archives-200.json
|
389
|
-
- samples/regional/logs/get-guest-200.json
|
390
|
-
- samples/regional/logs/get-logged-200.json
|
391
|
-
- samples/regional/logs/get-with-limit-200.json
|
392
|
-
- samples/regional/metrics/_meta.json
|
393
|
-
- samples/regional/metrics/for-invalid-400.json
|
394
|
-
- samples/regional/metrics/for-valid-cpu-200.json
|
395
|
-
- samples/regional/metrics/for-valid-router-404.json
|
396
|
-
- samples/regional/metrics/types-guest.json
|
397
|
-
- samples/regional/metrics/types-logged.json
|
398
|
-
- samples/regional/notifiers/_meta.json
|
399
|
-
- samples/regional/notifiers/create-201.json
|
400
|
-
- samples/regional/notifiers/create-404.json
|
401
|
-
- samples/regional/notifiers/create-422.json
|
402
|
-
- samples/regional/notifiers/destroy-204.json
|
403
|
-
- samples/regional/notifiers/destroy-404.json
|
404
|
-
- samples/regional/notifiers/find-200.json
|
405
|
-
- samples/regional/notifiers/find-404.json
|
406
|
-
- samples/regional/notifiers/for-200.json
|
407
|
-
- samples/regional/notifiers/platforms-guest.json
|
408
|
-
- samples/regional/notifiers/platforms-logged.json
|
409
|
-
- samples/regional/notifiers/test-200.json
|
410
|
-
- samples/regional/notifiers/test-404.json
|
411
|
-
- samples/regional/notifiers/update-200.json
|
412
|
-
- samples/regional/operations/_meta.json
|
413
|
-
- samples/regional/operations/find-200.json
|
414
|
-
- samples/regional/operations/find-404.json
|
415
|
-
- samples/regional/scm_repo_links/_meta.json
|
416
|
-
- samples/regional/scm_repo_links/create-201.json
|
417
|
-
- samples/regional/scm_repo_links/destroy-204.json
|
418
|
-
- samples/regional/scm_repo_links/manual-deploy-200.json
|
419
|
-
- samples/regional/scm_repo_links/show-200.json
|
420
|
-
- samples/regional/scm_repo_links/update-200.json
|
421
|
-
- samples/regional_database/backups/_meta.json
|
422
|
-
- samples/regional_database/backups/archive-200.json
|
423
|
-
- samples/regional_database/backups/archive-400.json
|
424
|
-
- samples/regional_database/backups/create-201.json
|
425
|
-
- samples/regional_database/backups/create-400.json
|
426
|
-
- samples/regional_database/backups/for-200.json
|
427
|
-
- samples/regional_database/backups/for-400.json
|
428
|
-
- samples/regional_database/databases/_meta.json
|
429
|
-
- samples/regional_database/databases/find-200.json
|
430
|
-
- samples/regional_database/databases/find-400.json
|
431
|
-
- samples/regional_database/databases/upgrade-202.json
|
432
|
-
- samples/regional_database/databases/upgrade-400.json
|
433
279
|
- scalingo.gemspec
|
434
|
-
- spec/scalingo/api/client_spec.rb
|
435
|
-
- spec/scalingo/api/endpoint_spec.rb
|
436
|
-
- spec/scalingo/api/response_spec.rb
|
437
|
-
- spec/scalingo/auth/keys_spec.rb
|
438
|
-
- spec/scalingo/auth/scm_integrations_spec.rb
|
439
|
-
- spec/scalingo/auth/tokens_spec.rb
|
440
|
-
- spec/scalingo/auth/two_factor_auth_spec.rb
|
441
|
-
- spec/scalingo/auth/user_spec.rb
|
442
|
-
- spec/scalingo/auth_spec.rb
|
443
|
-
- spec/scalingo/bearer_token_spec.rb
|
444
|
-
- spec/scalingo/billing/profile_spec.rb
|
445
|
-
- spec/scalingo/billing_spec.rb
|
446
|
-
- spec/scalingo/client_spec.rb
|
447
|
-
- spec/scalingo/configuration_spec.rb
|
448
|
-
- spec/scalingo/core_client_spec.rb
|
449
|
-
- spec/scalingo/regional/addons_spec.rb
|
450
|
-
- spec/scalingo/regional/apps_spec.rb
|
451
|
-
- spec/scalingo/regional/autoscalers_spec.rb
|
452
|
-
- spec/scalingo/regional/collaborators_spec.rb
|
453
|
-
- spec/scalingo/regional/containers_spec.rb
|
454
|
-
- spec/scalingo/regional/deployments_spec.rb
|
455
|
-
- spec/scalingo/regional/domains_spec.rb
|
456
|
-
- spec/scalingo/regional/environment_spec.rb
|
457
|
-
- spec/scalingo/regional/events_spec.rb
|
458
|
-
- spec/scalingo/regional/logs_spec.rb
|
459
|
-
- spec/scalingo/regional/metrics_spec.rb
|
460
|
-
- spec/scalingo/regional/notifiers_spec.rb
|
461
|
-
- spec/scalingo/regional/operations_spec.rb
|
462
|
-
- spec/scalingo/regional/scm_repo_links_spec.rb
|
463
|
-
- spec/scalingo/regional_database/backups_spec.rb
|
464
|
-
- spec/scalingo/regional_database/databases_spec.rb
|
465
|
-
- spec/scalingo/regional_database_spec.rb
|
466
|
-
- spec/scalingo/regional_spec.rb
|
467
|
-
- spec/scalingo/token_holder_spec.rb
|
468
280
|
homepage: https://www.scalingo.com
|
469
281
|
licenses:
|
470
282
|
- MIT
|
@@ -489,42 +301,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
489
301
|
- !ruby/object:Gem::Version
|
490
302
|
version: '0'
|
491
303
|
requirements: []
|
492
|
-
rubygems_version: 3.
|
304
|
+
rubygems_version: 3.5.9
|
493
305
|
signing_key:
|
494
306
|
specification_version: 4
|
495
307
|
summary: Ruby client for Scalingo APIs
|
496
|
-
test_files:
|
497
|
-
- spec/scalingo/api/client_spec.rb
|
498
|
-
- spec/scalingo/api/endpoint_spec.rb
|
499
|
-
- spec/scalingo/api/response_spec.rb
|
500
|
-
- spec/scalingo/auth/keys_spec.rb
|
501
|
-
- spec/scalingo/auth/scm_integrations_spec.rb
|
502
|
-
- spec/scalingo/auth/tokens_spec.rb
|
503
|
-
- spec/scalingo/auth/two_factor_auth_spec.rb
|
504
|
-
- spec/scalingo/auth/user_spec.rb
|
505
|
-
- spec/scalingo/auth_spec.rb
|
506
|
-
- spec/scalingo/bearer_token_spec.rb
|
507
|
-
- spec/scalingo/billing/profile_spec.rb
|
508
|
-
- spec/scalingo/billing_spec.rb
|
509
|
-
- spec/scalingo/client_spec.rb
|
510
|
-
- spec/scalingo/configuration_spec.rb
|
511
|
-
- spec/scalingo/core_client_spec.rb
|
512
|
-
- spec/scalingo/regional/addons_spec.rb
|
513
|
-
- spec/scalingo/regional/apps_spec.rb
|
514
|
-
- spec/scalingo/regional/autoscalers_spec.rb
|
515
|
-
- spec/scalingo/regional/collaborators_spec.rb
|
516
|
-
- spec/scalingo/regional/containers_spec.rb
|
517
|
-
- spec/scalingo/regional/deployments_spec.rb
|
518
|
-
- spec/scalingo/regional/domains_spec.rb
|
519
|
-
- spec/scalingo/regional/environment_spec.rb
|
520
|
-
- spec/scalingo/regional/events_spec.rb
|
521
|
-
- spec/scalingo/regional/logs_spec.rb
|
522
|
-
- spec/scalingo/regional/metrics_spec.rb
|
523
|
-
- spec/scalingo/regional/notifiers_spec.rb
|
524
|
-
- spec/scalingo/regional/operations_spec.rb
|
525
|
-
- spec/scalingo/regional/scm_repo_links_spec.rb
|
526
|
-
- spec/scalingo/regional_database/backups_spec.rb
|
527
|
-
- spec/scalingo/regional_database/databases_spec.rb
|
528
|
-
- spec/scalingo/regional_database_spec.rb
|
529
|
-
- spec/scalingo/regional_spec.rb
|
530
|
-
- spec/scalingo/token_holder_spec.rb
|
308
|
+
test_files: []
|
@@ -1,69 +0,0 @@
|
|
1
|
-
module Scalingo
|
2
|
-
module API
|
3
|
-
class Response
|
4
|
-
def self.unpack(client, key: nil, keys: nil, &block)
|
5
|
-
response = block.call
|
6
|
-
|
7
|
-
body = response.body
|
8
|
-
has_hash_body = body.present? && body.respond_to?(:key)
|
9
|
-
|
10
|
-
data = body
|
11
|
-
meta = nil
|
12
|
-
|
13
|
-
if has_hash_body
|
14
|
-
keys = [key] if key.present?
|
15
|
-
|
16
|
-
data = body.dig(*keys) if response.success? && keys.present?
|
17
|
-
|
18
|
-
meta = body[:meta]
|
19
|
-
end
|
20
|
-
|
21
|
-
new(
|
22
|
-
client: client,
|
23
|
-
status: response.status,
|
24
|
-
headers: response.headers,
|
25
|
-
data: data,
|
26
|
-
meta: meta,
|
27
|
-
full_body: body,
|
28
|
-
)
|
29
|
-
end
|
30
|
-
|
31
|
-
attr_reader :client, :status, :headers, :data, :full_body, :meta
|
32
|
-
|
33
|
-
def initialize(client:, status:, headers:, data:, full_body:, meta: nil)
|
34
|
-
@client = client
|
35
|
-
@status = status
|
36
|
-
@headers = headers
|
37
|
-
@data = data
|
38
|
-
@full_body = full_body
|
39
|
-
@meta = meta
|
40
|
-
end
|
41
|
-
|
42
|
-
def inspect
|
43
|
-
%(<#{self.class}:0x#{object_id.to_s(16)} status:#{@status} data:#{@data} meta:#{@meta}>)
|
44
|
-
end
|
45
|
-
|
46
|
-
def successful?
|
47
|
-
status >= 200 && status < 300
|
48
|
-
end
|
49
|
-
|
50
|
-
def paginated?
|
51
|
-
meta&.dig(:pagination).present?
|
52
|
-
end
|
53
|
-
|
54
|
-
def operation
|
55
|
-
if operation? && client.respond_to?(:operations)
|
56
|
-
client.operations.get(operation_url)
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
def operation_url
|
61
|
-
headers[:location]
|
62
|
-
end
|
63
|
-
|
64
|
-
def operation?
|
65
|
-
operation_url.present?
|
66
|
-
end
|
67
|
-
end
|
68
|
-
end
|
69
|
-
end
|
@@ -1,44 +0,0 @@
|
|
1
|
-
require "scalingo/api/endpoint"
|
2
|
-
|
3
|
-
module Scalingo
|
4
|
-
class RegionalDatabase::Backups < API::Endpoint
|
5
|
-
def create(addon_id, headers = nil, &block)
|
6
|
-
data = nil
|
7
|
-
|
8
|
-
response = database_connection(addon_id).post(
|
9
|
-
"databases/#{addon_id}/backups",
|
10
|
-
data,
|
11
|
-
headers,
|
12
|
-
&block
|
13
|
-
)
|
14
|
-
|
15
|
-
unpack(:database_backup) { response }
|
16
|
-
end
|
17
|
-
|
18
|
-
def for(addon_id, headers = nil, &block)
|
19
|
-
data = nil
|
20
|
-
|
21
|
-
response = database_connection(addon_id).get(
|
22
|
-
"databases/#{addon_id}/backups",
|
23
|
-
data,
|
24
|
-
headers,
|
25
|
-
&block
|
26
|
-
)
|
27
|
-
|
28
|
-
unpack(:database_backups) { response }
|
29
|
-
end
|
30
|
-
|
31
|
-
def archive(addon_id, backup_id, headers = nil, &block)
|
32
|
-
data = nil
|
33
|
-
|
34
|
-
response = database_connection(addon_id).get(
|
35
|
-
"databases/#{addon_id}/backups/#{backup_id}/archive",
|
36
|
-
data,
|
37
|
-
headers,
|
38
|
-
&block
|
39
|
-
)
|
40
|
-
|
41
|
-
unpack { response }
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
@@ -1,31 +0,0 @@
|
|
1
|
-
require "scalingo/api/endpoint"
|
2
|
-
|
3
|
-
module Scalingo
|
4
|
-
class RegionalDatabase::Databases < API::Endpoint
|
5
|
-
def find(id, headers = nil, &block)
|
6
|
-
data = nil
|
7
|
-
|
8
|
-
response = database_connection(id).get(
|
9
|
-
"databases/#{id}",
|
10
|
-
data,
|
11
|
-
headers,
|
12
|
-
&block
|
13
|
-
)
|
14
|
-
|
15
|
-
unpack(:database) { response }
|
16
|
-
end
|
17
|
-
|
18
|
-
def upgrade(id, headers = nil, &block)
|
19
|
-
data = nil
|
20
|
-
|
21
|
-
response = database_connection(id).post(
|
22
|
-
"databases/#{id}/upgrade",
|
23
|
-
data,
|
24
|
-
headers,
|
25
|
-
&block
|
26
|
-
)
|
27
|
-
|
28
|
-
unpack(:database) { response }
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
require "scalingo/api/client"
|
2
|
-
|
3
|
-
module Scalingo
|
4
|
-
class RegionalDatabase < API::Client
|
5
|
-
require "scalingo/regional_database/databases"
|
6
|
-
require "scalingo/regional_database/backups"
|
7
|
-
|
8
|
-
register_handlers!(
|
9
|
-
databases: Databases,
|
10
|
-
backups: Backups,
|
11
|
-
)
|
12
|
-
end
|
13
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"id": "73c35bc1-c809-4a53-9409-a70e0f424c13",
|
3
|
-
"not_found_id": "wrong-key",
|
4
|
-
"create": {
|
5
|
-
"valid": {
|
6
|
-
"name": "example key",
|
7
|
-
"content": "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAklOUpkDHrfHY17SbrmTIpNLTGK9Tjom/BWDSUGPl+nafzlHDTYW7hdI4yZ5ew18JH4JW9jbhUFrviQzM7xlELEVf4h9lFX5QVkbPppSwg0cda3Pbv7kOdJ/MTyBlWXFCR+HAo3FXRitBqxiX1nKhXpHAZsMciLq8V6RjsNAQwdsdMFvSlVK/7XAt3FaoJoAsncM1Q9x5+3V0Ww68/eIFmb1zuUFljQJKprrX88XypNDvjYNby6vw/Pb0rwert/EnmZ+AW4OZPnTPI89ZPmVMLuayrD2cE86Z/il8b+gw3r3+1nKatmIkjn2so1d01QraTlMqVSsbxNrRFi9wrf+M7Q=="
|
8
|
-
},
|
9
|
-
"invalid": {
|
10
|
-
"name": "example key"
|
11
|
-
}
|
12
|
-
}
|
13
|
-
}
|