lib/ionoscloud/api/labels_api.rb in ionoscloud-6.0.0.beta.2 vs lib/ionoscloud/api/labels_api.rb in ionoscloud-6.0.0.beta.3

- old
+ new

@@ -1,11 +1,11 @@ =begin #CLOUD API #An enterprise-grade Infrastructure is provided as a Service (IaaS) 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 perform a variety of management tasks such as spinning up additional servers, adding volumes, adjusting networking, and so forth. 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. -The version of the OpenAPI document: 6.0 +The version of the OpenAPI document: 6.0-SDK.1 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.0.1-SNAPSHOT =end @@ -25,25 +25,25 @@ # @param key [String] The key of the Label # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true) # @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on (default to 0) # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed - # @return [Object] + # @return [nil] def datacenters_labels_delete(datacenter_id, key, opts = {}) - data, _status_code, _headers = datacenters_labels_delete_with_http_info(datacenter_id, key, opts) - data + datacenters_labels_delete_with_http_info(datacenter_id, key, opts) + nil end # Delete a Label from Data Center # This will remove a label from the data center. # @param datacenter_id [String] The unique ID of the Data Center # @param key [String] The key of the Label # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) # @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers + # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def datacenters_labels_delete_with_http_info(datacenter_id, key, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LabelsApi.datacenters_labels_delete ...' end # verify the required parameter 'datacenter_id' is set @@ -81,11 +81,11 @@ # http body (model) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'Object' + return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication'] new_options = opts.merge( @@ -478,14 +478,14 @@ # @param key [String] The key of the Label # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true) # @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on (default to 0) # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed - # @return [Object] + # @return [nil] def datacenters_servers_labels_delete(datacenter_id, server_id, key, opts = {}) - data, _status_code, _headers = datacenters_servers_labels_delete_with_http_info(datacenter_id, server_id, key, opts) - data + datacenters_servers_labels_delete_with_http_info(datacenter_id, server_id, key, opts) + nil end # Delete a Label from Server # This will remove a label from the server. # @param datacenter_id [String] The unique ID of the Datacenter @@ -493,11 +493,11 @@ # @param key [String] The key of the Label # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) # @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers + # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def datacenters_servers_labels_delete_with_http_info(datacenter_id, server_id, key, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LabelsApi.datacenters_servers_labels_delete ...' end # verify the required parameter 'datacenter_id' is set @@ -539,11 +539,11 @@ # http body (model) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'Object' + return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication'] new_options = opts.merge( @@ -960,14 +960,14 @@ # @param key [String] The key of the Label # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true) # @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on (default to 0) # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed - # @return [Object] + # @return [nil] def datacenters_volumes_labels_delete(datacenter_id, volume_id, key, opts = {}) - data, _status_code, _headers = datacenters_volumes_labels_delete_with_http_info(datacenter_id, volume_id, key, opts) - data + datacenters_volumes_labels_delete_with_http_info(datacenter_id, volume_id, key, opts) + nil end # Delete a Label from Volume # This will remove a label from the volume. # @param datacenter_id [String] The unique ID of the Datacenter @@ -975,11 +975,11 @@ # @param key [String] The key of the Label # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) # @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers + # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def datacenters_volumes_labels_delete_with_http_info(datacenter_id, volume_id, key, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LabelsApi.datacenters_volumes_labels_delete ...' end # verify the required parameter 'datacenter_id' is set @@ -1021,11 +1021,11 @@ # http body (model) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'Object' + return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication'] new_options = opts.merge( @@ -1423,25 +1423,25 @@ # @param key [String] The key of the Label # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true) # @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on (default to 0) # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed - # @return [Object] + # @return [nil] def ipblocks_labels_delete(ipblock_id, key, opts = {}) - data, _status_code, _headers = ipblocks_labels_delete_with_http_info(ipblock_id, key, opts) - data + ipblocks_labels_delete_with_http_info(ipblock_id, key, opts) + nil end # Delete a Label from IP Block # This will remove a label from the Ip Block. # @param ipblock_id [String] The unique ID of the Ip Block # @param key [String] The key of the Label # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) # @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers + # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def ipblocks_labels_delete_with_http_info(ipblock_id, key, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LabelsApi.ipblocks_labels_delete ...' end # verify the required parameter 'ipblock_id' is set @@ -1479,11 +1479,11 @@ # http body (model) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'Object' + return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication'] new_options = opts.merge( @@ -2011,25 +2011,25 @@ # @param key [String] The key of the Label # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true) # @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on (default to 0) # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed - # @return [Object] + # @return [nil] def snapshots_labels_delete(snapshot_id, key, opts = {}) - data, _status_code, _headers = snapshots_labels_delete_with_http_info(snapshot_id, key, opts) - data + snapshots_labels_delete_with_http_info(snapshot_id, key, opts) + nil end # Delete a Label from Snapshot # This will remove a label from the snapshot. # @param snapshot_id [String] The unique ID of the Snapshot # @param key [String] The key of the Label # @param [Hash] opts the optional parameters # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) # @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed - # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers + # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def snapshots_labels_delete_with_http_info(snapshot_id, key, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: LabelsApi.snapshots_labels_delete ...' end # verify the required parameter 'snapshot_id' is set @@ -2067,10 +2067,10 @@ # http body (model) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'Object' + return_type = opts[:debug_return_type] # auth_names auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication'] new_options = opts.merge(