applications

package
v0.24.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 applications API

func (*Client) RotateApplicationClientSecret

func (a *Client) RotateApplicationClientSecret(params *RotateApplicationClientSecretParams, opts ...ClientOption) (*RotateApplicationClientSecretNoContent, error)
RotateApplicationClientSecret Rotates application client secrets for a developer application. Developers must register a destination queue in the developer console before calling this operation. When this operation is called a new client secret is generated and sent to the developer-registered queue. For more information, refer to [Rotate your application client secret](https://developer-docs.amazon.com/sp-api/v0/docs/application-management-api-v2023-11-30-use-case-guide#tutorial-rotate-your-applications-client-secret).

**Usage Plan:**

| Rate (requests per second) | Burst | | ---- | ---- | | 0.0167 | 1 |

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, refer to [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 {
	RotateApplicationClientSecret(params *RotateApplicationClientSecretParams, opts ...ClientOption) (*RotateApplicationClientSecretNoContent, 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 applications API client.

type RotateApplicationClientSecretBadRequest

type RotateApplicationClientSecretBadRequest struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *application_2023_11_30_models.ErrorList
}

RotateApplicationClientSecretBadRequest describes a response with status code 400, with default header values.

Application is not enrolled for rotation notification. Please update application notification preference in Developer console.

func NewRotateApplicationClientSecretBadRequest

func NewRotateApplicationClientSecretBadRequest() *RotateApplicationClientSecretBadRequest

NewRotateApplicationClientSecretBadRequest creates a RotateApplicationClientSecretBadRequest with default headers values

func (*RotateApplicationClientSecretBadRequest) Error

func (*RotateApplicationClientSecretBadRequest) GetPayload

func (*RotateApplicationClientSecretBadRequest) IsClientError

func (o *RotateApplicationClientSecretBadRequest) IsClientError() bool

IsClientError returns true when this rotate application client secret bad request response has a 4xx status code

func (*RotateApplicationClientSecretBadRequest) IsCode

IsCode returns true when this rotate application client secret bad request response a status code equal to that given

func (*RotateApplicationClientSecretBadRequest) IsRedirect

IsRedirect returns true when this rotate application client secret bad request response has a 3xx status code

func (*RotateApplicationClientSecretBadRequest) IsServerError

func (o *RotateApplicationClientSecretBadRequest) IsServerError() bool

IsServerError returns true when this rotate application client secret bad request response has a 5xx status code

func (*RotateApplicationClientSecretBadRequest) IsSuccess

IsSuccess returns true when this rotate application client secret bad request response has a 2xx status code

func (*RotateApplicationClientSecretBadRequest) String

type RotateApplicationClientSecretForbidden

type RotateApplicationClientSecretForbidden struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *application_2023_11_30_models.ErrorList
}

RotateApplicationClientSecretForbidden 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 NewRotateApplicationClientSecretForbidden

func NewRotateApplicationClientSecretForbidden() *RotateApplicationClientSecretForbidden

NewRotateApplicationClientSecretForbidden creates a RotateApplicationClientSecretForbidden with default headers values

func (*RotateApplicationClientSecretForbidden) Error

func (*RotateApplicationClientSecretForbidden) GetPayload

func (*RotateApplicationClientSecretForbidden) IsClientError

func (o *RotateApplicationClientSecretForbidden) IsClientError() bool

IsClientError returns true when this rotate application client secret forbidden response has a 4xx status code

func (*RotateApplicationClientSecretForbidden) IsCode

IsCode returns true when this rotate application client secret forbidden response a status code equal to that given

func (*RotateApplicationClientSecretForbidden) IsRedirect

IsRedirect returns true when this rotate application client secret forbidden response has a 3xx status code

func (*RotateApplicationClientSecretForbidden) IsServerError

func (o *RotateApplicationClientSecretForbidden) IsServerError() bool

IsServerError returns true when this rotate application client secret forbidden response has a 5xx status code

func (*RotateApplicationClientSecretForbidden) IsSuccess

IsSuccess returns true when this rotate application client secret forbidden response has a 2xx status code

func (*RotateApplicationClientSecretForbidden) String

type RotateApplicationClientSecretInternalServerError

type RotateApplicationClientSecretInternalServerError struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *application_2023_11_30_models.ErrorList
}

RotateApplicationClientSecretInternalServerError describes a response with status code 500, with default header values.

An unexpected condition occurred that prevented the server from fulfilling the request.

func NewRotateApplicationClientSecretInternalServerError

func NewRotateApplicationClientSecretInternalServerError() *RotateApplicationClientSecretInternalServerError

NewRotateApplicationClientSecretInternalServerError creates a RotateApplicationClientSecretInternalServerError with default headers values

func (*RotateApplicationClientSecretInternalServerError) Error

func (*RotateApplicationClientSecretInternalServerError) GetPayload

func (*RotateApplicationClientSecretInternalServerError) IsClientError

IsClientError returns true when this rotate application client secret internal server error response has a 4xx status code

func (*RotateApplicationClientSecretInternalServerError) IsCode

IsCode returns true when this rotate application client secret internal server error response a status code equal to that given

func (*RotateApplicationClientSecretInternalServerError) IsRedirect

IsRedirect returns true when this rotate application client secret internal server error response has a 3xx status code

func (*RotateApplicationClientSecretInternalServerError) IsServerError

IsServerError returns true when this rotate application client secret internal server error response has a 5xx status code

func (*RotateApplicationClientSecretInternalServerError) IsSuccess

IsSuccess returns true when this rotate application client secret internal server error response has a 2xx status code

func (*RotateApplicationClientSecretInternalServerError) String

type RotateApplicationClientSecretNoContent

type RotateApplicationClientSecretNoContent struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference identifier.
	 */
	XAmznRequestID string
}

