flip/lib/telestream_cloud_flip/api/flip_api.rb
# Returns a collection of Factory objects.
# Returns a collection of Factory objects.
# @param [Hash] opts the optional parameters
# @option opts [Integer] :page A page to be fetched. Default is &#x60;1&#x60;.
# @option opts [Integer] :per_page A number of results per page. Default is &#x60;100&#x60;.
# @option opts [BOOLEAN] :with_storage_provider if set to &#x60;true&#x60;, results will include a storage provider&#39;s id
# @return [Array<(PaginatedFactoryCollection, Fixnum, Hash)>] PaginatedFactoryCollection data, response status code and response headers
Returns a collection of Factory objects.
Returns a collection of Factory objects.
Returns a collection of Factory objects . Returns a collection of Factory objects .
def factories_with_http_info(opts = {})
      if @api_client.config.debugging
        @api_client.config.logger.debug "Calling API: FlipApi.factories ..."
      end
      local_var_path = "/factories.json"
      query_params = {}
      query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
      query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
      query_params[:'with_storage_provider'] = opts[:'with_storage_provider'] if !opts[:'with_storage_provider'].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 = ['api_key']
      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 => 'PaginatedFactoryCollection')
      if @api_client.config.debugging
        @api_client.config.logger.debug "API called: FlipApi#factories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
      end
      return data, status_code, headers
    end
def factories_with_http_info ( opts = { } ) if @api_client . config . debugging @api_client . config . logger . debug "Calling API: FlipApi.factories ..." end local_var_path = "/factories.json" query_params = { } query_params [ :' page ' ] = opts [ :' page ' ] if ! opts [ :' page ' ] . nil? query_params [ :' per_page ' ] = opts [ :' per_page ' ] if ! opts [ :' per_page ' ] . nil? query_params [ :' with_storage_provider ' ] = opts [ :' with_storage_provider ' ] if ! opts [ :' with_storage_provider ' ] . 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 = [ 'api_key' ] 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 => 'PaginatedFactoryCollection' ) if @api_client . config . debugging @api_client . config . logger . debug "API called: FlipApi#factories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data , status_code , headers end
Returns a collection of Factory objects.
Returns a collection of Factory objects .
# resource path # query parameters # header parameters # HTTP header 'Accept' (if needed) # HTTP header 'Content-Type' # form parameters # http body (model)
PaginatedFactoryCollection data, response status code and response headers
PaginatedFactoryCollection data response status code and response headers
Array<(PaginatedFactoryCollection, Fixnum, Hash)>
opts
:with_storage_provider if set to `true`, results will include a storage provider's id
: with_storage_provider if set to ` true ` results will include a storage provider ' s id
opts the optional parameters
opts the optional parameters