ionoscloud-dbaas-postgres 1.1.0 → 1.1.1
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.
- checksums.yaml +4 -4
- data/docs/api/BackupsApi.md +22 -9
- data/docs/api/ClustersApi.md +4 -0
- data/docs/models/BackupResponse.md +1 -1
- data/docs/models/ClusterBackupList.md +6 -6
- data/docs/models/ClusterList.md +6 -6
- data/docs/models/ClusterResponse.md +1 -1
- data/docs/models/Pagination.md +6 -6
- data/lib/ionoscloud-dbaas-postgres/api/backups_api.rb +28 -0
- data/lib/ionoscloud-dbaas-postgres/api/clusters_api.rb +14 -0
- data/lib/ionoscloud-dbaas-postgres/api_client.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/cluster_backup_list.rb +22 -9
- data/lib/ionoscloud-dbaas-postgres/models/cluster_list.rb +22 -9
- data/lib/ionoscloud-dbaas-postgres/models/pagination.rb +22 -9
- data/lib/ionoscloud-dbaas-postgres/models/pagination_links.rb +1 -1
- data/lib/ionoscloud-dbaas-postgres/models/state.rb +1 -0
- data/lib/ionoscloud-dbaas-postgres/version.rb +1 -1
- metadata +1 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 73d9b09427968fbfacf66a70016dffc0c45557012109786842f1407e47ba811b
         | 
| 4 | 
            +
              data.tar.gz: af086d51387ec696eb5506f264aff20538c4d5b4e67d026c4e3386652f18f807
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 9acb5fa3a4754b6f28812a050312088c6cc44a77ff981ccea14f7823120f74e300c3ebd97060a97da1983c32d3cffb1d5c3a5649ff43c72e846c24dfb606aa76
         | 
| 7 | 
            +
              data.tar.gz: 94400ea9746e95362e7dc4fe59d10918887f8d13031cdd2ce345640fcd04aebe19116e199601fe105122cf09b694c49f089d5a388d1b9730b8bd24328b13a0b6
         | 
    
        data/docs/api/BackupsApi.md
    CHANGED
    
    | @@ -11,7 +11,7 @@ All URIs are relative to *https://api.ionos.com/databases/postgresql* | |
| 11 11 |  | 
| 12 12 | 
             
            ## cluster_backups_get
         | 
| 13 13 |  | 
| 14 | 
            -
            > <ClusterBackupList> cluster_backups_get(cluster_id)
         | 
| 14 | 
            +
            > <ClusterBackupList> cluster_backups_get(cluster_id, opts)
         | 
| 15 15 |  | 
| 16 16 | 
             
            List backups of cluster
         | 
| 17 17 |  | 
| @@ -36,10 +36,14 @@ end | |
| 36 36 |  | 
| 37 37 | 
             
            api_instance = IonoscloudDbaasPostgres::BackupsApi.new
         | 
| 38 38 | 
             
            cluster_id = 'cluster_id_example' # String | The unique ID of the cluster.
         | 
| 39 | 
            +
            opts = {
         | 
| 40 | 
            +
              limit: 100, # Integer | The maximum number of elements to return. Use together with 'offset' for pagination.
         | 
| 41 | 
            +
              offset: 200 # Integer | The first element to return. Use together with 'limit' for pagination.
         | 
| 42 | 
            +
            }
         | 
| 39 43 |  | 
| 40 44 | 
             
            begin
         | 
| 41 45 | 
             
              # List backups of cluster
         | 
| 42 | 
            -
              result = api_instance.cluster_backups_get(cluster_id)
         | 
| 46 | 
            +
              result = api_instance.cluster_backups_get(cluster_id, opts)
         | 
| 43 47 | 
             
              p result
         | 
| 44 48 | 
             
            rescue IonoscloudDbaasPostgres::ApiError => e
         | 
| 45 49 | 
             
              puts "Error when calling BackupsApi->cluster_backups_get: #{e}"
         | 
| @@ -50,12 +54,12 @@ end | |
| 50 54 |  | 
| 51 55 | 
             
            This returns an Array which contains the response data, status code and headers.
         | 
| 52 56 |  | 
| 53 | 
            -
            > <Array(<ClusterBackupList>, Integer, Hash)> cluster_backups_get_with_http_info(cluster_id)
         | 
| 57 | 
            +
            > <Array(<ClusterBackupList>, Integer, Hash)> cluster_backups_get_with_http_info(cluster_id, opts)
         | 