RotateApplicationClientSecretNoContent describes a response with status code 204, with default header values.

Success.

func NewRotateApplicationClientSecretNoContent

func NewRotateApplicationClientSecretNoContent() *RotateApplicationClientSecretNoContent

NewRotateApplicationClientSecretNoContent creates a RotateApplicationClientSecretNoContent with default headers values

func (*RotateApplicationClientSecretNoContent) Error

func (*RotateApplicationClientSecretNoContent) IsClientError

func (o *RotateApplicationClientSecretNoContent) IsClientError() bool

IsClientError returns true when this rotate application client secret no content response has a 4xx status code

func (*RotateApplicationClientSecretNoContent) IsCode

IsCode returns true when this rotate application client secret no content response a status code equal to that given

func (*RotateApplicationClientSecretNoContent) IsRedirect

IsRedirect returns true when this rotate application client secret no content response has a 3xx status code

func (*RotateApplicationClientSecretNoContent) IsServerError

func (o *RotateApplicationClientSecretNoContent) IsServerError() bool

IsServerError returns true when this rotate application client secret no content response has a 5xx status code

func (*RotateApplicationClientSecretNoContent) IsSuccess

IsSuccess returns true when this rotate application client secret no content response has a 2xx status code

func (*RotateApplicationClientSecretNoContent) String

type RotateApplicationClientSecretNotFound

type RotateApplicationClientSecretNotFound struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *application_2023_11_30_models.ErrorList
}

RotateApplicationClientSecretNotFound describes a response with status code 404, with default header values.

The resource specified does not exist.

func NewRotateApplicationClientSecretNotFound

func NewRotateApplicationClientSecretNotFound() *RotateApplicationClientSecretNotFound

NewRotateApplicationClientSecretNotFound creates a RotateApplicationClientSecretNotFound with default headers values

func (*RotateApplicationClientSecretNotFound) Error

func (*RotateApplicationClientSecretNotFound) GetPayload

func (*RotateApplicationClientSecretNotFound) IsClientError

func (o *RotateApplicationClientSecretNotFound) IsClientError() bool

IsClientError returns true when this rotate application client secret not found response has a 4xx status code

func (*RotateApplicationClientSecretNotFound) IsCode

IsCode returns true when this rotate application client secret not found response a status code equal to that given

func (*RotateApplicationClientSecretNotFound) IsRedirect

IsRedirect returns true when this rotate application client secret not found response has a 3xx status code

func (*RotateApplicationClientSecretNotFound) IsServerError

func (o *RotateApplicationClientSecretNotFound) IsServerError() bool

IsServerError returns true when this rotate application client secret not found response has a 5xx status code

func (*RotateApplicationClientSecretNotFound) IsSuccess

IsSuccess returns true when this rotate application client secret not found response has a 2xx status code

func (*RotateApplicationClientSecretNotFound) String

type RotateApplicationClientSecretParams

type RotateApplicationClientSecretParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RotateApplicationClientSecretParams contains all the parameters to send to the API endpoint

for the rotate application client secret operation.

Typically these are written to a http.Request.

func NewRotateApplicationClientSecretParams

func NewRotateApplicationClientSecretParams() *RotateApplicationClientSecretParams

