ionoscloud-dbaas-postgres 1.0.0 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/docs/CHANGELOG.md +21 -0
  4. data/docs/api/LogsApi.md +8 -6
  5. data/docs/models/ClusterBackup.md +5 -1
  6. data/docs/models/ClusterProperties.md +4 -4
  7. data/docs/models/Connection.md +1 -1
  8. data/docs/models/CreateClusterProperties.md +4 -2
  9. data/docs/models/DBUser.md +1 -1
  10. data/docs/models/ErrorResponse.md +1 -1
  11. data/docs/models/MaintenanceWindow.md +1 -1
  12. data/git_push.sh +1 -3
  13. data/ionoscloud-dbaas-postgres.gemspec +1 -1
  14. data/lib/ionoscloud-dbaas-postgres/api/backups_api.rb +1 -1
  15. data/lib/ionoscloud-dbaas-postgres/api/clusters_api.rb +1 -1
  16. data/lib/ionoscloud-dbaas-postgres/api/logs_api.rb +15 -8
  17. data/lib/ionoscloud-dbaas-postgres/api/metadata_api.rb +1 -1
  18. data/lib/ionoscloud-dbaas-postgres/api/restores_api.rb +1 -1
  19. data/lib/ionoscloud-dbaas-postgres/api_client.rb +2 -2
  20. data/lib/ionoscloud-dbaas-postgres/api_error.rb +1 -1
  21. data/lib/ionoscloud-dbaas-postgres/configuration.rb +12 -27
  22. data/lib/ionoscloud-dbaas-postgres/models/api_version.rb +19 -3
  23. data/lib/ionoscloud-dbaas-postgres/models/backup_metadata.rb +19 -3
  24. data/lib/ionoscloud-dbaas-postgres/models/backup_response.rb +38 -6
  25. data/lib/ionoscloud-dbaas-postgres/models/cluster_backup.rb +86 -10
  26. data/lib/ionoscloud-dbaas-postgres/models/cluster_backup_list.rb +56 -8
  27. data/lib/ionoscloud-dbaas-postgres/models/cluster_backup_list_all_of.rb +28 -4
  28. data/lib/ionoscloud-dbaas-postgres/models/cluster_list.rb +56 -8
  29. data/lib/ionoscloud-dbaas-postgres/models/cluster_list_all_of.rb +28 -4
  30. data/lib/ionoscloud-dbaas-postgres/models/cluster_logs.rb +10 -2
  31. data/lib/ionoscloud-dbaas-postgres/models/cluster_logs_instances.rb +19 -3
  32. data/lib/ionoscloud-dbaas-postgres/models/cluster_logs_messages.rb +19 -3
  33. data/lib/ionoscloud-dbaas-postgres/models/cluster_properties.rb +123 -16
  34. data/lib/ionoscloud-dbaas-postgres/models/cluster_response.rb +38 -6
  35. data/lib/ionoscloud-dbaas-postgres/models/connection.rb +28 -4
  36. data/lib/ionoscloud-dbaas-postgres/models/create_cluster_properties.rb +148 -16
  37. data/lib/ionoscloud-dbaas-postgres/models/create_cluster_request.rb +19 -3
  38. data/lib/ionoscloud-dbaas-postgres/models/create_restore_request.rb +19 -3
  39. data/lib/ionoscloud-dbaas-postgres/models/day_of_the_week.rb +1 -1
  40. data/lib/ionoscloud-dbaas-postgres/models/db_user.rb +20 -4
  41. data/lib/ionoscloud-dbaas-postgres/models/error_message.rb +19 -3
  42. data/lib/ionoscloud-dbaas-postgres/models/error_response.rb +20 -4
  43. data/lib/ionoscloud-dbaas-postgres/models/maintenance_window.rb +21 -4
  44. data/lib/ionoscloud-dbaas-postgres/models/metadata.rb +65 -9
  45. data/lib/ionoscloud-dbaas-postgres/models/pagination.rb +28 -4
  46. data/lib/ionoscloud-dbaas-postgres/models/pagination_links.rb +28 -4
  47. data/lib/ionoscloud-dbaas-postgres/models/patch_cluster_properties.rb +83 -10
  48. data/lib/ionoscloud-dbaas-postgres/models/patch_cluster_request.rb +20 -4
  49. data/lib/ionoscloud-dbaas-postgres/models/postgres_version_list.rb +11 -3
  50. data/lib/ionoscloud-dbaas-postgres/models/postgres_version_list_data.rb +10 -2
  51. data/lib/ionoscloud-dbaas-postgres/models/resource_type.rb +1 -1
  52. data/lib/ionoscloud-dbaas-postgres/models/state.rb +1 -1
  53. data/lib/ionoscloud-dbaas-postgres/models/storage_type.rb +3 -1
  54. data/lib/ionoscloud-dbaas-postgres/models/synchronization_mode.rb +1 -1
  55. data/lib/ionoscloud-dbaas-postgres/version.rb +2 -2
  56. data/lib/ionoscloud-dbaas-postgres.rb +1 -3
  57. data/spec/api_client_spec.rb +1 -1
  58. data/spec/configuration_spec.rb +1 -1
  59. data/spec/spec_helper.rb +1 -1
  60. metadata +3 -7
  61. data/docs/models/BackupLocation.md +0 -15
  62. data/docs/models/Location.md +0 -15
  63. data/lib/ionoscloud-dbaas-postgres/models/backup_location.rb +0 -36
  64. data/lib/ionoscloud-dbaas-postgres/models/location.rb +0 -41
  65. data/lib/test_driver.rb +0 -119
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3810993a5be1481231747c0377fbc70f4aae591d1bda0fddb68d25bbe453cdb2
4
- data.tar.gz: 991b5e19058c36248090c37ec6f8504f8fca80bf967fcab52ac7e05803363532
3
+ metadata.gz: 20e1b3de34dcb423084b1e635c220cde3858e29676f21e1304e2ade4b15c19df
4
+ data.tar.gz: 9f6b287adb518e0d887390fd7dee79a636bf2c1042b1975416b272099444dab4
5
5
  SHA512:
6
- metadata.gz: 8fc750c4d1fde1351dd22df0efd5d48c6a9e07575cb37b7b437f7dd8fed923540a2faf7855e65ded90d01cea2c8b6ebcf5b79326be504e7c2a37af019eb79487
7
- data.tar.gz: c49cd74140ddd263f5a80f49abcc633c731d6bf960f29cf35c559f8c34fec2270022feaf5094fb9df876b38d85443d6de2c6fb874514b404ebb55fa7a76bc738
6
+ metadata.gz: 27430843c4abe7066074ae15ac3fefa3b287719813da59a84b4b0caf53fc5c84d09895b743c719c738dfe4bb87fd5f5b31d1fa79088f758c33bb648dadc314ec
7
+ data.tar.gz: cd4b165404f5c4978dd4bd809980c9f2c4fa922efb79fbba12b970b826f67d86f65251fe99275d665b74ef6d504d7bdc620636d52baefee1f616febd64797681
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ionoscloud-dbaas-postgres (1.0.0)
4
+ ionoscloud-dbaas-postgres (1.0.3)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -13,7 +13,7 @@ GEM
13
13
  diff-lcs (1.5.0)
14
14
  ethon (0.15.0)
15
15
  ffi (>= 1.15.0)
16
- ffi (1.15.4)
16
+ ffi (1.15.5)
17
17
  jaro_winkler (1.5.4)
18
18
  method_source (1.0.0)
19
19
  parallel (1.21.0)
@@ -67,4 +67,4 @@ DEPENDENCIES
67
67
  rubocop (~> 0.66.0)
68
68
 
69
69
  BUNDLED WITH
70
- 2.3.4
70
+ 2.3.17
data/docs/CHANGELOG.md ADDED
@@ -0,0 +1,21 @@
1
+ # CHANGELOG
2
+
3
+ ## 1.0.2 \(May 12th, 2022\)
4
+
5
+ ### Enhancements:
6
+
7
+ * added Storage Types 'SSD_STANDARD' and 'SSD_PREMIUM'
8
+ * backup_location and location are now strings, descriptions updated
9
+
10
+
11
+ ## 1.0.1 \(March 28th, 2022\)
12
+
13
+ ### Enhancements:
14
+
15
+ * added **new property** `backup_location` on `CreateClusterProperties` structure
16
+ * added **new query parameter** `direction` for `cluster_logs_get` method
17
+
18
+
19
+ ## 1.0.0 \(January 12th, 2022\)
20
+
21
+ * First stable release
data/docs/api/LogsApi.md CHANGED
@@ -35,9 +35,10 @@ end
35
35
  api_instance = IonoscloudDbaasPostgres::LogsApi.new
36
36
  cluster_id = 'cluster_id_example' # String | The unique ID of the cluster.
37
37
  opts = {
38
- limit: 56, # Integer | The maximal number of log lines to return.
39
- start: Time.parse('2013-10-20T19:20:30+01:00'), # Time | The start time for the query in RFC3339 format.
40
- _end: Time.parse('2013-10-20T19:20:30+01:00') # Time | The end time for the query in RFC3339 format.
38
+ start: Time.parse('2013-10-20T19:20:30+01:00'), # Time | The start time for the query in RFC3339 format. Must not be more than 30 days ago but before the end parameter. The default is 30 days ago.
39
+ _end: Time.parse('2013-10-20T19:20:30+01:00'), # Time | The end time for the query in RFC3339 format. Must not be greater than now. The default is the current timestamp.
40
+ direction: 'BACKWARD', # String | The direction in which to scan through the logs. The logs are returned in order of the direction.
41
+ limit: 56 # Integer | The maximal number of log lines to return. If the limit is reached then log lines will be cut at the end (respecting the scan direction).
41
42
  }
42
43
 
43
44
  begin
@@ -72,9 +73,10 @@ end
72
73
  | Name | Type | Description | Notes |
73
74
  | ---- | ---- | ----------- | ----- |
74
75
  | **cluster_id** | **String** | The unique ID of the cluster. | |
75
- | **limit** | **Integer** | The maximal number of log lines to return. | [optional] |
76
- | **start** | **Time** | The start time for the query in RFC3339 format. | [optional] |
77
- | **_end** | **Time** | The end time for the query in RFC3339 format. | [optional] |
76
+ | **start** | **Time** | The start time for the query in RFC3339 format. Must not be more than 30 days ago but before the end parameter. The default is 30 days ago. | [optional] |
77
+ | **_end** | **Time** | The end time for the query in RFC3339 format. Must not be greater than now. The default is the current timestamp. | [optional] |
78
+ | **direction** | **String** | The direction in which to scan through the logs. The logs are returned in order of the direction. | [optional][default to 'BACKWARD'] |
79
+ | **limit** | **Integer** | The maximal number of log lines to return. If the limit is reached then log lines will be cut at the end (respecting the scan direction). | [optional][default to 100] |
78
80
 
79
81
  ### Return type
80
82
 
@@ -9,6 +9,8 @@
9
9
  | **version** | **String** | The PostgreSQL version this backup was created from. | [optional] |
10
10
  | **is_active** | **Boolean** | Whether a cluster currently backs up data to this backup. | [optional] |
11
11
  | **earliest_recovery_target_time** | **Time** | The oldest available timestamp to which you can restore. | [optional] |
12
+ | **size** | **Integer** | Size of all base backups including the wal size in MB. | [optional] |
13
+ | **location** | **String** | The S3 location where the backups will be stored. | [optional] |
12
14
 
13
15
  ## Example
14
16
 
@@ -20,7 +22,9 @@ instance = IonoscloudDbaasPostgres::ClusterBackup.new(
20
22
  cluster_id: 498ae72f-411f-11eb-9d07-046c59cc737e,
21
23
  version: 12,
22
24
  is_active: true,
23
- earliest_recovery_target_time: 2021-10-23T01:21:10Z
25
+ earliest_recovery_target_time: 2021-10-23T01:21:10Z,
26
+ size: 2052,
27
+ location: de
24
28
  )