| 54 58 |  | 
| 55 59 | 
             
            ```ruby
         | 
| 56 60 | 
             
            begin
         | 
| 57 61 | 
             
              # List backups of cluster
         | 
| 58 | 
            -
              data, status_code, headers = api_instance.cluster_backups_get_with_http_info(cluster_id)
         | 
| 62 | 
            +
              data, status_code, headers = api_instance.cluster_backups_get_with_http_info(cluster_id, opts)
         | 
| 59 63 | 
             
              p status_code # => 2xx
         | 
| 60 64 | 
             
              p headers # => { ... }
         | 
| 61 65 | 
             
              p data # => <ClusterBackupList>
         | 
| @@ -69,6 +73,8 @@ end | |
| 69 73 | 
             
            | Name | Type | Description | Notes |
         | 
| 70 74 | 
             
            | ---- | ---- | ----------- | ----- |
         | 
| 71 75 | 
             
            | **cluster_id** | **String** | The unique ID of the cluster. |  |
         | 
| 76 | 
            +
            | **limit** | **Integer** | The maximum number of elements to return. Use together with 'offset' for pagination. | [optional][default to 100] |
         | 
| 77 | 
            +
            | **offset** | **Integer** | The first element to return. Use together with 'limit' for pagination. | [optional][default to 0] |
         | 
| 72 78 |  | 
| 73 79 | 
             
            ### Return type
         | 
| 74 80 |  | 
| @@ -161,7 +167,7 @@ basicAuth, tokenAuth | |
| 161 167 |  | 
| 162 168 | 
             
            ## clusters_backups_get
         | 
| 163 169 |  | 
| 164 | 
            -
            > <ClusterBackupList> clusters_backups_get
         | 
| 170 | 
            +
            > <ClusterBackupList> clusters_backups_get(opts)
         | 
| 165 171 |  | 
| 166 172 | 
             
            List cluster backups
         | 
| 167 173 |  | 
| @@ -185,10 +191,14 @@ IonoscloudDbaasPostgres.configure do |config| | |
| 185 191 | 
             
            end
         | 
| 186 192 |  | 
| 187 193 | 
             
            api_instance = IonoscloudDbaasPostgres::BackupsApi.new
         | 
| 194 | 
            +
            opts = {
         | 
| 195 | 
            +
              limit: 100, # Integer | The maximum number of elements to return. Use together with 'offset' for pagination.
         | 
| 196 | 
            +
              offset: 200 # Integer | The first element to return. Use together with 'limit' for pagination.
         | 
| 197 | 
            +
            }
         | 
| 188 198 |  | 
| 189 199 | 
             
            begin
         | 
| 190 200 | 
             
              # List cluster backups
         | 
| 191 | 
            -
              result = api_instance.clusters_backups_get
         | 
| 201 | 
            +
              result = api_instance.clusters_backups_get(opts)
         | 
| 192 202 | 
             
              p result
         | 
| 193 203 | 
             
            rescue IonoscloudDbaasPostgres::ApiError => e
         | 
| 194 204 | 
             
              puts "Error when calling BackupsApi->clusters_backups_get: #{e}"
         | 
| @@ -199,12 +209,12 @@ end | |
| 199 209 |  | 
| 200 210 | 
             
            This returns an Array which contains the response data, status code and headers.
         | 
| 201 211 |  | 
| 202 | 
            -
            > <Array(<ClusterBackupList>, Integer, Hash)> clusters_backups_get_with_http_info
         | 
| 212 | 
            +
            > <Array(<ClusterBackupList>, Integer, Hash)> clusters_backups_get_with_http_info(opts)
         | 
| 203 213 |  | 
| 204 214 | 
             
            ```ruby
         | 
| 205 215 | 
             
            begin
         | 
| 206 216 | 
             
              # List cluster backups
         | 
| 207 | 
            -
              data, status_code, headers = api_instance.clusters_backups_get_with_http_info
         | 
| 217 | 
            +
              data, status_code, headers = api_instance.clusters_backups_get_with_http_info(opts)
         | 
| 208 218 | 
             
              p status_code # => 2xx
         | 
| 209 219 | 
             
              p headers # => { ... }
         | 
| 210 220 | 
             
              p data # => <ClusterBackupList>
         | 
| @@ -215,7 +225,10 @@ end | |
| 215 225 |  | 
| 216 226 | 
             
            ### Parameters
         | 
| 217 227 |  | 
| 218 | 
            -
             | 
| 228 | 
            +
            | Name | Type | Description | Notes |
         | 
| 229 | 
            +
            | ---- | ---- | ----------- | ----- |
         | 
| 230 | 
            +
            | **limit** | **Integer** | The maximum number of elements to return. Use together with 'offset' for pagination. | [optional][default to 100] |
         | 
| 231 | 
            +
            | **offset** | **Integer** | The first element to return. Use together with 'limit' for pagination. | [optional][default to 0] |
         | 
| 219 232 |  | 
| 220 233 | 
             
            ### Return type
         | 
| 221 234 |  | 
    
        data/docs/api/ClustersApi.md
    CHANGED
    
    | @@ -265,6 +265,8 @@ end | |
| 265 265 |  | 
| 266 266 | 
             
            api_instance = IonoscloudDbaasPostgres::ClustersApi.new
         | 
| 267 267 | 
             
            opts = {
         | 
| 268 | 
            +
              limit: 100, # Integer | The maximum number of elements to return. Use together with 'offset' for pagination.
         | 
| 269 | 
            +
              offset: 200, # Integer | The first element to return. Use together with 'limit' for pagination.
         | 
| 268 270 | 
             
              filter_name: 'filter_name_example' # String | Response filter to list only the PostgreSQL clusters that contain the specified name. The value is case insensitive and matched on the 'displayName' field. 
         | 
| 269 271 | 
             
            }
         | 
| 270 272 |  | 
| @@ -299,6 +301,8 @@ end | |
| 299 301 |  | 
| 300 302 | 
             
            | Name | Type | Description | Notes |
         | 
| 301 303 | 
             
            | ---- | ---- | ----------- | ----- |
         | 
| 304 | 
            +
            | **limit** | **Integer** | The maximum number of elements to return. Use together with 'offset' for pagination. | [optional][default to 100] |
         | 
| 305 | 
            +
            | **offset** | **Integer** | The first element to return. Use together with 'limit' for pagination. | [optional][default to 0] |
         | 
| 302 306 | 
             
            | **filter_name** | **String** | Response filter to list only the PostgreSQL clusters that contain the specified name. The value is case insensitive and matched on the 'displayName' field.  | [optional] |
         | 
| 303 307 |  | 
| 304 308 | 
             
            ### Return type
         | 
| @@ -7,9 +7,9 @@ | |
| 7 7 | 
             
            | **type** | [**ResourceType**](ResourceType.md) |  | [optional] |
         | 
| 8 8 | 
             
            | **id** | **String** | The unique ID of the resource. | [optional] |
         | 
| 9 9 | 
             
            | **items** | [**Array<BackupResponse>**](BackupResponse.md) |  | [optional] |
         | 
| 10 | 
            -
            | **offset** | **Integer** | The offset specified in the request (if none was specified, the default offset is 0) | 
