class TopologicalInventoryApiClient::DefaultApi
Attributes
Public Class Methods
# File lib/topological_inventory-api-client/api/default_api.rb, line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end
Public Instance Methods
Invokes computing of ServiceInventories for given ServiceOffering
Returns a Task
id @param id [String] ID of the resource @param applied_inventories_parameters_service_plan [AppliedInventoriesParametersServicePlan] Parameters defining input data for computing inventories @param [Hash] opts the optional parameters @return [InlineResponse200]
# File lib/topological_inventory-api-client/api/default_api.rb, line 28 def applied_inventories_for_service_offering(id, applied_inventories_parameters_service_plan, opts = {}) data, _status_code, _headers = applied_inventories_for_service_offering_with_http_info(id, applied_inventories_parameters_service_plan, opts) data end
Invokes computing of ServiceInventories for given ServiceOffering
Returns a Task
id @param id [String] ID of the resource @param applied_inventories_parameters_service_plan [AppliedInventoriesParametersServicePlan] Parameters defining input data for computing inventories @param [Hash] opts the optional parameters @return [Array<(InlineResponse200
, Integer, Hash)>] InlineResponse200
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 39 def applied_inventories_for_service_offering_with_http_info(id, applied_inventories_parameters_service_plan, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.applied_inventories_for_service_offering ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.applied_inventories_for_service_offering" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.applied_inventories_for_service_offering, must conform to the pattern #{pattern}." end # verify the required parameter 'applied_inventories_parameters_service_plan' is set if @api_client.config.client_side_validation && applied_inventories_parameters_service_plan.nil? fail ArgumentError, "Missing the required parameter 'applied_inventories_parameters_service_plan' when calling DefaultApi.applied_inventories_for_service_offering" end # resource path local_var_path = '/service_offerings/{id}/applied_inventories'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(applied_inventories_parameters_service_plan) # return_type return_type = opts[:return_type] || 'InlineResponse200' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#applied_inventories_for_service_offering\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Return this API document in JSON format @param [Hash] opts the optional parameters @return [Object]
# File lib/topological_inventory-api-client/api/default_api.rb, line 100 def get_documentation(opts = {}) data, _status_code, _headers = get_documentation_with_http_info(opts) data end
Return this API document in JSON format @param [Hash] opts the optional parameters @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 108 def get_documentation_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_documentation ...' end # resource path local_var_path = '/openapi.json' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'Object' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#get_documentation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Hosts for Cluster
Returns an array of Host
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [HostsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 160 def list_cluster_hosts(id, opts = {}) data, _status_code, _headers = list_cluster_hosts_with_http_info(id, opts) data end
List Hosts for Cluster
Returns an array of Host
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(HostsCollection
, Integer, Hash)>] HostsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 174 def list_cluster_hosts_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_cluster_hosts ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_cluster_hosts" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_cluster_hosts, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_cluster_hosts, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_cluster_hosts, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_cluster_hosts, must be greater than or equal to 0.' end # resource path local_var_path = '/clusters/{id}/hosts'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'HostsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_cluster_hosts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Clusters Returns an array of Cluster
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ClustersCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 250 def list_clusters(opts = {}) data, _status_code, _headers = list_clusters_with_http_info(opts) data end
List Clusters Returns an array of Cluster
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ClustersCollection
, Integer, Hash)>] ClustersCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 263 def list_clusters_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_clusters ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_clusters, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_clusters, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_clusters, must be greater than or equal to 0.' end # resource path local_var_path = '/clusters' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ClustersCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_clusters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Containers for ContainerGroup
Returns an array of Container
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ContainersCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 331 def list_container_group_containers(id, opts = {}) data, _status_code, _headers = list_container_group_containers_with_http_info(id, opts) data end
List Containers for ContainerGroup
Returns an array of Container
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ContainersCollection
, Integer, Hash)>] ContainersCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 345 def list_container_group_containers_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_container_group_containers ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_container_group_containers" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_container_group_containers, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_container_group_containers, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_container_group_containers, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_container_group_containers, must be greater than or equal to 0.' end # resource path local_var_path = '/container_groups/{id}/containers'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainersCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_container_group_containers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ContainerGroups Returns an array of ContainerGroup
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ContainerGroupsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 512 def list_container_groups(opts = {}) data, _status_code, _headers = list_container_groups_with_http_info(opts) data end
List ContainerGroups Returns an array of ContainerGroup
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ContainerGroupsCollection
, Integer, Hash)>] ContainerGroupsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 525 def list_container_groups_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_container_groups ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_container_groups, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_container_groups, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_container_groups, must be greater than or equal to 0.' end # resource path local_var_path = '/container_groups' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerGroupsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_container_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ContainerImages Returns an array of ContainerImage
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ContainerImagesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 683 def list_container_images(opts = {}) data, _status_code, _headers = list_container_images_with_http_info(opts) data end
List ContainerImages Returns an array of ContainerImage
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ContainerImagesCollection
, Integer, Hash)>] ContainerImagesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 696 def list_container_images_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_container_images ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_container_images, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_container_images, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_container_images, must be greater than or equal to 0.' end # resource path local_var_path = '/container_images' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerImagesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_container_images\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ContainerGroups for ContainerNode
Returns an array of ContainerGroup
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ContainerGroupsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 764 def list_container_node_container_groups(id, opts = {}) data, _status_code, _headers = list_container_node_container_groups_with_http_info(id, opts) data end
List ContainerGroups for ContainerNode
Returns an array of ContainerGroup
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ContainerGroupsCollection
, Integer, Hash)>] ContainerGroupsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 778 def list_container_node_container_groups_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_container_node_container_groups ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_container_node_container_groups" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_container_node_container_groups, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_container_node_container_groups, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_container_node_container_groups, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_container_node_container_groups, must be greater than or equal to 0.' end # resource path local_var_path = '/container_nodes/{id}/container_groups'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerGroupsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_container_node_container_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ContainerNodes Returns an array of ContainerNode
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ContainerNodesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 945 def list_container_nodes(opts = {}) data, _status_code, _headers = list_container_nodes_with_http_info(opts) data end
List ContainerNodes Returns an array of ContainerNode
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ContainerNodesCollection
, Integer, Hash)>] ContainerNodesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 958 def list_container_nodes_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_container_nodes ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_container_nodes, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_container_nodes, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_container_nodes, must be greater than or equal to 0.' end # resource path local_var_path = '/container_nodes' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerNodesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_container_nodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ContainerGroups for ContainerProject
Returns an array of ContainerGroup
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ContainerGroupsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 1026 def list_container_project_container_groups(id, opts = {}) data, _status_code, _headers = list_container_project_container_groups_with_http_info(id, opts) data end
List ContainerGroups for ContainerProject
Returns an array of ContainerGroup
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ContainerGroupsCollection
, Integer, Hash)>] ContainerGroupsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 1040 def list_container_project_container_groups_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_container_project_container_groups ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_container_project_container_groups" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_container_project_container_groups, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_container_project_container_groups, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_container_project_container_groups, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_container_project_container_groups, must be greater than or equal to 0.' end # resource path local_var_path = '/container_projects/{id}/container_groups'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerGroupsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_container_project_container_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ContainerResourceQuota
for ContainerProject
Returns an array of ContainerResourceQuota
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ContainerResourceQuotaCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 1117 def list_container_project_container_resource_quota(id, opts = {}) data, _status_code, _headers = list_container_project_container_resource_quota_with_http_info(id, opts) data end
List ContainerResourceQuota
for ContainerProject
Returns an array of ContainerResourceQuota
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ContainerResourceQuotaCollection
, Integer, Hash)>] ContainerResourceQuotaCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 1131 def list_container_project_container_resource_quota_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_container_project_container_resource_quota ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_container_project_container_resource_quota" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_container_project_container_resource_quota, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_container_project_container_resource_quota, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_container_project_container_resource_quota, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_container_project_container_resource_quota, must be greater than or equal to 0.' end # resource path local_var_path = '/container_projects/{id}/container_resource_quotas'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerResourceQuotaCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_container_project_container_resource_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ContainerTemplates for ContainerProject
Returns an array of ContainerTemplate
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ContainerTemplatesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 1208 def list_container_project_container_templates(id, opts = {}) data, _status_code, _headers = list_container_project_container_templates_with_http_info(id, opts) data end
List ContainerTemplates for ContainerProject
Returns an array of ContainerTemplate
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ContainerTemplatesCollection
, Integer, Hash)>] ContainerTemplatesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 1222 def list_container_project_container_templates_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_container_project_container_templates ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_container_project_container_templates" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_container_project_container_templates, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_container_project_container_templates, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_container_project_container_templates, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_container_project_container_templates, must be greater than or equal to 0.' end # resource path local_var_path = '/container_projects/{id}/container_templates'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerTemplatesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_container_project_container_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ContainerProjects Returns an array of ContainerProject
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ContainerProjectsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 1389 def list_container_projects(opts = {}) data, _status_code, _headers = list_container_projects_with_http_info(opts) data end
List ContainerProjects Returns an array of ContainerProject
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ContainerProjectsCollection
, Integer, Hash)>] ContainerProjectsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 1402 def list_container_projects_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_container_projects ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_container_projects, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_container_projects, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_container_projects, must be greater than or equal to 0.' end # resource path local_var_path = '/container_projects' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerProjectsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_container_projects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ContainerResourceQuota
Returns an array of ContainerResourceQuota
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ContainerResourceQuotaCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 1469 def list_container_resource_quota(opts = {}) data, _status_code, _headers = list_container_resource_quota_with_http_info(opts) data end
List ContainerResourceQuota
Returns an array of ContainerResourceQuota
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ContainerResourceQuotaCollection
, Integer, Hash)>] ContainerResourceQuotaCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 1482 def list_container_resource_quota_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_container_resource_quota ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_container_resource_quota, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_container_resource_quota, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_container_resource_quota, must be greater than or equal to 0.' end # resource path local_var_path = '/container_resource_quotas' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerResourceQuotaCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_container_resource_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ContainerTemplates Returns an array of ContainerTemplate
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ContainerTemplatesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 1640 def list_container_templates(opts = {}) data, _status_code, _headers = list_container_templates_with_http_info(opts) data end
List ContainerTemplates Returns an array of ContainerTemplate
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ContainerTemplatesCollection
, Integer, Hash)>] ContainerTemplatesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 1653 def list_container_templates_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_container_templates ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_container_templates, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_container_templates, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_container_templates, must be greater than or equal to 0.' end # resource path local_var_path = '/container_templates' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerTemplatesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_container_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Containers Returns an array of Container
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ContainersCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 1720 def list_containers(opts = {}) data, _status_code, _headers = list_containers_with_http_info(opts) data end
List Containers Returns an array of Container
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ContainersCollection
, Integer, Hash)>] ContainersCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 1733 def list_containers_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_containers ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_containers, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_containers, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_containers, must be greater than or equal to 0.' end # resource path local_var_path = '/containers' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainersCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_containers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Datastores Returns an array of Datastore
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [DatastoresCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 1800 def list_datastores(opts = {}) data, _status_code, _headers = list_datastores_with_http_info(opts) data end
List Datastores Returns an array of Datastore
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(DatastoresCollection
, Integer, Hash)>] DatastoresCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 1813 def list_datastores_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_datastores ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_datastores, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_datastores, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_datastores, must be greater than or equal to 0.' end # resource path local_var_path = '/datastores' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'DatastoresCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_datastores\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Flavors Returns an array of Flavor
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [FlavorsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 1880 def list_flavors(opts = {}) data, _status_code, _headers = list_flavors_with_http_info(opts) data end
List Flavors Returns an array of Flavor
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(FlavorsCollection
, Integer, Hash)>] FlavorsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 1893 def list_flavors_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_flavors ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_flavors, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_flavors, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_flavors, must be greater than or equal to 0.' end # resource path local_var_path = '/flavors' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'FlavorsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_flavors\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Hosts Returns an array of Host
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [HostsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 1960 def list_hosts(opts = {}) data, _status_code, _headers = list_hosts_with_http_info(opts) data end
List Hosts Returns an array of Host
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(HostsCollection
, Integer, Hash)>] HostsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 1973 def list_hosts_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_hosts ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_hosts, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_hosts, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_hosts, must be greater than or equal to 0.' end # resource path local_var_path = '/hosts' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'HostsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_hosts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Ipaddresses Returns an array of Ipaddress
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [IpaddressesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 2131 def list_ipaddresses(opts = {}) data, _status_code, _headers = list_ipaddresses_with_http_info(opts) data end
List Ipaddresses Returns an array of Ipaddress
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(IpaddressesCollection
, Integer, Hash)>] IpaddressesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 2144 def list_ipaddresses_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_ipaddresses ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_ipaddresses, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_ipaddresses, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_ipaddresses, must be greater than or equal to 0.' end # resource path local_var_path = '/ipaddresses' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'IpaddressesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_ipaddresses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Ipaddresses for NetworkAdapter
Returns an array of Ipaddress
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [IpaddressesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 2212 def list_network_adapter_ipaddresses(id, opts = {}) data, _status_code, _headers = list_network_adapter_ipaddresses_with_http_info(id, opts) data end
List Ipaddresses for NetworkAdapter
Returns an array of Ipaddress
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(IpaddressesCollection
, Integer, Hash)>] IpaddressesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 2226 def list_network_adapter_ipaddresses_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_network_adapter_ipaddresses ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_network_adapter_ipaddresses" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_network_adapter_ipaddresses, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_network_adapter_ipaddresses, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_network_adapter_ipaddresses, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_network_adapter_ipaddresses, must be greater than or equal to 0.' end # resource path local_var_path = '/network_adapters/{id}/ipaddresses'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'IpaddressesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_network_adapter_ipaddresses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List NetworkAdapters Returns an array of NetworkAdapter
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [NetworkAdaptersCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 2393 def list_network_adapters(opts = {}) data, _status_code, _headers = list_network_adapters_with_http_info(opts) data end
List NetworkAdapters Returns an array of NetworkAdapter
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(NetworkAdaptersCollection
, Integer, Hash)>] NetworkAdaptersCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 2406 def list_network_adapters_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_network_adapters ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_network_adapters, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_network_adapters, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_network_adapters, must be greater than or equal to 0.' end # resource path local_var_path = '/network_adapters' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'NetworkAdaptersCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_network_adapters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Subnets for Network
Returns an array of Subnet
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [SubnetsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 2474 def list_network_subnets(id, opts = {}) data, _status_code, _headers = list_network_subnets_with_http_info(id, opts) data end
List Subnets for Network
Returns an array of Subnet
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(SubnetsCollection
, Integer, Hash)>] SubnetsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 2488 def list_network_subnets_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_network_subnets ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_network_subnets" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_network_subnets, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_network_subnets, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_network_subnets, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_network_subnets, must be greater than or equal to 0.' end # resource path local_var_path = '/networks/{id}/subnets'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SubnetsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_network_subnets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Networks Returns an array of Network
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [NetworksCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 2655 def list_networks(opts = {}) data, _status_code, _headers = list_networks_with_http_info(opts) data end
List Networks Returns an array of Network
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(NetworksCollection
, Integer, Hash)>] NetworksCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 2668 def list_networks_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_networks ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_networks, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_networks, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_networks, must be greater than or equal to 0.' end # resource path local_var_path = '/networks' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'NetworksCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_networks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Ipaddresses for OrchestrationStack
Returns an array of Ipaddress
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [IpaddressesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 2736 def list_orchestration_stack_ipaddresses(id, opts = {}) data, _status_code, _headers = list_orchestration_stack_ipaddresses_with_http_info(id, opts) data end
List Ipaddresses for OrchestrationStack
Returns an array of Ipaddress
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(IpaddressesCollection
, Integer, Hash)>] IpaddressesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 2750 def list_orchestration_stack_ipaddresses_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_orchestration_stack_ipaddresses ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_orchestration_stack_ipaddresses" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_orchestration_stack_ipaddresses, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_orchestration_stack_ipaddresses, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_orchestration_stack_ipaddresses, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_orchestration_stack_ipaddresses, must be greater than or equal to 0.' end # resource path local_var_path = '/orchestration_stacks/{id}/ipaddresses'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'IpaddressesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_orchestration_stack_ipaddresses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List NetworkAdapters for OrchestrationStack
Returns an array of NetworkAdapter
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [NetworkAdaptersCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 2827 def list_orchestration_stack_network_adapters(id, opts = {}) data, _status_code, _headers = list_orchestration_stack_network_adapters_with_http_info(id, opts) data end
List NetworkAdapters for OrchestrationStack
Returns an array of NetworkAdapter
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(NetworkAdaptersCollection
, Integer, Hash)>] NetworkAdaptersCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 2841 def list_orchestration_stack_network_adapters_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_orchestration_stack_network_adapters ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_orchestration_stack_network_adapters" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_orchestration_stack_network_adapters, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_orchestration_stack_network_adapters, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_orchestration_stack_network_adapters, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_orchestration_stack_network_adapters, must be greater than or equal to 0.' end # resource path local_var_path = '/orchestration_stacks/{id}/network_adapters'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'NetworkAdaptersCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_orchestration_stack_network_adapters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Networks for OrchestrationStack
Returns an array of Network
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [NetworksCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 2918 def list_orchestration_stack_networks(id, opts = {}) data, _status_code, _headers = list_orchestration_stack_networks_with_http_info(id, opts) data end
List Networks for OrchestrationStack
Returns an array of Network
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(NetworksCollection
, Integer, Hash)>] NetworksCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 2932 def list_orchestration_stack_networks_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_orchestration_stack_networks ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_orchestration_stack_networks" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_orchestration_stack_networks, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_orchestration_stack_networks, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_orchestration_stack_networks, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_orchestration_stack_networks, must be greater than or equal to 0.' end # resource path local_var_path = '/orchestration_stacks/{id}/networks'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'NetworksCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_orchestration_stack_networks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List SecurityGroups for OrchestrationStack
Returns an array of SecurityGroup
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [SecurityGroupsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 3009 def list_orchestration_stack_security_groups(id, opts = {}) data, _status_code, _headers = list_orchestration_stack_security_groups_with_http_info(id, opts) data end
List SecurityGroups for OrchestrationStack
Returns an array of SecurityGroup
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(SecurityGroupsCollection
, Integer, Hash)>] SecurityGroupsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 3023 def list_orchestration_stack_security_groups_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_orchestration_stack_security_groups ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_orchestration_stack_security_groups" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_orchestration_stack_security_groups, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_orchestration_stack_security_groups, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_orchestration_stack_security_groups, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_orchestration_stack_security_groups, must be greater than or equal to 0.' end # resource path local_var_path = '/orchestration_stacks/{id}/security_groups'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SecurityGroupsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_orchestration_stack_security_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Subnets for OrchestrationStack
Returns an array of Subnet
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [SubnetsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 3100 def list_orchestration_stack_subnets(id, opts = {}) data, _status_code, _headers = list_orchestration_stack_subnets_with_http_info(id, opts) data end
List Subnets for OrchestrationStack
Returns an array of Subnet
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(SubnetsCollection
, Integer, Hash)>] SubnetsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 3114 def list_orchestration_stack_subnets_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_orchestration_stack_subnets ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_orchestration_stack_subnets" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_orchestration_stack_subnets, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_orchestration_stack_subnets, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_orchestration_stack_subnets, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_orchestration_stack_subnets, must be greater than or equal to 0.' end # resource path local_var_path = '/orchestration_stacks/{id}/subnets'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SubnetsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_orchestration_stack_subnets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Vms for OrchestrationStack
Returns an array of Vm
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [VmsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 3191 def list_orchestration_stack_vms(id, opts = {}) data, _status_code, _headers = list_orchestration_stack_vms_with_http_info(id, opts) data end
List Vms for OrchestrationStack
Returns an array of Vm
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(VmsCollection
, Integer, Hash)>] VmsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 3205 def list_orchestration_stack_vms_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_orchestration_stack_vms ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_orchestration_stack_vms" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_orchestration_stack_vms, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_orchestration_stack_vms, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_orchestration_stack_vms, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_orchestration_stack_vms, must be greater than or equal to 0.' end # resource path local_var_path = '/orchestration_stacks/{id}/vms'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'VmsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_orchestration_stack_vms\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Volumes for OrchestrationStack
Returns an array of Volume
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [VolumesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 3282 def list_orchestration_stack_volumes(id, opts = {}) data, _status_code, _headers = list_orchestration_stack_volumes_with_http_info(id, opts) data end
List Volumes for OrchestrationStack
Returns an array of Volume
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(VolumesCollection
, Integer, Hash)>] VolumesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 3296 def list_orchestration_stack_volumes_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_orchestration_stack_volumes ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_orchestration_stack_volumes" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_orchestration_stack_volumes, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_orchestration_stack_volumes, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_orchestration_stack_volumes, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_orchestration_stack_volumes, must be greater than or equal to 0.' end # resource path local_var_path = '/orchestration_stacks/{id}/volumes'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'VolumesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_orchestration_stack_volumes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List OrchestrationStacks Returns an array of OrchestrationStack
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [OrchestrationStacksCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 3372 def list_orchestration_stacks(opts = {}) data, _status_code, _headers = list_orchestration_stacks_with_http_info(opts) data end
List OrchestrationStacks Returns an array of OrchestrationStack
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(OrchestrationStacksCollection
, Integer, Hash)>] OrchestrationStacksCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 3385 def list_orchestration_stacks_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_orchestration_stacks ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_orchestration_stacks, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_orchestration_stacks, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_orchestration_stacks, must be greater than or equal to 0.' end # resource path local_var_path = '/orchestration_stacks' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'OrchestrationStacksCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_orchestration_stacks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Vms for SecurityGroup
Returns an array of Vm
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [VmsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 3544 def list_security_group_vms(id, opts = {}) data, _status_code, _headers = list_security_group_vms_with_http_info(id, opts) data end
List Vms for SecurityGroup
Returns an array of Vm
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(VmsCollection
, Integer, Hash)>] VmsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 3558 def list_security_group_vms_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_security_group_vms ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_security_group_vms" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_security_group_vms, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_security_group_vms, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_security_group_vms, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_security_group_vms, must be greater than or equal to 0.' end # resource path local_var_path = '/security_groups/{id}/vms'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'VmsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_security_group_vms\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List SecurityGroups Returns an array of SecurityGroup
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [SecurityGroupsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 3634 def list_security_groups(opts = {}) data, _status_code, _headers = list_security_groups_with_http_info(opts) data end
List SecurityGroups Returns an array of SecurityGroup
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(SecurityGroupsCollection
, Integer, Hash)>] SecurityGroupsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 3647 def list_security_groups_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_security_groups ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_security_groups, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_security_groups, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_security_groups, must be greater than or equal to 0.' end # resource path local_var_path = '/security_groups' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SecurityGroupsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_security_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceCredentialTypes Returns an array of ServiceCredentialType
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceCredentialTypesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 3714 def list_service_credential_types(opts = {}) data, _status_code, _headers = list_service_credential_types_with_http_info(opts) data end
List ServiceCredentialTypes Returns an array of ServiceCredentialType
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceCredentialTypesCollection
, Integer, Hash)>] ServiceCredentialTypesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 3727 def list_service_credential_types_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_service_credential_types ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_credential_types, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_credential_types, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_service_credential_types, must be greater than or equal to 0.' end # resource path local_var_path = '/service_credential_types' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceCredentialTypesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_service_credential_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceCredentials Returns an array of ServiceCredential
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceCredentialsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 3794 def list_service_credentials(opts = {}) data, _status_code, _headers = list_service_credentials_with_http_info(opts) data end
List ServiceCredentials Returns an array of ServiceCredential
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceCredentialsCollection
, Integer, Hash)>] ServiceCredentialsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 3807 def list_service_credentials_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_service_credentials ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_credentials, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_credentials, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_service_credentials, must be greater than or equal to 0.' end # resource path local_var_path = '/service_credentials' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceCredentialsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_service_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceCredentials for ServiceInstanceNode
Returns an array of ServiceCredential
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceCredentialsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 3875 def list_service_instance_node_service_credentials(id, opts = {}) data, _status_code, _headers = list_service_instance_node_service_credentials_with_http_info(id, opts) data end
List ServiceCredentials for ServiceInstanceNode
Returns an array of ServiceCredential
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceCredentialsCollection
, Integer, Hash)>] ServiceCredentialsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 3889 def list_service_instance_node_service_credentials_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_service_instance_node_service_credentials ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_service_instance_node_service_credentials" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_service_instance_node_service_credentials, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_instance_node_service_credentials, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_instance_node_service_credentials, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_service_instance_node_service_credentials, must be greater than or equal to 0.' end # resource path local_var_path = '/service_instance_nodes/{id}/service_credentials'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceCredentialsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_service_instance_node_service_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceInstanceNodes Returns an array of ServiceInstanceNode
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceInstanceNodesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 3965 def list_service_instance_nodes(opts = {}) data, _status_code, _headers = list_service_instance_nodes_with_http_info(opts) data end
List ServiceInstanceNodes Returns an array of ServiceInstanceNode
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceInstanceNodesCollection
, Integer, Hash)>] ServiceInstanceNodesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 3978 def list_service_instance_nodes_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_service_instance_nodes ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_instance_nodes, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_instance_nodes, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_service_instance_nodes, must be greater than or equal to 0.' end # resource path local_var_path = '/service_instance_nodes' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceInstanceNodesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_service_instance_nodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceCredentials for ServiceInstance
Returns an array of ServiceCredential
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceCredentialsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 4046 def list_service_instance_service_credentials(id, opts = {}) data, _status_code, _headers = list_service_instance_service_credentials_with_http_info(id, opts) data end
List ServiceCredentials for ServiceInstance
Returns an array of ServiceCredential
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceCredentialsCollection
, Integer, Hash)>] ServiceCredentialsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 4060 def list_service_instance_service_credentials_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_service_instance_service_credentials ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_service_instance_service_credentials" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_service_instance_service_credentials, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_instance_service_credentials, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_instance_service_credentials, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_service_instance_service_credentials, must be greater than or equal to 0.' end # resource path local_var_path = '/service_instances/{id}/service_credentials'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceCredentialsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_service_instance_service_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceInstanceNodes for ServiceInstance
Returns an array of ServiceInstanceNode
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceInstanceNodesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 4137 def list_service_instance_service_instance_nodes(id, opts = {}) data, _status_code, _headers = list_service_instance_service_instance_nodes_with_http_info(id, opts) data end
List ServiceInstanceNodes for ServiceInstance
Returns an array of ServiceInstanceNode
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceInstanceNodesCollection
, Integer, Hash)>] ServiceInstanceNodesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 4151 def list_service_instance_service_instance_nodes_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_service_instance_service_instance_nodes ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_service_instance_service_instance_nodes" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_service_instance_service_instance_nodes, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_instance_service_instance_nodes, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_instance_service_instance_nodes, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_service_instance_service_instance_nodes, must be greater than or equal to 0.' end # resource path local_var_path = '/service_instances/{id}/service_instance_nodes'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceInstanceNodesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_service_instance_service_instance_nodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceInstances Returns an array of ServiceInstance
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceInstancesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 4227 def list_service_instances(opts = {}) data, _status_code, _headers = list_service_instances_with_http_info(opts) data end
List ServiceInstances Returns an array of ServiceInstance
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceInstancesCollection
, Integer, Hash)>] ServiceInstancesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 4240 def list_service_instances_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_service_instances ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_instances, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_instances, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_service_instances, must be greater than or equal to 0.' end # resource path local_var_path = '/service_instances' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceInstancesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_service_instances\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceInventories Returns an array of ServiceInventory
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceInventoriesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 4307 def list_service_inventories(opts = {}) data, _status_code, _headers = list_service_inventories_with_http_info(opts) data end
List ServiceInventories Returns an array of ServiceInventory
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceInventoriesCollection
, Integer, Hash)>] ServiceInventoriesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 4320 def list_service_inventories_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_service_inventories ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_inventories, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_inventories, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_service_inventories, must be greater than or equal to 0.' end # resource path local_var_path = '/service_inventories' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceInventoriesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_service_inventories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceOfferingIcons Returns an array of ServiceOfferingIcon
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceOfferingIconsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 4478 def list_service_offering_icons(opts = {}) data, _status_code, _headers = list_service_offering_icons_with_http_info(opts) data end
List ServiceOfferingIcons Returns an array of ServiceOfferingIcon
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceOfferingIconsCollection
, Integer, Hash)>] ServiceOfferingIconsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 4491 def list_service_offering_icons_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_service_offering_icons ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_offering_icons, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_offering_icons, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_service_offering_icons, must be greater than or equal to 0.' end # resource path local_var_path = '/service_offering_icons' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceOfferingIconsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_service_offering_icons\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceCredentials for ServiceOfferingNode
Returns an array of ServiceCredential
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceCredentialsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 4559 def list_service_offering_node_service_credentials(id, opts = {}) data, _status_code, _headers = list_service_offering_node_service_credentials_with_http_info(id, opts) data end
List ServiceCredentials for ServiceOfferingNode
Returns an array of ServiceCredential
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceCredentialsCollection
, Integer, Hash)>] ServiceCredentialsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 4573 def list_service_offering_node_service_credentials_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_service_offering_node_service_credentials ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_service_offering_node_service_credentials" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_service_offering_node_service_credentials, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_offering_node_service_credentials, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_offering_node_service_credentials, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_service_offering_node_service_credentials, must be greater than or equal to 0.' end # resource path local_var_path = '/service_offering_nodes/{id}/service_credentials'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceCredentialsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_service_offering_node_service_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceOfferingNodes Returns an array of ServiceOfferingNode
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceOfferingNodesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 4649 def list_service_offering_nodes(opts = {}) data, _status_code, _headers = list_service_offering_nodes_with_http_info(opts) data end
List ServiceOfferingNodes Returns an array of ServiceOfferingNode
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceOfferingNodesCollection
, Integer, Hash)>] ServiceOfferingNodesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 4662 def list_service_offering_nodes_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_service_offering_nodes ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_offering_nodes, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_offering_nodes, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_service_offering_nodes, must be greater than or equal to 0.' end # resource path local_var_path = '/service_offering_nodes' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceOfferingNodesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_service_offering_nodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceCredentials for ServiceOffering
Returns an array of ServiceCredential
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceCredentialsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 4730 def list_service_offering_service_credentials(id, opts = {}) data, _status_code, _headers = list_service_offering_service_credentials_with_http_info(id, opts) data end
List ServiceCredentials for ServiceOffering
Returns an array of ServiceCredential
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceCredentialsCollection
, Integer, Hash)>] ServiceCredentialsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 4744 def list_service_offering_service_credentials_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_service_offering_service_credentials ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_service_offering_service_credentials" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_service_offering_service_credentials, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_offering_service_credentials, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_offering_service_credentials, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_service_offering_service_credentials, must be greater than or equal to 0.' end # resource path local_var_path = '/service_offerings/{id}/service_credentials'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceCredentialsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_service_offering_service_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceInstances for ServiceOffering
Returns an array of ServiceInstance
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceInstancesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 4821 def list_service_offering_service_instances(id, opts = {}) data, _status_code, _headers = list_service_offering_service_instances_with_http_info(id, opts) data end
List ServiceInstances for ServiceOffering
Returns an array of ServiceInstance
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceInstancesCollection
, Integer, Hash)>] ServiceInstancesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 4835 def list_service_offering_service_instances_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_service_offering_service_instances ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_service_offering_service_instances" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_service_offering_service_instances, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_offering_service_instances, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_offering_service_instances, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_service_offering_service_instances, must be greater than or equal to 0.' end # resource path local_var_path = '/service_offerings/{id}/service_instances'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceInstancesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_service_offering_service_instances\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceOfferingNodes for ServiceOffering
Returns an array of ServiceOfferingNode
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceOfferingNodesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 4912 def list_service_offering_service_offering_nodes(id, opts = {}) data, _status_code, _headers = list_service_offering_service_offering_nodes_with_http_info(id, opts) data end
List ServiceOfferingNodes for ServiceOffering
Returns an array of ServiceOfferingNode
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceOfferingNodesCollection
, Integer, Hash)>] ServiceOfferingNodesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 4926 def list_service_offering_service_offering_nodes_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_service_offering_service_offering_nodes ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_service_offering_service_offering_nodes" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_service_offering_service_offering_nodes, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_offering_service_offering_nodes, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_offering_service_offering_nodes, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_service_offering_service_offering_nodes, must be greater than or equal to 0.' end # resource path local_var_path = '/service_offerings/{id}/service_offering_nodes'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceOfferingNodesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_service_offering_service_offering_nodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServicePlans for ServiceOffering
Returns an array of ServicePlan
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServicePlansCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 5003 def list_service_offering_service_plans(id, opts = {}) data, _status_code, _headers = list_service_offering_service_plans_with_http_info(id, opts) data end
List ServicePlans for ServiceOffering
Returns an array of ServicePlan
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServicePlansCollection
, Integer, Hash)>] ServicePlansCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 5017 def list_service_offering_service_plans_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_service_offering_service_plans ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_service_offering_service_plans" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_service_offering_service_plans, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_offering_service_plans, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_offering_service_plans, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_service_offering_service_plans, must be greater than or equal to 0.' end # resource path local_var_path = '/service_offerings/{id}/service_plans'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServicePlansCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_service_offering_service_plans\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceOfferings Returns an array of ServiceOffering
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceOfferingsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 5184 def list_service_offerings(opts = {}) data, _status_code, _headers = list_service_offerings_with_http_info(opts) data end
List ServiceOfferings Returns an array of ServiceOffering
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceOfferingsCollection
, Integer, Hash)>] ServiceOfferingsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 5197 def list_service_offerings_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_service_offerings ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_offerings, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_offerings, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_service_offerings, must be greater than or equal to 0.' end # resource path local_var_path = '/service_offerings' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceOfferingsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_service_offerings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceInstances for ServicePlan
Returns an array of ServiceInstance
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceInstancesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 5265 def list_service_plan_service_instances(id, opts = {}) data, _status_code, _headers = list_service_plan_service_instances_with_http_info(id, opts) data end
List ServiceInstances for ServicePlan
Returns an array of ServiceInstance
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceInstancesCollection
, Integer, Hash)>] ServiceInstancesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 5279 def list_service_plan_service_instances_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_service_plan_service_instances ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_service_plan_service_instances" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_service_plan_service_instances, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_plan_service_instances, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_plan_service_instances, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_service_plan_service_instances, must be greater than or equal to 0.' end # resource path local_var_path = '/service_plans/{id}/service_instances'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceInstancesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_service_plan_service_instances\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServicePlans Returns an array of ServicePlan
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServicePlansCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 5355 def list_service_plans(opts = {}) data, _status_code, _headers = list_service_plans_with_http_info(opts) data end
List ServicePlans Returns an array of ServicePlan
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServicePlansCollection
, Integer, Hash)>] ServicePlansCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 5368 def list_service_plans_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_service_plans ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_plans, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_service_plans, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_service_plans, must be greater than or equal to 0.' end # resource path local_var_path = '/service_plans' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServicePlansCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_service_plans\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Availabilities for Source
Returns an array of Availability
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [AvailabilitiesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 5436 def list_source_availabilities(id, opts = {}) data, _status_code, _headers = list_source_availabilities_with_http_info(id, opts) data end
List Availabilities for Source
Returns an array of Availability
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(AvailabilitiesCollection
, Integer, Hash)>] AvailabilitiesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 5450 def list_source_availabilities_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_availabilities ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_availabilities" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_availabilities, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_availabilities, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_availabilities, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_availabilities, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/availabilities'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'AvailabilitiesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_availabilities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Clusters for Source
Returns an array of Cluster
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ClustersCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 5527 def list_source_clusters(id, opts = {}) data, _status_code, _headers = list_source_clusters_with_http_info(id, opts) data end
List Clusters for Source
Returns an array of Cluster
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ClustersCollection
, Integer, Hash)>] ClustersCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 5541 def list_source_clusters_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_clusters ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_clusters" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_clusters, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_clusters, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_clusters, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_clusters, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/clusters'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ClustersCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_clusters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ContainerGroups for Source
Returns an array of ContainerGroup
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ContainerGroupsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 5618 def list_source_container_groups(id, opts = {}) data, _status_code, _headers = list_source_container_groups_with_http_info(id, opts) data end
List ContainerGroups for Source
Returns an array of ContainerGroup
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ContainerGroupsCollection
, Integer, Hash)>] ContainerGroupsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 5632 def list_source_container_groups_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_container_groups ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_container_groups" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_container_groups, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_container_groups, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_container_groups, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_container_groups, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/container_groups'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerGroupsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_container_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ContainerImages for Source
Returns an array of ContainerImage
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ContainerImagesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 5709 def list_source_container_images(id, opts = {}) data, _status_code, _headers = list_source_container_images_with_http_info(id, opts) data end
List ContainerImages for Source
Returns an array of ContainerImage
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ContainerImagesCollection
, Integer, Hash)>] ContainerImagesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 5723 def list_source_container_images_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_container_images ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_container_images" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_container_images, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_container_images, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_container_images, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_container_images, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/container_images'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerImagesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_container_images\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ContainerNodes for Source
Returns an array of ContainerNode
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ContainerNodesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 5800 def list_source_container_nodes(id, opts = {}) data, _status_code, _headers = list_source_container_nodes_with_http_info(id, opts) data end
List ContainerNodes for Source
Returns an array of ContainerNode
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ContainerNodesCollection
, Integer, Hash)>] ContainerNodesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 5814 def list_source_container_nodes_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_container_nodes ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_container_nodes" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_container_nodes, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_container_nodes, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_container_nodes, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_container_nodes, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/container_nodes'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerNodesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_container_nodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ContainerProjects for Source
Returns an array of ContainerProject
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ContainerProjectsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 5891 def list_source_container_projects(id, opts = {}) data, _status_code, _headers = list_source_container_projects_with_http_info(id, opts) data end
List ContainerProjects for Source
Returns an array of ContainerProject
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ContainerProjectsCollection
, Integer, Hash)>] ContainerProjectsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 5905 def list_source_container_projects_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_container_projects ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_container_projects" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_container_projects, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_container_projects, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_container_projects, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_container_projects, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/container_projects'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerProjectsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_container_projects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ContainerTemplates for Source
Returns an array of ContainerTemplate
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ContainerTemplatesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 5982 def list_source_container_templates(id, opts = {}) data, _status_code, _headers = list_source_container_templates_with_http_info(id, opts) data end
List ContainerTemplates for Source
Returns an array of ContainerTemplate
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ContainerTemplatesCollection
, Integer, Hash)>] ContainerTemplatesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 5996 def list_source_container_templates_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_container_templates ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_container_templates" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_container_templates, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_container_templates, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_container_templates, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_container_templates, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/container_templates'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerTemplatesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_container_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Containers for Source
Returns an array of Container
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ContainersCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 6073 def list_source_containers(id, opts = {}) data, _status_code, _headers = list_source_containers_with_http_info(id, opts) data end
List Containers for Source
Returns an array of Container
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ContainersCollection
, Integer, Hash)>] ContainersCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 6087 def list_source_containers_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_containers ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_containers" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_containers, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_containers, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_containers, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_containers, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/containers'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainersCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_containers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Datastores for Source
Returns an array of Datastore
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [DatastoresCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 6164 def list_source_datastores(id, opts = {}) data, _status_code, _headers = list_source_datastores_with_http_info(id, opts) data end
List Datastores for Source
Returns an array of Datastore
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(DatastoresCollection
, Integer, Hash)>] DatastoresCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 6178 def list_source_datastores_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_datastores ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_datastores" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_datastores, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_datastores, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_datastores, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_datastores, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/datastores'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'DatastoresCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_datastores\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Hosts for Source
Returns an array of Host
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [HostsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 6255 def list_source_hosts(id, opts = {}) data, _status_code, _headers = list_source_hosts_with_http_info(id, opts) data end
List Hosts for Source
Returns an array of Host
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(HostsCollection
, Integer, Hash)>] HostsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 6269 def list_source_hosts_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_hosts ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_hosts" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_hosts, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_hosts, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_hosts, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_hosts, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/hosts'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'HostsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_hosts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Ipaddresses for Source
Returns an array of Ipaddress
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [IpaddressesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 6346 def list_source_ipaddresses(id, opts = {}) data, _status_code, _headers = list_source_ipaddresses_with_http_info(id, opts) data end
List Ipaddresses for Source
Returns an array of Ipaddress
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(IpaddressesCollection
, Integer, Hash)>] IpaddressesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 6360 def list_source_ipaddresses_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_ipaddresses ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_ipaddresses" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_ipaddresses, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_ipaddresses, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_ipaddresses, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_ipaddresses, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/ipaddresses'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'IpaddressesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_ipaddresses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List NetworkAdapters for Source
Returns an array of NetworkAdapter
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [NetworkAdaptersCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 6437 def list_source_network_adapters(id, opts = {}) data, _status_code, _headers = list_source_network_adapters_with_http_info(id, opts) data end
List NetworkAdapters for Source
Returns an array of NetworkAdapter
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(NetworkAdaptersCollection
, Integer, Hash)>] NetworkAdaptersCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 6451 def list_source_network_adapters_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_network_adapters ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_network_adapters" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_network_adapters, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_network_adapters, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_network_adapters, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_network_adapters, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/network_adapters'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'NetworkAdaptersCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_network_adapters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Networks for Source
Returns an array of Network
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [NetworksCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 6528 def list_source_networks(id, opts = {}) data, _status_code, _headers = list_source_networks_with_http_info(id, opts) data end
List Networks for Source
Returns an array of Network
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(NetworksCollection
, Integer, Hash)>] NetworksCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 6542 def list_source_networks_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_networks ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_networks" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_networks, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_networks, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_networks, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_networks, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/networks'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'NetworksCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_networks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List OrchestrationStacks for Source
Returns an array of OrchestrationStack
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [OrchestrationStacksCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 6619 def list_source_orchestration_stacks(id, opts = {}) data, _status_code, _headers = list_source_orchestration_stacks_with_http_info(id, opts) data end
List OrchestrationStacks for Source
Returns an array of OrchestrationStack
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(OrchestrationStacksCollection
, Integer, Hash)>] OrchestrationStacksCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 6633 def list_source_orchestration_stacks_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_orchestration_stacks ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_orchestration_stacks" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_orchestration_stacks, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_orchestration_stacks, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_orchestration_stacks, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_orchestration_stacks, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/orchestration_stacks'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'OrchestrationStacksCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_orchestration_stacks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Ipaddresses for SourceRegion
Returns an array of Ipaddress
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [IpaddressesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 6710 def list_source_region_ipaddresses(id, opts = {}) data, _status_code, _headers = list_source_region_ipaddresses_with_http_info(id, opts) data end
List Ipaddresses for SourceRegion
Returns an array of Ipaddress
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(IpaddressesCollection
, Integer, Hash)>] IpaddressesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 6724 def list_source_region_ipaddresses_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_region_ipaddresses ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_region_ipaddresses" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_region_ipaddresses, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_region_ipaddresses, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_region_ipaddresses, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_region_ipaddresses, must be greater than or equal to 0.' end # resource path local_var_path = '/source_regions/{id}/ipaddresses'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'IpaddressesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_region_ipaddresses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List NetworkAdapters for SourceRegion
Returns an array of NetworkAdapter
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [NetworkAdaptersCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 6801 def list_source_region_network_adapters(id, opts = {}) data, _status_code, _headers = list_source_region_network_adapters_with_http_info(id, opts) data end
List NetworkAdapters for SourceRegion
Returns an array of NetworkAdapter
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(NetworkAdaptersCollection
, Integer, Hash)>] NetworkAdaptersCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 6815 def list_source_region_network_adapters_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_region_network_adapters ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_region_network_adapters" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_region_network_adapters, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_region_network_adapters, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_region_network_adapters, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_region_network_adapters, must be greater than or equal to 0.' end # resource path local_var_path = '/source_regions/{id}/network_adapters'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'NetworkAdaptersCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_region_network_adapters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Networks for SourceRegion
Returns an array of Network
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [NetworksCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 6892 def list_source_region_networks(id, opts = {}) data, _status_code, _headers = list_source_region_networks_with_http_info(id, opts) data end
List Networks for SourceRegion
Returns an array of Network
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(NetworksCollection
, Integer, Hash)>] NetworksCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 6906 def list_source_region_networks_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_region_networks ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_region_networks" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_region_networks, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_region_networks, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_region_networks, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_region_networks, must be greater than or equal to 0.' end # resource path local_var_path = '/source_regions/{id}/networks'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'NetworksCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_region_networks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List OrchestrationStacks for SourceRegion
Returns an array of OrchestrationStack
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [OrchestrationStacksCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 6983 def list_source_region_orchestration_stacks(id, opts = {}) data, _status_code, _headers = list_source_region_orchestration_stacks_with_http_info(id, opts) data end
List OrchestrationStacks for SourceRegion
Returns an array of OrchestrationStack
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(OrchestrationStacksCollection
, Integer, Hash)>] OrchestrationStacksCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 6997 def list_source_region_orchestration_stacks_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_region_orchestration_stacks ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_region_orchestration_stacks" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_region_orchestration_stacks, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_region_orchestration_stacks, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_region_orchestration_stacks, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_region_orchestration_stacks, must be greater than or equal to 0.' end # resource path local_var_path = '/source_regions/{id}/orchestration_stacks'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'OrchestrationStacksCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_region_orchestration_stacks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List SecurityGroups for SourceRegion
Returns an array of SecurityGroup
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [SecurityGroupsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 7074 def list_source_region_security_groups(id, opts = {}) data, _status_code, _headers = list_source_region_security_groups_with_http_info(id, opts) data end
List SecurityGroups for SourceRegion
Returns an array of SecurityGroup
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(SecurityGroupsCollection
, Integer, Hash)>] SecurityGroupsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 7088 def list_source_region_security_groups_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_region_security_groups ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_region_security_groups" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_region_security_groups, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_region_security_groups, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_region_security_groups, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_region_security_groups, must be greater than or equal to 0.' end # resource path local_var_path = '/source_regions/{id}/security_groups'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SecurityGroupsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_region_security_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceInstances for SourceRegion
Returns an array of ServiceInstance
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceInstancesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 7165 def list_source_region_service_instances(id, opts = {}) data, _status_code, _headers = list_source_region_service_instances_with_http_info(id, opts) data end
List ServiceInstances for SourceRegion
Returns an array of ServiceInstance
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceInstancesCollection
, Integer, Hash)>] ServiceInstancesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 7179 def list_source_region_service_instances_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_region_service_instances ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_region_service_instances" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_region_service_instances, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_region_service_instances, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_region_service_instances, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_region_service_instances, must be greater than or equal to 0.' end # resource path local_var_path = '/source_regions/{id}/service_instances'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceInstancesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_region_service_instances\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceOfferings for SourceRegion
Returns an array of ServiceOffering
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceOfferingsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 7256 def list_source_region_service_offerings(id, opts = {}) data, _status_code, _headers = list_source_region_service_offerings_with_http_info(id, opts) data end
List ServiceOfferings for SourceRegion
Returns an array of ServiceOffering
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceOfferingsCollection
, Integer, Hash)>] ServiceOfferingsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 7270 def list_source_region_service_offerings_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_region_service_offerings ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_region_service_offerings" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_region_service_offerings, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_region_service_offerings, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_region_service_offerings, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_region_service_offerings, must be greater than or equal to 0.' end # resource path local_var_path = '/source_regions/{id}/service_offerings'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceOfferingsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_region_service_offerings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServicePlans for SourceRegion
Returns an array of ServicePlan
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServicePlansCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 7347 def list_source_region_service_plans(id, opts = {}) data, _status_code, _headers = list_source_region_service_plans_with_http_info(id, opts) data end
List ServicePlans for SourceRegion
Returns an array of ServicePlan
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServicePlansCollection
, Integer, Hash)>] ServicePlansCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 7361 def list_source_region_service_plans_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_region_service_plans ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_region_service_plans" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_region_service_plans, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_region_service_plans, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_region_service_plans, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_region_service_plans, must be greater than or equal to 0.' end # resource path local_var_path = '/source_regions/{id}/service_plans'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServicePlansCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_region_service_plans\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Subnets for SourceRegion
Returns an array of Subnet
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [SubnetsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 7438 def list_source_region_subnets(id, opts = {}) data, _status_code, _headers = list_source_region_subnets_with_http_info(id, opts) data end
List Subnets for SourceRegion
Returns an array of Subnet
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(SubnetsCollection
, Integer, Hash)>] SubnetsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 7452 def list_source_region_subnets_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_region_subnets ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_region_subnets" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_region_subnets, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_region_subnets, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_region_subnets, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_region_subnets, must be greater than or equal to 0.' end # resource path local_var_path = '/source_regions/{id}/subnets'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SubnetsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_region_subnets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Vms for SourceRegion
Returns an array of Vm
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [VmsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 7529 def list_source_region_vms(id, opts = {}) data, _status_code, _headers = list_source_region_vms_with_http_info(id, opts) data end
List Vms for SourceRegion
Returns an array of Vm
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(VmsCollection
, Integer, Hash)>] VmsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 7543 def list_source_region_vms_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_region_vms ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_region_vms" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_region_vms, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_region_vms, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_region_vms, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_region_vms, must be greater than or equal to 0.' end # resource path local_var_path = '/source_regions/{id}/vms'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'VmsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_region_vms\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Volumes for SourceRegion
Returns an array of Volume
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [VolumesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 7620 def list_source_region_volumes(id, opts = {}) data, _status_code, _headers = list_source_region_volumes_with_http_info(id, opts) data end
List Volumes for SourceRegion
Returns an array of Volume
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(VolumesCollection
, Integer, Hash)>] VolumesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 7634 def list_source_region_volumes_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_region_volumes ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_region_volumes" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_region_volumes, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_region_volumes, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_region_volumes, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_region_volumes, must be greater than or equal to 0.' end # resource path local_var_path = '/source_regions/{id}/volumes'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'VolumesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_region_volumes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List SourceRegions Returns an array of SourceRegion
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [SourceRegionsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 7710 def list_source_regions(opts = {}) data, _status_code, _headers = list_source_regions_with_http_info(opts) data end
List SourceRegions Returns an array of SourceRegion
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(SourceRegionsCollection
, Integer, Hash)>] SourceRegionsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 7723 def list_source_regions_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_regions ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_regions, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_regions, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_regions, must be greater than or equal to 0.' end # resource path local_var_path = '/source_regions' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SourceRegionsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_regions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List SecurityGroups for Source
Returns an array of SecurityGroup
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [SecurityGroupsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 7791 def list_source_security_groups(id, opts = {}) data, _status_code, _headers = list_source_security_groups_with_http_info(id, opts) data end
List SecurityGroups for Source
Returns an array of SecurityGroup
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(SecurityGroupsCollection
, Integer, Hash)>] SecurityGroupsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 7805 def list_source_security_groups_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_security_groups ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_security_groups" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_security_groups, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_security_groups, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_security_groups, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_security_groups, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/security_groups'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SecurityGroupsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_security_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceInstanceNodes for Source
Returns an array of ServiceInstanceNode
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceInstanceNodesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 7882 def list_source_service_instance_nodes(id, opts = {}) data, _status_code, _headers = list_source_service_instance_nodes_with_http_info(id, opts) data end
List ServiceInstanceNodes for Source
Returns an array of ServiceInstanceNode
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceInstanceNodesCollection
, Integer, Hash)>] ServiceInstanceNodesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 7896 def list_source_service_instance_nodes_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_service_instance_nodes ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_service_instance_nodes" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_service_instance_nodes, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_service_instance_nodes, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_service_instance_nodes, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_service_instance_nodes, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/service_instance_nodes'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceInstanceNodesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_service_instance_nodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceInstances for Source
Returns an array of ServiceInstance
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceInstancesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 7973 def list_source_service_instances(id, opts = {}) data, _status_code, _headers = list_source_service_instances_with_http_info(id, opts) data end
List ServiceInstances for Source
Returns an array of ServiceInstance
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceInstancesCollection
, Integer, Hash)>] ServiceInstancesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 7987 def list_source_service_instances_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_service_instances ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_service_instances" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_service_instances, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_service_instances, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_service_instances, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_service_instances, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/service_instances'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceInstancesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_service_instances\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceInventories for Source
Returns an array of ServiceInventory
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceInventoriesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 8064 def list_source_service_inventories(id, opts = {}) data, _status_code, _headers = list_source_service_inventories_with_http_info(id, opts) data end
List ServiceInventories for Source
Returns an array of ServiceInventory
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceInventoriesCollection
, Integer, Hash)>] ServiceInventoriesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 8078 def list_source_service_inventories_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_service_inventories ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_service_inventories" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_service_inventories, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_service_inventories, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_service_inventories, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_service_inventories, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/service_inventories'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceInventoriesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_service_inventories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceOfferingNodes for Source
Returns an array of ServiceOfferingNode
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceOfferingNodesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 8155 def list_source_service_offering_nodes(id, opts = {}) data, _status_code, _headers = list_source_service_offering_nodes_with_http_info(id, opts) data end
List ServiceOfferingNodes for Source
Returns an array of ServiceOfferingNode
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceOfferingNodesCollection
, Integer, Hash)>] ServiceOfferingNodesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 8169 def list_source_service_offering_nodes_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_service_offering_nodes ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_service_offering_nodes" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_service_offering_nodes, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_service_offering_nodes, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_service_offering_nodes, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_service_offering_nodes, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/service_offering_nodes'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceOfferingNodesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_service_offering_nodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceOfferings for Source
Returns an array of ServiceOffering
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceOfferingsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 8246 def list_source_service_offerings(id, opts = {}) data, _status_code, _headers = list_source_service_offerings_with_http_info(id, opts) data end
List ServiceOfferings for Source
Returns an array of ServiceOffering
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceOfferingsCollection
, Integer, Hash)>] ServiceOfferingsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 8260 def list_source_service_offerings_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_service_offerings ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_service_offerings" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_service_offerings, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_service_offerings, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_service_offerings, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_service_offerings, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/service_offerings'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceOfferingsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_service_offerings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServicePlans for Source
Returns an array of ServicePlan
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServicePlansCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 8337 def list_source_service_plans(id, opts = {}) data, _status_code, _headers = list_source_service_plans_with_http_info(id, opts) data end
List ServicePlans for Source
Returns an array of ServicePlan
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServicePlansCollection
, Integer, Hash)>] ServicePlansCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 8351 def list_source_service_plans_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_service_plans ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_service_plans" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_service_plans, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_service_plans, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_service_plans, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_service_plans, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/service_plans'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServicePlansCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_service_plans\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List SourceRegions for Source
Returns an array of SourceRegion
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [SourceRegionsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 8428 def list_source_source_regions(id, opts = {}) data, _status_code, _headers = list_source_source_regions_with_http_info(id, opts) data end
List SourceRegions for Source
Returns an array of SourceRegion
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(SourceRegionsCollection
, Integer, Hash)>] SourceRegionsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 8442 def list_source_source_regions_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_source_regions ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_source_regions" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_source_regions, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_source_regions, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_source_regions, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_source_regions, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/source_regions'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SourceRegionsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_source_regions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Subnets for Source
Returns an array of Subnet
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [SubnetsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 8519 def list_source_subnets(id, opts = {}) data, _status_code, _headers = list_source_subnets_with_http_info(id, opts) data end
List Subnets for Source
Returns an array of Subnet
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(SubnetsCollection
, Integer, Hash)>] SubnetsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 8533 def list_source_subnets_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_subnets ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_subnets" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_subnets, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_subnets, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_subnets, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_subnets, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/subnets'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SubnetsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_subnets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Subscriptions for Source
Returns an array of Subscription
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [SubscriptionsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 8610 def list_source_subscriptions(id, opts = {}) data, _status_code, _headers = list_source_subscriptions_with_http_info(id, opts) data end
List Subscriptions for Source
Returns an array of Subscription
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(SubscriptionsCollection
, Integer, Hash)>] SubscriptionsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 8624 def list_source_subscriptions_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_subscriptions ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_subscriptions" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_subscriptions, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_subscriptions, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_subscriptions, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_subscriptions, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/subscriptions'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SubscriptionsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_subscriptions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Vms for Source
Returns an array of Vm
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [VmsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 8701 def list_source_vms(id, opts = {}) data, _status_code, _headers = list_source_vms_with_http_info(id, opts) data end
List Vms for Source
Returns an array of Vm
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(VmsCollection
, Integer, Hash)>] VmsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 8715 def list_source_vms_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_vms ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_vms" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_vms, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_vms, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_vms, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_vms, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/vms'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'VmsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_vms\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List VolumeTypes for Source
Returns an array of VolumeType
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [VolumeTypesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 8792 def list_source_volume_types(id, opts = {}) data, _status_code, _headers = list_source_volume_types_with_http_info(id, opts) data end
List VolumeTypes for Source
Returns an array of VolumeType
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(VolumeTypesCollection
, Integer, Hash)>] VolumeTypesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 8806 def list_source_volume_types_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_volume_types ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_volume_types" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_volume_types, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_volume_types, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_volume_types, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_volume_types, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/volume_types'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'VolumeTypesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_volume_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Volumes for Source
Returns an array of Volume
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [VolumesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 8883 def list_source_volumes(id, opts = {}) data, _status_code, _headers = list_source_volumes_with_http_info(id, opts) data end
List Volumes for Source
Returns an array of Volume
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(VolumesCollection
, Integer, Hash)>] VolumesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 8897 def list_source_volumes_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_volumes ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_volumes" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_volumes, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_volumes, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_volumes, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_volumes, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/volumes'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'VolumesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_volumes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Sources Returns an array of Source
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [SourcesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 8973 def list_sources(opts = {}) data, _status_code, _headers = list_sources_with_http_info(opts) data end
List Sources Returns an array of Source
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(SourcesCollection
, Integer, Hash)>] SourcesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 8986 def list_sources_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_sources ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_sources, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_sources, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_sources, must be greater than or equal to 0.' end # resource path local_var_path = '/sources' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SourcesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_sources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Ipaddresses for Subnet
Returns an array of Ipaddress
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [IpaddressesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 9054 def list_subnet_ipaddresses(id, opts = {}) data, _status_code, _headers = list_subnet_ipaddresses_with_http_info(id, opts) data end
List Ipaddresses for Subnet
Returns an array of Ipaddress
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(IpaddressesCollection
, Integer, Hash)>] IpaddressesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 9068 def list_subnet_ipaddresses_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_subnet_ipaddresses ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_subnet_ipaddresses" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_subnet_ipaddresses, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subnet_ipaddresses, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subnet_ipaddresses, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_subnet_ipaddresses, must be greater than or equal to 0.' end # resource path local_var_path = '/subnets/{id}/ipaddresses'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'IpaddressesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_subnet_ipaddresses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List NetworkAdapters for Subnet
Returns an array of NetworkAdapter
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [NetworkAdaptersCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 9145 def list_subnet_network_adapters(id, opts = {}) data, _status_code, _headers = list_subnet_network_adapters_with_http_info(id, opts) data end
List NetworkAdapters for Subnet
Returns an array of NetworkAdapter
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(NetworkAdaptersCollection
, Integer, Hash)>] NetworkAdaptersCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 9159 def list_subnet_network_adapters_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_subnet_network_adapters ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_subnet_network_adapters" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_subnet_network_adapters, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subnet_network_adapters, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subnet_network_adapters, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_subnet_network_adapters, must be greater than or equal to 0.' end # resource path local_var_path = '/subnets/{id}/network_adapters'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'NetworkAdaptersCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_subnet_network_adapters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Subnets Returns an array of Subnet
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [SubnetsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 9326 def list_subnets(opts = {}) data, _status_code, _headers = list_subnets_with_http_info(opts) data end
List Subnets Returns an array of Subnet
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(SubnetsCollection
, Integer, Hash)>] SubnetsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 9339 def list_subnets_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_subnets ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subnets, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subnets, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_subnets, must be greater than or equal to 0.' end # resource path local_var_path = '/subnets' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SubnetsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_subnets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Ipaddresses for Subscription
Returns an array of Ipaddress
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [IpaddressesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 9407 def list_subscription_ipaddresses(id, opts = {}) data, _status_code, _headers = list_subscription_ipaddresses_with_http_info(id, opts) data end
List Ipaddresses for Subscription
Returns an array of Ipaddress
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(IpaddressesCollection
, Integer, Hash)>] IpaddressesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 9421 def list_subscription_ipaddresses_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_subscription_ipaddresses ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_subscription_ipaddresses" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_subscription_ipaddresses, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subscription_ipaddresses, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subscription_ipaddresses, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_subscription_ipaddresses, must be greater than or equal to 0.' end # resource path local_var_path = '/subscriptions/{id}/ipaddresses'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'IpaddressesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_subscription_ipaddresses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List NetworkAdapters for Subscription
Returns an array of NetworkAdapter
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [NetworkAdaptersCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 9498 def list_subscription_network_adapters(id, opts = {}) data, _status_code, _headers = list_subscription_network_adapters_with_http_info(id, opts) data end
List NetworkAdapters for Subscription
Returns an array of NetworkAdapter
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(NetworkAdaptersCollection
, Integer, Hash)>] NetworkAdaptersCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 9512 def list_subscription_network_adapters_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_subscription_network_adapters ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_subscription_network_adapters" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_subscription_network_adapters, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subscription_network_adapters, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subscription_network_adapters, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_subscription_network_adapters, must be greater than or equal to 0.' end # resource path local_var_path = '/subscriptions/{id}/network_adapters'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'NetworkAdaptersCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_subscription_network_adapters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Networks for Subscription
Returns an array of Network
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [NetworksCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 9589 def list_subscription_networks(id, opts = {}) data, _status_code, _headers = list_subscription_networks_with_http_info(id, opts) data end
List Networks for Subscription
Returns an array of Network
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(NetworksCollection
, Integer, Hash)>] NetworksCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 9603 def list_subscription_networks_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_subscription_networks ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_subscription_networks" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_subscription_networks, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subscription_networks, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subscription_networks, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_subscription_networks, must be greater than or equal to 0.' end # resource path local_var_path = '/subscriptions/{id}/networks'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'NetworksCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_subscription_networks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List OrchestrationStacks for Subscription
Returns an array of OrchestrationStack
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [OrchestrationStacksCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 9680 def list_subscription_orchestration_stacks(id, opts = {}) data, _status_code, _headers = list_subscription_orchestration_stacks_with_http_info(id, opts) data end
List OrchestrationStacks for Subscription
Returns an array of OrchestrationStack
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(OrchestrationStacksCollection
, Integer, Hash)>] OrchestrationStacksCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 9694 def list_subscription_orchestration_stacks_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_subscription_orchestration_stacks ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_subscription_orchestration_stacks" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_subscription_orchestration_stacks, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subscription_orchestration_stacks, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subscription_orchestration_stacks, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_subscription_orchestration_stacks, must be greater than or equal to 0.' end # resource path local_var_path = '/subscriptions/{id}/orchestration_stacks'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'OrchestrationStacksCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_subscription_orchestration_stacks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List SecurityGroups for Subscription
Returns an array of SecurityGroup
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [SecurityGroupsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 9771 def list_subscription_security_groups(id, opts = {}) data, _status_code, _headers = list_subscription_security_groups_with_http_info(id, opts) data end
List SecurityGroups for Subscription
Returns an array of SecurityGroup
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(SecurityGroupsCollection
, Integer, Hash)>] SecurityGroupsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 9785 def list_subscription_security_groups_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_subscription_security_groups ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_subscription_security_groups" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_subscription_security_groups, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subscription_security_groups, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subscription_security_groups, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_subscription_security_groups, must be greater than or equal to 0.' end # resource path local_var_path = '/subscriptions/{id}/security_groups'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SecurityGroupsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_subscription_security_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceInstances for Subscription
Returns an array of ServiceInstance
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceInstancesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 9862 def list_subscription_service_instances(id, opts = {}) data, _status_code, _headers = list_subscription_service_instances_with_http_info(id, opts) data end
List ServiceInstances for Subscription
Returns an array of ServiceInstance
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceInstancesCollection
, Integer, Hash)>] ServiceInstancesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 9876 def list_subscription_service_instances_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_subscription_service_instances ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_subscription_service_instances" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_subscription_service_instances, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subscription_service_instances, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subscription_service_instances, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_subscription_service_instances, must be greater than or equal to 0.' end # resource path local_var_path = '/subscriptions/{id}/service_instances'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceInstancesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_subscription_service_instances\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceOfferings for Subscription
Returns an array of ServiceOffering
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceOfferingsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 9953 def list_subscription_service_offerings(id, opts = {}) data, _status_code, _headers = list_subscription_service_offerings_with_http_info(id, opts) data end
List ServiceOfferings for Subscription
Returns an array of ServiceOffering
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceOfferingsCollection
, Integer, Hash)>] ServiceOfferingsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 9967 def list_subscription_service_offerings_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_subscription_service_offerings ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_subscription_service_offerings" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_subscription_service_offerings, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subscription_service_offerings, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subscription_service_offerings, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_subscription_service_offerings, must be greater than or equal to 0.' end # resource path local_var_path = '/subscriptions/{id}/service_offerings'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceOfferingsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_subscription_service_offerings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServicePlans for Subscription
Returns an array of ServicePlan
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServicePlansCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 10044 def list_subscription_service_plans(id, opts = {}) data, _status_code, _headers = list_subscription_service_plans_with_http_info(id, opts) data end
List ServicePlans for Subscription
Returns an array of ServicePlan
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServicePlansCollection
, Integer, Hash)>] ServicePlansCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 10058 def list_subscription_service_plans_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_subscription_service_plans ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_subscription_service_plans" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_subscription_service_plans, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subscription_service_plans, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subscription_service_plans, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_subscription_service_plans, must be greater than or equal to 0.' end # resource path local_var_path = '/subscriptions/{id}/service_plans'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServicePlansCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_subscription_service_plans\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Subnets for Subscription
Returns an array of Subnet
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [SubnetsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 10135 def list_subscription_subnets(id, opts = {}) data, _status_code, _headers = list_subscription_subnets_with_http_info(id, opts) data end
List Subnets for Subscription
Returns an array of Subnet
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(SubnetsCollection
, Integer, Hash)>] SubnetsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 10149 def list_subscription_subnets_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_subscription_subnets ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_subscription_subnets" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_subscription_subnets, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subscription_subnets, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subscription_subnets, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_subscription_subnets, must be greater than or equal to 0.' end # resource path local_var_path = '/subscriptions/{id}/subnets'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SubnetsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_subscription_subnets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Vms for Subscription
Returns an array of Vm
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [VmsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 10226 def list_subscription_vms(id, opts = {}) data, _status_code, _headers = list_subscription_vms_with_http_info(id, opts) data end
List Vms for Subscription
Returns an array of Vm
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(VmsCollection
, Integer, Hash)>] VmsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 10240 def list_subscription_vms_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_subscription_vms ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_subscription_vms" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_subscription_vms, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subscription_vms, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subscription_vms, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_subscription_vms, must be greater than or equal to 0.' end # resource path local_var_path = '/subscriptions/{id}/vms'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'VmsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_subscription_vms\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Volumes for Subscription
Returns an array of Volume
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [VolumesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 10317 def list_subscription_volumes(id, opts = {}) data, _status_code, _headers = list_subscription_volumes_with_http_info(id, opts) data end
List Volumes for Subscription
Returns an array of Volume
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(VolumesCollection
, Integer, Hash)>] VolumesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 10331 def list_subscription_volumes_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_subscription_volumes ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_subscription_volumes" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_subscription_volumes, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subscription_volumes, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subscription_volumes, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_subscription_volumes, must be greater than or equal to 0.' end # resource path local_var_path = '/subscriptions/{id}/volumes'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'VolumesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_subscription_volumes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Subscriptions Returns an array of Subscription
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [SubscriptionsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 10407 def list_subscriptions(opts = {}) data, _status_code, _headers = list_subscriptions_with_http_info(opts) data end
List Subscriptions Returns an array of Subscription
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(SubscriptionsCollection
, Integer, Hash)>] SubscriptionsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 10420 def list_subscriptions_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_subscriptions ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subscriptions, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_subscriptions, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_subscriptions, must be greater than or equal to 0.' end # resource path local_var_path = '/subscriptions' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SubscriptionsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_subscriptions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ContainerGroups for Tag
Returns an array of ContainerGroup
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ContainerGroupsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 10488 def list_tag_container_groups(id, opts = {}) data, _status_code, _headers = list_tag_container_groups_with_http_info(id, opts) data end
List ContainerGroups for Tag
Returns an array of ContainerGroup
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ContainerGroupsCollection
, Integer, Hash)>] ContainerGroupsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 10502 def list_tag_container_groups_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_tag_container_groups ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_tag_container_groups" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_tag_container_groups, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_container_groups, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_container_groups, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_tag_container_groups, must be greater than or equal to 0.' end # resource path local_var_path = '/tags/{id}/container_groups'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerGroupsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_tag_container_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ContainerImages for Tag
Returns an array of ContainerImage
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ContainerImagesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 10579 def list_tag_container_images(id, opts = {}) data, _status_code, _headers = list_tag_container_images_with_http_info(id, opts) data end
List ContainerImages for Tag
Returns an array of ContainerImage
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ContainerImagesCollection
, Integer, Hash)>] ContainerImagesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 10593 def list_tag_container_images_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_tag_container_images ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_tag_container_images" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_tag_container_images, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_container_images, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_container_images, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_tag_container_images, must be greater than or equal to 0.' end # resource path local_var_path = '/tags/{id}/container_images'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerImagesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_tag_container_images\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ContainerNodes for Tag
Returns an array of ContainerNode
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ContainerNodesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 10670 def list_tag_container_nodes(id, opts = {}) data, _status_code, _headers = list_tag_container_nodes_with_http_info(id, opts) data end
List ContainerNodes for Tag
Returns an array of ContainerNode
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ContainerNodesCollection
, Integer, Hash)>] ContainerNodesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 10684 def list_tag_container_nodes_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_tag_container_nodes ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_tag_container_nodes" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_tag_container_nodes, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_container_nodes, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_container_nodes, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_tag_container_nodes, must be greater than or equal to 0.' end # resource path local_var_path = '/tags/{id}/container_nodes'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerNodesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_tag_container_nodes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ContainerProjects for Tag
Returns an array of ContainerProject
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ContainerProjectsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 10761 def list_tag_container_projects(id, opts = {}) data, _status_code, _headers = list_tag_container_projects_with_http_info(id, opts) data end
List ContainerProjects for Tag
Returns an array of ContainerProject
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ContainerProjectsCollection
, Integer, Hash)>] ContainerProjectsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 10775 def list_tag_container_projects_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_tag_container_projects ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_tag_container_projects" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_tag_container_projects, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_container_projects, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_container_projects, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_tag_container_projects, must be greater than or equal to 0.' end # resource path local_var_path = '/tags/{id}/container_projects'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerProjectsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_tag_container_projects\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ContainerTemplates for Tag
Returns an array of ContainerTemplate
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ContainerTemplatesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 10852 def list_tag_container_templates(id, opts = {}) data, _status_code, _headers = list_tag_container_templates_with_http_info(id, opts) data end
List ContainerTemplates for Tag
Returns an array of ContainerTemplate
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ContainerTemplatesCollection
, Integer, Hash)>] ContainerTemplatesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 10866 def list_tag_container_templates_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_tag_container_templates ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_tag_container_templates" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_tag_container_templates, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_container_templates, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_container_templates, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_tag_container_templates, must be greater than or equal to 0.' end # resource path local_var_path = '/tags/{id}/container_templates'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerTemplatesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_tag_container_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Ipaddresses for Tag
Returns an array of Ipaddress
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [IpaddressesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 10943 def list_tag_ipaddresses(id, opts = {}) data, _status_code, _headers = list_tag_ipaddresses_with_http_info(id, opts) data end
List Ipaddresses for Tag
Returns an array of Ipaddress
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(IpaddressesCollection
, Integer, Hash)>] IpaddressesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 10957 def list_tag_ipaddresses_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_tag_ipaddresses ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_tag_ipaddresses" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_tag_ipaddresses, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_ipaddresses, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_ipaddresses, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_tag_ipaddresses, must be greater than or equal to 0.' end # resource path local_var_path = '/tags/{id}/ipaddresses'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'IpaddressesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_tag_ipaddresses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List NetworkAdapters for Tag
Returns an array of NetworkAdapter
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [NetworkAdaptersCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 11034 def list_tag_network_adapters(id, opts = {}) data, _status_code, _headers = list_tag_network_adapters_with_http_info(id, opts) data end
List NetworkAdapters for Tag
Returns an array of NetworkAdapter
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(NetworkAdaptersCollection
, Integer, Hash)>] NetworkAdaptersCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 11048 def list_tag_network_adapters_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_tag_network_adapters ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_tag_network_adapters" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_tag_network_adapters, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_network_adapters, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_network_adapters, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_tag_network_adapters, must be greater than or equal to 0.' end # resource path local_var_path = '/tags/{id}/network_adapters'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'NetworkAdaptersCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_tag_network_adapters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Networks for Tag
Returns an array of Network
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [NetworksCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 11125 def list_tag_networks(id, opts = {}) data, _status_code, _headers = list_tag_networks_with_http_info(id, opts) data end
List Networks for Tag
Returns an array of Network
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(NetworksCollection
, Integer, Hash)>] NetworksCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 11139 def list_tag_networks_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_tag_networks ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_tag_networks" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_tag_networks, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_networks, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_networks, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_tag_networks, must be greater than or equal to 0.' end # resource path local_var_path = '/tags/{id}/networks'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'NetworksCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_tag_networks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List SecurityGroups for Tag
Returns an array of SecurityGroup
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [SecurityGroupsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 11216 def list_tag_security_groups(id, opts = {}) data, _status_code, _headers = list_tag_security_groups_with_http_info(id, opts) data end
List SecurityGroups for Tag
Returns an array of SecurityGroup
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(SecurityGroupsCollection
, Integer, Hash)>] SecurityGroupsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 11230 def list_tag_security_groups_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_tag_security_groups ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_tag_security_groups" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_tag_security_groups, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_security_groups, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_security_groups, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_tag_security_groups, must be greater than or equal to 0.' end # resource path local_var_path = '/tags/{id}/security_groups'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SecurityGroupsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_tag_security_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceInventories for Tag
Returns an array of ServiceInventory
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceInventoriesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 11307 def list_tag_service_inventories(id, opts = {}) data, _status_code, _headers = list_tag_service_inventories_with_http_info(id, opts) data end
List ServiceInventories for Tag
Returns an array of ServiceInventory
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceInventoriesCollection
, Integer, Hash)>] ServiceInventoriesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 11321 def list_tag_service_inventories_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_tag_service_inventories ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_tag_service_inventories" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_tag_service_inventories, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_service_inventories, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_service_inventories, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_tag_service_inventories, must be greater than or equal to 0.' end # resource path local_var_path = '/tags/{id}/service_inventories'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceInventoriesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_tag_service_inventories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ServiceOfferings for Tag
Returns an array of ServiceOffering
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ServiceOfferingsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 11398 def list_tag_service_offerings(id, opts = {}) data, _status_code, _headers = list_tag_service_offerings_with_http_info(id, opts) data end
List ServiceOfferings for Tag
Returns an array of ServiceOffering
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ServiceOfferingsCollection
, Integer, Hash)>] ServiceOfferingsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 11412 def list_tag_service_offerings_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_tag_service_offerings ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_tag_service_offerings" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_tag_service_offerings, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_service_offerings, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_service_offerings, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_tag_service_offerings, must be greater than or equal to 0.' end # resource path local_var_path = '/tags/{id}/service_offerings'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceOfferingsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_tag_service_offerings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Subnets for Tag
Returns an array of Subnet
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [SubnetsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 11489 def list_tag_subnets(id, opts = {}) data, _status_code, _headers = list_tag_subnets_with_http_info(id, opts) data end
List Subnets for Tag
Returns an array of Subnet
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(SubnetsCollection
, Integer, Hash)>] SubnetsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 11503 def list_tag_subnets_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_tag_subnets ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_tag_subnets" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_tag_subnets, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_subnets, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_subnets, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_tag_subnets, must be greater than or equal to 0.' end # resource path local_var_path = '/tags/{id}/subnets'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SubnetsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_tag_subnets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Vms for Tag
Returns an array of Vm
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [VmsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 11580 def list_tag_vms(id, opts = {}) data, _status_code, _headers = list_tag_vms_with_http_info(id, opts) data end
List Vms for Tag
Returns an array of Vm
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(VmsCollection
, Integer, Hash)>] VmsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 11594 def list_tag_vms_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_tag_vms ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_tag_vms" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_tag_vms, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_vms, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tag_vms, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_tag_vms, must be greater than or equal to 0.' end # resource path local_var_path = '/tags/{id}/vms'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'VmsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_tag_vms\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Tasks Returns an array of Task
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [TasksCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 11750 def list_tasks(opts = {}) data, _status_code, _headers = list_tasks_with_http_info(opts) data end
List Tasks Returns an array of Task
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(TasksCollection
, Integer, Hash)>] TasksCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 11763 def list_tasks_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_tasks ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tasks, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_tasks, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_tasks, must be greater than or equal to 0.' end # resource path local_var_path = '/tasks' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'TasksCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_tasks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List NetworkAdapters for Vm
Returns an array of NetworkAdapter
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [NetworkAdaptersCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 11831 def list_vm_network_adapters(id, opts = {}) data, _status_code, _headers = list_vm_network_adapters_with_http_info(id, opts) data end
List NetworkAdapters for Vm
Returns an array of NetworkAdapter
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(NetworkAdaptersCollection
, Integer, Hash)>] NetworkAdaptersCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 11845 def list_vm_network_adapters_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_vm_network_adapters ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_vm_network_adapters" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_vm_network_adapters, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_vm_network_adapters, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_vm_network_adapters, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_vm_network_adapters, must be greater than or equal to 0.' end # resource path local_var_path = '/vms/{id}/network_adapters'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'NetworkAdaptersCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_vm_network_adapters\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List SecurityGroups for Vm
Returns an array of SecurityGroup
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [SecurityGroupsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 11922 def list_vm_security_groups(id, opts = {}) data, _status_code, _headers = list_vm_security_groups_with_http_info(id, opts) data end
List SecurityGroups for Vm
Returns an array of SecurityGroup
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(SecurityGroupsCollection
, Integer, Hash)>] SecurityGroupsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 11936 def list_vm_security_groups_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_vm_security_groups ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_vm_security_groups" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_vm_security_groups, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_vm_security_groups, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_vm_security_groups, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_vm_security_groups, must be greater than or equal to 0.' end # resource path local_var_path = '/vms/{id}/security_groups'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SecurityGroupsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_vm_security_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List VolumeAttachments for Vm
Returns an array of VolumeAttachment
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [VolumeAttachmentsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 12104 def list_vm_volume_attachments(id, opts = {}) data, _status_code, _headers = list_vm_volume_attachments_with_http_info(id, opts) data end
List VolumeAttachments for Vm
Returns an array of VolumeAttachment
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(VolumeAttachmentsCollection
, Integer, Hash)>] VolumeAttachmentsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 12118 def list_vm_volume_attachments_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_vm_volume_attachments ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_vm_volume_attachments" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_vm_volume_attachments, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_vm_volume_attachments, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_vm_volume_attachments, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_vm_volume_attachments, must be greater than or equal to 0.' end # resource path local_var_path = '/vms/{id}/volume_attachments'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'VolumeAttachmentsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_vm_volume_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Volumes for Vm
Returns an array of Volume
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [VolumesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 12195 def list_vm_volumes(id, opts = {}) data, _status_code, _headers = list_vm_volumes_with_http_info(id, opts) data end
List Volumes for Vm
Returns an array of Volume
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(VolumesCollection
, Integer, Hash)>] VolumesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 12209 def list_vm_volumes_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_vm_volumes ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_vm_volumes" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_vm_volumes, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_vm_volumes, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_vm_volumes, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_vm_volumes, must be greater than or equal to 0.' end # resource path local_var_path = '/vms/{id}/volumes'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'VolumesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_vm_volumes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Vms Returns an array of Vm
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [VmsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 12285 def list_vms(opts = {}) data, _status_code, _headers = list_vms_with_http_info(opts) data end
List Vms Returns an array of Vm
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(VmsCollection
, Integer, Hash)>] VmsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 12298 def list_vms_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_vms ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_vms, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_vms, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_vms, must be greater than or equal to 0.' end # resource path local_var_path = '/vms' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'VmsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_vms\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List VolumeAttachments Returns an array of VolumeAttachment
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [VolumeAttachmentsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 12365 def list_volume_attachments(opts = {}) data, _status_code, _headers = list_volume_attachments_with_http_info(opts) data end
List VolumeAttachments Returns an array of VolumeAttachment
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(VolumeAttachmentsCollection
, Integer, Hash)>] VolumeAttachmentsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 12378 def list_volume_attachments_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_volume_attachments ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_volume_attachments, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_volume_attachments, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_volume_attachments, must be greater than or equal to 0.' end # resource path local_var_path = '/volume_attachments' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'VolumeAttachmentsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_volume_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Volumes for VolumeType
Returns an array of Volume
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [VolumesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 12446 def list_volume_type_volumes(id, opts = {}) data, _status_code, _headers = list_volume_type_volumes_with_http_info(id, opts) data end
List Volumes for VolumeType
Returns an array of Volume
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(VolumesCollection
, Integer, Hash)>] VolumesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 12460 def list_volume_type_volumes_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_volume_type_volumes ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_volume_type_volumes" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_volume_type_volumes, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_volume_type_volumes, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_volume_type_volumes, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_volume_type_volumes, must be greater than or equal to 0.' end # resource path local_var_path = '/volume_types/{id}/volumes'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'VolumesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_volume_type_volumes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List VolumeTypes Returns an array of VolumeType
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [VolumeTypesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 12536 def list_volume_types(opts = {}) data, _status_code, _headers = list_volume_types_with_http_info(opts) data end
List VolumeTypes Returns an array of VolumeType
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(VolumeTypesCollection
, Integer, Hash)>] VolumeTypesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 12549 def list_volume_types_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_volume_types ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_volume_types, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_volume_types, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_volume_types, must be greater than or equal to 0.' end # resource path local_var_path = '/volume_types' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'VolumeTypesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_volume_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Vms for Volume
Returns an array of Vm
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [VmsCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 12617 def list_volume_vms(id, opts = {}) data, _status_code, _headers = list_volume_vms_with_http_info(id, opts) data end
List Vms for Volume
Returns an array of Vm
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(VmsCollection
, Integer, Hash)>] VmsCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 12631 def list_volume_vms_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_volume_vms ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_volume_vms" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_volume_vms, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_volume_vms, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_volume_vms, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_volume_vms, must be greater than or equal to 0.' end # resource path local_var_path = '/volumes/{id}/vms'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'VmsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_volume_vms\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Volumes Returns an array of Volume
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [VolumesCollection]
# File lib/topological_inventory-api-client/api/default_api.rb, line 12707 def list_volumes(opts = {}) data, _status_code, _headers = list_volumes_with_http_info(opts) data end
List Volumes Returns an array of Volume
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(VolumesCollection
, Integer, Hash)>] VolumesCollection
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 12720 def list_volumes_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_volumes ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_volumes, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_volumes, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_volumes, must be greater than or equal to 0.' end # resource path local_var_path = '/volumes' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'VolumesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_volumes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Order an existing ServiceOffering
Returns a Task
id @param id [String] ID of the resource @param order_parameters_service_offering [OrderParametersServiceOffering] Order parameters defining the service and provider control @param [Hash] opts the optional parameters @return [InlineResponse200]
# File lib/topological_inventory-api-client/api/default_api.rb, line 12785 def order_service_offering(id, order_parameters_service_offering, opts = {}) data, _status_code, _headers = order_service_offering_with_http_info(id, order_parameters_service_offering, opts) data end
Order an existing ServiceOffering
Returns a Task
id @param id [String] ID of the resource @param order_parameters_service_offering [OrderParametersServiceOffering] Order parameters defining the service and provider control @param [Hash] opts the optional parameters @return [Array<(InlineResponse200
, Integer, Hash)>] InlineResponse200
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 12796 def order_service_offering_with_http_info(id, order_parameters_service_offering, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.order_service_offering ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.order_service_offering" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.order_service_offering, must conform to the pattern #{pattern}." end # verify the required parameter 'order_parameters_service_offering' is set if @api_client.config.client_side_validation && order_parameters_service_offering.nil? fail ArgumentError, "Missing the required parameter 'order_parameters_service_offering' when calling DefaultApi.order_service_offering" end # resource path local_var_path = '/service_offerings/{id}/order'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(order_parameters_service_offering) # return_type return_type = opts[:return_type] || 'InlineResponse200' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#order_service_offering\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Order an existing ServicePlan
Returns a Task
id @param id [String] ID of the resource @param order_parameters_service_plan [OrderParametersServicePlan] Order parameters defining the service and provider control @param [Hash] opts the optional parameters @return [InlineResponse200]
# File lib/topological_inventory-api-client/api/default_api.rb, line 12860 def order_service_plan(id, order_parameters_service_plan, opts = {}) data, _status_code, _headers = order_service_plan_with_http_info(id, order_parameters_service_plan, opts) data end
Order an existing ServicePlan
Returns a Task
id @param id [String] ID of the resource @param order_parameters_service_plan [OrderParametersServicePlan] Order parameters defining the service and provider control @param [Hash] opts the optional parameters @return [Array<(InlineResponse200
, Integer, Hash)>] InlineResponse200
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 12871 def order_service_plan_with_http_info(id, order_parameters_service_plan, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.order_service_plan ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.order_service_plan" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.order_service_plan, must conform to the pattern #{pattern}." end # verify the required parameter 'order_parameters_service_plan' is set if @api_client.config.client_side_validation && order_parameters_service_plan.nil? fail ArgumentError, "Missing the required parameter 'order_parameters_service_plan' when calling DefaultApi.order_service_plan" end # resource path local_var_path = '/service_plans/{id}/order'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(order_parameters_service_plan) # return_type return_type = opts[:return_type] || 'InlineResponse200' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#order_service_plan\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Perform a GraphQL Query Performs a GraphQL Query @param graph_ql_request [GraphQLRequest] GraphQL Query Request @param [Hash] opts the optional parameters @return [GraphQLResponse]
# File lib/topological_inventory-api-client/api/default_api.rb, line 12934 def post_graph_ql(graph_ql_request, opts = {}) data, _status_code, _headers = post_graph_ql_with_http_info(graph_ql_request, opts) data end
Perform a GraphQL Query Performs a GraphQL Query @param graph_ql_request [GraphQLRequest] GraphQL Query Request @param [Hash] opts the optional parameters @return [Array<(GraphQLResponse
, Integer, Hash)>] GraphQLResponse
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 12944 def post_graph_ql_with_http_info(graph_ql_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.post_graph_ql ...' end # verify the required parameter 'graph_ql_request' is set if @api_client.config.client_side_validation && graph_ql_request.nil? fail ArgumentError, "Missing the required parameter 'graph_ql_request' when calling DefaultApi.post_graph_ql" end # resource path local_var_path = '/graphql' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(graph_ql_request) # return_type return_type = opts[:return_type] || 'GraphQLResponse' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#post_graph_ql\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing Cluster
Returns a Cluster
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Cluster]
# File lib/topological_inventory-api-client/api/default_api.rb, line 12998 def show_cluster(id, opts = {}) data, _status_code, _headers = show_cluster_with_http_info(id, opts) data end
Show an existing Cluster
Returns a Cluster
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(Cluster
, Integer, Hash)>] Cluster
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 13008 def show_cluster_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_cluster ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_cluster" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_cluster, must conform to the pattern #{pattern}." end # resource path local_var_path = '/clusters/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'Cluster' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_cluster\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing Container
Returns a Container
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Container]
# File lib/topological_inventory-api-client/api/default_api.rb, line 13065 def show_container(id, opts = {}) data, _status_code, _headers = show_container_with_http_info(id, opts) data end
Show an existing ContainerGroup
Returns a ContainerGroup
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [ContainerGroup]
# File lib/topological_inventory-api-client/api/default_api.rb, line 13132 def show_container_group(id, opts = {}) data, _status_code, _headers = show_container_group_with_http_info(id, opts) data end
Show an existing ContainerGroup
Returns a ContainerGroup
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(ContainerGroup
, Integer, Hash)>] ContainerGroup
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 13142 def show_container_group_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_container_group ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_container_group" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_container_group, must conform to the pattern #{pattern}." end # resource path local_var_path = '/container_groups/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerGroup' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_container_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing ContainerImage
Returns a ContainerImage
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [ContainerImage]
# File lib/topological_inventory-api-client/api/default_api.rb, line 13199 def show_container_image(id, opts = {}) data, _status_code, _headers = show_container_image_with_http_info(id, opts) data end
Show an existing ContainerImage
Returns a ContainerImage
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(ContainerImage
, Integer, Hash)>] ContainerImage
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 13209 def show_container_image_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_container_image ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_container_image" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_container_image, must conform to the pattern #{pattern}." end # resource path local_var_path = '/container_images/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerImage' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_container_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing ContainerNode
Returns a ContainerNode
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [ContainerNode]
# File lib/topological_inventory-api-client/api/default_api.rb, line 13266 def show_container_node(id, opts = {}) data, _status_code, _headers = show_container_node_with_http_info(id, opts) data end
Show an existing ContainerNode
Returns a ContainerNode
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(ContainerNode
, Integer, Hash)>] ContainerNode
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 13276 def show_container_node_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_container_node ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_container_node" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_container_node, must conform to the pattern #{pattern}." end # resource path local_var_path = '/container_nodes/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerNode' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_container_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing ContainerProject
Returns a ContainerProject
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [ContainerProject]
# File lib/topological_inventory-api-client/api/default_api.rb, line 13333 def show_container_project(id, opts = {}) data, _status_code, _headers = show_container_project_with_http_info(id, opts) data end
Show an existing ContainerProject
Returns a ContainerProject
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(ContainerProject
, Integer, Hash)>] ContainerProject
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 13343 def show_container_project_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_container_project ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_container_project" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_container_project, must conform to the pattern #{pattern}." end # resource path local_var_path = '/container_projects/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerProject' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_container_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing ContainerResourceQuota
Returns a ContainerResourceQuota
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [ContainerResourceQuota]
# File lib/topological_inventory-api-client/api/default_api.rb, line 13400 def show_container_resource_quota(id, opts = {}) data, _status_code, _headers = show_container_resource_quota_with_http_info(id, opts) data end
Show an existing ContainerResourceQuota
Returns a ContainerResourceQuota
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(ContainerResourceQuota
, Integer, Hash)>] ContainerResourceQuota
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 13410 def show_container_resource_quota_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_container_resource_quota ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_container_resource_quota" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_container_resource_quota, must conform to the pattern #{pattern}." end # resource path local_var_path = '/container_resource_quotas/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerResourceQuota' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_container_resource_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing ContainerTemplate
Returns a ContainerTemplate
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [ContainerTemplate]
# File lib/topological_inventory-api-client/api/default_api.rb, line 13467 def show_container_template(id, opts = {}) data, _status_code, _headers = show_container_template_with_http_info(id, opts) data end
Show an existing ContainerTemplate
Returns a ContainerTemplate
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(ContainerTemplate
, Integer, Hash)>] ContainerTemplate
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 13477 def show_container_template_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_container_template ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_container_template" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_container_template, must conform to the pattern #{pattern}." end # resource path local_var_path = '/container_templates/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ContainerTemplate' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_container_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing Container
Returns a Container
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(Container
, Integer, Hash)>] Container
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 13075 def show_container_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_container ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_container" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_container, must conform to the pattern #{pattern}." end # resource path local_var_path = '/containers/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'Container' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_container\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing Datastore
Returns a Datastore
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Datastore]
# File lib/topological_inventory-api-client/api/default_api.rb, line 13534 def show_datastore(id, opts = {}) data, _status_code, _headers = show_datastore_with_http_info(id, opts) data end
Show an existing Datastore
Returns a Datastore
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(Datastore
, Integer, Hash)>] Datastore
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 13544 def show_datastore_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_datastore ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_datastore" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_datastore, must conform to the pattern #{pattern}." end # resource path local_var_path = '/datastores/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'Datastore' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_datastore\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing Flavor
Returns a Flavor
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Flavor]
# File lib/topological_inventory-api-client/api/default_api.rb, line 13601 def show_flavor(id, opts = {}) data, _status_code, _headers = show_flavor_with_http_info(id, opts) data end
Show an existing Flavor
Returns a Flavor
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(Flavor
, Integer, Hash)>] Flavor
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 13611 def show_flavor_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_flavor ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_flavor" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_flavor, must conform to the pattern #{pattern}." end # resource path local_var_path = '/flavors/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'Flavor' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_flavor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing Host
Returns a Host
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Host]
# File lib/topological_inventory-api-client/api/default_api.rb, line 13668 def show_host(id, opts = {}) data, _status_code, _headers = show_host_with_http_info(id, opts) data end
Show an existing Host
Returns a Host
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(Host
, Integer, Hash)>] Host
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 13678 def show_host_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_host ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_host" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_host, must conform to the pattern #{pattern}." end # resource path local_var_path = '/hosts/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'Host' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_host\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing Ipaddress
Returns a Ipaddress
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Ipaddress]
# File lib/topological_inventory-api-client/api/default_api.rb, line 13735 def show_ipaddress(id, opts = {}) data, _status_code, _headers = show_ipaddress_with_http_info(id, opts) data end
Show an existing Ipaddress
Returns a Ipaddress
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(Ipaddress
, Integer, Hash)>] Ipaddress
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 13745 def show_ipaddress_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_ipaddress ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_ipaddress" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_ipaddress, must conform to the pattern #{pattern}." end # resource path local_var_path = '/ipaddresses/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'Ipaddress' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_ipaddress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing Network
Returns a Network
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Network]
# File lib/topological_inventory-api-client/api/default_api.rb, line 13802 def show_network(id, opts = {}) data, _status_code, _headers = show_network_with_http_info(id, opts) data end
Show an existing NetworkAdapter
Returns a NetworkAdapter
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [NetworkAdapter]
# File lib/topological_inventory-api-client/api/default_api.rb, line 13869 def show_network_adapter(id, opts = {}) data, _status_code, _headers = show_network_adapter_with_http_info(id, opts) data end
Show an existing NetworkAdapter
Returns a NetworkAdapter
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(NetworkAdapter
, Integer, Hash)>] NetworkAdapter
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 13879 def show_network_adapter_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_network_adapter ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_network_adapter" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_network_adapter, must conform to the pattern #{pattern}." end # resource path local_var_path = '/network_adapters/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'NetworkAdapter' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_network_adapter\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing Network
Returns a Network
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(Network
, Integer, Hash)>] Network
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 13812 def show_network_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_network ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_network" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_network, must conform to the pattern #{pattern}." end # resource path local_var_path = '/networks/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'Network' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_network\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing OrchestrationStack
Returns a OrchestrationStack
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [OrchestrationStack]
# File lib/topological_inventory-api-client/api/default_api.rb, line 13936 def show_orchestration_stack(id, opts = {}) data, _status_code, _headers = show_orchestration_stack_with_http_info(id, opts) data end
Show an existing OrchestrationStack
Returns a OrchestrationStack
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(OrchestrationStack
, Integer, Hash)>] OrchestrationStack
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 13946 def show_orchestration_stack_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_orchestration_stack ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_orchestration_stack" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_orchestration_stack, must conform to the pattern #{pattern}." end # resource path local_var_path = '/orchestration_stacks/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'OrchestrationStack' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_orchestration_stack\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing SecurityGroup
Returns a SecurityGroup
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [SecurityGroup]
# File lib/topological_inventory-api-client/api/default_api.rb, line 14003 def show_security_group(id, opts = {}) data, _status_code, _headers = show_security_group_with_http_info(id, opts) data end
Show an existing SecurityGroup
Returns a SecurityGroup
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(SecurityGroup
, Integer, Hash)>] SecurityGroup
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 14013 def show_security_group_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_security_group ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_security_group" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_security_group, must conform to the pattern #{pattern}." end # resource path local_var_path = '/security_groups/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SecurityGroup' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_security_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing ServiceCredential
Returns a ServiceCredential
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [ServiceCredential]
# File lib/topological_inventory-api-client/api/default_api.rb, line 14070 def show_service_credential(id, opts = {}) data, _status_code, _headers = show_service_credential_with_http_info(id, opts) data end
Show an existing ServiceCredentialType
Returns a ServiceCredentialType
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [ServiceCredentialType]
# File lib/topological_inventory-api-client/api/default_api.rb, line 14137 def show_service_credential_type(id, opts = {}) data, _status_code, _headers = show_service_credential_type_with_http_info(id, opts) data end
Show an existing ServiceCredentialType
Returns a ServiceCredentialType
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(ServiceCredentialType
, Integer, Hash)>] ServiceCredentialType
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 14147 def show_service_credential_type_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_service_credential_type ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_service_credential_type" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_service_credential_type, must conform to the pattern #{pattern}." end # resource path local_var_path = '/service_credential_types/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceCredentialType' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_service_credential_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing ServiceCredential
Returns a ServiceCredential
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(ServiceCredential
, Integer, Hash)>] ServiceCredential
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 14080 def show_service_credential_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_service_credential ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_service_credential" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_service_credential, must conform to the pattern #{pattern}." end # resource path local_var_path = '/service_credentials/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceCredential' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_service_credential\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing ServiceInstance
Returns a ServiceInstance
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [ServiceInstance]
# File lib/topological_inventory-api-client/api/default_api.rb, line 14204 def show_service_instance(id, opts = {}) data, _status_code, _headers = show_service_instance_with_http_info(id, opts) data end
Show an existing ServiceInstanceNode
Returns a ServiceInstanceNode
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [ServiceInstanceNode]
# File lib/topological_inventory-api-client/api/default_api.rb, line 14271 def show_service_instance_node(id, opts = {}) data, _status_code, _headers = show_service_instance_node_with_http_info(id, opts) data end
Show an existing ServiceInstanceNode
Returns a ServiceInstanceNode
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(ServiceInstanceNode
, Integer, Hash)>] ServiceInstanceNode
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 14281 def show_service_instance_node_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_service_instance_node ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_service_instance_node" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_service_instance_node, must conform to the pattern #{pattern}." end # resource path local_var_path = '/service_instance_nodes/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceInstanceNode' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_service_instance_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing ServiceInstance
Returns a ServiceInstance
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(ServiceInstance
, Integer, Hash)>] ServiceInstance
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 14214 def show_service_instance_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_service_instance ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_service_instance" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_service_instance, must conform to the pattern #{pattern}." end # resource path local_var_path = '/service_instances/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceInstance' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_service_instance\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing ServiceInventory
Returns a ServiceInventory
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [ServiceInventory]
# File lib/topological_inventory-api-client/api/default_api.rb, line 14338 def show_service_inventory(id, opts = {}) data, _status_code, _headers = show_service_inventory_with_http_info(id, opts) data end
Show an existing ServiceInventory
Returns a ServiceInventory
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(ServiceInventory
, Integer, Hash)>] ServiceInventory
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 14348 def show_service_inventory_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_service_inventory ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_service_inventory" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_service_inventory, must conform to the pattern #{pattern}." end # resource path local_var_path = '/service_inventories/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceInventory' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_service_inventory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing ServiceOffering
Returns a ServiceOffering
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [ServiceOffering]
# File lib/topological_inventory-api-client/api/default_api.rb, line 14405 def show_service_offering(id, opts = {}) data, _status_code, _headers = show_service_offering_with_http_info(id, opts) data end
Show an existing ServiceOfferingIcon
Returns a ServiceOfferingIcon
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [ServiceOfferingIcon]
# File lib/topological_inventory-api-client/api/default_api.rb, line 14472 def show_service_offering_icon(id, opts = {}) data, _status_code, _headers = show_service_offering_icon_with_http_info(id, opts) data end
Show an existing ServiceOfferingIcon
IconData Returns a ServiceOfferingIcon
IconData @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [File]
# File lib/topological_inventory-api-client/api/default_api.rb, line 14539 def show_service_offering_icon_icon_data(id, opts = {}) data, _status_code, _headers = show_service_offering_icon_icon_data_with_http_info(id, opts) data end
Show an existing ServiceOfferingIcon
IconData Returns a ServiceOfferingIcon
IconData @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 14549 def show_service_offering_icon_icon_data_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_service_offering_icon_icon_data ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_service_offering_icon_icon_data" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_service_offering_icon_icon_data, must conform to the pattern #{pattern}." end # resource path local_var_path = '/service_offering_icons/{id}/icon_data'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['image/*']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'File' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_service_offering_icon_icon_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing ServiceOfferingIcon
Returns a ServiceOfferingIcon
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(ServiceOfferingIcon
, Integer, Hash)>] ServiceOfferingIcon
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 14482 def show_service_offering_icon_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_service_offering_icon ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_service_offering_icon" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_service_offering_icon, must conform to the pattern #{pattern}." end # resource path local_var_path = '/service_offering_icons/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceOfferingIcon' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_service_offering_icon\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing ServiceOfferingNode
Returns a ServiceOfferingNode
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [ServiceOfferingNode]
# File lib/topological_inventory-api-client/api/default_api.rb, line 14606 def show_service_offering_node(id, opts = {}) data, _status_code, _headers = show_service_offering_node_with_http_info(id, opts) data end
Show an existing ServiceOfferingNode
Returns a ServiceOfferingNode
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(ServiceOfferingNode
, Integer, Hash)>] ServiceOfferingNode
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 14616 def show_service_offering_node_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_service_offering_node ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_service_offering_node" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_service_offering_node, must conform to the pattern #{pattern}." end # resource path local_var_path = '/service_offering_nodes/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceOfferingNode' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_service_offering_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing ServiceOffering
Returns a ServiceOffering
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(ServiceOffering
, Integer, Hash)>] ServiceOffering
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 14415 def show_service_offering_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_service_offering ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_service_offering" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_service_offering, must conform to the pattern #{pattern}." end # resource path local_var_path = '/service_offerings/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServiceOffering' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_service_offering\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing ServicePlan
Returns a ServicePlan
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [ServicePlan]
# File lib/topological_inventory-api-client/api/default_api.rb, line 14673 def show_service_plan(id, opts = {}) data, _status_code, _headers = show_service_plan_with_http_info(id, opts) data end
Show an existing ServicePlan
Returns a ServicePlan
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(ServicePlan
, Integer, Hash)>] ServicePlan
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 14683 def show_service_plan_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_service_plan ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_service_plan" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_service_plan, must conform to the pattern #{pattern}." end # resource path local_var_path = '/service_plans/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ServicePlan' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_service_plan\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing Source
Returns a Source
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Source]
# File lib/topological_inventory-api-client/api/default_api.rb, line 14740 def show_source(id, opts = {}) data, _status_code, _headers = show_source_with_http_info(id, opts) data end
Show an existing SourceRegion
Returns a SourceRegion
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [SourceRegion]
# File lib/topological_inventory-api-client/api/default_api.rb, line 14807 def show_source_region(id, opts = {}) data, _status_code, _headers = show_source_region_with_http_info(id, opts) data end
Show an existing SourceRegion
Returns a SourceRegion
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(SourceRegion
, Integer, Hash)>] SourceRegion
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 14817 def show_source_region_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_source_region ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_source_region" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_source_region, must conform to the pattern #{pattern}." end # resource path local_var_path = '/source_regions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SourceRegion' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_source_region\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing Source
Returns a Source
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(Source
, Integer, Hash)>] Source
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 14750 def show_source_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_source ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_source" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_source, must conform to the pattern #{pattern}." end # resource path local_var_path = '/sources/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'Source' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing Subnet
Returns a Subnet
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Subnet]
# File lib/topological_inventory-api-client/api/default_api.rb, line 14874 def show_subnet(id, opts = {}) data, _status_code, _headers = show_subnet_with_http_info(id, opts) data end
Show an existing Subnet
Returns a Subnet
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(Subnet
, Integer, Hash)>] Subnet
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 14884 def show_subnet_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_subnet ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_subnet" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_subnet, must conform to the pattern #{pattern}." end # resource path local_var_path = '/subnets/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'Subnet' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_subnet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing Subscription
Returns a Subscription
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Subscription]
# File lib/topological_inventory-api-client/api/default_api.rb, line 14941 def show_subscription(id, opts = {}) data, _status_code, _headers = show_subscription_with_http_info(id, opts) data end
Show an existing Subscription
Returns a Subscription
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(Subscription
, Integer, Hash)>] Subscription
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 14951 def show_subscription_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_subscription ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_subscription" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_subscription, must conform to the pattern #{pattern}." end # resource path local_var_path = '/subscriptions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'Subscription' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing Tag
Returns a Tag
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Tag]
# File lib/topological_inventory-api-client/api/default_api.rb, line 15008 def show_tag(id, opts = {}) data, _status_code, _headers = show_tag_with_http_info(id, opts) data end
Show an existing Tag
Returns a Tag
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(Tag
, Integer, Hash)>] Tag
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 15018 def show_tag_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_tag ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_tag" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_tag, must conform to the pattern #{pattern}." end # resource path local_var_path = '/tags/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'Tag' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_tag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing Task
Returns a Task
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Task]
# File lib/topological_inventory-api-client/api/default_api.rb, line 15075 def show_task(id, opts = {}) data, _status_code, _headers = show_task_with_http_info(id, opts) data end
Show an existing Task
Returns a Task
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(Task
, Integer, Hash)>] Task
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 15085 def show_task_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_task ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_task" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_task, must conform to the pattern #{pattern}." end # resource path local_var_path = '/tasks/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'Task' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing Vm
Returns a Vm
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Vm]
# File lib/topological_inventory-api-client/api/default_api.rb, line 15142 def show_vm(id, opts = {}) data, _status_code, _headers = show_vm_with_http_info(id, opts) data end
Show an existing Vm
Returns a Vm
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(Vm
, Integer, Hash)>] Vm
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 15152 def show_vm_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_vm ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_vm" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_vm, must conform to the pattern #{pattern}." end # resource path local_var_path = '/vms/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'Vm' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_vm\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing Volume
Returns a Volume
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Volume]
# File lib/topological_inventory-api-client/api/default_api.rb, line 15209 def show_volume(id, opts = {}) data, _status_code, _headers = show_volume_with_http_info(id, opts) data end
Show an existing VolumeAttachment
Returns a VolumeAttachment
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [VolumeAttachment]
# File lib/topological_inventory-api-client/api/default_api.rb, line 15276 def show_volume_attachment(id, opts = {}) data, _status_code, _headers = show_volume_attachment_with_http_info(id, opts) data end
Show an existing VolumeAttachment
Returns a VolumeAttachment
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(VolumeAttachment
, Integer, Hash)>] VolumeAttachment
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 15286 def show_volume_attachment_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_volume_attachment ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_volume_attachment" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_volume_attachment, must conform to the pattern #{pattern}." end # resource path local_var_path = '/volume_attachments/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'VolumeAttachment' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_volume_attachment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing VolumeType
Returns a VolumeType
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [VolumeType]
# File lib/topological_inventory-api-client/api/default_api.rb, line 15343 def show_volume_type(id, opts = {}) data, _status_code, _headers = show_volume_type_with_http_info(id, opts) data end
Show an existing VolumeType
Returns a VolumeType
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(VolumeType
, Integer, Hash)>] VolumeType
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 15353 def show_volume_type_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_volume_type ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_volume_type" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_volume_type, must conform to the pattern #{pattern}." end # resource path local_var_path = '/volume_types/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'VolumeType' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_volume_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing Volume
Returns a Volume
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(Volume
, Integer, Hash)>] Volume
data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 15219 def show_volume_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_volume ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_volume" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_volume, must conform to the pattern #{pattern}." end # resource path local_var_path = '/volumes/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'Volume' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_volume\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Tag
a ContainerGroup
Tags a ContainerGroup
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<Tag>]
# File lib/topological_inventory-api-client/api/default_api.rb, line 15411 def tag_container_group(id, tag, opts = {}) data, _status_code, _headers = tag_container_group_with_http_info(id, tag, opts) data end
Tag
a ContainerGroup
Tags a ContainerGroup
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<(Array<Tag>, Integer, Hash)>] Array<Tag> data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 15422 def tag_container_group_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.tag_container_group ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_container_group" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_container_group, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_container_group" end # resource path local_var_path = '/container_groups/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] || 'Array<Tag>' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#tag_container_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Tag
a ContainerImage
Tags a ContainerImage
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<Tag>]
# File lib/topological_inventory-api-client/api/default_api.rb, line 15486 def tag_container_image(id, tag, opts = {}) data, _status_code, _headers = tag_container_image_with_http_info(id, tag, opts) data end
Tag
a ContainerImage
Tags a ContainerImage
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<(Array<Tag>, Integer, Hash)>] Array<Tag> data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 15497 def tag_container_image_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.tag_container_image ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_container_image" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_container_image, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_container_image" end # resource path local_var_path = '/container_images/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] || 'Array<Tag>' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#tag_container_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Tag
a ContainerNode
Tags a ContainerNode
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<Tag>]
# File lib/topological_inventory-api-client/api/default_api.rb, line 15561 def tag_container_node(id, tag, opts = {}) data, _status_code, _headers = tag_container_node_with_http_info(id, tag, opts) data end
Tag
a ContainerNode
Tags a ContainerNode
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<(Array<Tag>, Integer, Hash)>] Array<Tag> data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 15572 def tag_container_node_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.tag_container_node ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_container_node" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_container_node, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_container_node" end # resource path local_var_path = '/container_nodes/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] || 'Array<Tag>' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#tag_container_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Tag
a ContainerProject
Tags a ContainerProject
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<Tag>]
# File lib/topological_inventory-api-client/api/default_api.rb, line 15636 def tag_container_project(id, tag, opts = {}) data, _status_code, _headers = tag_container_project_with_http_info(id, tag, opts) data end
Tag
a ContainerProject
Tags a ContainerProject
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<(Array<Tag>, Integer, Hash)>] Array<Tag> data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 15647 def tag_container_project_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.tag_container_project ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_container_project" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_container_project, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_container_project" end # resource path local_var_path = '/container_projects/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] || 'Array<Tag>' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#tag_container_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Tag
a ContainerTemplate
Tags a ContainerTemplate
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<Tag>]
# File lib/topological_inventory-api-client/api/default_api.rb, line 15711 def tag_container_template(id, tag, opts = {}) data, _status_code, _headers = tag_container_template_with_http_info(id, tag, opts) data end
Tag
a ContainerTemplate
Tags a ContainerTemplate
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<(Array<Tag>, Integer, Hash)>] Array<Tag> data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 15722 def tag_container_template_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.tag_container_template ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_container_template" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_container_template, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_container_template" end # resource path local_var_path = '/container_templates/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] || 'Array<Tag>' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#tag_container_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Tag
a Ipaddress
Tags a Ipaddress
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<Tag>]
# File lib/topological_inventory-api-client/api/default_api.rb, line 15786 def tag_ipaddress(id, tag, opts = {}) data, _status_code, _headers = tag_ipaddress_with_http_info(id, tag, opts) data end
Tag
a Ipaddress
Tags a Ipaddress
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<(Array<Tag>, Integer, Hash)>] Array<Tag> data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 15797 def tag_ipaddress_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.tag_ipaddress ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_ipaddress" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_ipaddress, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_ipaddress" end # resource path local_var_path = '/ipaddresses/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] || 'Array<Tag>' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#tag_ipaddress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Tag
a Network
Tags a Network
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<Tag>]
# File lib/topological_inventory-api-client/api/default_api.rb, line 15861 def tag_network(id, tag, opts = {}) data, _status_code, _headers = tag_network_with_http_info(id, tag, opts) data end
Tag
a NetworkAdapter
Tags a NetworkAdapter
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<Tag>]
# File lib/topological_inventory-api-client/api/default_api.rb, line 15936 def tag_network_adapter(id, tag, opts = {}) data, _status_code, _headers = tag_network_adapter_with_http_info(id, tag, opts) data end
Tag
a NetworkAdapter
Tags a NetworkAdapter
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<(Array<Tag>, Integer, Hash)>] Array<Tag> data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 15947 def tag_network_adapter_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.tag_network_adapter ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_network_adapter" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_network_adapter, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_network_adapter" end # resource path local_var_path = '/network_adapters/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] || 'Array<Tag>' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#tag_network_adapter\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Tag
a Network
Tags a Network
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<(Array<Tag>, Integer, Hash)>] Array<Tag> data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 15872 def tag_network_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.tag_network ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_network" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_network, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_network" end # resource path local_var_path = '/networks/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] || 'Array<Tag>' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#tag_network\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Tag
a SecurityGroup
Tags a SecurityGroup
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<Tag>]
# File lib/topological_inventory-api-client/api/default_api.rb, line 16011 def tag_security_group(id, tag, opts = {}) data, _status_code, _headers = tag_security_group_with_http_info(id, tag, opts) data end
Tag
a SecurityGroup
Tags a SecurityGroup
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<(Array<Tag>, Integer, Hash)>] Array<Tag> data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 16022 def tag_security_group_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.tag_security_group ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_security_group" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_security_group, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_security_group" end # resource path local_var_path = '/security_groups/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] || 'Array<Tag>' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#tag_security_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Tag
a ServiceInventory
Tags a ServiceInventory
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<Tag>]
# File lib/topological_inventory-api-client/api/default_api.rb, line 16086 def tag_service_inventory(id, tag, opts = {}) data, _status_code, _headers = tag_service_inventory_with_http_info(id, tag, opts) data end
Tag
a ServiceInventory
Tags a ServiceInventory
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<(Array<Tag>, Integer, Hash)>] Array<Tag> data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 16097 def tag_service_inventory_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.tag_service_inventory ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_service_inventory" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_service_inventory, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_service_inventory" end # resource path local_var_path = '/service_inventories/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] || 'Array<Tag>' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#tag_service_inventory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Tag
a ServiceOffering
Tags a ServiceOffering
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<Tag>]
# File lib/topological_inventory-api-client/api/default_api.rb, line 16161 def tag_service_offering(id, tag, opts = {}) data, _status_code, _headers = tag_service_offering_with_http_info(id, tag, opts) data end
Tag
a ServiceOffering
Tags a ServiceOffering
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<(Array<Tag>, Integer, Hash)>] Array<Tag> data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 16172 def tag_service_offering_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.tag_service_offering ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_service_offering" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_service_offering, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_service_offering" end # resource path local_var_path = '/service_offerings/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] || 'Array<Tag>' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#tag_service_offering\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Tag
a Subnet
Tags a Subnet
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<Tag>]
# File lib/topological_inventory-api-client/api/default_api.rb, line 16236 def tag_subnet(id, tag, opts = {}) data, _status_code, _headers = tag_subnet_with_http_info(id, tag, opts) data end
Tag
a Subnet
Tags a Subnet
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<(Array<Tag>, Integer, Hash)>] Array<Tag> data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 16247 def tag_subnet_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.tag_subnet ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_subnet" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_subnet, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_subnet" end # resource path local_var_path = '/subnets/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] || 'Array<Tag>' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#tag_subnet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Tag
a Vm
Tags a Vm
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<Tag>]
# File lib/topological_inventory-api-client/api/default_api.rb, line 16311 def tag_vm(id, tag, opts = {}) data, _status_code, _headers = tag_vm_with_http_info(id, tag, opts) data end
Tag
a Vm
Tags a Vm
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to add @param [Hash] opts the optional parameters @return [Array<(Array<Tag>, Integer, Hash)>] Array<Tag> data, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 16322 def tag_vm_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.tag_vm ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.tag_vm" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.tag_vm, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.tag_vm" end # resource path local_var_path = '/vms/{id}/tag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] || 'Array<Tag>' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#tag_vm\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Untag a ContainerGroup
Untags a ContainerGroup
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [nil]
# File lib/topological_inventory-api-client/api/default_api.rb, line 16386 def untag_container_group(id, tag, opts = {}) untag_container_group_with_http_info(id, tag, opts) nil end
Untag a ContainerGroup
Untags a ContainerGroup
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 16397 def untag_container_group_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.untag_container_group ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_container_group" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_container_group, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_container_group" end # resource path local_var_path = '/container_groups/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#untag_container_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Untag a ContainerImage
Untags a ContainerImage
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [nil]
# File lib/topological_inventory-api-client/api/default_api.rb, line 16459 def untag_container_image(id, tag, opts = {}) untag_container_image_with_http_info(id, tag, opts) nil end
Untag a ContainerImage
Untags a ContainerImage
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 16470 def untag_container_image_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.untag_container_image ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_container_image" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_container_image, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_container_image" end # resource path local_var_path = '/container_images/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#untag_container_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Untag a ContainerNode
Untags a ContainerNode
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [nil]
# File lib/topological_inventory-api-client/api/default_api.rb, line 16532 def untag_container_node(id, tag, opts = {}) untag_container_node_with_http_info(id, tag, opts) nil end
Untag a ContainerNode
Untags a ContainerNode
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 16543 def untag_container_node_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.untag_container_node ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_container_node" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_container_node, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_container_node" end # resource path local_var_path = '/container_nodes/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#untag_container_node\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Untag a ContainerProject
Untags a ContainerProject
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [nil]
# File lib/topological_inventory-api-client/api/default_api.rb, line 16605 def untag_container_project(id, tag, opts = {}) untag_container_project_with_http_info(id, tag, opts) nil end
Untag a ContainerProject
Untags a ContainerProject
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 16616 def untag_container_project_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.untag_container_project ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_container_project" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_container_project, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_container_project" end # resource path local_var_path = '/container_projects/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#untag_container_project\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Untag a ContainerTemplate
Untags a ContainerTemplate
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [nil]
# File lib/topological_inventory-api-client/api/default_api.rb, line 16678 def untag_container_template(id, tag, opts = {}) untag_container_template_with_http_info(id, tag, opts) nil end
Untag a ContainerTemplate
Untags a ContainerTemplate
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 16689 def untag_container_template_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.untag_container_template ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_container_template" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_container_template, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_container_template" end # resource path local_var_path = '/container_templates/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#untag_container_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Untag a Ipaddress
Untags a Ipaddress
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [nil]
# File lib/topological_inventory-api-client/api/default_api.rb, line 16751 def untag_ipaddress(id, tag, opts = {}) untag_ipaddress_with_http_info(id, tag, opts) nil end
Untag a Ipaddress
Untags a Ipaddress
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 16762 def untag_ipaddress_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.untag_ipaddress ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_ipaddress" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_ipaddress, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_ipaddress" end # resource path local_var_path = '/ipaddresses/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#untag_ipaddress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Untag a Network
Untags a Network
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [nil]
# File lib/topological_inventory-api-client/api/default_api.rb, line 16824 def untag_network(id, tag, opts = {}) untag_network_with_http_info(id, tag, opts) nil end
Untag a NetworkAdapter
Untags a NetworkAdapter
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [nil]
# File lib/topological_inventory-api-client/api/default_api.rb, line 16897 def untag_network_adapter(id, tag, opts = {}) untag_network_adapter_with_http_info(id, tag, opts) nil end
Untag a NetworkAdapter
Untags a NetworkAdapter
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 16908 def untag_network_adapter_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.untag_network_adapter ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_network_adapter" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_network_adapter, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_network_adapter" end # resource path local_var_path = '/network_adapters/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#untag_network_adapter\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Untag a Network
Untags a Network
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 16835 def untag_network_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.untag_network ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_network" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_network, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_network" end # resource path local_var_path = '/networks/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#untag_network\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Untag a SecurityGroup
Untags a SecurityGroup
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [nil]
# File lib/topological_inventory-api-client/api/default_api.rb, line 16970 def untag_security_group(id, tag, opts = {}) untag_security_group_with_http_info(id, tag, opts) nil end
Untag a SecurityGroup
Untags a SecurityGroup
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 16981 def untag_security_group_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.untag_security_group ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_security_group" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_security_group, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_security_group" end # resource path local_var_path = '/security_groups/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#untag_security_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Untag a ServiceInventory
Untags a ServiceInventory
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [nil]
# File lib/topological_inventory-api-client/api/default_api.rb, line 17043 def untag_service_inventory(id, tag, opts = {}) untag_service_inventory_with_http_info(id, tag, opts) nil end
Untag a ServiceInventory
Untags a ServiceInventory
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 17054 def untag_service_inventory_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.untag_service_inventory ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_service_inventory" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_service_inventory, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_service_inventory" end # resource path local_var_path = '/service_inventories/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#untag_service_inventory\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Untag a ServiceOffering
Untags a ServiceOffering
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [nil]
# File lib/topological_inventory-api-client/api/default_api.rb, line 17116 def untag_service_offering(id, tag, opts = {}) untag_service_offering_with_http_info(id, tag, opts) nil end
Untag a ServiceOffering
Untags a ServiceOffering
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 17127 def untag_service_offering_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.untag_service_offering ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_service_offering" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_service_offering, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_service_offering" end # resource path local_var_path = '/service_offerings/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#untag_service_offering\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Untag a Subnet
Untags a Subnet
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [nil]
# File lib/topological_inventory-api-client/api/default_api.rb, line 17189 def untag_subnet(id, tag, opts = {}) untag_subnet_with_http_info(id, tag, opts) nil end
Untag a Subnet
Untags a Subnet
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 17200 def untag_subnet_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.untag_subnet ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_subnet" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_subnet, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_subnet" end # resource path local_var_path = '/subnets/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#untag_subnet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Untag a Vm
Untags a Vm
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [nil]
# File lib/topological_inventory-api-client/api/default_api.rb, line 17262 def untag_vm(id, tag, opts = {}) untag_vm_with_http_info(id, tag, opts) nil end
Untag a Vm
Untags a Vm
object @param id [String] ID of the resource @param tag [Array<Tag>] Tag
attributes to removed @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 17273 def untag_vm_with_http_info(id, tag, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.untag_vm ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.untag_vm" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.untag_vm, must conform to the pattern #{pattern}." end # verify the required parameter 'tag' is set if @api_client.config.client_side_validation && tag.nil? fail ArgumentError, "Missing the required parameter 'tag' when calling DefaultApi.untag_vm" end # resource path local_var_path = '/vms/{id}/untag'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(tag) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#untag_vm\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Update an existing Task
Updates a Task
object @param id [String] ID of the resource @param task [Task] Task
attributes to update @param [Hash] opts the optional parameters @return [nil]
# File lib/topological_inventory-api-client/api/default_api.rb, line 17335 def update_task(id, task, opts = {}) update_task_with_http_info(id, task, opts) nil end
Update an existing Task
Updates a Task
object @param id [String] ID of the resource @param task [Task] Task
attributes to update @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/topological_inventory-api-client/api/default_api.rb, line 17346 def update_task_with_http_info(id, task, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_task ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_task" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.update_task, must conform to the pattern #{pattern}." end # verify the required parameter 'task' is set if @api_client.config.client_side_validation && task.nil? fail ArgumentError, "Missing the required parameter 'task' when calling DefaultApi.update_task" end # resource path local_var_path = '/tasks/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(task) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#update_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end