lib/ionoscloud/api/volumes_api.rb in ionoscloud-6.0.0.beta.3 vs lib/ionoscloud/api/volumes_api.rb in ionoscloud-6.0.0.beta.4
- old
+ new
@@ -1,14 +1,14 @@
=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.
+#IONOS Enterprise-grade Infrastructure as a Service (IaaS) solutions can be managed through the Cloud API, in addition or as an alternative to the \"Data Center Designer\" (DCD) browser-based tool. Both methods employ consistent concepts and features, deliver similar power and flexibility, and can be used to perform a multitude of management tasks, including adding servers, volumes, configuring networks, and so on.
-The version of the OpenAPI document: 6.0-SDK.1
+The version of the OpenAPI document: 6.0-SDK.3
Generated by: https://openapi-generator.tech
-OpenAPI Generator version: 5.0.1-SNAPSHOT
+OpenAPI Generator version: 5.2.1-SNAPSHOT
=end
require 'cgi'
@@ -19,16 +19,16 @@
def initialize(api_client = ApiClient.default)
@api_client = api_client
end
# Create Volume Snapshot
# Creates a snapshot of a volume within the datacenter. You can use a snapshot to create a new storage volume or to restore a storage volume.
- # @param datacenter_id [String] The unique ID of the datacenter
+ # @param datacenter_id [String] The unique ID of the data center.
# @param volume_id [String] The unique ID of the Volume
# @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=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... 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
+ # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). (default to true)
+ # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (default to 0)
+ # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed.
# @option opts [String] :name The name of the snapshot
# @option opts [String] :description The description of the snapshot
# @option opts [Boolean] :sec_auth_protection Flag representing if extra protection is enabled on snapshot e.g. Two Factor protection etc.
# @option opts [String] :licence_type The OS type of this Snapshot
# @return [Snapshot]
@@ -37,16 +37,16 @@
data
end
# Create Volume Snapshot
# Creates a snapshot of a volume within the datacenter. You can use a snapshot to create a new storage volume or to restore a storage volume.
- # @param datacenter_id [String] The unique ID of the datacenter
+ # @param datacenter_id [String] The unique ID of the data center.
# @param volume_id [String] The unique ID of the Volume
# @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=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... 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
+ # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines).
+ # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
+ # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed.
# @option opts [String] :name The name of the snapshot
# @option opts [String] :description The description of the snapshot
# @option opts [Boolean] :sec_auth_protection Flag representing if extra protection is enabled on snapshot e.g. Two Factor protection etc.
# @option opts [String] :licence_type The OS type of this Snapshot
# @return [Array<(Snapshot, Integer, Hash)>] Snapshot data, response status code and response headers
@@ -123,30 +123,30 @@
return data, status_code, headers
end
# Delete a Volume
# Deletes the specified volume. This will result in the volume being removed from your datacenter. Use this with caution.
- # @param datacenter_id [String] The unique ID of the datacenter
+ # @param datacenter_id [String] The unique ID of the data center.
# @param volume_id [String] The unique ID of the Volume
# @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=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... 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
+ # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). (default to true)
+ # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (default to 0)
+ # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed.
# @return [nil]
def datacenters_volumes_delete(datacenter_id, volume_id, opts = {})
datacenters_volumes_delete_with_http_info(datacenter_id, volume_id, opts)
nil
end
# Delete a Volume
# Deletes the specified volume. This will result in the volume being removed from your datacenter. Use this with caution.
- # @param datacenter_id [String] The unique ID of the datacenter
+ # @param datacenter_id [String] The unique ID of the data center.
# @param volume_id [String] The unique ID of the Volume
# @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=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... 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
+ # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines).
+ # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
+ # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed.
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
def datacenters_volumes_delete_with_http_info(datacenter_id, volume_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VolumesApi.datacenters_volumes_delete ...'
end
@@ -209,30 +209,30 @@
return data, status_code, headers
end
# Retrieve a Volume
# Retrieves the attributes of a given Volume
- # @param datacenter_id [String] The unique ID of the datacenter
+ # @param datacenter_id [String] The unique ID of the data center.
# @param volume_id [String] The unique ID of the Volume
# @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=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... 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
+ # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). (default to true)
+ # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (default to 0)
+ # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed.
# @return [Volume]
def datacenters_volumes_find_by_id(datacenter_id, volume_id, opts = {})
data, _status_code, _headers = datacenters_volumes_find_by_id_with_http_info(datacenter_id, volume_id, opts)
data
end
# Retrieve a Volume
# Retrieves the attributes of a given Volume
- # @param datacenter_id [String] The unique ID of the datacenter
+ # @param datacenter_id [String] The unique ID of the data center.
# @param volume_id [String] The unique ID of the Volume
# @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=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... 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
+ # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines).
+ # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
+ # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed.
# @return [Array<(Volume, Integer, Hash)>] Volume data, response status code and response headers
def datacenters_volumes_find_by_id_with_http_info(datacenter_id, volume_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VolumesApi.datacenters_volumes_find_by_id ...'
end
@@ -295,32 +295,32 @@
return data, status_code, headers
end
# List Volumes
# Retrieves a list of Volumes.
- # @param datacenter_id [String] The unique ID of the datacenter
+ # @param datacenter_id [String] The unique ID of the data center.
# @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=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... 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
- # @option opts [Integer] :offset the first element (of the total list of elements) to include in the response (use together with limit for pagination) (default to 0)
- # @option opts [Integer] :limit the maximum number of elements to return (use together with offset for pagination) (default to 1000)
+ # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). (default to true)
+ # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (default to 0)
+ # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed.
+ # @option opts [Integer] :offset The first element (from the complete list of the elements) to include in the response (use together with limit for pagination). (default to 0)
+ # @option opts [Integer] :limit The maximum number of elements to return (use together with offset for pagination). (default to 1000)
# @return [Volumes]
def datacenters_volumes_get(datacenter_id, opts = {})
data, _status_code, _headers = datacenters_volumes_get_with_http_info(datacenter_id, opts)
data
end
# List Volumes
# Retrieves a list of Volumes.
- # @param datacenter_id [String] The unique ID of the datacenter
+ # @param datacenter_id [String] The unique ID of the data center.
# @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=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... 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
- # @option opts [Integer] :offset the first element (of the total list of elements) to include in the response (use together with limit for pagination)
- # @option opts [Integer] :limit the maximum number of elements to return (use together with offset for pagination)
+ # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines).
+ # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
+ # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed.
+ # @option opts [Integer] :offset The first element (from the complete list of the elements) to include in the response (use together with limit for pagination).
+ # @option opts [Integer] :limit The maximum number of elements to return (use together with offset for pagination).
# @return [Array<(Volumes, Integer, Hash)>] Volumes data, response status code and response headers
def datacenters_volumes_get_with_http_info(datacenter_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VolumesApi.datacenters_volumes_get ...'
end
@@ -393,32 +393,32 @@
return data, status_code, headers
end
# Partially modify a Volume
# You can use update attributes of a volume.
- # @param datacenter_id [String] The unique ID of the datacenter
+ # @param datacenter_id [String] The unique ID of the data center.
# @param volume_id [String] The unique ID of the Volume
# @param volume [VolumeProperties] Modified properties of Volume
# @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=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... 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
+ # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). (default to true)
+ # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (default to 0)
+ # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed.
# @return [Volume]
def datacenters_volumes_patch(datacenter_id, volume_id, volume, opts = {})
data, _status_code, _headers = datacenters_volumes_patch_with_http_info(datacenter_id, volume_id, volume, opts)
data
end
# Partially modify a Volume
# You can use update attributes of a volume.
- # @param datacenter_id [String] The unique ID of the datacenter
+ # @param datacenter_id [String] The unique ID of the data center.
# @param volume_id [String] The unique ID of the Volume
# @param volume [VolumeProperties] Modified properties of Volume
# @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=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... 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
+ # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines).
+ # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
+ # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed.
# @return [Array<(Volume, Integer, Hash)>] Volume data, response status code and response headers
def datacenters_volumes_patch_with_http_info(datacenter_id, volume_id, volume, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VolumesApi.datacenters_volumes_patch ...'
end
@@ -487,30 +487,30 @@
return data, status_code, headers
end
# Create a Volume
# Creates a volume within the datacenter. This will not attach the volume to a server. Please see the Servers section for details on how to attach storage volumes
- # @param datacenter_id [String] The unique ID of the datacenter
+ # @param datacenter_id [String] The unique ID of the data center.
# @param volume [Volume] Volume to be created
# @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=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... 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
+ # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). (default to true)
+ # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (default to 0)
+ # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed.
# @return [Volume]
def datacenters_volumes_post(datacenter_id, volume, opts = {})
data, _status_code, _headers = datacenters_volumes_post_with_http_info(datacenter_id, volume, opts)
data
end
# Create a Volume
# Creates a volume within the datacenter. This will not attach the volume to a server. Please see the Servers section for details on how to attach storage volumes
- # @param datacenter_id [String] The unique ID of the datacenter
+ # @param datacenter_id [String] The unique ID of the data center.
# @param volume [Volume] Volume to be created
# @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=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... 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
+ # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines).
+ # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
+ # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed.
# @return [Array<(Volume, Integer, Hash)>] Volume data, response status code and response headers
def datacenters_volumes_post_with_http_info(datacenter_id, volume, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VolumesApi.datacenters_volumes_post ...'
end
@@ -575,32 +575,32 @@
return data, status_code, headers
end
# Modify a Volume
# You can use update attributes of a Volume
- # @param datacenter_id [String] The unique ID of the datacenter
+ # @param datacenter_id [String] The unique ID of the data center.
# @param volume_id [String] The unique ID of the Volume
# @param volume [Volume] Modified Volume
# @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=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... 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
+ # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). (default to true)
+ # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (default to 0)
+ # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed.
# @return [Volume]
def datacenters_volumes_put(datacenter_id, volume_id, volume, opts = {})
data, _status_code, _headers = datacenters_volumes_put_with_http_info(datacenter_id, volume_id, volume, opts)
data
end
# Modify a Volume
# You can use update attributes of a Volume
- # @param datacenter_id [String] The unique ID of the datacenter
+ # @param datacenter_id [String] The unique ID of the data center.
# @param volume_id [String] The unique ID of the Volume
# @param volume [Volume] Modified Volume
# @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=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... 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
+ # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines).
+ # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
+ # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed.
# @return [Array<(Volume, Integer, Hash)>] Volume data, response status code and response headers
def datacenters_volumes_put_with_http_info(datacenter_id, volume_id, volume, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VolumesApi.datacenters_volumes_put ...'
end
@@ -669,30 +669,30 @@
return data, status_code, headers
end
# Restore Volume Snapshot
# This will restore a snapshot onto a volume. A snapshot is created as just another image that can be used to create subsequent volumes if you want or to restore an existing volume.
- # @param datacenter_id [String] The unique ID of the datacenter
+ # @param datacenter_id [String] The unique ID of the data center.
# @param volume_id [String] The unique ID of the Volume
# @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=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... 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
+ # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines). (default to true)
+ # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on (default to 0)
+ # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed.
# @option opts [String] :snapshot_id This is the ID of the snapshot
# @return [nil]
def datacenters_volumes_restore_snapshot_post(datacenter_id, volume_id, opts = {})
datacenters_volumes_restore_snapshot_post_with_http_info(datacenter_id, volume_id, opts)
nil
end
# Restore Volume Snapshot
# This will restore a snapshot onto a volume. A snapshot is created as just another image that can be used to create subsequent volumes if you want or to restore an existing volume.
- # @param datacenter_id [String] The unique ID of the datacenter
+ # @param datacenter_id [String] The unique ID of the data center.
# @param volume_id [String] The unique ID of the Volume
# @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=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... 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
+ # @option opts [Boolean] :pretty Controls whether the response is pretty-printed (with indentations and new lines).
+ # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth=0: Only direct properties are included; children (servers and other elements) are not included. - depth=1: Direct properties and children references are included. - depth=2: Direct properties and children properties are included. - depth=3: Direct properties and children properties and children's children are included. - depth=... and so on
+ # @option opts [Integer] :x_contract_number Users with multiple contracts must provide the contract number, against which all API requests are to be executed.
# @option opts [String] :snapshot_id This is the ID of the snapshot
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
def datacenters_volumes_restore_snapshot_post_with_http_info(datacenter_id, volume_id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: VolumesApi.datacenters_volumes_restore_snapshot_post ...'