Documentation
¶
Overview ¶
Package application20231130 provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.6.0 DO NOT EDIT.
Index ¶
- func NewRotateApplicationClientSecretRequest(server string) (*http.Request, error)
- type Client
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- type ClientWithResponsesInterface
- type Error
- type ErrorList
- type HttpRequestDoer
- type RequestEditorFn
- type ResponseEditorFn
- type RotateApplicationClientSecretResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
// A callback for modifying response which are generated after receive from the network.
ResponseEditors []ResponseEditorFn
// The user agent header identifies your application, its version number, and the platform and programming language you are using.
// You must include a user agent header in each request submitted to the sales partner API.
UserAgent string
}
Client which conforms to the OpenAPI3 specification for this service.
type ClientInterface ¶
type ClientInterface interface {
// RotateApplicationClientSecret request
RotateApplicationClientSecret(ctx context.Context) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
func WithResponseEditorFn ¶
func WithResponseEditorFn(fn ResponseEditorFn) ClientOption
WithResponseEditorFn allows setting up a callback function, which will be called right after receive the response.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) RotateApplicationClientSecretWithResponse ¶
func (c *ClientWithResponses) RotateApplicationClientSecretWithResponse(ctx context.Context) (*RotateApplicationClientSecretResp, error)
RotateApplicationClientSecretWithResponse request returning *RotateApplicationClientSecretResp
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// RotateApplicationClientSecretWithResponse request
RotateApplicationClientSecretWithResponse(ctx context.Context) (*RotateApplicationClientSecretResp, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type Error ¶
type Error struct {
// Code An error code that identifies the type of error that occurred.
Code string `json:"code"`
// Details Additional details that can help the caller understand or fix the issue.
Details *string `json:"details,omitempty"`
// Message A message that describes the error condition.
Message string `json:"message"`
}
Error Error response returned when the request is unsuccessful.
type ErrorList ¶
type ErrorList struct {
// Errors array of errors
Errors []Error `json:"errors"`
}
ErrorList A list of error responses returned when a request is unsuccessful.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ResponseEditorFn ¶
ResponseEditorFn is the function signature for the ResponseEditor callback function
type RotateApplicationClientSecretResp ¶
type RotateApplicationClientSecretResp struct {
Body []byte
HTTPResponse *http.Response
JSON400 *ErrorList
JSON403 *ErrorList
JSON404 *ErrorList
JSON413 *ErrorList
JSON415 *ErrorList
JSON429 *ErrorList
JSON500 *ErrorList
JSON503 *ErrorList
}
func ParseRotateApplicationClientSecretResp ¶
func ParseRotateApplicationClientSecretResp(rsp *http.Response) (*RotateApplicationClientSecretResp, error)
ParseRotateApplicationClientSecretResp parses an HTTP response from a RotateApplicationClientSecretWithResponse call
func (RotateApplicationClientSecretResp) Status ¶
func (r RotateApplicationClientSecretResp) Status() string
Status returns HTTPResponse.Status
func (RotateApplicationClientSecretResp) StatusCode ¶
func (r RotateApplicationClientSecretResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode