ionoscloud-dbaas-postgres 1.0.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.
Files changed (101) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +70 -0
  4. data/LICENSE +201 -0
  5. data/README.md +65 -0
  6. data/Rakefile +10 -0
  7. data/docs/README.md +163 -0
  8. data/docs/api/BackupsApi.md +232 -0
  9. data/docs/api/ClustersApi.md +540 -0
  10. data/docs/api/LogsApi.md +91 -0
  11. data/docs/api/MetadataApi.md +153 -0
  12. data/docs/api/RestoresApi.md +84 -0
  13. data/docs/models/APIVersion.md +20 -0
  14. data/docs/models/BackupLocation.md +15 -0
  15. data/docs/models/BackupMetadata.md +20 -0
  16. data/docs/models/BackupResponse.md +24 -0
  17. data/docs/models/ClusterBackup.md +26 -0
  18. data/docs/models/ClusterBackupList.md +28 -0
  19. data/docs/models/ClusterBackupListAllOf.md +22 -0
  20. data/docs/models/ClusterList.md +28 -0
  21. data/docs/models/ClusterListAllOf.md +22 -0
  22. data/docs/models/ClusterLogs.md +18 -0
  23. data/docs/models/ClusterLogsInstances.md +20 -0
  24. data/docs/models/ClusterLogsMessages.md +20 -0
  25. data/docs/models/ClusterProperties.md +40 -0
  26. data/docs/models/ClusterResponse.md +24 -0
  27. data/docs/models/Connection.md +22 -0
  28. data/docs/models/CreateClusterProperties.md +42 -0
  29. data/docs/models/CreateClusterRequest.md +20 -0
  30. data/docs/models/CreateRestoreRequest.md +20 -0
  31. data/docs/models/DBUser.md +20 -0
  32. data/docs/models/DayOfTheWeek.md +15 -0
  33. data/docs/models/ErrorMessage.md +20 -0
  34. data/docs/models/ErrorResponse.md +20 -0
  35. data/docs/models/Location.md +15 -0
  36. data/docs/models/MaintenanceWindow.md +20 -0
  37. data/docs/models/Metadata.md +30 -0
  38. data/docs/models/Pagination.md +22 -0
  39. data/docs/models/PaginationLinks.md +22 -0
  40. data/docs/models/PatchClusterProperties.md +32 -0
  41. data/docs/models/PatchClusterRequest.md +20 -0
  42. data/docs/models/PostgresVersionList.md +18 -0
  43. data/docs/models/PostgresVersionListData.md +18 -0
  44. data/docs/models/ResourceType.md +15 -0
  45. data/docs/models/State.md +15 -0
  46. data/docs/models/StorageType.md +15 -0
  47. data/docs/models/SynchronizationMode.md +15 -0
  48. data/docs/summary.md +50 -0
  49. data/git_push.sh +58 -0
  50. data/ionoscloud-dbaas-postgres.gemspec +38 -0
  51. data/lib/ionoscloud-dbaas-postgres/api/backups_api.rb +205 -0
  52. data/lib/ionoscloud-dbaas-postgres/api/clusters_api.rb +464 -0
  53. data/lib/ionoscloud-dbaas-postgres/api/logs_api.rb +102 -0
  54. data/lib/ionoscloud-dbaas-postgres/api/metadata_api.rb +136 -0
  55. data/lib/ionoscloud-dbaas-postgres/api/restores_api.rb +93 -0
  56. data/lib/ionoscloud-dbaas-postgres/api_client.rb +471 -0
  57. data/lib/ionoscloud-dbaas-postgres/api_error.rb +57 -0
  58. data/lib/ionoscloud-dbaas-postgres/configuration.rb +291 -0
  59. data/lib/ionoscloud-dbaas-postgres/models/api_version.rb +227 -0
  60. data/lib/ionoscloud-dbaas-postgres/models/backup_location.rb +36 -0
  61. data/lib/ionoscloud-dbaas-postgres/models/backup_metadata.rb +229 -0
  62. data/lib/ionoscloud-dbaas-postgres/models/backup_response.rb +247 -0
  63. data/lib/ionoscloud-dbaas-postgres/models/cluster_backup.rb +260 -0
  64. data/lib/ionoscloud-dbaas-postgres/models/cluster_backup_list.rb +305 -0
  65. data/lib/ionoscloud-dbaas-postgres/models/cluster_backup_list_all_of.rb +237 -0
  66. data/lib/ionoscloud-dbaas-postgres/models/cluster_list.rb +305 -0
  67. data/lib/ionoscloud-dbaas-postgres/models/cluster_list_all_of.rb +237 -0
  68. data/lib/ionoscloud-dbaas-postgres/models/cluster_logs.rb +219 -0
  69. data/lib/ionoscloud-dbaas-postgres/models/cluster_logs_instances.rb +228 -0
  70. data/lib/ionoscloud-dbaas-postgres/models/cluster_logs_messages.rb +227 -0
  71. data/lib/ionoscloud-dbaas-postgres/models/cluster_properties.rb +417 -0
  72. data/lib/ionoscloud-dbaas-postgres/models/cluster_response.rb +247 -0
  73. data/lib/ionoscloud-dbaas-postgres/models/connection.rb +255 -0
  74. data/lib/ionoscloud-dbaas-postgres/models/create_cluster_properties.rb +501 -0
  75. data/lib/ionoscloud-dbaas-postgres/models/create_cluster_request.rb +228 -0
  76. data/lib/ionoscloud-dbaas-postgres/models/create_restore_request.rb +235 -0
  77. data/lib/ionoscloud-dbaas-postgres/models/day_of_the_week.rb +42 -0
  78. data/lib/ionoscloud-dbaas-postgres/models/db_user.rb +239 -0
  79. data/lib/ionoscloud-dbaas-postgres/models/error_message.rb +229 -0
  80. data/lib/ionoscloud-dbaas-postgres/models/error_response.rb +228 -0
  81. data/lib/ionoscloud-dbaas-postgres/models/location.rb +41 -0
  82. data/lib/ionoscloud-dbaas-postgres/models/maintenance_window.rb +238 -0
  83. data/lib/ionoscloud-dbaas-postgres/models/metadata.rb +275 -0
  84. data/lib/ionoscloud-dbaas-postgres/models/pagination.rb +268 -0
  85. data/lib/ionoscloud-dbaas-postgres/models/pagination_links.rb +240 -0
  86. data/lib/ionoscloud-dbaas-postgres/models/patch_cluster_properties.rb +381 -0
  87. data/lib/ionoscloud-dbaas-postgres/models/patch_cluster_request.rb +228 -0
  88. data/lib/ionoscloud-dbaas-postgres/models/postgres_version_list.rb +219 -0
  89. data/lib/ionoscloud-dbaas-postgres/models/postgres_version_list_data.rb +218 -0
  90. data/lib/ionoscloud-dbaas-postgres/models/resource_type.rb +38 -0
  91. data/lib/ionoscloud-dbaas-postgres/models/state.rb +40 -0
  92. data/lib/ionoscloud-dbaas-postgres/models/storage_type.rb +37 -0
  93. data/lib/ionoscloud-dbaas-postgres/models/synchronization_mode.rb +38 -0
  94. data/lib/ionoscloud-dbaas-postgres/version.rb +15 -0
  95. data/lib/ionoscloud-dbaas-postgres.rb +79 -0
  96. data/lib/test_driver.rb +119 -0
  97. data/sonar-project.properties +12 -0
  98. data/spec/api_client_spec.rb +226 -0
  99. data/spec/configuration_spec.rb +42 -0
  100. data/spec/spec_helper.rb +111 -0
  101. metadata +190 -0
@@ -0,0 +1,232 @@
1
+ # BackupsApi
2
+
3
+ All URIs are relative to *https://api.ionos.com/databases/postgresql*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**cluster_backups_get**](BackupsApi.md#cluster_backups_get) | **GET** /clusters/{clusterId}/backups | List backups of cluster |
8
+ | [**clusters_backups_find_by_id**](BackupsApi.md#clusters_backups_find_by_id) | **GET** /clusters/backups/{backupId} | Fetch a cluster backup |
9
+ | [**clusters_backups_get**](BackupsApi.md#clusters_backups_get) | **GET** /clusters/backups | List cluster backups |
10
+
11
+
12
+ ## cluster_backups_get
13
+
14
+ > <ClusterBackupList> cluster_backups_get(cluster_id)
15
+
16
+ List backups of cluster
17
+
18
+ Retrieves a list of all backups of the given PostgreSQL cluster.
19
+
20
+ ### Examples
21
+
22
+ ```ruby
23
+ require 'time'
24
+ require 'ionoscloud-dbaas-postgres'
25
+ # setup authorization
26
+ IonoscloudDbaasPostgres.configure do |config|
27
+ # Configure HTTP basic authorization: basicAuth
28
+ config.username = 'YOUR USERNAME'
29
+ config.password = 'YOUR PASSWORD'
30
+
31
+ # Configure API key authorization: tokenAuth
32
+ config.api_key['Authorization'] = 'YOUR API KEY'
33
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
34
+ # config.api_key_prefix['Authorization'] = 'Bearer'
35
+ end
36
+
37
+ api_instance = IonoscloudDbaasPostgres::BackupsApi.new
38
+ cluster_id = 'cluster_id_example' # String | The unique ID of the cluster.
39
+
40
+ begin
41
+ # List backups of cluster
42
+ result = api_instance.cluster_backups_get(cluster_id)
43
+ p result
44
+ rescue IonoscloudDbaasPostgres::ApiError => e
45
+ puts "Error when calling BackupsApi->cluster_backups_get: #{e}"
46
+ end
47
+ ```
48
+
49
+ #### Using the cluster_backups_get_with_http_info variant
50
+
51
+ This returns an Array which contains the response data, status code and headers.
52
+
53
+ > <Array(<ClusterBackupList>, Integer, Hash)> cluster_backups_get_with_http_info(cluster_id)
54
+
55
+ ```ruby
56
+ begin
57
+ # List backups of cluster
58
+ data, status_code, headers = api_instance.cluster_backups_get_with_http_info(cluster_id)
59
+ p status_code # => 2xx
60
+ p headers # => { ... }
61
+ p data # => <ClusterBackupList>
62
+ rescue IonoscloudDbaasPostgres::ApiError => e
63
+ puts "Error when calling BackupsApi->cluster_backups_get_with_http_info: #{e}"
64
+ end
65
+ ```
66
+
67
+ ### Parameters
68
+
69
+ | Name | Type | Description | Notes |
70
+ | ---- | ---- | ----------- | ----- |
71
+ | **cluster_id** | **String** | The unique ID of the cluster. | |
72
+
73
+ ### Return type
74
+
75
+ [**ClusterBackupList**](ClusterBackupList.md)
76
+
77
+ ### Authorization
78
+
79
+ basicAuth, tokenAuth
80
+
81
+ ### HTTP request headers
82
+
83
+ - **Content-Type**: Not defined
84
+ - **Accept**: application/json
85
+
86
+
87
+ ## clusters_backups_find_by_id
88
+
89
+ > <BackupResponse> clusters_backups_find_by_id(backup_id)
90
+
91
+ Fetch a cluster backup
92
+
93
+ Retrieve a PostgreSQL cluster backup by using its ID. This value can be found when you GET a list of PostgreSQL cluster backups.
94
+
95
+ ### Examples
96
+
97
+ ```ruby
98
+ require 'time'
99
+ require 'ionoscloud-dbaas-postgres'
100
+ # setup authorization
101
+ IonoscloudDbaasPostgres.configure do |config|
102
+ # Configure HTTP basic authorization: basicAuth
103
+ config.username = 'YOUR USERNAME'
104
+ config.password = 'YOUR PASSWORD'
105
+
106
+ # Configure API key authorization: tokenAuth
107
+ config.api_key['Authorization'] = 'YOUR API KEY'
108
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
109
+ # config.api_key_prefix['Authorization'] = 'Bearer'
110
+ end
111
+
112
+ api_instance = IonoscloudDbaasPostgres::BackupsApi.new
113
+ backup_id = 'backup_id_example' # String | The unique ID of the backup.
114
+
115
+ begin
116
+ # Fetch a cluster backup
117
+ result = api_instance.clusters_backups_find_by_id(backup_id)
118
+ p result
119
+ rescue IonoscloudDbaasPostgres::ApiError => e
120
+ puts "Error when calling BackupsApi->clusters_backups_find_by_id: #{e}"
121
+ end
122
+ ```
123
+
124
+ #### Using the clusters_backups_find_by_id_with_http_info variant
125
+
126
+ This returns an Array which contains the response data, status code and headers.
127
+
128
+ > <Array(<BackupResponse>, Integer, Hash)> clusters_backups_find_by_id_with_http_info(backup_id)
129
+
130
+ ```ruby
131
+ begin
132
+ # Fetch a cluster backup
133
+ data, status_code, headers = api_instance.clusters_backups_find_by_id_with_http_info(backup_id)
134
+ p status_code # => 2xx
135
+ p headers # => { ... }
136
+ p data # => <BackupResponse>
137
+ rescue IonoscloudDbaasPostgres::ApiError => e
138
+ puts "Error when calling BackupsApi->clusters_backups_find_by_id_with_http_info: #{e}"
139
+ end
140
+ ```
141
+
142
+ ### Parameters
143
+
144
+ | Name | Type | Description | Notes |
145
+ | ---- | ---- | ----------- | ----- |
146
+ | **backup_id** | **String** | The unique ID of the backup. | |
147
+
148
+ ### Return type
149
+
150
+ [**BackupResponse**](BackupResponse.md)
151
+
152
+ ### Authorization
153
+
154
+ basicAuth, tokenAuth
155
+
156
+ ### HTTP request headers
157
+
158
+ - **Content-Type**: Not defined
159
+ - **Accept**: application/json
160
+
161
+
162
+ ## clusters_backups_get
163
+
164
+ > <ClusterBackupList> clusters_backups_get
165
+
166
+ List cluster backups
167
+
168
+ Retrieves a list of all PostgreSQL cluster backups.
169
+
170
+ ### Examples
171
+
172
+ ```ruby
173
+ require 'time'
174
+ require 'ionoscloud-dbaas-postgres'
175
+ # setup authorization
176
+ IonoscloudDbaasPostgres.configure do |config|
177
+ # Configure HTTP basic authorization: basicAuth
178
+ config.username = 'YOUR USERNAME'
179
+ config.password = 'YOUR PASSWORD'
180
+
181
+ # Configure API key authorization: tokenAuth
182
+ config.api_key['Authorization'] = 'YOUR API KEY'
183
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
184
+ # config.api_key_prefix['Authorization'] = 'Bearer'
185
+ end
186
+
187
+ api_instance = IonoscloudDbaasPostgres::BackupsApi.new
188
+
189
+ begin
190
+ # List cluster backups
191
+ result = api_instance.clusters_backups_get
192
+ p result
193
+ rescue IonoscloudDbaasPostgres::ApiError => e
194
+ puts "Error when calling BackupsApi->clusters_backups_get: #{e}"
195
+ end
196
+ ```
197
+
198
+ #### Using the clusters_backups_get_with_http_info variant
199
+
200
+ This returns an Array which contains the response data, status code and headers.
201
+
202
+ > <Array(<ClusterBackupList>, Integer, Hash)> clusters_backups_get_with_http_info
203
+
204
+ ```ruby
205
+ begin
206
+ # List cluster backups
207
+ data, status_code, headers = api_instance.clusters_backups_get_with_http_info
208
+ p status_code # => 2xx
209
+ p headers # => { ... }
210
+ p data # => <ClusterBackupList>
211
+ rescue IonoscloudDbaasPostgres::ApiError => e
212
+ puts "Error when calling BackupsApi->clusters_backups_get_with_http_info: #{e}"
213
+ end
214
+ ```
215
+
216
+ ### Parameters
217
+
218
+ This endpoint does not need any parameter.
219
+
220
+ ### Return type
221
+
222
+ [**ClusterBackupList**](ClusterBackupList.md)
223
+
224
+ ### Authorization
225
+
226
+ basicAuth, tokenAuth
227
+
228
+ ### HTTP request headers
229
+
230
+ - **Content-Type**: Not defined
231
+ - **Accept**: application/json
232
+