NewRotateApplicationClientSecretParams creates a new RotateApplicationClientSecretParams 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 NewRotateApplicationClientSecretParamsWithContext

func NewRotateApplicationClientSecretParamsWithContext(ctx context.Context) *RotateApplicationClientSecretParams

NewRotateApplicationClientSecretParamsWithContext creates a new RotateApplicationClientSecretParams object with the ability to set a context for a request.

func NewRotateApplicationClientSecretParamsWithHTTPClient

func NewRotateApplicationClientSecretParamsWithHTTPClient(client *http.Client) *RotateApplicationClientSecretParams

NewRotateApplicationClientSecretParamsWithHTTPClient creates a new RotateApplicationClientSecretParams object with the ability to set a custom HTTPClient for a request.

func NewRotateApplicationClientSecretParamsWithTimeout

func NewRotateApplicationClientSecretParamsWithTimeout(timeout time.Duration) *RotateApplicationClientSecretParams

NewRotateApplicationClientSecretParamsWithTimeout creates a new RotateApplicationClientSecretParams object with the ability to set a timeout on a request.

func (*RotateApplicationClientSecretParams) SetContext

SetContext adds the context to the rotate application client secret params

func (*RotateApplicationClientSecretParams) SetDefaults

func (o *RotateApplicationClientSecretParams) SetDefaults()

SetDefaults hydrates default values in the rotate application client secret params (not the query body).

All values with no default are reset to their zero value.

func (*RotateApplicationClientSecretParams) SetHTTPClient

func (o *RotateApplicationClientSecretParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the rotate application client secret params

func (*RotateApplicationClientSecretParams) SetTimeout

func (o *RotateApplicationClientSecretParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the rotate application client secret params

func (*RotateApplicationClientSecretParams) WithContext

WithContext adds the context to the rotate application client secret params

func (*RotateApplicationClientSecretParams) WithDefaults

WithDefaults hydrates default values in the rotate application client secret params (not the query body).

All values with no default are reset to their zero value.

func (*RotateApplicationClientSecretParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the rotate application client secret params

func (*RotateApplicationClientSecretParams) WithTimeout

WithTimeout adds the timeout to the rotate application client secret params

func (*RotateApplicationClientSecretParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RotateApplicationClientSecretReader

type RotateApplicationClientSecretReader struct {
	// contains filtered or unexported fields
}

RotateApplicationClientSecretReader is a Reader for the RotateApplicationClientSecret structure.

func (*RotateApplicationClientSecretReader) ReadResponse

func (o *RotateApplicationClientSecretReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type RotateApplicationClientSecretRequestEntityTooLarge

type RotateApplicationClientSecretRequestEntityTooLarge struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *application_2023_11_30_models.ErrorList
}

RotateApplicationClientSecretRequestEntityTooLarge describes a response with status code 413, with default header values.

The request size exceeded the maximum accepted size.

func NewRotateApplicationClientSecretRequestEntityTooLarge

func NewRotateApplicationClientSecretRequestEntityTooLarge() *RotateApplicationClientSecretRequestEntityTooLarge

NewRotateApplicationClientSecretRequestEntityTooLarge creates a RotateApplicationClientSecretRequestEntityTooLarge with default headers values

func (*RotateApplicationClientSecretRequestEntityTooLarge) Error

func (*RotateApplicationClientSecretRequestEntityTooLarge) GetPayload

func (*RotateApplicationClientSecretRequestEntityTooLarge) IsClientError

IsClientError returns true when this rotate application client secret request entity too large response has a 4xx status code

func (*RotateApplicationClientSecretRequestEntityTooLarge) IsCode

IsCode returns true when this rotate application client secret request entity too large response a status code equal to that given

func (*RotateApplicationClientSecretRequestEntityTooLarge) IsRedirect

IsRedirect returns true when this rotate application client secret request entity too large response has a 3xx status code

func (*RotateApplicationClientSecretRequestEntityTooLarge) IsServerError

IsServerError returns true when this rotate application client secret request entity too large response has a 5xx status code

func (*RotateApplicationClientSecretRequestEntityTooLarge) IsSuccess

IsSuccess returns true when this rotate application client secret request entity too large response has a 2xx status code

func (*RotateApplicationClientSecretRequestEntityTooLarge) String

type RotateApplicationClientSecretServiceUnavailable

type RotateApplicationClientSecretServiceUnavailable struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *application_2023_11_30_models.ErrorList
}

RotateApplicationClientSecretServiceUnavailable describes a response with status code 503, with default header values.

Temporary overloading or maintenance of the server.

func NewRotateApplicationClientSecretServiceUnavailable

func NewRotateApplicationClientSecretServiceUnavailable() *RotateApplicationClientSecretServiceUnavailable

NewRotateApplicationClientSecretServiceUnavailable creates a RotateApplicationClientSecretServiceUnavailable with default headers values

func (*RotateApplicationClientSecretServiceUnavailable) Error

func (*RotateApplicationClientSecretServiceUnavailable) GetPayload

func (*RotateApplicationClientSecretServiceUnavailable) IsClientError

IsClientError returns true when this rotate application client secret service unavailable response has a 4xx status code

func (*RotateApplicationClientSecretServiceUnavailable) IsCode

IsCode returns true when this rotate application client secret service unavailable response a status code equal to that given

func (*RotateApplicationClientSecretServiceUnavailable) IsRedirect

IsRedirect returns true when this rotate application client secret service unavailable response has a 3xx status code

func (*RotateApplicationClientSecretServiceUnavailable) IsServerError

IsServerError returns true when this rotate application client secret service unavailable response has a 5xx status code

func (*RotateApplicationClientSecretServiceUnavailable) IsSuccess

IsSuccess returns true when this rotate application client secret service unavailable response has a 2xx status code

func (*RotateApplicationClientSecretServiceUnavailable) String

type RotateApplicationClientSecretTooManyRequests

type RotateApplicationClientSecretTooManyRequests struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *application_2023_11_30_models.ErrorList
}

RotateApplicationClientSecretTooManyRequests describes a response with status code 429, with default header values.

The frequency of requests was greater than allowed.

func NewRotateApplicationClientSecretTooManyRequests

func NewRotateApplicationClientSecretTooManyRequests() *RotateApplicationClientSecretTooManyRequests

NewRotateApplicationClientSecretTooManyRequests creates a RotateApplicationClientSecretTooManyRequests with default headers values

func (*RotateApplicationClientSecretTooManyRequests) Error

func (*RotateApplicationClientSecretTooManyRequests) GetPayload

func (*RotateApplicationClientSecretTooManyRequests) IsClientError

IsClientError returns true when this rotate application client secret too many requests response has a 4xx status code

func (*RotateApplicationClientSecretTooManyRequests) IsCode

IsCode returns true when this rotate application client secret too many requests response a status code equal to that given

func (*RotateApplicationClientSecretTooManyRequests) IsRedirect

IsRedirect returns true when this rotate application client secret too many requests response has a 3xx status code

func (*RotateApplicationClientSecretTooManyRequests) IsServerError

IsServerError returns true when this rotate application client secret too many requests response has a 5xx status code

func (*RotateApplicationClientSecretTooManyRequests) IsSuccess

IsSuccess returns true when this rotate application client secret too many requests response has a 2xx status code

func (*RotateApplicationClientSecretTooManyRequests) String

type RotateApplicationClientSecretUnsupportedMediaType

type RotateApplicationClientSecretUnsupportedMediaType struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *application_2023_11_30_models.ErrorList
}

RotateApplicationClientSecretUnsupportedMediaType describes a response with status code 415, with default header values.

The request payload is in an unsupported format.

func NewRotateApplicationClientSecretUnsupportedMediaType

func NewRotateApplicationClientSecretUnsupportedMediaType() *RotateApplicationClientSecretUnsupportedMediaType

NewRotateApplicationClientSecretUnsupportedMediaType creates a RotateApplicationClientSecretUnsupportedMediaType with default headers values

func (*RotateApplicationClientSecretUnsupportedMediaType) Error

func (*RotateApplicationClientSecretUnsupportedMediaType) GetPayload

func (*RotateApplicationClientSecretUnsupportedMediaType) IsClientError

IsClientError returns true when this rotate application client secret unsupported media type response has a 4xx status code

func (*RotateApplicationClientSecretUnsupportedMediaType) IsCode

IsCode returns true when this rotate application client secret unsupported media type response a status code equal to that given

func (*RotateApplicationClientSecretUnsupportedMediaType) IsRedirect

IsRedirect returns true when this rotate application client secret unsupported media type response has a 3xx status code

func (*RotateApplicationClientSecretUnsupportedMediaType) IsServerError

IsServerError returns true when this rotate application client secret unsupported media type response has a 5xx status code

func (*RotateApplicationClientSecretUnsupportedMediaType) IsSuccess

IsSuccess returns true when this rotate application client secret unsupported media type response has a 2xx status code

func (*RotateApplicationClientSecretUnsupportedMediaType) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL