Sha256: 40fbc3a02a2e5cf0b18d2a6edb5c644205beeadff7be3014e38eec104ccd8d34

Contents?: true

Size: 1.5 KB

Versions: 11

Compression:

Stored size: 1.5 KB

Contents

### WARNING: This file is auto-generated by our OpenAPI spec. Do not
### edit it manually.

require_relative '../../resource_includes/response_helper'

module Asana
  module Resources
    class BatchAPIBase < Resource

      def self.inherited(base)
        Registry.register(base)
      end

      class << self
        # Submit parallel requests
        #

        # options - [Hash] the request I/O options
        # > opt_fields - [list[str]]  Defines fields to return. Some requests return *compact* representations of objects in order to conserve resources and complete the request more efficiently. Other times requests return more information than you may need. This option allows you to list the exact set of fields that the API should be sure to return for the objects. The field names should be provided as paths, described below. The id of included objects will always be returned, regardless of the field options.
        # > opt_pretty - [bool]  Provides “pretty” output. Provides the response in a “pretty” format. In the case of JSON this means doing proper line breaking and indentation to make it readable. This will take extra time and increase the response size so it is advisable only to use this during debugging.
        # data - [Hash] the attributes to POST
        def create_batch_request(client, options: {}, **data)
          path = "/batch"
          Collection.new(parse(client.post(path, body: data, options: options)), type: Resource, client: client)
        end

      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
asana-2.0.3 lib/asana/resources/gen/batch_api_base.rb
asana-2.0.2 lib/asana/resources/gen/batch_api_base.rb
asana-2.0.1 lib/asana/resources/gen/batch_api_base.rb
asana-2.0.0 lib/asana/resources/gen/batch_api_base.rb
asana-1.0.0 lib/asana/resources/gen/batch_api_base.rb
asana-0.10.13 lib/asana/resources/gen/batch_api_base.rb
asana-0.10.12 lib/asana/resources/gen/batch_api_base.rb
asana-0.10.3 lib/asana/resources/gen/batch_api_base.rb
asana-0.10.2 lib/asana/resources/gen/batch_api_base.rb
asana-0.10.1 lib/asana/resources/gen/batch_api_base.rb
asana-0.10.0 lib/asana/resources/gen/batch_api_base.rb