Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type CreateUploadDestinationForResourceBadRequest
- func (o *CreateUploadDestinationForResourceBadRequest) Error() string
- func (o *CreateUploadDestinationForResourceBadRequest) GetPayload() *uploads_2020_11_01_models.CreateUploadDestinationResponse
- func (o *CreateUploadDestinationForResourceBadRequest) IsClientError() bool
- func (o *CreateUploadDestinationForResourceBadRequest) IsCode(code int) bool
- func (o *CreateUploadDestinationForResourceBadRequest) IsRedirect() bool
- func (o *CreateUploadDestinationForResourceBadRequest) IsServerError() bool
- func (o *CreateUploadDestinationForResourceBadRequest) IsSuccess() bool
- func (o *CreateUploadDestinationForResourceBadRequest) String() string
- type CreateUploadDestinationForResourceCreated
- func (o *CreateUploadDestinationForResourceCreated) Error() string
- func (o *CreateUploadDestinationForResourceCreated) GetPayload() *uploads_2020_11_01_models.CreateUploadDestinationResponse
- func (o *CreateUploadDestinationForResourceCreated) IsClientError() bool
- func (o *CreateUploadDestinationForResourceCreated) IsCode(code int) bool
- func (o *CreateUploadDestinationForResourceCreated) IsRedirect() bool
- func (o *CreateUploadDestinationForResourceCreated) IsServerError() bool
- func (o *CreateUploadDestinationForResourceCreated) IsSuccess() bool
- func (o *CreateUploadDestinationForResourceCreated) String() string
- type CreateUploadDestinationForResourceForbidden
- func (o *CreateUploadDestinationForResourceForbidden) Error() string
- func (o *CreateUploadDestinationForResourceForbidden) GetPayload() *uploads_2020_11_01_models.CreateUploadDestinationResponse
- func (o *CreateUploadDestinationForResourceForbidden) IsClientError() bool
- func (o *CreateUploadDestinationForResourceForbidden) IsCode(code int) bool
- func (o *CreateUploadDestinationForResourceForbidden) IsRedirect() bool
- func (o *CreateUploadDestinationForResourceForbidden) IsServerError() bool
- func (o *CreateUploadDestinationForResourceForbidden) IsSuccess() bool
- func (o *CreateUploadDestinationForResourceForbidden) String() string
- type CreateUploadDestinationForResourceInternalServerError
- func (o *CreateUploadDestinationForResourceInternalServerError) Error() string
- func (o *CreateUploadDestinationForResourceInternalServerError) GetPayload() *uploads_2020_11_01_models.CreateUploadDestinationResponse
- func (o *CreateUploadDestinationForResourceInternalServerError) IsClientError() bool
- func (o *CreateUploadDestinationForResourceInternalServerError) IsCode(code int) bool
- func (o *CreateUploadDestinationForResourceInternalServerError) IsRedirect() bool
- func (o *CreateUploadDestinationForResourceInternalServerError) IsServerError() bool
- func (o *CreateUploadDestinationForResourceInternalServerError) IsSuccess() bool
- func (o *CreateUploadDestinationForResourceInternalServerError) String() string
- type CreateUploadDestinationForResourceNotFound
- func (o *CreateUploadDestinationForResourceNotFound) Error() string
- func (o *CreateUploadDestinationForResourceNotFound) GetPayload() *uploads_2020_11_01_models.CreateUploadDestinationResponse
- func (o *CreateUploadDestinationForResourceNotFound) IsClientError() bool
- func (o *CreateUploadDestinationForResourceNotFound) IsCode(code int) bool
- func (o *CreateUploadDestinationForResourceNotFound) IsRedirect() bool
- func (o *CreateUploadDestinationForResourceNotFound) IsServerError() bool
- func (o *CreateUploadDestinationForResourceNotFound) IsSuccess() bool
- func (o *CreateUploadDestinationForResourceNotFound) String() string
- type CreateUploadDestinationForResourceParams
- func NewCreateUploadDestinationForResourceParams() *CreateUploadDestinationForResourceParams
- func NewCreateUploadDestinationForResourceParamsWithContext(ctx context.Context) *CreateUploadDestinationForResourceParams
- func NewCreateUploadDestinationForResourceParamsWithHTTPClient(client *http.Client) *CreateUploadDestinationForResourceParams
- func NewCreateUploadDestinationForResourceParamsWithTimeout(timeout time.Duration) *CreateUploadDestinationForResourceParams
- func (o *CreateUploadDestinationForResourceParams) SetContentMD5(contentMD5 string)
- func (o *CreateUploadDestinationForResourceParams) SetContentType(contentType *string)
- func (o *CreateUploadDestinationForResourceParams) SetContext(ctx context.Context)
- func (o *CreateUploadDestinationForResourceParams) SetDefaults()
- func (o *CreateUploadDestinationForResourceParams) SetHTTPClient(client *http.Client)
- func (o *CreateUploadDestinationForResourceParams) SetMarketplaceIds(marketplaceIds []string)
- func (o *CreateUploadDestinationForResourceParams) SetResource(resource string)
- func (o *CreateUploadDestinationForResourceParams) SetTimeout(timeout time.Duration)
- func (o *CreateUploadDestinationForResourceParams) WithContentMD5(contentMD5 string) *CreateUploadDestinationForResourceParams
- func (o *CreateUploadDestinationForResourceParams) WithContentType(contentType *string) *CreateUploadDestinationForResourceParams
- func (o *CreateUploadDestinationForResourceParams) WithContext(ctx context.Context) *CreateUploadDestinationForResourceParams
- func (o *CreateUploadDestinationForResourceParams) WithDefaults() *CreateUploadDestinationForResourceParams
- func (o *CreateUploadDestinationForResourceParams) WithHTTPClient(client *http.Client) *CreateUploadDestinationForResourceParams
- func (o *CreateUploadDestinationForResourceParams) WithMarketplaceIds(marketplaceIds []string) *CreateUploadDestinationForResourceParams
- func (o *CreateUploadDestinationForResourceParams) WithResource(resource string) *CreateUploadDestinationForResourceParams
- func (o *CreateUploadDestinationForResourceParams) WithTimeout(timeout time.Duration) *CreateUploadDestinationForResourceParams
- func (o *CreateUploadDestinationForResourceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateUploadDestinationForResourceReader
- type CreateUploadDestinationForResourceRequestEntityTooLarge
- func (o *CreateUploadDestinationForResourceRequestEntityTooLarge) Error() string
- func (o *CreateUploadDestinationForResourceRequestEntityTooLarge) GetPayload() *uploads_2020_11_01_models.CreateUploadDestinationResponse
- func (o *CreateUploadDestinationForResourceRequestEntityTooLarge) IsClientError() bool
- func (o *CreateUploadDestinationForResourceRequestEntityTooLarge) IsCode(code int) bool
- func (o *CreateUploadDestinationForResourceRequestEntityTooLarge) IsRedirect() bool
- func (o *CreateUploadDestinationForResourceRequestEntityTooLarge) IsServerError() bool
- func (o *CreateUploadDestinationForResourceRequestEntityTooLarge) IsSuccess() bool
- func (o *CreateUploadDestinationForResourceRequestEntityTooLarge) String() string
- type CreateUploadDestinationForResourceServiceUnavailable
- func (o *CreateUploadDestinationForResourceServiceUnavailable) Error() string
- func (o *CreateUploadDestinationForResourceServiceUnavailable) GetPayload() *uploads_2020_11_01_models.CreateUploadDestinationResponse
- func (o *CreateUploadDestinationForResourceServiceUnavailable) IsClientError() bool
- func (o *CreateUploadDestinationForResourceServiceUnavailable) IsCode(code int) bool
- func (o *CreateUploadDestinationForResourceServiceUnavailable) IsRedirect() bool
- func (o *CreateUploadDestinationForResourceServiceUnavailable) IsServerError() bool
- func (o *CreateUploadDestinationForResourceServiceUnavailable) IsSuccess() bool
- func (o *CreateUploadDestinationForResourceServiceUnavailable) String() string
- type CreateUploadDestinationForResourceTooManyRequests
- func (o *CreateUploadDestinationForResourceTooManyRequests) Error() string
- func (o *CreateUploadDestinationForResourceTooManyRequests) GetPayload() *uploads_2020_11_01_models.CreateUploadDestinationResponse
- func (o *CreateUploadDestinationForResourceTooManyRequests) IsClientError() bool
- func (o *CreateUploadDestinationForResourceTooManyRequests) IsCode(code int) bool
- func (o *CreateUploadDestinationForResourceTooManyRequests) IsRedirect() bool
- func (o *CreateUploadDestinationForResourceTooManyRequests) IsServerError() bool
- func (o *CreateUploadDestinationForResourceTooManyRequests) IsSuccess() bool
- func (o *CreateUploadDestinationForResourceTooManyRequests) String() string
- type CreateUploadDestinationForResourceUnsupportedMediaType
- func (o *CreateUploadDestinationForResourceUnsupportedMediaType) Error() string
- func (o *CreateUploadDestinationForResourceUnsupportedMediaType) GetPayload() *uploads_2020_11_01_models.CreateUploadDestinationResponse
- func (o *CreateUploadDestinationForResourceUnsupportedMediaType) IsClientError() bool
- func (o *CreateUploadDestinationForResourceUnsupportedMediaType) IsCode(code int) bool
- func (o *CreateUploadDestinationForResourceUnsupportedMediaType) IsRedirect() bool
- func (o *CreateUploadDestinationForResourceUnsupportedMediaType) IsServerError() bool
- func (o *CreateUploadDestinationForResourceUnsupportedMediaType) IsSuccess() bool
- func (o *CreateUploadDestinationForResourceUnsupportedMediaType) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for uploads API
func (*Client) CreateUploadDestinationForResource ¶
func (a *Client) CreateUploadDestinationForResource(params *CreateUploadDestinationForResourceParams, opts ...ClientOption) (*CreateUploadDestinationForResourceCreated, error)
CreateUploadDestinationForResource Creates an upload destination, returning the information required to upload a file to the destination and to programmatically access the file.
**Usage Plan:**
| Rate (requests per second) | Burst | | ---- | ---- | | 10 | 10 |
The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The table above indicates the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may see higher rate and burst values than those shown here. For more information, see [Usage Plans and Rate Limits in the Selling Partner API](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits-in-the-sp-api).
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateUploadDestinationForResource(params *CreateUploadDestinationForResourceParams, opts ...ClientOption) (*CreateUploadDestinationForResourceCreated, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new uploads API client.
type CreateUploadDestinationForResourceBadRequest ¶
type CreateUploadDestinationForResourceBadRequest struct { /* Your rate limit (requests per second) for this operation. */ XAmznRateLimitLimit string /* Unique request reference identifier. */ XAmznRequestID string Payload *uploads_2020_11_01_models.CreateUploadDestinationResponse }
CreateUploadDestinationForResourceBadRequest describes a response with status code 400, with default header values.
Request has missing or invalid parameters and cannot be parsed.
func NewCreateUploadDestinationForResourceBadRequest ¶
func NewCreateUploadDestinationForResourceBadRequest() *CreateUploadDestinationForResourceBadRequest
NewCreateUploadDestinationForResourceBadRequest creates a CreateUploadDestinationForResourceBadRequest with default headers values
func (*CreateUploadDestinationForResourceBadRequest) Error ¶
func (o *CreateUploadDestinationForResourceBadRequest) Error() string
func (*CreateUploadDestinationForResourceBadRequest) GetPayload ¶
func (o *CreateUploadDestinationForResourceBadRequest) GetPayload() *uploads_2020_11_01_models.CreateUploadDestinationResponse
func (*CreateUploadDestinationForResourceBadRequest) IsClientError ¶
func (o *CreateUploadDestinationForResourceBadRequest) IsClientError() bool
IsClientError returns true when this create upload destination for resource bad request response has a 4xx status code
func (*CreateUploadDestinationForResourceBadRequest) IsCode ¶
func (o *CreateUploadDestinationForResourceBadRequest) IsCode(code int) bool
IsCode returns true when this create upload destination for resource bad request response a status code equal to that given
func (*CreateUploadDestinationForResourceBadRequest) IsRedirect ¶
func (o *CreateUploadDestinationForResourceBadRequest) IsRedirect() bool
IsRedirect returns true when this create upload destination for resource bad request response has a 3xx status code
func (*CreateUploadDestinationForResourceBadRequest) IsServerError ¶
func (o *CreateUploadDestinationForResourceBadRequest) IsServerError() bool
IsServerError returns true when this create upload destination for resource bad request response has a 5xx status code
func (*CreateUploadDestinationForResourceBadRequest) IsSuccess ¶
func (o *CreateUploadDestinationForResourceBadRequest) IsSuccess() bool
IsSuccess returns true when this create upload destination for resource bad request response has a 2xx status code
func (*CreateUploadDestinationForResourceBadRequest) String ¶
func (o *CreateUploadDestinationForResourceBadRequest) String() string
type CreateUploadDestinationForResourceCreated ¶
type CreateUploadDestinationForResourceCreated struct { /* Your rate limit (requests per second) for this operation. */ XAmznRateLimitLimit string /* Unique request reference identifier. */ XAmznRequestID string Payload *uploads_2020_11_01_models.CreateUploadDestinationResponse }
CreateUploadDestinationForResourceCreated describes a response with status code 201, with default header values.
Success.
func NewCreateUploadDestinationForResourceCreated ¶
func NewCreateUploadDestinationForResourceCreated() *CreateUploadDestinationForResourceCreated
NewCreateUploadDestinationForResourceCreated creates a CreateUploadDestinationForResourceCreated with default headers values
func (*CreateUploadDestinationForResourceCreated) Error ¶
func (o *CreateUploadDestinationForResourceCreated) Error() string
func (*CreateUploadDestinationForResourceCreated) GetPayload ¶
func (o *CreateUploadDestinationForResourceCreated) GetPayload() *uploads_2020_11_01_models.CreateUploadDestinationResponse
func (*CreateUploadDestinationForResourceCreated) IsClientError ¶
func (o *CreateUploadDestinationForResourceCreated) IsClientError() bool
IsClientError returns true when this create upload destination for resource created response has a 4xx status code
func (*CreateUploadDestinationForResourceCreated) IsCode ¶
func (o *CreateUploadDestinationForResourceCreated) IsCode(code int) bool
IsCode returns true when this create upload destination for resource created response a status code equal to that given
func (*CreateUploadDestinationForResourceCreated) IsRedirect ¶
func (o *CreateUploadDestinationForResourceCreated) IsRedirect() bool
IsRedirect returns true when this create upload destination for resource created response has a 3xx status code
func (*CreateUploadDestinationForResourceCreated) IsServerError ¶
func (o *CreateUploadDestinationForResourceCreated) IsServerError() bool
IsServerError returns true when this create upload destination for resource created response has a 5xx status code
func (*CreateUploadDestinationForResourceCreated) IsSuccess ¶
func (o *CreateUploadDestinationForResourceCreated) IsSuccess() bool
IsSuccess returns true when this create upload destination for resource created response has a 2xx status code
func (*CreateUploadDestinationForResourceCreated) String ¶
func (o *CreateUploadDestinationForResourceCreated) String() string
type CreateUploadDestinationForResourceForbidden ¶
type CreateUploadDestinationForResourceForbidden struct { /* Unique request reference identifier. */ XAmznRequestID string Payload *uploads_2020_11_01_models.CreateUploadDestinationResponse }
CreateUploadDestinationForResourceForbidden describes a response with status code 403, with default header values.
Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.
func NewCreateUploadDestinationForResourceForbidden ¶
func NewCreateUploadDestinationForResourceForbidden() *CreateUploadDestinationForResourceForbidden
NewCreateUploadDestinationForResourceForbidden creates a CreateUploadDestinationForResourceForbidden with default headers values
func (*CreateUploadDestinationForResourceForbidden) Error ¶
func (o *CreateUploadDestinationForResourceForbidden) Error() string
func (*CreateUploadDestinationForResourceForbidden) GetPayload ¶
func (o *CreateUploadDestinationForResourceForbidden) GetPayload() *uploads_2020_11_01_models.CreateUploadDestinationResponse
func (*CreateUploadDestinationForResourceForbidden) IsClientError ¶
func (o *CreateUploadDestinationForResourceForbidden) IsClientError() bool
IsClientError returns true when this create upload destination for resource forbidden response has a 4xx status code
func (*CreateUploadDestinationForResourceForbidden) IsCode ¶
func (o *CreateUploadDestinationForResourceForbidden) IsCode(code int) bool
IsCode returns true when this create upload destination for resource forbidden response a status code equal to that given
func (*CreateUploadDestinationForResourceForbidden) IsRedirect ¶
func (o *CreateUploadDestinationForResourceForbidden) IsRedirect() bool
IsRedirect returns true when this create upload destination for resource forbidden response has a 3xx status code
func (*CreateUploadDestinationForResourceForbidden) IsServerError ¶
func (o *CreateUploadDestinationForResourceForbidden) IsServerError() bool
IsServerError returns true when this create upload destination for resource forbidden response has a 5xx status code
func (*CreateUploadDestinationForResourceForbidden) IsSuccess ¶
func (o *CreateUploadDestinationForResourceForbidden) IsSuccess() bool
IsSuccess returns true when this create upload destination for resource forbidden response has a 2xx status code
func (*CreateUploadDestinationForResourceForbidden) String ¶
func (o *CreateUploadDestinationForResourceForbidden) String() string
type CreateUploadDestinationForResourceInternalServerError ¶
type CreateUploadDestinationForResourceInternalServerError struct { /* Your rate limit (requests per second) for this operation. _Note:_ For this status code, the rate limit header is deprecated and no longer returned. */ XAmznRateLimitLimit string /* Unique request reference identifier. */ XAmznRequestID string Payload *uploads_2020_11_01_models.CreateUploadDestinationResponse }
CreateUploadDestinationForResourceInternalServerError describes a response with status code 500, with default header values.
An unexpected condition occurred that prevented the server from fulfilling the request.
func NewCreateUploadDestinationForResourceInternalServerError ¶
func NewCreateUploadDestinationForResourceInternalServerError() *CreateUploadDestinationForResourceInternalServerError
NewCreateUploadDestinationForResourceInternalServerError creates a CreateUploadDestinationForResourceInternalServerError with default headers values
func (*CreateUploadDestinationForResourceInternalServerError) Error ¶
func (o *CreateUploadDestinationForResourceInternalServerError) Error() string
func (*CreateUploadDestinationForResourceInternalServerError) GetPayload ¶
func (*CreateUploadDestinationForResourceInternalServerError) IsClientError ¶
func (o *CreateUploadDestinationForResourceInternalServerError) IsClientError() bool
IsClientError returns true when this create upload destination for resource internal server error response has a 4xx status code
func (*CreateUploadDestinationForResourceInternalServerError) IsCode ¶
func (o *CreateUploadDestinationForResourceInternalServerError) IsCode(code int) bool
IsCode returns true when this create upload destination for resource internal server error response a status code equal to that given
func (*CreateUploadDestinationForResourceInternalServerError) IsRedirect ¶
func (o *CreateUploadDestinationForResourceInternalServerError) IsRedirect() bool
IsRedirect returns true when this create upload destination for resource internal server error response has a 3xx status code
func (*CreateUploadDestinationForResourceInternalServerError) IsServerError ¶
func (o *CreateUploadDestinationForResourceInternalServerError) IsServerError() bool
IsServerError returns true when this create upload destination for resource internal server error response has a 5xx status code
func (*CreateUploadDestinationForResourceInternalServerError) IsSuccess ¶
func (o *CreateUploadDestinationForResourceInternalServerError) IsSuccess() bool
IsSuccess returns true when this create upload destination for resource internal server error response has a 2xx status code
func (*CreateUploadDestinationForResourceInternalServerError) String ¶
func (o *CreateUploadDestinationForResourceInternalServerError) String() string
type CreateUploadDestinationForResourceNotFound ¶
type CreateUploadDestinationForResourceNotFound struct { /* Your rate limit (requests per second) for this operation. */ XAmznRateLimitLimit string /* Unique request reference identifier. */ XAmznRequestID string Payload *uploads_2020_11_01_models.CreateUploadDestinationResponse }
CreateUploadDestinationForResourceNotFound describes a response with status code 404, with default header values.
The resource specified does not exist.
func NewCreateUploadDestinationForResourceNotFound ¶
func NewCreateUploadDestinationForResourceNotFound() *CreateUploadDestinationForResourceNotFound
NewCreateUploadDestinationForResourceNotFound creates a CreateUploadDestinationForResourceNotFound with default headers values
func (*CreateUploadDestinationForResourceNotFound) Error ¶
func (o *CreateUploadDestinationForResourceNotFound) Error() string
func (*CreateUploadDestinationForResourceNotFound) GetPayload ¶
func (o *CreateUploadDestinationForResourceNotFound) GetPayload() *uploads_2020_11_01_models.CreateUploadDestinationResponse
func (*CreateUploadDestinationForResourceNotFound) IsClientError ¶
func (o *CreateUploadDestinationForResourceNotFound) IsClientError() bool
IsClientError returns true when this create upload destination for resource not found response has a 4xx status code
func (*CreateUploadDestinationForResourceNotFound) IsCode ¶
func (o *CreateUploadDestinationForResourceNotFound) IsCode(code int) bool
IsCode returns true when this create upload destination for resource not found response a status code equal to that given
func (*CreateUploadDestinationForResourceNotFound) IsRedirect ¶
func (o *CreateUploadDestinationForResourceNotFound) IsRedirect() bool
IsRedirect returns true when this create upload destination for resource not found response has a 3xx status code
func (*CreateUploadDestinationForResourceNotFound) IsServerError ¶
func (o *CreateUploadDestinationForResourceNotFound) IsServerError() bool
IsServerError returns true when this create upload destination for resource not found response has a 5xx status code
func (*CreateUploadDestinationForResourceNotFound) IsSuccess ¶
func (o *CreateUploadDestinationForResourceNotFound) IsSuccess() bool
IsSuccess returns true when this create upload destination for resource not found response has a 2xx status code
func (*CreateUploadDestinationForResourceNotFound) String ¶
func (o *CreateUploadDestinationForResourceNotFound) String() string
type CreateUploadDestinationForResourceParams ¶
type CreateUploadDestinationForResourceParams struct { /* ContentMD5. An MD5 hash of the content to be submitted to the upload destination. This value is used to determine if the data has been corrupted or tampered with during transit. */ ContentMD5 string /* ContentType. The content type of the file to be uploaded. */ ContentType *string /* MarketplaceIds. A list of marketplace identifiers. This specifies the marketplaces where the upload will be available. Only one marketplace can be specified. */ MarketplaceIds []string /* Resource. The resource for the upload destination that you are creating. For example, if you are creating an upload destination for the createLegalDisclosure operation of the Messaging API, the `{resource}` would be `/messaging/v1/orders/{amazonOrderId}/messages/legalDisclosure`, and the entire path would be `/uploads/2020-11-01/uploadDestinations/messaging/v1/orders/{amazonOrderId}/messages/legalDisclosure`. If you are creating an upload destination for an Aplus content document, the `{resource}` would be `aplus/2020-11-01/contentDocuments` and the path would be `/uploads/v1/uploadDestinations/aplus/2020-11-01/contentDocuments`. */ Resource string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateUploadDestinationForResourceParams contains all the parameters to send to the API endpoint
for the create upload destination for resource operation. Typically these are written to a http.Request.
func NewCreateUploadDestinationForResourceParams ¶
func NewCreateUploadDestinationForResourceParams() *CreateUploadDestinationForResourceParams
NewCreateUploadDestinationForResourceParams creates a new CreateUploadDestinationForResourceParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewCreateUploadDestinationForResourceParamsWithContext ¶
func NewCreateUploadDestinationForResourceParamsWithContext(ctx context.Context) *CreateUploadDestinationForResourceParams
NewCreateUploadDestinationForResourceParamsWithContext creates a new CreateUploadDestinationForResourceParams object with the ability to set a context for a request.
func NewCreateUploadDestinationForResourceParamsWithHTTPClient ¶
func NewCreateUploadDestinationForResourceParamsWithHTTPClient(client *http.Client) *CreateUploadDestinationForResourceParams
NewCreateUploadDestinationForResourceParamsWithHTTPClient creates a new CreateUploadDestinationForResourceParams object with the ability to set a custom HTTPClient for a request.
func NewCreateUploadDestinationForResourceParamsWithTimeout ¶
func NewCreateUploadDestinationForResourceParamsWithTimeout(timeout time.Duration) *CreateUploadDestinationForResourceParams
NewCreateUploadDestinationForResourceParamsWithTimeout creates a new CreateUploadDestinationForResourceParams object with the ability to set a timeout on a request.
func (*CreateUploadDestinationForResourceParams) SetContentMD5 ¶
func (o *CreateUploadDestinationForResourceParams) SetContentMD5(contentMD5 string)
SetContentMD5 adds the contentMD5 to the create upload destination for resource params
func (*CreateUploadDestinationForResourceParams) SetContentType ¶
func (o *CreateUploadDestinationForResourceParams) SetContentType(contentType *string)
SetContentType adds the contentType to the create upload destination for resource params
func (*CreateUploadDestinationForResourceParams) SetContext ¶
func (o *CreateUploadDestinationForResourceParams) SetContext(ctx context.Context)
SetContext adds the context to the create upload destination for resource params
func (*CreateUploadDestinationForResourceParams) SetDefaults ¶
func (o *CreateUploadDestinationForResourceParams) SetDefaults()
SetDefaults hydrates default values in the create upload destination for resource params (not the query body).
All values with no default are reset to their zero value.
func (*CreateUploadDestinationForResourceParams) SetHTTPClient ¶
func (o *CreateUploadDestinationForResourceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create upload destination for resource params
func (*CreateUploadDestinationForResourceParams) SetMarketplaceIds ¶
func (o *CreateUploadDestinationForResourceParams) SetMarketplaceIds(marketplaceIds []string)
SetMarketplaceIds adds the marketplaceIds to the create upload destination for resource params
func (*CreateUploadDestinationForResourceParams) SetResource ¶
func (o *CreateUploadDestinationForResourceParams) SetResource(resource string)
SetResource adds the resource to the create upload destination for resource params
func (*CreateUploadDestinationForResourceParams) SetTimeout ¶
func (o *CreateUploadDestinationForResourceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create upload destination for resource params
func (*CreateUploadDestinationForResourceParams) WithContentMD5 ¶
func (o *CreateUploadDestinationForResourceParams) WithContentMD5(contentMD5 string) *CreateUploadDestinationForResourceParams
WithContentMD5 adds the contentMD5 to the create upload destination for resource params
func (*CreateUploadDestinationForResourceParams) WithContentType ¶
func (o *CreateUploadDestinationForResourceParams) WithContentType(contentType *string) *CreateUploadDestinationForResourceParams
WithContentType adds the contentType to the create upload destination for resource params
func (*CreateUploadDestinationForResourceParams) WithContext ¶
func (o *CreateUploadDestinationForResourceParams) WithContext(ctx context.Context) *CreateUploadDestinationForResourceParams
WithContext adds the context to the create upload destination for resource params
func (*CreateUploadDestinationForResourceParams) WithDefaults ¶
func (o *CreateUploadDestinationForResourceParams) WithDefaults() *CreateUploadDestinationForResourceParams
WithDefaults hydrates default values in the create upload destination for resource params (not the query body).
All values with no default are reset to their zero value.
func (*CreateUploadDestinationForResourceParams) WithHTTPClient ¶
func (o *CreateUploadDestinationForResourceParams) WithHTTPClient(client *http.Client) *CreateUploadDestinationForResourceParams
WithHTTPClient adds the HTTPClient to the create upload destination for resource params
func (*CreateUploadDestinationForResourceParams) WithMarketplaceIds ¶
func (o *CreateUploadDestinationForResourceParams) WithMarketplaceIds(marketplaceIds []string) *CreateUploadDestinationForResourceParams
WithMarketplaceIds adds the marketplaceIds to the create upload destination for resource params
func (*CreateUploadDestinationForResourceParams) WithResource ¶
func (o *CreateUploadDestinationForResourceParams) WithResource(resource string) *CreateUploadDestinationForResourceParams
WithResource adds the resource to the create upload destination for resource params
func (*CreateUploadDestinationForResourceParams) WithTimeout ¶
func (o *CreateUploadDestinationForResourceParams) WithTimeout(timeout time.Duration) *CreateUploadDestinationForResourceParams
WithTimeout adds the timeout to the create upload destination for resource params
func (*CreateUploadDestinationForResourceParams) WriteToRequest ¶
func (o *CreateUploadDestinationForResourceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateUploadDestinationForResourceReader ¶
type CreateUploadDestinationForResourceReader struct {
// contains filtered or unexported fields
}
CreateUploadDestinationForResourceReader is a Reader for the CreateUploadDestinationForResource structure.
func (*CreateUploadDestinationForResourceReader) ReadResponse ¶
func (o *CreateUploadDestinationForResourceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateUploadDestinationForResourceRequestEntityTooLarge ¶
type CreateUploadDestinationForResourceRequestEntityTooLarge struct { /* Your rate limit (requests per second) for this operation. _Note:_ For this status code, the rate limit header is deprecated and no longer returned. */ XAmznRateLimitLimit string /* Unique request reference identifier. */ XAmznRequestID string Payload *uploads_2020_11_01_models.CreateUploadDestinationResponse }
CreateUploadDestinationForResourceRequestEntityTooLarge describes a response with status code 413, with default header values.
The request size exceeded the maximum accepted size.
func NewCreateUploadDestinationForResourceRequestEntityTooLarge ¶
func NewCreateUploadDestinationForResourceRequestEntityTooLarge() *CreateUploadDestinationForResourceRequestEntityTooLarge
NewCreateUploadDestinationForResourceRequestEntityTooLarge creates a CreateUploadDestinationForResourceRequestEntityTooLarge with default headers values
func (*CreateUploadDestinationForResourceRequestEntityTooLarge) Error ¶
func (o *CreateUploadDestinationForResourceRequestEntityTooLarge) Error() string
func (*CreateUploadDestinationForResourceRequestEntityTooLarge) GetPayload ¶
func (*CreateUploadDestinationForResourceRequestEntityTooLarge) IsClientError ¶
func (o *CreateUploadDestinationForResourceRequestEntityTooLarge) IsClientError() bool
IsClientError returns true when this create upload destination for resource request entity too large response has a 4xx status code
func (*CreateUploadDestinationForResourceRequestEntityTooLarge) IsCode ¶
func (o *CreateUploadDestinationForResourceRequestEntityTooLarge) IsCode(code int) bool
IsCode returns true when this create upload destination for resource request entity too large response a status code equal to that given
func (*CreateUploadDestinationForResourceRequestEntityTooLarge) IsRedirect ¶
func (o *CreateUploadDestinationForResourceRequestEntityTooLarge) IsRedirect() bool
IsRedirect returns true when this create upload destination for resource request entity too large response has a 3xx status code
func (*CreateUploadDestinationForResourceRequestEntityTooLarge) IsServerError ¶
func (o *CreateUploadDestinationForResourceRequestEntityTooLarge) IsServerError() bool
IsServerError returns true when this create upload destination for resource request entity too large response has a 5xx status code
func (*CreateUploadDestinationForResourceRequestEntityTooLarge) IsSuccess ¶
func (o *CreateUploadDestinationForResourceRequestEntityTooLarge) IsSuccess() bool
IsSuccess returns true when this create upload destination for resource request entity too large response has a 2xx status code
func (*CreateUploadDestinationForResourceRequestEntityTooLarge) String ¶
func (o *CreateUploadDestinationForResourceRequestEntityTooLarge) String() string
type CreateUploadDestinationForResourceServiceUnavailable ¶
type CreateUploadDestinationForResourceServiceUnavailable struct { string XAmznRequestID string }XAmznRateLimitLimit
CreateUploadDestinationForResourceServiceUnavailable describes a response with status code 503, with default header values.
Temporary overloading or maintenance of the server.
func NewCreateUploadDestinationForResourceServiceUnavailable ¶
func NewCreateUploadDestinationForResourceServiceUnavailable() *CreateUploadDestinationForResourceServiceUnavailable
NewCreateUploadDestinationForResourceServiceUnavailable creates a CreateUploadDestinationForResourceServiceUnavailable with default headers values
func (*CreateUploadDestinationForResourceServiceUnavailable) Error ¶
func (o *CreateUploadDestinationForResourceServiceUnavailable) Error() string
func (*CreateUploadDestinationForResourceServiceUnavailable) GetPayload ¶
func (*CreateUploadDestinationForResourceServiceUnavailable) IsClientError ¶
func (o *CreateUploadDestinationForResourceServiceUnavailable) IsClientError() bool
IsClientError returns true when this create upload destination for resource service unavailable response has a 4xx status code
func (*CreateUploadDestinationForResourceServiceUnavailable) IsCode ¶
func (o *CreateUploadDestinationForResourceServiceUnavailable) IsCode(code int) bool
IsCode returns true when this create upload destination for resource service unavailable response a status code equal to that given
func (*CreateUploadDestinationForResourceServiceUnavailable) IsRedirect ¶
func (o *CreateUploadDestinationForResourceServiceUnavailable) IsRedirect() bool
IsRedirect returns true when this create upload destination for resource service unavailable response has a 3xx status code
func (*CreateUploadDestinationForResourceServiceUnavailable) IsServerError ¶
func (o *CreateUploadDestinationForResourceServiceUnavailable) IsServerError() bool
IsServerError returns true when this create upload destination for resource service unavailable response has a 5xx status code
func (*CreateUploadDestinationForResourceServiceUnavailable) IsSuccess ¶
func (o *CreateUploadDestinationForResourceServiceUnavailable) IsSuccess() bool
IsSuccess returns true when this create upload destination for resource service unavailable response has a 2xx status code
func (*CreateUploadDestinationForResourceServiceUnavailable) String ¶
func (o *CreateUploadDestinationForResourceServiceUnavailable) String() string
type CreateUploadDestinationForResourceTooManyRequests ¶
type CreateUploadDestinationForResourceTooManyRequests struct { /* Your rate limit (requests per second) for this operation. _Note:_ For this status code, the rate limit header is deprecated and no longer returned. */ XAmznRateLimitLimit string /* Unique request reference identifier. */ XAmznRequestID string Payload *uploads_2020_11_01_models.CreateUploadDestinationResponse }
CreateUploadDestinationForResourceTooManyRequests describes a response with status code 429, with default header values.
The frequency of requests was greater than allowed.
func NewCreateUploadDestinationForResourceTooManyRequests ¶
func NewCreateUploadDestinationForResourceTooManyRequests() *CreateUploadDestinationForResourceTooManyRequests
NewCreateUploadDestinationForResourceTooManyRequests creates a CreateUploadDestinationForResourceTooManyRequests with default headers values
func (*CreateUploadDestinationForResourceTooManyRequests) Error ¶
func (o *CreateUploadDestinationForResourceTooManyRequests) Error() string
func (*CreateUploadDestinationForResourceTooManyRequests) GetPayload ¶
func (*CreateUploadDestinationForResourceTooManyRequests) IsClientError ¶
func (o *CreateUploadDestinationForResourceTooManyRequests) IsClientError() bool
IsClientError returns true when this create upload destination for resource too many requests response has a 4xx status code
func (*CreateUploadDestinationForResourceTooManyRequests) IsCode ¶
func (o *CreateUploadDestinationForResourceTooManyRequests) IsCode(code int) bool
IsCode returns true when this create upload destination for resource too many requests response a status code equal to that given
func (*CreateUploadDestinationForResourceTooManyRequests) IsRedirect ¶
func (o *CreateUploadDestinationForResourceTooManyRequests) IsRedirect() bool
IsRedirect returns true when this create upload destination for resource too many requests response has a 3xx status code
func (*CreateUploadDestinationForResourceTooManyRequests) IsServerError ¶
func (o *CreateUploadDestinationForResourceTooManyRequests) IsServerError() bool
IsServerError returns true when this create upload destination for resource too many requests response has a 5xx status code
func (*CreateUploadDestinationForResourceTooManyRequests) IsSuccess ¶
func (o *CreateUploadDestinationForResourceTooManyRequests) IsSuccess() bool
IsSuccess returns true when this create upload destination for resource too many requests response has a 2xx status code
func (*CreateUploadDestinationForResourceTooManyRequests) String ¶
func (o *CreateUploadDestinationForResourceTooManyRequests) String() string
type CreateUploadDestinationForResourceUnsupportedMediaType ¶
type CreateUploadDestinationForResourceUnsupportedMediaType struct { /* Your rate limit (requests per second) for this operation. _Note:_ For this status code, the rate limit header is deprecated and no longer returned. */ XAmznRateLimitLimit string /* Unique request reference identifier. */ XAmznRequestID string Payload *uploads_2020_11_01_models.CreateUploadDestinationResponse }
CreateUploadDestinationForResourceUnsupportedMediaType describes a response with status code 415, with default header values.
The request payload is in an unsupported format.
func NewCreateUploadDestinationForResourceUnsupportedMediaType ¶
func NewCreateUploadDestinationForResourceUnsupportedMediaType() *CreateUploadDestinationForResourceUnsupportedMediaType
NewCreateUploadDestinationForResourceUnsupportedMediaType creates a CreateUploadDestinationForResourceUnsupportedMediaType with default headers values
func (*CreateUploadDestinationForResourceUnsupportedMediaType) Error ¶
func (o *CreateUploadDestinationForResourceUnsupportedMediaType) Error() string
func (*CreateUploadDestinationForResourceUnsupportedMediaType) GetPayload ¶
func (*CreateUploadDestinationForResourceUnsupportedMediaType) IsClientError ¶
func (o *CreateUploadDestinationForResourceUnsupportedMediaType) IsClientError() bool
IsClientError returns true when this create upload destination for resource unsupported media type response has a 4xx status code
func (*CreateUploadDestinationForResourceUnsupportedMediaType) IsCode ¶
func (o *CreateUploadDestinationForResourceUnsupportedMediaType) IsCode(code int) bool
IsCode returns true when this create upload destination for resource unsupported media type response a status code equal to that given
func (*CreateUploadDestinationForResourceUnsupportedMediaType) IsRedirect ¶
func (o *CreateUploadDestinationForResourceUnsupportedMediaType) IsRedirect() bool
IsRedirect returns true when this create upload destination for resource unsupported media type response has a 3xx status code
func (*CreateUploadDestinationForResourceUnsupportedMediaType) IsServerError ¶
func (o *CreateUploadDestinationForResourceUnsupportedMediaType) IsServerError() bool
IsServerError returns true when this create upload destination for resource unsupported media type response has a 5xx status code
func (*CreateUploadDestinationForResourceUnsupportedMediaType) IsSuccess ¶
func (o *CreateUploadDestinationForResourceUnsupportedMediaType) IsSuccess() bool
IsSuccess returns true when this create upload destination for resource unsupported media type response has a 2xx status code
func (*CreateUploadDestinationForResourceUnsupportedMediaType) String ¶
func (o *CreateUploadDestinationForResourceUnsupportedMediaType) String() string