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,153 @@
1
+ # MetadataApi
2
+
3
+ All URIs are relative to *https://api.ionos.com/databases/postgresql*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**infos_version_get**](MetadataApi.md#infos_version_get) | **GET** /infos/version | Get the current API version |
8
+ | [**infos_versions_get**](MetadataApi.md#infos_versions_get) | **GET** /infos/versions | Fetch all API versions |
9
+
10
+
11
+ ## infos_version_get
12
+
13
+ > <APIVersion> infos_version_get
14
+
15
+ Get the current API version
16
+
17
+ Retrieves the current version of the responding API.
18
+
19
+ ### Examples
20
+
21
+ ```ruby
22
+ require 'time'
23
+ require 'ionoscloud-dbaas-postgres'
24
+ # setup authorization
25
+ IonoscloudDbaasPostgres.configure do |config|
26
+ # Configure HTTP basic authorization: basicAuth
27
+ config.username = 'YOUR USERNAME'
28
+ config.password = 'YOUR PASSWORD'
29
+
30
+ # Configure API key authorization: tokenAuth
31
+ config.api_key['Authorization'] = 'YOUR API KEY'
32
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
33
+ # config.api_key_prefix['Authorization'] = 'Bearer'
34
+ end
35
+
36
+ api_instance = IonoscloudDbaasPostgres::MetadataApi.new
37
+
38
+ begin
39
+ # Get the current API version
40
+ result = api_instance.infos_version_get
41
+ p result
42
+ rescue IonoscloudDbaasPostgres::ApiError => e
43
+ puts "Error when calling MetadataApi->infos_version_get: #{e}"
44
+ end
45
+ ```
46
+
47
+ #### Using the infos_version_get_with_http_info variant
48
+
49
+ This returns an Array which contains the response data, status code and headers.
50
+
51
+ > <Array(<APIVersion>, Integer, Hash)> infos_version_get_with_http_info
52
+
53
+ ```ruby
54
+ begin
55
+ # Get the current API version
56
+ data, status_code, headers = api_instance.infos_version_get_with_http_info
57
+ p status_code # => 2xx
58
+ p headers # => { ... }
59
+ p data # => <APIVersion>
60
+ rescue IonoscloudDbaasPostgres::ApiError => e
61
+ puts "Error when calling MetadataApi->infos_version_get_with_http_info: #{e}"
62
+ end
63
+ ```
64
+
65
+ ### Parameters
66
+
67
+ This endpoint does not need any parameter.
68
+
69
+ ### Return type
70
+
71
+ [**APIVersion**](APIVersion.md)
72
+
73
+ ### Authorization
74
+
75
+ basicAuth, tokenAuth
76
+
77
+ ### HTTP request headers
78
+
79
+ - **Content-Type**: Not defined
80
+ - **Accept**: application/json
81
+
82
+
83
+ ## infos_versions_get
84
+
85
+ > <Array<APIVersion>> infos_versions_get
86
+
87
+ Fetch all API versions
88
+
89
+ Retrieves all available versions of the responding API.
90
+
91
+ ### Examples
92
+
93
+ ```ruby
94
+ require 'time'
95
+ require 'ionoscloud-dbaas-postgres'
96
+ # setup authorization
97
+ IonoscloudDbaasPostgres.configure do |config|
98
+ # Configure HTTP basic authorization: basicAuth
99
+ config.username = 'YOUR USERNAME'
100
+ config.password = 'YOUR PASSWORD'
101
+
102
+ # Configure API key authorization: tokenAuth
103
+ config.api_key['Authorization'] = 'YOUR API KEY'
104
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
105
+ # config.api_key_prefix['Authorization'] = 'Bearer'
106
+ end
107
+
108
+ api_instance = IonoscloudDbaasPostgres::MetadataApi.new
109
+
110
+ begin
111
+ # Fetch all API versions
112
+ result = api_instance.infos_versions_get
113
+ p result
114
+ rescue IonoscloudDbaasPostgres::ApiError => e
115
+ puts "Error when calling MetadataApi->infos_versions_get: #{e}"
116
+ end
117
+ ```
118
+
119
+ #### Using the infos_versions_get_with_http_info variant
120
+
121
+ This returns an Array which contains the response data, status code and headers.
122
+
123
+ > <Array(<Array<APIVersion>>, Integer, Hash)> infos_versions_get_with_http_info
124
+
125
+ ```ruby
126
+ begin
127
+ # Fetch all API versions
128
+ data, status_code, headers = api_instance.infos_versions_get_with_http_info
129
+ p status_code # => 2xx
130
+ p headers # => { ... }
131
+ p data # => <Array<APIVersion>>
132
+ rescue IonoscloudDbaasPostgres::ApiError => e
133
+ puts "Error when calling MetadataApi->infos_versions_get_with_http_info: #{e}"
134
+ end
135
+ ```
136
+
137
+ ### Parameters
138
+
139
+ This endpoint does not need any parameter.
140
+
141
+ ### Return type
142
+
143
+ [**Array&lt;APIVersion&gt;**](APIVersion.md)
144
+
145
+ ### Authorization
146
+
147
+ basicAuth, tokenAuth
148
+
149
+ ### HTTP request headers
150
+
151
+ - **Content-Type**: Not defined
152
+ - **Accept**: application/json
153
+
@@ -0,0 +1,84 @@
1
+ # RestoresApi
2
+
3
+ All URIs are relative to *https://api.ionos.com/databases/postgresql*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**cluster_restore_post**](RestoresApi.md#cluster_restore_post) | **POST** /clusters/{clusterId}/restore | In-place restore of a cluster |
8
+
9
+
10
+ ## cluster_restore_post
11
+
12
+ > cluster_restore_post(cluster_id, create_restore_request)
13
+
14
+ In-place restore of a cluster
15
+
16
+ Triggers an in-place restore of the given PostgreSQL.
17
+
18
+ ### Examples
19
+
20
+ ```ruby
21
+ require 'time'
22
+ require 'ionoscloud-dbaas-postgres'
23
+ # setup authorization
24
+ IonoscloudDbaasPostgres.configure do |config|
25
+ # Configure HTTP basic authorization: basicAuth
26
+ config.username = 'YOUR USERNAME'
27
+ config.password = 'YOUR PASSWORD'
28
+
29
+ # Configure API key authorization: tokenAuth
30
+ config.api_key['Authorization'] = 'YOUR API KEY'
31
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
32
+ # config.api_key_prefix['Authorization'] = 'Bearer'
33
+ end
34
+
35
+ api_instance = IonoscloudDbaasPostgres::RestoresApi.new
36
+ cluster_id = 'cluster_id_example' # String | The unique ID of the cluster.
37
+ create_restore_request = IonoscloudDbaasPostgres::CreateRestoreRequest.new({backup_id: 'dcd31531-3ac8-11eb-9feb-046c59cc737e'}) # CreateRestoreRequest | The restore request to create.
38
+
39
+ begin
40
+ # In-place restore of a cluster
41
+ api_instance.cluster_restore_post(cluster_id, create_restore_request)
42
+ rescue IonoscloudDbaasPostgres::ApiError => e
43
+ puts "Error when calling RestoresApi->cluster_restore_post: #{e}"
44
+ end
45
+ ```
46
+
47
+ #### Using the cluster_restore_post_with_http_info variant
48
+
49
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
50
+
51
+ > <Array(nil, Integer, Hash)> cluster_restore_post_with_http_info(cluster_id, create_restore_request)
52
+
53
+ ```ruby
54
+ begin
55
+ # In-place restore of a cluster
56
+ data, status_code, headers = api_instance.cluster_restore_post_with_http_info(cluster_id, create_restore_request)
57
+ p status_code # => 2xx
58
+ p headers # => { ... }
59
+ p data # => nil
60
+ rescue IonoscloudDbaasPostgres::ApiError => e
61
+ puts "Error when calling RestoresApi->cluster_restore_post_with_http_info: #{e}"
62
+ end
63
+ ```
64
+
65
+ ### Parameters
66
+
67
+ | Name | Type | Description | Notes |
68
+ | ---- | ---- | ----------- | ----- |
69
+ | **cluster_id** | **String** | The unique ID of the cluster. | |
70
+ | **create_restore_request** | [**CreateRestoreRequest**](CreateRestoreRequest.md) | The restore request to create. | |
71
+
72
+ ### Return type
73
+
74
+ nil (empty response body)
75
+
76
+ ### Authorization
77
+
78
+ basicAuth, tokenAuth
79
+
80
+ ### HTTP request headers
81
+
82
+ - **Content-Type**: application/json
83
+ - **Accept**: application/json
84
+
@@ -0,0 +1,20 @@
1
+ # APIVersion
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | [optional] |
8
+ | **swagger_url** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ionoscloud-dbaas-postgres'
14
+
15
+ instance = IonoscloudDbaasPostgres::APIVersion.new(
16
+ name: v2.1,
17
+ swagger_url: https://api.ionos.com/databases/postgres/infos/assets/swagger-v2.1.yml
18
+ )
19
+ ```
20
+
@@ -0,0 +1,15 @@
1
+ # BackupLocation
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'ionoscloud-dbaas-postgres'
12
+
13
+ instance = IonoscloudDbaasPostgres::BackupLocation.new()
14
+ ```
15
+
@@ -0,0 +1,20 @@
1
+ # BackupMetadata
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **created_date** | **Time** | The ISO 8601 creation timestamp. | [optional] |
8
+ | **state** | [**State**](State.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ionoscloud-dbaas-postgres'
14
+
15
+ instance = IonoscloudDbaasPostgres::BackupMetadata.new(
16
+ created_date: 2020-12-10T13:37:50+01:00,
17
+ state: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,24 @@
1
+ # BackupResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | [**ResourceType**](ResourceType.md) | | [optional] |
8
+ | **id** | **String** | The unique ID of the resource. | [optional] |
9
+ | **metadata** | [**BackupMetadata**](BackupMetadata.md) | | [optional] |
10
+ | **properties** | [**ClusterBackup**](ClusterBackup.md) | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ionoscloud-dbaas-postgres'
16
+
17
+ instance = IonoscloudDbaasPostgres::BackupResponse.new(
18
+ type: null,
19
+ id: 498ae72f-411f-11eb-9d07-046c59cc737e,
20
+ metadata: null,
21
+ properties: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,26 @@
1
+ # ClusterBackup
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | The unique ID of the resource. | [optional] |
8
+ | **cluster_id** | **String** | The unique ID of the cluster. | [optional] |
9
+ | **version** | **String** | The PostgreSQL version this backup was created from. | [optional] |
10
+ | **is_active** | **Boolean** | Whether a cluster currently backs up data to this backup. | [optional] |
11
+ | **earliest_recovery_target_time** | **Time** | The oldest available timestamp to which you can restore. | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ionoscloud-dbaas-postgres'
17
+
18
+ instance = IonoscloudDbaasPostgres::ClusterBackup.new(
19
+ id: 498ae72f-411f-11eb-9d07-046c59cc737e,
20
+ cluster_id: 498ae72f-411f-11eb-9d07-046c59cc737e,
21
+ version: 12,
22
+ is_active: true,
23
+ earliest_recovery_target_time: 2021-10-23T01:21:10Z
24
+ )
25
+ ```
26
+
@@ -0,0 +1,28 @@
1
+ # ClusterBackupList
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | [**ResourceType**](ResourceType.md) | | [optional] |
8
+ | **id** | **String** | The unique ID of the resource. | [optional] |
9
+ | **items** | [**Array&lt;BackupResponse&gt;**](BackupResponse.md) | | [optional] |
10
+ | **offset** | **Integer** | The offset specified in the request (if none was specified, the default offset is 0) (not implemented yet). | [optional][readonly] |
11
+ | **limit** | **Integer** | The limit specified in the request (if none was specified, use the endpoint&#39;s default pagination limit) (not implemented yet, always return number of items). | [optional][readonly] |
12
+ | **_links** | [**PaginationLinks**](PaginationLinks.md) | | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'ionoscloud-dbaas-postgres'
18
+
19
+ instance = IonoscloudDbaasPostgres::ClusterBackupList.new(
20
+ type: null,
21
+ id: 498ae72f-411f-11eb-9d07-046c59cc737e,
22
+ items: null,
23
+ offset: 0,
24
+ limit: 42,
25
+ _links: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,22 @@
1
+ # ClusterBackupListAllOf
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | [**ResourceType**](ResourceType.md) | | [optional] |
8
+ | **id** | **String** | The unique ID of the resource. | [optional] |
9
+ | **items** | [**Array&lt;BackupResponse&gt;**](BackupResponse.md) | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'ionoscloud-dbaas-postgres'
15
+
16
+ instance = IonoscloudDbaasPostgres::ClusterBackupListAllOf.new(
17
+ type: null,
18
+ id: 498ae72f-411f-11eb-9d07-046c59cc737e,
19
+ items: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,28 @@
1
+ # ClusterList
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | [**ResourceType**](ResourceType.md) | | [optional] |
8
+ | **id** | **String** | The unique ID of the resource. | [optional] |
9
+ | **items** | [**Array&lt;ClusterResponse&gt;**](ClusterResponse.md) | | [optional] |
10
+ | **offset** | **Integer** | The offset specified in the request (if none was specified, the default offset is 0) (not implemented yet). | [optional][readonly] |
11
+ | **limit** | **Integer** | The limit specified in the request (if none was specified, use the endpoint&#39;s default pagination limit) (not implemented yet, always return number of items). | [optional][readonly] |
12
+ | **_links** | [**PaginationLinks**](PaginationLinks.md) | | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'ionoscloud-dbaas-postgres'
18
+
19
+ instance = IonoscloudDbaasPostgres::ClusterList.new(
20
+ type: null,
21
+ id: 498ae72f-411f-11eb-9d07-046c59cc737e,
22
+ items: null,
23
+ offset: 0,
24
+ limit: 42,
25
+ _links: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,22 @@
1
+ # ClusterListAllOf
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | [**ResourceType**](ResourceType.md) | | [optional] |
8
+ | **id** | **String** | The unique ID of the resource. | [optional] |
9
+ | **items** | [**Array&lt;ClusterResponse&gt;**](ClusterResponse.md) | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'ionoscloud-dbaas-postgres'
15
+
16
+ instance = IonoscloudDbaasPostgres::ClusterListAllOf.new(
17
+ type: null,
18
+ id: 498ae72f-411f-11eb-9d07-046c59cc737e,
19
+ items: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,18 @@
1
+ # ClusterLogs
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **instances** | [**Array&lt;ClusterLogsInstances&gt;**](ClusterLogsInstances.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ionoscloud-dbaas-postgres'
13
+
14
+ instance = IonoscloudDbaasPostgres::ClusterLogs.new(
15
+ instances: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,20 @@
1
+ # ClusterLogsInstances
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | The name of the PostgreSQL instance. | [optional] |
8
+ | **messages** | [**Array&lt;ClusterLogsMessages&gt;**](ClusterLogsMessages.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ionoscloud-dbaas-postgres'
14
+
15
+ instance = IonoscloudDbaasPostgres::ClusterLogsInstances.new(
16
+ name: postgres-cluster-0,
17
+ messages: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # ClusterLogsMessages
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **time** | **Time** | | [optional] |
8
+ | **message** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ionoscloud-dbaas-postgres'
14
+
15
+ instance = IonoscloudDbaasPostgres::ClusterLogsMessages.new(
16
+ time: 2021-09-06T10:00:38.253+02:00,
17
+ message: Hello World
18
+ )
19
+ ```
20
+
@@ -0,0 +1,40 @@
1
+ # ClusterProperties
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **display_name** | **String** | The friendly name of your cluster. | [optional] |
8
+ | **postgres_version** | **String** | The PostgreSQL version of your cluster. | [optional] |
9
+ | **location** | [**Location**](Location.md) | | [optional] |
10
+ | **backup_location** | [**BackupLocation**](BackupLocation.md) | | [optional] |
11
+ | **instances** | **Integer** | The total number of instances in the cluster (one master and n-1 standbys). | [optional] |
12
+ | **ram** | **Integer** | The amount of memory per instance in megabytes. Has to be a multiple of 1024. | [optional] |
13
+ | **cores** | **Integer** | The number of CPU cores per instance. | [optional] |
14
+ | **storage_size** | **Integer** | The amount of storage per instance in megabytes. | [optional] |
15
+ | **storage_type** | [**StorageType**](StorageType.md) | | [optional] |
16
+ | **connections** | [**Array&lt;Connection&gt;**](Connection.md) | | [optional] |
17
+ | **maintenance_window** | [**MaintenanceWindow**](MaintenanceWindow.md) | | [optional] |
18
+ | **synchronization_mode** | [**SynchronizationMode**](SynchronizationMode.md) | | [optional] |
19
+
20
+ ## Example
21
+
22
+ ```ruby
23
+ require 'ionoscloud-dbaas-postgres'
24
+
25
+ instance = IonoscloudDbaasPostgres::ClusterProperties.new(
26
+ display_name: PostgreSQL cluster,
27
+ postgres_version: 13,
28
+ location: null,
29
+ backup_location: null,
30
+ instances: 2,
31
+ ram: 2048,
32
+ cores: 4,
33
+ storage_size: 5000,
34
+ storage_type: null,
35
+ connections: null,
36
+ maintenance_window: null,
37
+ synchronization_mode: null
38
+ )
39
+ ```
40
+
@@ -0,0 +1,24 @@
1
+ # ClusterResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | [**ResourceType**](ResourceType.md) | | [optional] |
8
+ | **id** | **String** | The unique ID of the resource. | [optional] |
9
+ | **metadata** | [**Metadata**](Metadata.md) | | [optional] |
10
+ | **properties** | [**ClusterProperties**](ClusterProperties.md) | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ionoscloud-dbaas-postgres'
16
+
17
+ instance = IonoscloudDbaasPostgres::ClusterResponse.new(
18
+ type: null,
19
+ id: 498ae72f-411f-11eb-9d07-046c59cc737e,
20
+ metadata: null,
21
+ properties: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,22 @@
1
+ # Connection
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **datacenter_id** | **String** | The datacenter to connect your cluster to. | |
8
+ | **lan_id** | **String** | The numeric LAN ID to connect your cluster to. | |
9
+ | **cidr** | **String** | The IP and subnet for your cluster. Note the following unavailable IP ranges: 10.233.64.0/18 10.233.0.0/18 10.233.114.0/24 | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'ionoscloud-dbaas-postgres'
15
+
16
+ instance = IonoscloudDbaasPostgres::Connection.new(
17
+ datacenter_id: null,
18
+ lan_id: 2,
19
+ cidr: 192.168.1.100/24
20
+ )
21
+ ```
22
+
@@ -0,0 +1,42 @@
1
+ # CreateClusterProperties
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **postgres_version** | **String** | The PostgreSQL version of your cluster. | |
8
+ | **instances** | **Integer** | The total number of instances in the cluster (one master and n-1 standbys). | |
9
+ | **cores** | **Integer** | The number of CPU cores per instance. | |
10
+ | **ram** | **Integer** | The amount of memory per instance in megabytes. Has to be a multiple of 1024. | |
11
+ | **storage_size** | **Integer** | The amount of storage per instance in megabytes. | |
12
+ | **storage_type** | [**StorageType**](StorageType.md) | | |
13
+ | **connections** | [**Array&lt;Connection&gt;**](Connection.md) | | |
14
+ | **location** | [**Location**](Location.md) | | |
15
+ | **display_name** | **String** | The friendly name of your cluster. | |
16
+ | **maintenance_window** | [**MaintenanceWindow**](MaintenanceWindow.md) | | [optional] |
17
+ | **credentials** | [**DBUser**](DBUser.md) | | |
18
+ | **synchronization_mode** | [**SynchronizationMode**](SynchronizationMode.md) | | |
19
+ | **from_backup** | [**CreateRestoreRequest**](CreateRestoreRequest.md) | | [optional] |
20
+
21
+ ## Example
22
+
23
+ ```ruby
24
+ require 'ionoscloud-dbaas-postgres'
25
+
26
+ instance = IonoscloudDbaasPostgres::CreateClusterProperties.new(
27
+ postgres_version: 13,
28
+ instances: 2,
29
+ cores: 4,
30
+ ram: 2048,
31
+ storage_size: 5000,
32
+ storage_type: null,
33
+ connections: null,
34
+ location: null,
35
+ display_name: PostgreSQL cluster,
36
+ maintenance_window: null,
37
+ credentials: null,
38
+ synchronization_mode: null,
39
+ from_backup: null
40
+ )
41
+ ```
42
+
@@ -0,0 +1,20 @@
1
+ # CreateClusterRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **metadata** | [**Metadata**](Metadata.md) | | [optional] |
8
+ | **properties** | [**CreateClusterProperties**](CreateClusterProperties.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ionoscloud-dbaas-postgres'
14
+
15
+ instance = IonoscloudDbaasPostgres::CreateClusterRequest.new(
16
+ metadata: null,
17
+ properties: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # CreateRestoreRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **backup_id** | **String** | The unique ID of the backup you want to restore. | |
8
+ | **recovery_target_time** | **Time** | If this value is supplied as ISO 8601 timestamp, the backup will be replayed up until the given timestamp. If empty, the backup will be applied completely. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ionoscloud-dbaas-postgres'
14
+
15
+ instance = IonoscloudDbaasPostgres::CreateRestoreRequest.new(
16
+ backup_id: dcd31531-3ac8-11eb-9feb-046c59cc737e,
17
+ recovery_target_time: 2020-12-10T13:37:50+01:00
18
+ )
19
+ ```
20
+