25
29
  ```
26
30
 
@@ -6,8 +6,8 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **display_name** | **String** | The friendly name of your cluster. | [optional] |
8
8
  | **postgres_version** | **String** | The PostgreSQL version of your cluster. | [optional] |
9
- | **location** | [**Location**](Location.md) | | [optional] |
10
- | **backup_location** | [**BackupLocation**](BackupLocation.md) | | [optional] |
9
+ | **location** | **String** | The physical location where the cluster will be created. This will be where all of your instances live. Property cannot be modified after datacenter creation. | [optional] |
10
+ | **backup_location** | **String** | The S3 location where the backups will be stored. | [optional] |
11
11
  | **instances** | **Integer** | The total number of instances in the cluster (one master and n-1 standbys). | [optional] |
12
12
  | **ram** | **Integer** | The amount of memory per instance in megabytes. Has to be a multiple of 1024. | [optional] |
13
13
  | **cores** | **Integer** | The number of CPU cores per instance. | [optional] |
@@ -25,8 +25,8 @@ require 'ionoscloud-dbaas-postgres'
25
25
  instance = IonoscloudDbaasPostgres::ClusterProperties.new(
26
26
  display_name: PostgreSQL cluster,
27
27
  postgres_version: 13,
28
- location: null,
29
- backup_location: null,
28
+ location: de/fra,
29
+ backup_location: de,
30
30
  instances: 2,
31
31
  ram: 2048,
32
32
  cores: 4,
@@ -14,7 +14,7 @@
14
14
  require 'ionoscloud-dbaas-postgres'
15
15
 
16
16
  instance = IonoscloudDbaasPostgres::Connection.new(
17
- datacenter_id: null,
17
+ datacenter_id: 5a029f4a-72e5-11ec-90d6-0242ac120003,
18
18
  lan_id: 2,
19
19
  cidr: 192.168.1.100/24
20
20
  )
@@ -11,7 +11,8 @@
11
11
  | **storage_size** | **Integer** | The amount of storage per instance in megabytes. | |
12
12
  | **storage_type** | [**StorageType**](StorageType.md) | | |
13
13
  | **connections** | [**Array<Connection>**](Connection.md) | | |
14
- | **location** | [**Location**](Location.md) | | |
14
+ | **location** | **String** | The physical location where the cluster will be created. This will be where all of your instances live. Property cannot be modified after datacenter creation. | |
15
+ | **backup_location** | **String** | The S3 location where the backups will be stored. | [optional] |
15
16
  | **display_name** | **String** | The friendly name of your cluster. | |
16
17
  | **maintenance_window** | [**MaintenanceWindow**](MaintenanceWindow.md) | | [optional] |
17
18
  | **credentials** | [**DBUser**](DBUser.md) | | |
@@ -31,7 +32,8 @@ instance = IonoscloudDbaasPostgres::CreateClusterProperties.new(
31
32
  storage_size: 5000,
32
33
  storage_type: null,
33
34
  connections: null,
34
- location: null,
35
+ location: de/fra,
36
+ backup_location: de,
35
37
  display_name: PostgreSQL cluster,
36
38
  maintenance_window: null,
37
39
  credentials: null,
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **username** | **String** | The username for the initial postgres user. some system usernames are restricted (e.g. \"postgres\", \"admin\", \"standby\"). | |
7
+ | **username** | **String** | The username for the initial PostgreSQL user. Some system usernames are restricted (e.g. \"postgres\", \"admin\", \"standby\"). | |
8
8
  | **password** | **String** | | |
9
9
 
10
10
  ## Example
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **http_status** | **Integer** | HTTP status code of the operation | [optional] |
7
+ | **http_status** | **Integer** | The HTTP status code of the operation. | [optional] |
8
8
  | **messages** | [**Array<ErrorMessage>**](ErrorMessage.md) | | [optional] |
9
9
 
10
10
  ## Example
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **time** | **String** | | |
7
+ | **time** | **String** | Start of the maintenance window in UTC time. | |
8
8
  | **day_of_the_week** | [**DayOfTheWeek**](DayOfTheWeek.md) | | |
9
9
 
10
10
  ## Example
data/git_push.sh CHANGED
@@ -1,7 +1,5 @@
1
1
  #!/bin/sh
2
- # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
- #
4
- # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
2
+
5
3
 
6
4
  git_user_id=$1
7
5
  git_repo_id=$2
@@ -5,7 +5,7 @@
5
5
 
6
6
  #An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
7
7
 
8
- The version of the OpenAPI document: 0.0.1
8
+ The version of the OpenAPI document: 1.0.0
9
9
 
10
10
  Generated by: https://openapi-generator.tech
11
11
  OpenAPI Generator version: 5.2.1-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
5
5
 
6
- The version of the OpenAPI document: 0.0.1
6
+ The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
5
5
 
6
- The version of the OpenAPI document: 0.0.1
6
+ The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
5
5
 
6
- The version of the OpenAPI document: 0.0.1
6
+ The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1-SNAPSHOT
@@ -23,9 +23,10 @@ module IonoscloudDbaasPostgres
23
23
  # Retrieves PostgreSQL logs based on the given parameters.
24
24
  # @param cluster_id [String] The unique ID of the cluster.
25
25
  # @param [Hash] opts the optional parameters
26
- # @option opts [Integer] :limit The maximal number of log lines to return.
27
- # @option opts [Time] :start The start time for the query in RFC3339 format.
28
- # @option opts [Time] :_end The end time for the query in RFC3339 format.
26
+ # @option opts [Time] :start The start time for the query in RFC3339 format. Must not be more than 30 days ago but before the end parameter. The default is 30 days ago.
27
+ # @option opts [Time] :_end The end time for the query in RFC3339 format. Must not be greater than now. The default is the current timestamp.
28
+ # @option opts [String] :direction The direction in which to scan through the logs. The logs are returned in order of the direction. (default to 'BACKWARD')
29
+ # @option opts [Integer] :limit The maximal number of log lines to return. If the limit is reached then log lines will be cut at the end (respecting the scan direction). (default to 100)
29
30
  # @return [ClusterLogs]
30
31
  def cluster_logs_get(cluster_id, opts = {})
31
32
  data, _status_code, _headers = cluster_logs_get_with_http_info(cluster_id, opts)
@@ -36,9 +37,10 @@ module IonoscloudDbaasPostgres
36
37
  # Retrieves PostgreSQL logs based on the given parameters.
37
38
  # @param cluster_id [String] The unique ID of the cluster.
38
39
  # @param [Hash] opts the optional parameters
39
- # @option opts [Integer] :limit The maximal number of log lines to return.
40
- # @option opts [Time] :start The start time for the query in RFC3339 format.
41
- # @option opts [Time] :_end The end time for the query in RFC3339 format.
40
+ # @option opts [Time] :start The start time for the query in RFC3339 format. Must not be more than 30 days ago but before the end parameter. The default is 30 days ago.
41
+ # @option opts [Time] :_end The end time for the query in RFC3339 format. Must not be greater than now. The default is the current timestamp.
42
+ # @option opts [String] :direction The direction in which to scan through the logs. The logs are returned in order of the direction.
43
+ # @option opts [Integer] :limit The maximal number of log lines to return. If the limit is reached then log lines will be cut at the end (respecting the scan direction).
42
44
  # @return [Array<(ClusterLogs, Integer, Hash)>] ClusterLogs data, response status code and response headers
43
45
  def cluster_logs_get_with_http_info(cluster_id, opts = {})
44
46
  if @api_client.config.debugging
@@ -48,6 +50,10 @@ module IonoscloudDbaasPostgres
48
50
  if @api_client.config.client_side_validation && cluster_id.nil?
49
51
  fail ArgumentError, "Missing the required parameter 'cluster_id' when calling LogsApi.cluster_logs_get"
50
52
  end
53
+ allowable_values = ["BACKWARD", "FORWARD"]
54
+ if @api_client.config.client_side_validation && opts[:'direction'] && !allowable_values.include?(opts[:'direction'])
55
+ fail ArgumentError, "invalid value for \"direction\", must be one of #{allowable_values}"
56
+ end
51
57
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 5000
52
58
  fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LogsApi.cluster_logs_get, must be smaller than or equal to 5000.'
53
59
  end
@@ -61,9 +67,10 @@ module IonoscloudDbaasPostgres
61
67
 
62
68
  # query parameters
63
69
  query_params = opts[:query_params] || {}
64
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
65
70
  query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
66
71
  query_params[:'end'] = opts[:'_end'] if !opts[:'_end'].nil?
72
+ query_params[:'direction'] = opts[:'direction'] if !opts[:'direction'].nil?
73
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
67
74
 
68
75
  # header parameters
69
76
  header_params = opts[:header_params] || {}
@@ -3,7 +3,7 @@
3
3
 
4
4
  #An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
5
5
 
6
- The version of the OpenAPI document: 0.0.1
6
+ The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
5
5
 
6
- The version of the OpenAPI document: 0.0.1
6
+ The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
5
5
 
6
- The version of the OpenAPI document: 0.0.1
6
+ The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1-SNAPSHOT
@@ -38,7 +38,7 @@ module IonoscloudDbaasPostgres
38
38
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
39
39
  def initialize(config = Configuration.default)
40
40
  @config = config
41
- @user_agent = "sdk-ruby-dbaas-postgres/1.0.0"
41
+ @user_agent = "sdk-ruby-dbaas-postgres/v1.0.3"
42
42
  @default_headers = {
43
43
  'Content-Type' => 'application/json',
44
44
  'User-Agent' => @user_agent
@@ -3,7 +3,7 @@
3
3
 
4
4
  #An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
5
5
 
6
- The version of the OpenAPI document: 0.0.1
6
+ The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
5
5
 
6
- The version of the OpenAPI document: 0.0.1
6
+ The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1-SNAPSHOT
@@ -33,21 +33,16 @@ module IonoscloudDbaasPostgres
33
33
  # Default server operation variables
34
34
  attr_accessor :server_operation_variables
35
35
 
36
- # Defines API keys used with API Key authentications.
36
+ # Defines Tokens used with Token authentications.
37
37
  #
38
- # @return [Hash] key: parameter name, value: parameter value (API key)
39
- #
40
- # @example parameter name is "api_key", API key is "xxx" (e.g. "api_key=xxx" in query string)
41
- # config.api_key['api_key'] = 'xxx'
42
- attr_accessor :api_key
38
+ # @return [String]
39
+ attr_accessor :token
43
40
 
44
- # Defines API key prefixes used with API Key authentications.
41
+ # Defines Token prefixes used with Token authentications.
42
+ # Default to 'Bearer'.
45
43
  #
46
- # @return [Hash] key: parameter name, value: API key prefix
47
- #
48
- # @example parameter name is "Authorization", API key prefix is "Token" (e.g. "Authorization: Token xxx" in headers)
49
- # config.api_key_prefix['api_key'] = 'Token'
50
- attr_accessor :api_key_prefix
44
+ # @return [String]
45
+ attr_accessor :token_prefix
51
46
 
52
47
  # Defines the username used with HTTP basic authentication.
53
48
  #
@@ -151,8 +146,8 @@ module IonoscloudDbaasPostgres
151
146
  @server_operation_index = {}
152
147
  @server_variables = {}
153
148
  @server_operation_variables = {}
154
- @api_key = {}
155
- @api_key_prefix = {}
149
+ @token = nil
150
+ @token_prefix = 'Bearer'
156
151
  @timeout = 0
157
152
  @client_side_validation = true
158
153
  @verify_ssl = true
@@ -204,16 +199,6 @@ module IonoscloudDbaasPostgres
204
199
  server_url(index, server_operation_variables.fetch(operation, server_variables), operation_server_settings[operation])
205
200
  end
206
201
 
207
- # Gets API key (with prefix if set).
208
- # @param [String] param_name the parameter name of API key auth
209
- def api_key_with_prefix(param_name)
210
- if @api_key_prefix[param_name]
211
- "#{@api_key_prefix[param_name]} #{@api_key[param_name]}"
212
- else
213
- @api_key[param_name]
214
- end
215
- end
216
-
217
202
  # Gets Basic Auth token string
218
203
  def basic_auth_token
219
204
  'Basic ' + ["#{username}:#{password}"].pack('m').delete("\r\n")
@@ -231,10 +216,10 @@ module IonoscloudDbaasPostgres
231
216
  },
232
217
  'tokenAuth' =>
233
218
  {
234
- type: 'api_key',
219
+ type: 'token',
235
220
  in: 'header',
236
221
  key: 'Authorization',
237
- value: api_key_with_prefix('Authorization')
222
+ value: token.nil? ? nil : "#{token_prefix} #{token}"
238
223
  },
239
224
  }
240
225
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
5
5
 
6
- The version of the OpenAPI document: 0.0.1
6
+ The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1-SNAPSHOT
@@ -15,14 +15,18 @@ require 'time'
15
15
 
16
16
  module IonoscloudDbaasPostgres
17
17
  class APIVersion
18
+
18
19
  attr_accessor :name
19
20
 
21
+
20
22
  attr_accessor :swagger_url
21
23
 
22
24
  # Attribute mapping from ruby-style variable name to JSON key.
23
25
  def self.attribute_map
24
26
  {
27
+
25
28
  :'name' => :'name',
29
+
26
30
  :'swagger_url' => :'swaggerUrl'
27
31
  }
28
32
  end
@@ -35,7 +39,9 @@ module IonoscloudDbaasPostgres
35
39
  # Attribute type mapping.
36
40
  def self.openapi_types
37
41
  {
42
+
38
43
  :'name' => :'String',
44
+
39
45
  :'swagger_url' => :'String'
40
46
  }
41
47
  end
@@ -43,6 +49,8 @@ module IonoscloudDbaasPostgres
43
49
  # List of attributes with nullable: true
44
50
  def self.openapi_nullable
45
51
  Set.new([
52
+
53
+
46
54
  ])
47
55
  end
48
56
 
@@ -60,11 +68,13 @@ module IonoscloudDbaasPostgres
60
68
  end
61
69
  h[k.to_sym] = v
62
70
  }
71
+
63
72
 
64
73
  if attributes.key?(:'name')
65
74
  self.name = attributes[:'name']
66
75
  end
67
76
 
77
+
68
78
  if attributes.key?(:'swagger_url')
69
79
  self.swagger_url = attributes[:'swagger_url']
70
80
  end
@@ -74,22 +84,28 @@ module IonoscloudDbaasPostgres
74
84
  # @return Array for valid properties with the reasons
75
85
  def list_invalid_properties
76
86
  invalid_properties = Array.new
87
+
88
+
77
89
  invalid_properties
78
90
  end
79
91
 
80
92
  # Check to see if the all the properties in the model are valid
81
93
  # @return true if the model is valid
82
94
  def valid?
95
+
96
+
83
97
  true
84
98
  end
85
99
 
100
+
101
+
86
102
  # Checks equality by comparing each attribute.
87
103
  # @param [Object] Object to be compared
88
104
  def ==(o)
89
105
  return true if self.equal?(o)
90
106
  self.class == o.class &&
91
- name == o.name &&
92
- swagger_url == o.swagger_url
107
+ name == o.name &&
108
+ swagger_url == o.swagger_url
93
109
  end
94
110
 
95
111
  # @see the `==` method
@@ -3,7 +3,7 @@
3
3
 
4
4
  #An enterprise-grade Database is provided as a Service (DBaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to create additional database clusters or modify existing ones. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
5
5
 
6
- The version of the OpenAPI document: 0.0.1
6
+ The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.2.1-SNAPSHOT
@@ -16,15 +16,19 @@ require 'time'
16
16
  module IonoscloudDbaasPostgres
17
17
  # Metadata of the backup resource.
18
18
  class BackupMetadata
19
+
19
20
  # The ISO 8601 creation timestamp.
20
21
  attr_accessor :created_date
21
22
 
23
+
22
24
  attr_accessor :state
23
25
 
24
26
  # Attribute mapping from ruby-style variable name to JSON key.
25
27
  def self.attribute_map
26
28
  {
29
+
27
30
  :'created_date' => :'createdDate',
31
+
28
32
  :'state' => :'state'
29
33
  }
30
34
  end
@@ -37,7 +41,9 @@ module IonoscloudDbaasPostgres
37
41
  # Attribute type mapping.
38
42
  def self.openapi_types
39
43
  {
44
+
40
45
  :'created_date' => :'Time',
46
+
41
47
  :'state' => :'State'
42
48
  }
43
49
  end
@@ -45,6 +51,8 @@ module IonoscloudDbaasPostgres
45
51
  # List of attributes with nullable: true
46
52
  def self.openapi_nullable
47
53
  Set.new([
54
+
55
+
48
56
  ])
49
57
  end
50
58
 
@@ -62,11 +70,13 @@ module IonoscloudDbaasPostgres
62
70
  end
63
71
  h[k.to_sym] = v
64
72
  }
73
+
65
74
 
66
75
  if attributes.key?(:'created_date')
67
76
  self.created_date = attributes[:'created_date']
68
77
  end
69
78
 
79
+
70
80
  if attributes.key?(:'state')
71
81
  self.state = attributes[:'state']
72
82
  end
@@ -76,22 +86,28 @@ module IonoscloudDbaasPostgres
76
86
  # @return Array for valid properties with the reasons
77
87
  def list_invalid_properties
78
88
  invalid_properties = Array.new
89
+
90
+
79
91
  invalid_properties
80
92
  end
81
93
 
82
94
  # Check to see if the all the properties in the model are valid
83
95
  # @return true if the model is valid
84
96
  def valid?
97
+
98
+
85
99
  true
86
100
  end
87
101
 
102
+
103
+
88
104
  # Checks equality by comparing each attribute.
89
105
  # @param [Object] Object to be compared
90
106
  def ==(o)
91
107
  return true if self.equal?(o)
92
108
  self.class == o.class &&
93
- created_date == o.created_date &&
94
- state == o.state
109
+ created_date == o.created_date &&
110
+ state == o.state
95
111
  end
96
112
 
97
113
  # @see the `==` method