| 11 | 
            -
            | **limit** | **Integer** | The limit specified in the request (if none was specified,  | 
| 12 | 
            -
            | ** | 
| 10 | 
            +
            | **offset** | **Integer** | The offset specified in the request (if none was specified, the default offset is 0).  | [optional][default to 0] |
         | 
| 11 | 
            +
            | **limit** | **Integer** | The limit specified in the request (if none was specified, the default limit is 100).  | [optional][default to 100] |
         | 
| 12 | 
            +
            | **links** | [**PaginationLinks**](PaginationLinks.md) |  | [optional] |
         | 
| 13 13 |  | 
| 14 14 | 
             
            ## Example
         | 
| 15 15 |  | 
| @@ -20,9 +20,9 @@ instance = IonoscloudDbaasPostgres::ClusterBackupList.new( | |
| 20 20 | 
             
              type: null,
         | 
| 21 21 | 
             
              id: 498ae72f-411f-11eb-9d07-046c59cc737e,
         | 
| 22 22 | 
             
              items: null,
         | 
| 23 | 
            -
              offset:  | 
| 24 | 
            -
              limit:  | 
| 25 | 
            -
               | 
| 23 | 
            +
              offset: 200,
         | 
| 24 | 
            +
              limit: 100,
         | 
| 25 | 
            +
              links: null
         | 
| 26 26 | 
             
            )
         | 
| 27 27 | 
             
            ```
         | 
| 28 28 |  | 
    
        data/docs/models/ClusterList.md
    CHANGED
    
    | @@ -7,9 +7,9 @@ | |
| 7 7 | 
             
            | **type** | [**ResourceType**](ResourceType.md) |  | [optional] |
         | 
| 8 8 | 
             
            | **id** | **String** | The unique ID of the resource. | [optional] |
         | 
| 9 9 | 
             
            | **items** | [**Array<ClusterResponse>**](ClusterResponse.md) |  | [optional] |
         | 
| 10 | 
            -
            | **offset** | **Integer** | The offset specified in the request (if none was specified, the default offset is 0) | 
| 11 | 
            -
            | **limit** | **Integer** | The limit specified in the request (if none was specified,  | 
| 12 | 
            -
            | ** | 
| 10 | 
            +
            | **offset** | **Integer** | The offset specified in the request (if none was specified, the default offset is 0).  | [optional][default to 0] |
         | 
| 11 | 
            +
            | **limit** | **Integer** | The limit specified in the request (if none was specified, the default limit is 100).  | [optional][default to 100] |
         | 
| 12 | 
            +
            | **links** | [**PaginationLinks**](PaginationLinks.md) |  | [optional] |
         | 
| 13 13 |  | 
| 14 14 | 
             
            ## Example
         | 
| 15 15 |  | 
| @@ -20,9 +20,9 @@ instance = IonoscloudDbaasPostgres::ClusterList.new( | |
| 20 20 | 
             
              type: null,
         | 
| 21 21 | 
             
              id: 498ae72f-411f-11eb-9d07-046c59cc737e,
         | 
| 22 22 | 
             
              items: null,
         | 
| 23 | 
            -
              offset:  | 
| 24 | 
            -
              limit:  | 
| 25 | 
            -
               | 
| 23 | 
            +
              offset: 200,
         | 
| 24 | 
            +
              limit: 100,
         | 
| 25 | 
            +
              links: null
         | 
| 26 26 | 
             
            )
         | 
| 27 27 | 
             
            ```
         | 
| 28 28 |  | 
    
        data/docs/models/Pagination.md
    CHANGED
    
    | @@ -4,9 +4,9 @@ | |
| 4 4 |  | 
| 5 5 | 
             
            | Name | Type | Description | Notes |
         | 
| 6 6 | 
             
            | ---- | ---- | ----------- | ----- |
         | 
| 7 | 
            -
            | **offset** | **Integer** | The offset specified in the request (if none was specified, the default offset is 0) | 
| 8 | 
            -
            | **limit** | **Integer** | The limit specified in the request (if none was specified,  | 
| 9 | 
            -
            | ** | 
| 7 | 
            +
            | **offset** | **Integer** | The offset specified in the request (if none was specified, the default offset is 0).  | [optional][default to 0] |
         | 
| 8 | 
            +
            | **limit** | **Integer** | The limit specified in the request (if none was specified, the default limit is 100).  | [optional][default to 100] |
         | 
| 9 | 
            +
            | **links** | [**PaginationLinks**](PaginationLinks.md) |  | [optional] |
         | 
| 10 10 |  | 
| 11 11 | 
             
            ## Example
         | 
| 12 12 |  | 
| @@ -14,9 +14,9 @@ | |
| 14 14 | 
             
            require 'ionoscloud-dbaas-postgres'
         | 
| 15 15 |  | 
| 16 16 | 
             
            instance = IonoscloudDbaasPostgres::Pagination.new(
         | 
| 17 | 
            -
              offset:  | 
| 18 | 
            -
              limit:  | 
| 19 | 
            -
               | 
| 17 | 
            +
              offset: 200,
         | 
| 18 | 
            +
              limit: 100,
         | 
| 19 | 
            +
              links: null
         | 
| 20 20 | 
             
            )
         | 
| 21 21 | 
             
            ```
         | 
| 22 22 |  | 
| @@ -23,6 +23,8 @@ module IonoscloudDbaasPostgres | |
| 23 23 | 
             
                # Retrieves a list of all backups of the given PostgreSQL cluster.
         | 
| 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 maximum number of elements to return. Use together with 'offset' for pagination. (default to 100)
         | 
| 27 | 
            +
                # @option opts [Integer] :offset The first element to return. Use together with 'limit' for pagination. (default to 0)
         | 
| 26 28 | 
             
                # @return [ClusterBackupList]
         | 
| 27 29 | 
             
                def cluster_backups_get(cluster_id, opts = {})
         | 
| 28 30 | 
             
                  data, _status_code, _headers = cluster_backups_get_with_http_info(cluster_id, opts)
         | 
| @@ -33,6 +35,8 @@ module IonoscloudDbaasPostgres | |
| 33 35 | 
             
                # Retrieves a list of all backups of the given PostgreSQL cluster.
         | 
| 34 36 | 
             
                # @param cluster_id [String] The unique ID of the cluster.
         | 
| 35 37 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 38 | 
            +
                # @option opts [Integer] :limit The maximum number of elements to return. Use together with 'offset' for pagination.
         | 
| 39 | 
            +
                # @option opts [Integer] :offset The first element to return. Use together with 'limit' for pagination.
         | 
| 36 40 | 
             
                # @return [Array<(ClusterBackupList, Integer, Hash)>] ClusterBackupList data, response status code and response headers
         | 
| 37 41 | 
             
                def cluster_backups_get_with_http_info(cluster_id, opts = {})
         | 
| 38 42 | 
             
                  if @api_client.config.debugging
         | 
| @@ -42,11 +46,21 @@ module IonoscloudDbaasPostgres | |
| 42 46 | 
             
                  if @api_client.config.client_side_validation && cluster_id.nil?
         | 
| 43 47 | 
             
                    fail ArgumentError, "Missing the required parameter 'cluster_id' when calling BackupsApi.cluster_backups_get"
         | 
| 44 48 | 
             
                  end
         | 
| 49 | 
            +
                  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
         | 
| 50 | 
            +
                    fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BackupsApi.cluster_backups_get, must be smaller than or equal to 1000.'
         | 
| 51 | 
            +
                  end
         | 
| 52 | 
            +
             | 
| 53 | 
            +
                  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
         | 
| 54 | 
            +
                    fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BackupsApi.cluster_backups_get, must be greater than or equal to 1.'
         | 
| 55 | 
            +
                  end
         | 
| 56 | 
            +
             | 
| 45 57 | 
             
                  # resource path
         | 
| 46 58 | 
             
                  local_var_path = '/clusters/{clusterId}/backups'.sub('{' + 'clusterId' + '}', CGI.escape(cluster_id.to_s))
         | 
| 47 59 |  | 
| 48 60 | 
             
                  # query parameters
         | 
| 49 61 | 
             
                  query_params = opts[:query_params] || {}
         | 
| 62 | 
            +
                  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
         | 
| 63 | 
            +
                  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
         | 
| 50 64 |  | 
| 51 65 | 
             
                  # header parameters
         | 
| 52 66 | 
             
                  header_params = opts[:header_params] || {}
         | 
| @@ -148,6 +162,8 @@ module IonoscloudDbaasPostgres | |
| 148 162 | 
             
                # List cluster backups
         | 
| 149 163 | 
             
                # Retrieves a list of all PostgreSQL cluster backups.
         | 
| 150 164 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 165 | 
            +
                # @option opts [Integer] :limit The maximum number of elements to return. Use together with 'offset' for pagination. (default to 100)
         | 
| 166 | 
            +
                # @option opts [Integer] :offset The first element to return. Use together with 'limit' for pagination. (default to 0)
         | 
| 151 167 | 
             
                # @return [ClusterBackupList]
         | 
| 152 168 | 
             
                def clusters_backups_get(opts = {})
         | 
| 153 169 | 
             
                  data, _status_code, _headers = clusters_backups_get_with_http_info(opts)
         | 
| @@ -157,16 +173,28 @@ module IonoscloudDbaasPostgres | |
| 157 173 | 
             
                # List cluster backups
         | 
| 158 174 | 
             
                # Retrieves a list of all PostgreSQL cluster backups.
         | 
| 159 175 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 176 | 
            +
                # @option opts [Integer] :limit The maximum number of elements to return. Use together with 'offset' for pagination.
         | 
| 177 | 
            +
                # @option opts [Integer] :offset The first element to return. Use together with 'limit' for pagination.
         | 
| 160 178 | 
             
                # @return [Array<(ClusterBackupList, Integer, Hash)>] ClusterBackupList data, response status code and response headers
         | 
| 161 179 | 
             
                def clusters_backups_get_with_http_info(opts = {})
         | 
| 162 180 | 
             
                  if @api_client.config.debugging
         | 
| 163 181 | 
             
                    @api_client.config.logger.debug 'Calling API: BackupsApi.clusters_backups_get ...'
         | 
| 164 182 | 
             
                  end
         | 
| 183 | 
            +
                  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
         | 
| 184 | 
            +
                    fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BackupsApi.clusters_backups_get, must be smaller than or equal to 1000.'
         | 
| 185 | 
            +
                  end
         | 
| 186 | 
            +
             | 
| 187 | 
            +
                  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
         | 
| 188 | 
            +
                    fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling BackupsApi.clusters_backups_get, must be greater than or equal to 1.'
         | 
| 189 | 
            +
                  end
         | 
| 190 | 
            +
             | 
| 165 191 | 
             
                  # resource path
         | 
| 166 192 | 
             
                  local_var_path = '/clusters/backups'
         | 
| 167 193 |  | 
| 168 194 | 
             
                  # query parameters
         | 
| 169 195 | 
             
                  query_params = opts[:query_params] || {}
         | 
| 196 | 
            +
                  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
         | 
| 197 | 
            +
                  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
         | 
| 170 198 |  | 
| 171 199 | 
             
                  # header parameters
         | 
| 172 200 | 
             
                  header_params = opts[:header_params] || {}
         | 
| @@ -211,6 +211,8 @@ module IonoscloudDbaasPostgres | |
| 211 211 | 
             
                # List clusters
         | 
| 212 212 | 
             
                # Retrieves a list of PostgreSQL clusters.
         | 
| 213 213 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 214 | 
            +
                # @option opts [Integer] :limit The maximum number of elements to return. Use together with 'offset' for pagination. (default to 100)
         | 
| 215 | 
            +
                # @option opts [Integer] :offset The first element to return. Use together with 'limit' for pagination. (default to 0)
         | 
| 214 216 | 
             
                # @option opts [String] :filter_name Response filter to list only the PostgreSQL clusters that contain the specified name. The value is case insensitive and matched on the 'displayName' field. 
         | 
| 215 217 | 
             
                # @return [ClusterList]
         | 
| 216 218 | 
             
                def clusters_get(opts = {})
         | 
| @@ -221,17 +223,29 @@ module IonoscloudDbaasPostgres | |
| 221 223 | 
             
                # List clusters
         | 
| 222 224 | 
             
                # Retrieves a list of PostgreSQL clusters.
         | 
| 223 225 | 
             
                # @param [Hash] opts the optional parameters
         | 
| 226 | 
            +
                # @option opts [Integer] :limit The maximum number of elements to return. Use together with 'offset' for pagination.
         | 
| 227 | 
            +
                # @option opts [Integer] :offset The first element to return. Use together with 'limit' for pagination.
         | 
| 224 228 | 
             
                # @option opts [String] :filter_name Response filter to list only the PostgreSQL clusters that contain the specified name. The value is case insensitive and matched on the 'displayName' field. 
         | 
| 225 229 | 
             
                # @return [Array<(ClusterList, Integer, Hash)>] ClusterList data, response status code and response headers
         | 
| 226 230 | 
             
                def clusters_get_with_http_info(opts = {})
         | 
| 227 231 | 
             
                  if @api_client.config.debugging
         | 
| 228 232 | 
             
                    @api_client.config.logger.debug 'Calling API: ClustersApi.clusters_get ...'
         | 
| 229 233 | 
             
                  end
         | 
| 234 | 
            +
                  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
         | 
| 235 | 
            +
                    fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ClustersApi.clusters_get, must be smaller than or equal to 1000.'
         | 
| 236 | 
            +
                  end
         | 
| 237 | 
            +
             | 
| 238 | 
            +
                  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
         | 
| 239 | 
            +
                    fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ClustersApi.clusters_get, must be greater than or equal to 1.'
         | 
| 240 | 
            +
                  end
         | 
| 241 | 
            +
             | 
| 230 242 | 
             
                  # resource path
         | 
| 231 243 | 
             
                  local_var_path = '/clusters'
         | 
| 232 244 |  | 
| 233 245 | 
             
                  # query parameters
         | 
| 234 246 | 
             
                  query_params = opts[:query_params] || {}
         | 
| 247 | 
            +
                  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
         | 
| 248 | 
            +
                  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
         | 
| 235 249 | 
             
                  query_params[:'filter.name'] = opts[:'filter_name'] if !opts[:'filter_name'].nil?
         | 
| 236 250 |  | 
| 237 251 | 
             
                  # header parameters
         | 
| @@ -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/v1.1. | 
| 41 | 
            +
                  @user_agent = "sdk-ruby-dbaas-postgres/v1.1.1"
         | 
| 42 42 | 
             
                  @default_headers = {
         | 
| 43 43 | 
             
                    'Content-Type' => 'application/json',
         | 
| 44 44 | 
             
                    'User-Agent' => @user_agent
         | 
| @@ -27,15 +27,15 @@ module IonoscloudDbaasPostgres | |
| 27 27 | 
             
                attr_accessor :items
         | 
| 28 28 |  | 
| 29 29 |  | 
| 30 | 
            -
                # The offset specified in the request (if none was specified, the default offset is 0) | 
| 30 | 
            +
                # The offset specified in the request (if none was specified, the default offset is 0). 
         | 
| 31 31 | 
             
                attr_accessor :offset
         | 
| 32 32 |  | 
| 33 33 |  | 
| 34 | 
            -
                # The limit specified in the request (if none was specified,  | 
| 34 | 
            +
                # The limit specified in the request (if none was specified, the default limit is 100). 
         | 
| 35 35 | 
             
                attr_accessor :limit
         | 
| 36 36 |  | 
| 37 37 |  | 
| 38 | 
            -
                attr_accessor : | 
| 38 | 
            +
                attr_accessor :links
         | 
| 39 39 |  | 
| 40 40 | 
             
                # Attribute mapping from ruby-style variable name to JSON key.
         | 
| 41 41 | 
             
                def self.attribute_map
         | 
| @@ -51,7 +51,7 @@ module IonoscloudDbaasPostgres | |
| 51 51 |  | 
| 52 52 | 
             
                    :'limit' => :'limit',
         | 
| 53 53 |  | 
| 54 | 
            -
                    :' | 
| 54 | 
            +
                    :'links' => :'links'
         | 
| 55 55 | 
             
                  }
         | 
| 56 56 | 
             
                end
         | 
| 57 57 |  | 
| @@ -74,7 +74,7 @@ module IonoscloudDbaasPostgres | |
| 74 74 |  | 
| 75 75 | 
             
                    :'limit' => :'Integer',
         | 
| 76 76 |  | 
| 77 | 
            -
                    :' | 
| 77 | 
            +
                    :'links' => :'PaginationLinks'
         | 
| 78 78 | 
             
                  }
         | 
| 79 79 | 
             
                end
         | 
| 80 80 |  | 
| @@ -131,16 +131,20 @@ module IonoscloudDbaasPostgres | |
| 131 131 |  | 
| 132 132 | 
             
                  if attributes.key?(:'offset')
         | 
| 133 133 | 
             
                    self.offset = attributes[:'offset']
         | 
| 134 | 
            +
                  else
         | 
| 135 | 
            +
                    self.offset = 0
         | 
| 134 136 | 
             
                  end
         | 
| 135 137 |  | 
| 136 138 |  | 
| 137 139 | 
             
                  if attributes.key?(:'limit')
         | 
| 138 140 | 
             
                    self.limit = attributes[:'limit']
         | 
| 141 | 
            +
                  else
         | 
| 142 | 
            +
                    self.limit = 100
         | 
| 139 143 | 
             
                  end
         | 
| 140 144 |  | 
| 141 145 |  | 
| 142 | 
            -
                  if attributes.key?(:' | 
| 143 | 
            -
                    self. | 
| 146 | 
            +
                  if attributes.key?(:'links')
         | 
| 147 | 
            +
                    self.links = attributes[:'links']
         | 
| 144 148 | 
             
                  end
         | 
| 145 149 | 
             
                end
         | 
| 146 150 |  | 
| @@ -157,6 +161,10 @@ module IonoscloudDbaasPostgres | |
| 157 161 | 
             
                  end
         | 
| 158 162 |  | 
| 159 163 |  | 
| 164 | 
            +
                  if !@limit.nil? && @limit > 1000
         | 
| 165 | 
            +
                    invalid_properties.push('invalid value for "limit", must be smaller than or equal to 1000.')
         | 
| 166 | 
            +
                  end
         | 
| 167 | 
            +
             | 
| 160 168 | 
             
                  if !@limit.nil? && @limit < 0
         | 
| 161 169 | 
             
                    invalid_properties.push('invalid value for "limit", must be greater than or equal to 0.')
         | 
| 162 170 | 
             
                  end
         | 
| @@ -174,6 +182,7 @@ module IonoscloudDbaasPostgres | |
| 174 182 |  | 
| 175 183 | 
             
                  return false if !@offset.nil? && @offset < 0
         | 
| 176 184 |  | 
| 185 | 
            +
                  return false if !@limit.nil? && @limit > 1000
         | 
| 177 186 | 
             
                  return false if !@limit.nil? && @limit < 0
         | 
| 178 187 |  | 
| 179 188 | 
             
                  true
         | 
| @@ -197,6 +206,10 @@ module IonoscloudDbaasPostgres | |
| 197 206 | 
             
                # Custom attribute writer method with validation
         | 
| 198 207 | 
             
                # @param [Object] limit Value to be assigned
         | 
| 199 208 | 
             
                def limit=(limit)
         | 
| 209 | 
            +
                  if !limit.nil? && limit > 1000
         | 
| 210 | 
            +
                    fail ArgumentError, 'invalid value for "limit", must be smaller than or equal to 1000.'
         | 
| 211 | 
            +
                  end
         | 
| 212 | 
            +
             | 
| 200 213 | 
             
                  if !limit.nil? && limit < 0
         | 
| 201 214 | 
             
                    fail ArgumentError, 'invalid value for "limit", must be greater than or equal to 0.'
         | 
| 202 215 | 
             
                  end
         | 
| @@ -215,7 +228,7 @@ module IonoscloudDbaasPostgres | |
| 215 228 | 
             
                    items == o.items &&
         | 
| 216 229 | 
             
                    offset == o.offset &&
         | 
| 217 230 | 
             
                    limit == o.limit &&
         | 
| 218 | 
            -
                     | 
| 231 | 
            +
                    links == o.links
         | 
| 219 232 | 
             
                end
         | 
| 220 233 |  | 
| 221 234 | 
             
                # @see the `==` method
         | 
| @@ -227,7 +240,7 @@ module IonoscloudDbaasPostgres | |
| 227 240 | 
             
                # Calculates hash code according to all attributes.
         | 
| 228 241 | 
             
                # @return [Integer] Hash code
         | 
| 229 242 | 
             
                def hash
         | 
| 230 | 
            -
                  [type, id, items, offset, limit,  | 
| 243 | 
            +
                  [type, id, items, offset, limit, links].hash
         | 
| 231 244 | 
             
                end
         | 
| 232 245 |  | 
| 233 246 | 
             
                # Builds the object from hash
         | 
| @@ -27,15 +27,15 @@ module IonoscloudDbaasPostgres | |
| 27 27 | 
             
                attr_accessor :items
         | 
| 28 28 |  | 
| 29 29 |  | 
| 30 | 
            -
                # The offset specified in the request (if none was specified, the default offset is 0) | 
| 30 | 
            +
                # The offset specified in the request (if none was specified, the default offset is 0). 
         | 
| 31 31 | 
             
                attr_accessor :offset
         | 
| 32 32 |  | 
| 33 33 |  | 
| 34 | 
            -
                # The limit specified in the request (if none was specified,  | 
| 34 | 
            +
                # The limit specified in the request (if none was specified, the default limit is 100). 
         | 
| 35 35 | 
             
                attr_accessor :limit
         | 
| 36 36 |  | 
| 37 37 |  | 
| 38 | 
            -
                attr_accessor : | 
| 38 | 
            +
                attr_accessor :links
         | 
| 39 39 |  | 
| 40 40 | 
             
                # Attribute mapping from ruby-style variable name to JSON key.
         | 
| 41 41 | 
             
                def self.attribute_map
         | 
| @@ -51,7 +51,7 @@ module IonoscloudDbaasPostgres | |
| 51 51 |  | 
| 52 52 | 
             
                    :'limit' => :'limit',
         | 
| 53 53 |  | 
| 54 | 
            -
                    :' | 
| 54 | 
            +
                    :'links' => :'links'
         | 
| 55 55 | 
             
                  }
         | 
| 56 56 | 
             
                end
         | 
| 57 57 |  | 
| @@ -74,7 +74,7 @@ module IonoscloudDbaasPostgres | |
| 74 74 |  | 
| 75 75 | 
             
                    :'limit' => :'Integer',
         | 
| 76 76 |  | 
| 77 | 
            -
                    :' | 
| 77 | 
            +
                    :'links' => :'PaginationLinks'
         | 
| 78 78 | 
             
                  }
         | 
| 79 79 | 
             
                end
         | 
| 80 80 |  | 
| @@ -131,16 +131,20 @@ module IonoscloudDbaasPostgres | |
| 131 131 |  | 
| 132 132 | 
             
                  if attributes.key?(:'offset')
         | 
| 133 133 | 
             
                    self.offset = attributes[:'offset']
         | 
| 134 | 
            +
                  else
         | 
| 135 | 
            +
                    self.offset = 0
         | 
| 134 136 | 
             
                  end
         | 
| 135 137 |  | 
| 136 138 |  | 
| 137 139 | 
             
                  if attributes.key?(:'limit')
         | 
| 138 140 | 
             
                    self.limit = attributes[:'limit']
         | 
| 141 | 
            +
                  else
         | 
| 142 | 
            +
                    self.limit = 100
         | 
| 139 143 | 
             
                  end
         | 
| 140 144 |  | 
| 141 145 |  | 
| 142 | 
            -
                  if attributes.key?(:' | 
| 143 | 
            -
                    self. | 
| 146 | 
            +
                  if attributes.key?(:'links')
         | 
| 147 | 
            +
                    self.links = attributes[:'links']
         | 
| 144 148 | 
             
                  end
         | 
| 145 149 | 
             
                end
         | 
| 146 150 |  | 
| @@ -157,6 +161,10 @@ module IonoscloudDbaasPostgres | |
| 157 161 | 
             
                  end
         | 
| 158 162 |  | 
| 159 163 |  | 
| 164 | 
            +
                  if !@limit.nil? && @limit > 1000
         | 
| 165 | 
            +
                    invalid_properties.push('invalid value for "limit", must be smaller than or equal to 1000.')
         | 
| 166 | 
            +
                  end
         | 
| 167 | 
            +
             | 
| 160 168 | 
             
                  if !@limit.nil? && @limit < 0
         | 
| 161 169 | 
             
                    invalid_properties.push('invalid value for "limit", must be greater than or equal to 0.')
         | 
| 162 170 | 
             
                  end
         | 
| @@ -174,6 +182,7 @@ module IonoscloudDbaasPostgres | |
| 174 182 |  | 
| 175 183 | 
             
                  return false if !@offset.nil? && @offset < 0
         | 
| 176 184 |  | 
| 185 | 
            +
                  return false if !@limit.nil? && @limit > 1000
         | 
| 177 186 | 
             
                  return false if !@limit.nil? && @limit < 0
         | 
| 178 187 |  | 
| 179 188 | 
             
                  true
         | 
| @@ -197,6 +206,10 @@ module IonoscloudDbaasPostgres | |
| 197 206 | 
             
                # Custom attribute writer method with validation
         | 
| 198 207 | 
             
                # @param [Object] limit Value to be assigned
         | 
| 199 208 | 
             
                def limit=(limit)
         | 
| 209 | 
            +
                  if !limit.nil? && limit > 1000
         | 
| 210 | 
            +
                    fail ArgumentError, 'invalid value for "limit", must be smaller than or equal to 1000.'
         | 
| 211 | 
            +
                  end
         | 
| 212 | 
            +
             | 
| 200 213 | 
             
                  if !limit.nil? && limit < 0
         | 
| 201 214 | 
             
                    fail ArgumentError, 'invalid value for "limit", must be greater than or equal to 0.'
         | 
| 202 215 | 
             
                  end
         | 
| @@ -215,7 +228,7 @@ module IonoscloudDbaasPostgres | |
| 215 228 | 
             
                    items == o.items &&
         | 
| 216 229 | 
             
                    offset == o.offset &&
         | 
| 217 230 | 
             
                    limit == o.limit &&
         | 
| 218 | 
            -
                     | 
| 231 | 
            +
                    links == o.links
         | 
| 219 232 | 
             
                end
         | 
| 220 233 |  | 
| 221 234 | 
             
                # @see the `==` method
         | 
| @@ -227,7 +240,7 @@ module IonoscloudDbaasPostgres | |
| 227 240 | 
             
                # Calculates hash code according to all attributes.
         | 
| 228 241 | 
             
                # @return [Integer] Hash code
         | 
| 229 242 | 
             
                def hash
         | 
| 230 | 
            -
                  [type, id, items, offset, limit,  | 
| 243 | 
            +
                  [type, id, items, offset, limit, links].hash
         | 
| 231 244 | 
             
                end
         | 
| 232 245 |  | 
| 233 246 | 
             
                # Builds the object from hash
         | 
| @@ -16,15 +16,15 @@ require 'time' | |
| 16 16 | 
             
            module IonoscloudDbaasPostgres
         | 
| 17 17 | 
             
              class Pagination
         | 
| 18 18 |  | 
| 19 | 
            -
                # The offset specified in the request (if none was specified, the default offset is 0) | 
| 19 | 
            +
                # The offset specified in the request (if none was specified, the default offset is 0). 
         | 
| 20 20 | 
             
                attr_accessor :offset
         | 
| 21 21 |  | 
| 22 22 |  | 
| 23 | 
            -
                # The limit specified in the request (if none was specified,  | 
| 23 | 
            +
                # The limit specified in the request (if none was specified, the default limit is 100). 
         | 
| 24 24 | 
             
                attr_accessor :limit
         | 
| 25 25 |  | 
| 26 26 |  | 
| 27 | 
            -
                attr_accessor : | 
| 27 | 
            +
                attr_accessor :links
         | 
| 28 28 |  | 
| 29 29 | 
             
                # Attribute mapping from ruby-style variable name to JSON key.
         | 
| 30 30 | 
             
                def self.attribute_map
         | 
| @@ -34,7 +34,7 @@ module IonoscloudDbaasPostgres | |
| 34 34 |  | 
| 35 35 | 
             
                    :'limit' => :'limit',
         | 
| 36 36 |  | 
| 37 | 
            -
                    :' | 
| 37 | 
            +
                    :'links' => :'links'
         | 
| 38 38 | 
             
                  }
         | 
| 39 39 | 
             
                end
         | 
| 40 40 |  | 
| @@ -51,7 +51,7 @@ module IonoscloudDbaasPostgres | |
| 51 51 |  | 
| 52 52 | 
             
                    :'limit' => :'Integer',
         | 
| 53 53 |  | 
| 54 | 
            -
                    :' | 
| 54 | 
            +
                    :'links' => :'PaginationLinks'
         | 
| 55 55 | 
             
                  }
         | 
| 56 56 | 
             
                end
         | 
| 57 57 |  | 
| @@ -82,16 +82,20 @@ module IonoscloudDbaasPostgres | |
| 82 82 |  | 
| 83 83 | 
             
                  if attributes.key?(:'offset')
         | 
| 84 84 | 
             
                    self.offset = attributes[:'offset']
         | 
| 85 | 
            +
                  else
         | 
| 86 | 
            +
                    self.offset = 0
         | 
| 85 87 | 
             
                  end
         | 
| 86 88 |  | 
| 87 89 |  | 
| 88 90 | 
             
                  if attributes.key?(:'limit')
         | 
| 89 91 | 
             
                    self.limit = attributes[:'limit']
         | 
| 92 | 
            +
                  else
         | 
| 93 | 
            +
                    self.limit = 100
         | 
| 90 94 | 
             
                  end
         | 
| 91 95 |  | 
| 92 96 |  | 
| 93 | 
            -
                  if attributes.key?(:' | 
| 94 | 
            -
                    self. | 
| 97 | 
            +
                  if attributes.key?(:'links')
         | 
| 98 | 
            +
                    self.links = attributes[:'links']
         | 
| 95 99 | 
             
                  end
         | 
| 96 100 | 
             
                end
         | 
| 97 101 |  | 
| @@ -105,6 +109,10 @@ module IonoscloudDbaasPostgres | |
| 105 109 | 
             
                  end
         | 
| 106 110 |  | 
| 107 111 |  | 
| 112 | 
            +
                  if !@limit.nil? && @limit > 1000
         | 
| 113 | 
            +
                    invalid_properties.push('invalid value for "limit", must be smaller than or equal to 1000.')
         | 
| 114 | 
            +
                  end
         | 
| 115 | 
            +
             | 
| 108 116 | 
             
                  if !@limit.nil? && @limit < 0
         | 
| 109 117 | 
             
                    invalid_properties.push('invalid value for "limit", must be greater than or equal to 0.')
         | 
| 110 118 | 
             
                  end
         | 
| @@ -119,6 +127,7 @@ module IonoscloudDbaasPostgres | |
| 119 127 |  | 
| 120 128 | 
             
                  return false if !@offset.nil? && @offset < 0
         | 
| 121 129 |  | 
| 130 | 
            +
                  return false if !@limit.nil? && @limit > 1000
         | 
| 122 131 | 
             
                  return false if !@limit.nil? && @limit < 0
         | 
| 123 132 |  | 
| 124 133 | 
             
                  true
         | 
| @@ -139,6 +148,10 @@ module IonoscloudDbaasPostgres | |
| 139 148 | 
             
                # Custom attribute writer method with validation
         | 
| 140 149 | 
             
                # @param [Object] limit Value to be assigned
         | 
| 141 150 | 
             
                def limit=(limit)
         | 
| 151 | 
            +
                  if !limit.nil? && limit > 1000
         | 
| 152 | 
            +
                    fail ArgumentError, 'invalid value for "limit", must be smaller than or equal to 1000.'
         | 
| 153 | 
            +
                  end
         | 
| 154 | 
            +
             | 
| 142 155 | 
             
                  if !limit.nil? && limit < 0
         | 
| 143 156 | 
             
                    fail ArgumentError, 'invalid value for "limit", must be greater than or equal to 0.'
         | 
| 144 157 | 
             
                  end
         | 
| @@ -154,7 +167,7 @@ module IonoscloudDbaasPostgres | |
| 154 167 | 
             
                  self.class == o.class &&
         | 
| 155 168 | 
             
                    offset == o.offset &&
         | 
| 156 169 | 
             
                    limit == o.limit &&
         | 
| 157 | 
            -
                     | 
| 170 | 
            +
                    links == o.links
         | 
| 158 171 | 
             
                end
         | 
| 159 172 |  | 
| 160 173 | 
             
                # @see the `==` method
         | 
| @@ -166,7 +179,7 @@ module IonoscloudDbaasPostgres | |
| 166 179 | 
             
                # Calculates hash code according to all attributes.
         | 
| 167 180 | 
             
                # @return [Integer] Hash code
         | 
| 168 181 | 
             
                def hash
         | 
| 169 | 
            -
                  [offset, limit,  | 
| 182 | 
            +
                  [offset, limit, links].hash
         | 
| 170 183 | 
             
                end
         | 
| 171 184 |  | 
| 172 185 | 
             
                # Builds the object from hash
         | 
| @@ -14,7 +14,7 @@ require 'date' | |
| 14 14 | 
             
            require 'time'
         | 
| 15 15 |  | 
| 16 16 | 
             
            module IonoscloudDbaasPostgres
         | 
| 17 | 
            -
              # URLs to navigate the different pages.  | 
| 17 | 
            +
              # URLs to navigate the different pages. 
         | 
| 18 18 | 
             
              class PaginationLinks
         | 
| 19 19 |  | 
| 20 20 | 
             
                # URL (with offset and limit parameters) of the previous page; only present if offset is greater than 0. 
         |