lib/ionoscloud/api/templates_api.rb in ionoscloud-6.0.0.beta.4 vs lib/ionoscloud/api/templates_api.rb in ionoscloud-6.0.0

- old
+ new

@@ -1,11 +1,11 @@ =begin #CLOUD API #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.3 +The version of the OpenAPI document: 6.0 Generated by: https://openapi-generator.tech OpenAPI Generator version: 5.2.1-SNAPSHOT =end @@ -17,24 +17,24 @@ attr_accessor :api_client def initialize(api_client = ApiClient.default) @api_client = api_client end - # Retrieve an available template - # Retrieves the attributes of a given template. - # @param template_id [String] + # Retrieve Cubes Templates + # Retrieve the properties of the specified Cubes Template. This operation is only supported for the Cubes. + # @param template_id [String] The unique Template ID. # @param [Hash] opts the optional parameters # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth&#x3D;0: Only direct properties are included; children (servers and other elements) 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) # @return [Template] def templates_find_by_id(template_id, opts = {}) data, _status_code, _headers = templates_find_by_id_with_http_info(template_id, opts) data end - # Retrieve an available template - # Retrieves the attributes of a given template. - # @param template_id [String] + # Retrieve Cubes Templates + # Retrieve the properties of the specified Cubes Template. This operation is only supported for the Cubes. + # @param template_id [String] The unique Template ID. # @param [Hash] opts the optional parameters # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth&#x3D;0: Only direct properties are included; children (servers and other elements) 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 # @return [Array<(Template, Integer, Hash)>] Template data, response status code and response headers def templates_find_by_id_with_http_info(template_id, opts = {}) if @api_client.config.debugging @@ -91,21 +91,21 @@ @api_client.config.logger.debug "API called: TemplatesApi#templates_find_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end - # List Templates - # Retrieve a list of available templates. Templates can be used on specific server types only (CUBE at the moment) + # List Cubes Templates + # List all of the available Cubes Templates. This operation is only supported for the Cubes. # @param [Hash] opts the optional parameters # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth&#x3D;0: Only direct properties are included; children (servers and other elements) 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) # @return [Templates] def templates_get(opts = {}) data, _status_code, _headers = templates_get_with_http_info(opts) data end - # List Templates - # Retrieve a list of available templates. Templates can be used on specific server types only (CUBE at the moment) + # List Cubes Templates + # List all of the available Cubes Templates. This operation is only supported for the Cubes. # @param [Hash] opts the optional parameters # @option opts [Integer] :depth Controls the detail depth of the response objects. GET /datacenters/[ID] - depth&#x3D;0: Only direct properties are included; children (servers and other elements) 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 # @return [Array<(Templates, Integer, Hash)>] Templates data, response status code and response headers def templates_get_with_http_info(opts = {}) if @api_client.config.debugging