src/vsphere_cpi/lib/nsxt/nsxt_client/api/fabric_api.rb
def list_compute_collections_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug "Calling API: FabricApi.list_compute_collections ..."
      end
      if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
        fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FabricApi.list_compute_collections, must be smaller than or equal to 1000.'
      end

      if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
        fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FabricApi.list_compute_collections, must be greater than or equal to 0.'
      end

      # resource path
      local_var_path = "/fabric/compute-collections"

      # query parameters
      query_params = {}
      query_params[:'cm_local_id'] = opts[:'cm_local_id'] if !opts[:'cm_local_id'].nil?
      query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
      query_params[:'discovered_node_id'] = opts[:'discovered_node_id'] if !opts[:'discovered_node_id'].nil?
      query_params[:'display_name'] = opts[:'display_name'] if !opts[:'display_name'].nil?
      query_params[:'external_id'] = opts[:'external_id'] if !opts[:'external_id'].nil?
      query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
      query_params[:'node_id'] = opts[:'node_id'] if !opts[:'node_id'].nil?
      query_params[:'origin_id'] = opts[:'origin_id'] if !opts[:'origin_id'].nil?
      query_params[:'origin_type'] = opts[:'origin_type'] if !opts[:'origin_type'].nil?
      query_params[:'owner_id'] = opts[:'owner_id'] if !opts[:'owner_id'].nil?
      query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
      query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
      query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?

      # header parameters
      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 = {}

      # http body (model)
      post_body = nil
      auth_names = ['BasicAuth']
      data, status_code, headers = @api_client.call_api(:GET, local_var_path,
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => 'ComputeCollectionListResult')
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: FabricApi#list_compute_collections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
# Return the List of Compute Collections
# Returns information about all compute collections.
# @param [Hash] opts the optional parameters
# @option opts [String] :cm_local_id Local Id of the compute collection in the Compute Manager
# @option opts [String] :cursor Opaque cursor to be used for getting next page of records (supplied by current result page)
# @option opts [String] :discovered_node_id Id of the discovered node which belongs to this Compute Collection 
# @option opts [String] :display_name Name of the ComputeCollection in source compute manager
# @option opts [String] :external_id External ID of the ComputeCollection in the source Compute manager, e.g. mo-ref in VC 
# @option opts [String] :included_fields Comma separated list of fields that should be included in query result
# @option opts [String] :node_id Id of the fabric node created from a discovered node belonging to this Compute Collection 
# @option opts [String] :origin_id Id of the compute manager from where this Compute Collection was discovered
# @option opts [String] :origin_type ComputeCollection type like VC_Cluster. Here the Compute Manager type prefix would help in differentiating similar named Compute Collection types from different Compute Managers 
# @option opts [String] :owner_id Id of the owner of compute collection in the Compute Manager
# @option opts [Integer] :page_size Maximum number of results to return in this page (server may return fewer)
# @option opts [BOOLEAN] :sort_ascending 
# @option opts [String] :sort_by Field by which records are sorted
# @return [Array<(ComputeCollectionListResult, Fixnum, Hash)>] ComputeCollectionListResult data, response status code and response headers
Return the List of Compute Collections
Returns information about all compute collections.
Return the List of Compute Collections Returns information about all compute collections .
def list_compute_collections_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug "Calling API: FabricApi.list_compute_collections ..."
      end
      if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 1000
        fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FabricApi.list_compute_collections, must be smaller than or equal to 1000.'
      end
      if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 0
        fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling FabricApi.list_compute_collections, must be greater than or equal to 0.'
      end
      local_var_path = "/fabric/compute-collections"
      query_params = {}
      query_params[:'cm_local_id'] = opts[:'cm_local_id'] if !opts[:'cm_local_id'].nil?
      query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
      query_params[:'discovered_node_id'] = opts[:'discovered_node_id'] if !opts[:'discovered_node_id'].nil?
      query_params[:'display_name'] = opts[:'display_name'] if !opts[:'display_name'].nil?
      query_params[:'external_id'] = opts[:'external_id'] if !opts[:'external_id'].nil?
      query_params[:'included_fields'] = opts[:'included_fields'] if !opts[:'included_fields'].nil?
      query_params[:'node_id'] = opts[:'node_id'] if !opts[:'node_id'].nil?
      query_params[:'origin_id'] = opts[:'origin_id'] if !opts[:'origin_id'].nil?
      query_params[:'origin_type'] = opts[:'origin_type'] if !opts[:'origin_type'].nil?
      query_params[:'owner_id'] = opts[:'owner_id'] if !opts[:'owner_id'].nil?
      query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
      query_params[:'sort_ascending'] = opts[:'sort_ascending'] if !opts[:'sort_ascending'].nil?
      query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
      header_params = {}
      header_params['Accept'] = @api_client.select_header_accept(['application/json'])
      header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
      form_params = {}
      post_body = nil
      auth_names = ['BasicAuth']
      data, status_code, headers = @api_client.call_api(:GET, local_var_path,
        :header_params => header_params,
        :query_params => query_params,
        :form_params => form_params,
        :body => post_body,
        :auth_names => auth_names,
        :return_type => 'ComputeCollectionListResult')
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: FabricApi#list_compute_collections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def list_compute_collections_with_http_info ( opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug "Calling API: FabricApi.list_compute_collections ..." end if @api_client . config . client_side_validation && ! opts [ :' page_size ' ] . nil? && opts [ :' page_size ' ] > 1000 fail ArgumentError , 'invalid value for "opts[:"page_size"]" when calling FabricApi.list_compute_collections, must be smaller than or equal to 1000.' end if @api_client . config . client_side_validation && ! opts [ :' page_size ' ] . nil? && opts [ :' page_size ' ] < 0 fail ArgumentError , 'invalid value for "opts[:"page_size"]" when calling FabricApi.list_compute_collections, must be greater than or equal to 0.' end local_var_path = "/fabric/compute-collections" query_params = { } query_params [ :' cm_local_id ' ] = opts [ :' cm_local_id ' ] if ! opts [ :' cm_local_id ' ] . nil? query_params [ :' cursor ' ] = opts [ :' cursor ' ] if ! opts [ :' cursor ' ] . nil? query_params [ :' discovered_node_id ' ] = opts [ :' discovered_node_id ' ] if ! opts [ :' discovered_node_id ' ] . nil? query_params [ :' display_name ' ] = opts [ :' display_name ' ] if ! opts [ :' display_name ' ] . nil? query_params [ :' external_id ' ] = opts [ :' external_id ' ] if ! opts [ :' external_id ' ] . nil? query_params [ :' included_fields ' ] = opts [ :' included_fields ' ] if ! opts [ :' included_fields ' ] . nil? query_params [ :' node_id ' ] = opts [ :' node_id ' ] if ! opts [ :' node_id ' ] . nil? query_params [ :' origin_id ' ] = opts [ :' origin_id ' ] if ! opts [ :' origin_id ' ] . nil? query_params [ :' origin_type ' ] = opts [ :' origin_type ' ] if ! opts [ :' origin_type ' ] . nil? query_params [ :' owner_id ' ] = opts [ :' owner_id ' ] if ! opts [ :' owner_id ' ] . nil? query_params [ :' page_size ' ] = opts [ :' page_size ' ] if ! opts [ :' page_size ' ] . nil? query_params [ :' sort_ascending ' ] = opts [ :' sort_ascending ' ] if ! opts [ :' sort_ascending ' ] . nil? query_params [ :' sort_by ' ] = opts [ :' sort_by ' ] if ! opts [ :' sort_by ' ] . nil? header_params = { } header_params [ 'Accept' ] = @api_client . select_header_accept ( [ 'application/json' ] ) header_params [ 'Content-Type' ] = @api_client . select_header_content_type ( [ 'application/json' ] ) form_params = { } post_body = nil auth_names = [ 'BasicAuth' ] data , status_code , headers = @api_client . call_api ( :GET , local_var_path , :header_params => header_params , :query_params => query_params , :form_params => form_params , :body => post_body , :auth_names => auth_names , :return_type => 'ComputeCollectionListResult' ) if @api_client . config . debugging @api_client . config . logger . debug "API called: FabricApi#list_compute_collections\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Return the List of Compute Collections
Returns information about all compute collections.
Return the List of Compute Collections Returns information about all compute collections .
# resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # HTTP header 'Content-Type' # form parameters # http body (model)
ComputeCollectionListResult data, response status code and response headers
ComputeCollectionListResult data response status code and response headers
Array<(ComputeCollectionListResult, Fixnum, Hash)>
opts
:sort_by Field by which records are sorted
: sort_by Field by which records are sorted
opts the optional parameters
opts the optional parameters