Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchRequest ¶
type BatchRequest interface {
AddRequest(internal.RequestInformation, bool) error
}
func NewBatchRequest ¶
func NewBatchRequest(client core.Client2) BatchRequest
type BatchRequestBuilder ¶
type BatchRequestBuilder struct {
internal.RequestBuilder
}
BatchRequestBuilder constructs batch requests for the specified base URL.
func NewBatchRequestBuilder ¶
func NewBatchRequestBuilder(client core.Client, pathParameters map[string]string) *BatchRequestBuilder
NewBatchRequestBuilder creates a new BatchRequestBuilder. It takes a client (core.Client) and pathParameters (map[string]string).
func (*BatchRequestBuilder) Post ¶
func (rB *BatchRequestBuilder) Post(request BatchRequest) (BatchResponse, error)
Post sends a batch request and returns the BatchResponse.
type BatchRequestItem ¶
type BatchRequestItem interface { GetID() *string SetID(value *string) GetMethod() *string SetMethod(value *string) GetURL() *string SetURL(value *string) GetHeaders() core.RequestHeader SetHeaders(value core.RequestHeader) GetBody() internal.RequestBody SetBody(value internal.RequestBody) GetExcludeResponseHeaders() bool SetExcludeResponseHeaders(bool) }
func NewBatchItem ¶
func NewBatchItem(excludeResponseHeaders bool) BatchRequestItem
NewBatchItem creates an instance of BatchItem
type BatchResponse ¶
type BatchResponse interface { GetID() *string GetResponses() []BatchResponseItem[any] GetResponse(id string) BatchResponseItem[any] }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.