Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type CreateSITAddressUpdateRequestBadRequest
- func (o *CreateSITAddressUpdateRequestBadRequest) Code() int
- func (o *CreateSITAddressUpdateRequestBadRequest) Error() string
- func (o *CreateSITAddressUpdateRequestBadRequest) GetPayload() *primemessages.ClientError
- func (o *CreateSITAddressUpdateRequestBadRequest) IsClientError() bool
- func (o *CreateSITAddressUpdateRequestBadRequest) IsCode(code int) bool
- func (o *CreateSITAddressUpdateRequestBadRequest) IsRedirect() bool
- func (o *CreateSITAddressUpdateRequestBadRequest) IsServerError() bool
- func (o *CreateSITAddressUpdateRequestBadRequest) IsSuccess() bool
- func (o *CreateSITAddressUpdateRequestBadRequest) String() string
- type CreateSITAddressUpdateRequestConflict
- func (o *CreateSITAddressUpdateRequestConflict) Code() int
- func (o *CreateSITAddressUpdateRequestConflict) Error() string
- func (o *CreateSITAddressUpdateRequestConflict) GetPayload() *primemessages.ClientError
- func (o *CreateSITAddressUpdateRequestConflict) IsClientError() bool
- func (o *CreateSITAddressUpdateRequestConflict) IsCode(code int) bool
- func (o *CreateSITAddressUpdateRequestConflict) IsRedirect() bool
- func (o *CreateSITAddressUpdateRequestConflict) IsServerError() bool
- func (o *CreateSITAddressUpdateRequestConflict) IsSuccess() bool
- func (o *CreateSITAddressUpdateRequestConflict) String() string
- type CreateSITAddressUpdateRequestCreated
- func (o *CreateSITAddressUpdateRequestCreated) Code() int
- func (o *CreateSITAddressUpdateRequestCreated) Error() string
- func (o *CreateSITAddressUpdateRequestCreated) GetPayload() *primemessages.SitAddressUpdate
- func (o *CreateSITAddressUpdateRequestCreated) IsClientError() bool
- func (o *CreateSITAddressUpdateRequestCreated) IsCode(code int) bool
- func (o *CreateSITAddressUpdateRequestCreated) IsRedirect() bool
- func (o *CreateSITAddressUpdateRequestCreated) IsServerError() bool
- func (o *CreateSITAddressUpdateRequestCreated) IsSuccess() bool
- func (o *CreateSITAddressUpdateRequestCreated) String() string
- type CreateSITAddressUpdateRequestForbidden
- func (o *CreateSITAddressUpdateRequestForbidden) Code() int
- func (o *CreateSITAddressUpdateRequestForbidden) Error() string
- func (o *CreateSITAddressUpdateRequestForbidden) GetPayload() *primemessages.ClientError
- func (o *CreateSITAddressUpdateRequestForbidden) IsClientError() bool
- func (o *CreateSITAddressUpdateRequestForbidden) IsCode(code int) bool
- func (o *CreateSITAddressUpdateRequestForbidden) IsRedirect() bool
- func (o *CreateSITAddressUpdateRequestForbidden) IsServerError() bool
- func (o *CreateSITAddressUpdateRequestForbidden) IsSuccess() bool
- func (o *CreateSITAddressUpdateRequestForbidden) String() string
- type CreateSITAddressUpdateRequestInternalServerError
- func (o *CreateSITAddressUpdateRequestInternalServerError) Code() int
- func (o *CreateSITAddressUpdateRequestInternalServerError) Error() string
- func (o *CreateSITAddressUpdateRequestInternalServerError) GetPayload() *primemessages.Error
- func (o *CreateSITAddressUpdateRequestInternalServerError) IsClientError() bool
- func (o *CreateSITAddressUpdateRequestInternalServerError) IsCode(code int) bool
- func (o *CreateSITAddressUpdateRequestInternalServerError) IsRedirect() bool
- func (o *CreateSITAddressUpdateRequestInternalServerError) IsServerError() bool
- func (o *CreateSITAddressUpdateRequestInternalServerError) IsSuccess() bool
- func (o *CreateSITAddressUpdateRequestInternalServerError) String() string
- type CreateSITAddressUpdateRequestNotFound
- func (o *CreateSITAddressUpdateRequestNotFound) Code() int
- func (o *CreateSITAddressUpdateRequestNotFound) Error() string
- func (o *CreateSITAddressUpdateRequestNotFound) GetPayload() *primemessages.ClientError
- func (o *CreateSITAddressUpdateRequestNotFound) IsClientError() bool
- func (o *CreateSITAddressUpdateRequestNotFound) IsCode(code int) bool
- func (o *CreateSITAddressUpdateRequestNotFound) IsRedirect() bool
- func (o *CreateSITAddressUpdateRequestNotFound) IsServerError() bool
- func (o *CreateSITAddressUpdateRequestNotFound) IsSuccess() bool
- func (o *CreateSITAddressUpdateRequestNotFound) String() string
- type CreateSITAddressUpdateRequestParams
- func NewCreateSITAddressUpdateRequestParams() *CreateSITAddressUpdateRequestParams
- func NewCreateSITAddressUpdateRequestParamsWithContext(ctx context.Context) *CreateSITAddressUpdateRequestParams
- func NewCreateSITAddressUpdateRequestParamsWithHTTPClient(client *http.Client) *CreateSITAddressUpdateRequestParams
- func NewCreateSITAddressUpdateRequestParamsWithTimeout(timeout time.Duration) *CreateSITAddressUpdateRequestParams
- func (o *CreateSITAddressUpdateRequestParams) SetBody(body *primemessages.CreateSITAddressUpdateRequest)
- func (o *CreateSITAddressUpdateRequestParams) SetContext(ctx context.Context)
- func (o *CreateSITAddressUpdateRequestParams) SetDefaults()
- func (o *CreateSITAddressUpdateRequestParams) SetHTTPClient(client *http.Client)
- func (o *CreateSITAddressUpdateRequestParams) SetTimeout(timeout time.Duration)
- func (o *CreateSITAddressUpdateRequestParams) WithBody(body *primemessages.CreateSITAddressUpdateRequest) *CreateSITAddressUpdateRequestParams
- func (o *CreateSITAddressUpdateRequestParams) WithContext(ctx context.Context) *CreateSITAddressUpdateRequestParams
- func (o *CreateSITAddressUpdateRequestParams) WithDefaults() *CreateSITAddressUpdateRequestParams
- func (o *CreateSITAddressUpdateRequestParams) WithHTTPClient(client *http.Client) *CreateSITAddressUpdateRequestParams
- func (o *CreateSITAddressUpdateRequestParams) WithTimeout(timeout time.Duration) *CreateSITAddressUpdateRequestParams
- func (o *CreateSITAddressUpdateRequestParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateSITAddressUpdateRequestReader
- type CreateSITAddressUpdateRequestUnauthorized
- func (o *CreateSITAddressUpdateRequestUnauthorized) Code() int
- func (o *CreateSITAddressUpdateRequestUnauthorized) Error() string
- func (o *CreateSITAddressUpdateRequestUnauthorized) GetPayload() *primemessages.ClientError
- func (o *CreateSITAddressUpdateRequestUnauthorized) IsClientError() bool
- func (o *CreateSITAddressUpdateRequestUnauthorized) IsCode(code int) bool
- func (o *CreateSITAddressUpdateRequestUnauthorized) IsRedirect() bool
- func (o *CreateSITAddressUpdateRequestUnauthorized) IsServerError() bool
- func (o *CreateSITAddressUpdateRequestUnauthorized) IsSuccess() bool
- func (o *CreateSITAddressUpdateRequestUnauthorized) String() string
- type CreateSITAddressUpdateRequestUnprocessableEntity
- func (o *CreateSITAddressUpdateRequestUnprocessableEntity) Code() int
- func (o *CreateSITAddressUpdateRequestUnprocessableEntity) Error() string
- func (o *CreateSITAddressUpdateRequestUnprocessableEntity) GetPayload() *primemessages.ValidationError
- func (o *CreateSITAddressUpdateRequestUnprocessableEntity) IsClientError() bool
- func (o *CreateSITAddressUpdateRequestUnprocessableEntity) IsCode(code int) bool
- func (o *CreateSITAddressUpdateRequestUnprocessableEntity) IsRedirect() bool
- func (o *CreateSITAddressUpdateRequestUnprocessableEntity) IsServerError() bool
- func (o *CreateSITAddressUpdateRequestUnprocessableEntity) IsSuccess() bool
- func (o *CreateSITAddressUpdateRequestUnprocessableEntity) 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 sit address update API
func (*Client) CreateSITAddressUpdateRequest ¶
func (a *Client) CreateSITAddressUpdateRequest(params *CreateSITAddressUpdateRequestParams, opts ...ClientOption) (*CreateSITAddressUpdateRequestCreated, error)
CreateSITAddressUpdateRequest creates s i t address update request **Functionality:**
Creates an update request for a SIT service item's final delivery address. A newly created update request is assigned the status 'REQUESTED' if the change in address is > 50 miles and automatically approved otherwise.
**Limitations:** The update can be requested for APPROVED SIT service items only. Only ONE request is allowed per approved SIT service item.
**DEPRECATION ON AUGUST 5TH, 2024** Following deprecation, when updating a service item's final delivery address, you will need to update the shipment's destination address. This will update the destination SIT service items' final delivery address upon approval. For `APPROVED` shipments, you can use [updateShipmentDestinationAddress](#mtoShipment/updateShipmentDestinationAddress) For shipments in any other status, you can use [updateMTOShipmentAddress](#mtoShipment/updateMTOShipmentAddress)
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 { CreateSITAddressUpdateRequest(params *CreateSITAddressUpdateRequestParams, opts ...ClientOption) (*CreateSITAddressUpdateRequestCreated, 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 sit address update API client.
type CreateSITAddressUpdateRequestBadRequest ¶
type CreateSITAddressUpdateRequestBadRequest struct {
Payload *primemessages.ClientError
}
CreateSITAddressUpdateRequestBadRequest describes a response with status code 400, with default header values.
The request payload is invalid.
func NewCreateSITAddressUpdateRequestBadRequest ¶
func NewCreateSITAddressUpdateRequestBadRequest() *CreateSITAddressUpdateRequestBadRequest
NewCreateSITAddressUpdateRequestBadRequest creates a CreateSITAddressUpdateRequestBadRequest with default headers values
func (*CreateSITAddressUpdateRequestBadRequest) Code ¶
func (o *CreateSITAddressUpdateRequestBadRequest) Code() int
Code gets the status code for the create s i t address update request bad request response
func (*CreateSITAddressUpdateRequestBadRequest) Error ¶
func (o *CreateSITAddressUpdateRequestBadRequest) Error() string
func (*CreateSITAddressUpdateRequestBadRequest) GetPayload ¶
func (o *CreateSITAddressUpdateRequestBadRequest) GetPayload() *primemessages.ClientError
func (*CreateSITAddressUpdateRequestBadRequest) IsClientError ¶
func (o *CreateSITAddressUpdateRequestBadRequest) IsClientError() bool
IsClientError returns true when this create s i t address update request bad request response has a 4xx status code
func (*CreateSITAddressUpdateRequestBadRequest) IsCode ¶
func (o *CreateSITAddressUpdateRequestBadRequest) IsCode(code int) bool
IsCode returns true when this create s i t address update request bad request response a status code equal to that given
func (*CreateSITAddressUpdateRequestBadRequest) IsRedirect ¶
func (o *CreateSITAddressUpdateRequestBadRequest) IsRedirect() bool
IsRedirect returns true when this create s i t address update request bad request response has a 3xx status code
func (*CreateSITAddressUpdateRequestBadRequest) IsServerError ¶
func (o *CreateSITAddressUpdateRequestBadRequest) IsServerError() bool
IsServerError returns true when this create s i t address update request bad request response has a 5xx status code
func (*CreateSITAddressUpdateRequestBadRequest) IsSuccess ¶
func (o *CreateSITAddressUpdateRequestBadRequest) IsSuccess() bool
IsSuccess returns true when this create s i t address update request bad request response has a 2xx status code
func (*CreateSITAddressUpdateRequestBadRequest) String ¶
func (o *CreateSITAddressUpdateRequestBadRequest) String() string
type CreateSITAddressUpdateRequestConflict ¶
type CreateSITAddressUpdateRequestConflict struct {
Payload *primemessages.ClientError
}
CreateSITAddressUpdateRequestConflict describes a response with status code 409, with default header values.
The request could not be processed because of conflict in the current state of the resource.
func NewCreateSITAddressUpdateRequestConflict ¶
func NewCreateSITAddressUpdateRequestConflict() *CreateSITAddressUpdateRequestConflict
NewCreateSITAddressUpdateRequestConflict creates a CreateSITAddressUpdateRequestConflict with default headers values
func (*CreateSITAddressUpdateRequestConflict) Code ¶
func (o *CreateSITAddressUpdateRequestConflict) Code() int
Code gets the status code for the create s i t address update request conflict response
func (*CreateSITAddressUpdateRequestConflict) Error ¶
func (o *CreateSITAddressUpdateRequestConflict) Error() string
func (*CreateSITAddressUpdateRequestConflict) GetPayload ¶
func (o *CreateSITAddressUpdateRequestConflict) GetPayload() *primemessages.ClientError
func (*CreateSITAddressUpdateRequestConflict) IsClientError ¶
func (o *CreateSITAddressUpdateRequestConflict) IsClientError() bool
IsClientError returns true when this create s i t address update request conflict response has a 4xx status code
func (*CreateSITAddressUpdateRequestConflict) IsCode ¶
func (o *CreateSITAddressUpdateRequestConflict) IsCode(code int) bool
IsCode returns true when this create s i t address update request conflict response a status code equal to that given
func (*CreateSITAddressUpdateRequestConflict) IsRedirect ¶
func (o *CreateSITAddressUpdateRequestConflict) IsRedirect() bool
IsRedirect returns true when this create s i t address update request conflict response has a 3xx status code
func (*CreateSITAddressUpdateRequestConflict) IsServerError ¶
func (o *CreateSITAddressUpdateRequestConflict) IsServerError() bool
IsServerError returns true when this create s i t address update request conflict response has a 5xx status code
func (*CreateSITAddressUpdateRequestConflict) IsSuccess ¶
func (o *CreateSITAddressUpdateRequestConflict) IsSuccess() bool
IsSuccess returns true when this create s i t address update request conflict response has a 2xx status code
func (*CreateSITAddressUpdateRequestConflict) String ¶
func (o *CreateSITAddressUpdateRequestConflict) String() string
type CreateSITAddressUpdateRequestCreated ¶
type CreateSITAddressUpdateRequestCreated struct {
Payload *primemessages.SitAddressUpdate
}
CreateSITAddressUpdateRequestCreated describes a response with status code 201, with default header values.
Succesfully created a SIT address update request.
func NewCreateSITAddressUpdateRequestCreated ¶
func NewCreateSITAddressUpdateRequestCreated() *CreateSITAddressUpdateRequestCreated
NewCreateSITAddressUpdateRequestCreated creates a CreateSITAddressUpdateRequestCreated with default headers values
func (*CreateSITAddressUpdateRequestCreated) Code ¶
func (o *CreateSITAddressUpdateRequestCreated) Code() int
Code gets the status code for the create s i t address update request created response
func (*CreateSITAddressUpdateRequestCreated) Error ¶
func (o *CreateSITAddressUpdateRequestCreated) Error() string
func (*CreateSITAddressUpdateRequestCreated) GetPayload ¶
func (o *CreateSITAddressUpdateRequestCreated) GetPayload() *primemessages.SitAddressUpdate
func (*CreateSITAddressUpdateRequestCreated) IsClientError ¶
func (o *CreateSITAddressUpdateRequestCreated) IsClientError() bool
IsClientError returns true when this create s i t address update request created response has a 4xx status code
func (*CreateSITAddressUpdateRequestCreated) IsCode ¶
func (o *CreateSITAddressUpdateRequestCreated) IsCode(code int) bool
IsCode returns true when this create s i t address update request created response a status code equal to that given
func (*CreateSITAddressUpdateRequestCreated) IsRedirect ¶
func (o *CreateSITAddressUpdateRequestCreated) IsRedirect() bool
IsRedirect returns true when this create s i t address update request created response has a 3xx status code
func (*CreateSITAddressUpdateRequestCreated) IsServerError ¶
func (o *CreateSITAddressUpdateRequestCreated) IsServerError() bool
IsServerError returns true when this create s i t address update request created response has a 5xx status code
func (*CreateSITAddressUpdateRequestCreated) IsSuccess ¶
func (o *CreateSITAddressUpdateRequestCreated) IsSuccess() bool
IsSuccess returns true when this create s i t address update request created response has a 2xx status code
func (*CreateSITAddressUpdateRequestCreated) String ¶
func (o *CreateSITAddressUpdateRequestCreated) String() string
type CreateSITAddressUpdateRequestForbidden ¶
type CreateSITAddressUpdateRequestForbidden struct {
Payload *primemessages.ClientError
}
CreateSITAddressUpdateRequestForbidden describes a response with status code 403, with default header values.
The request was denied.
func NewCreateSITAddressUpdateRequestForbidden ¶
func NewCreateSITAddressUpdateRequestForbidden() *CreateSITAddressUpdateRequestForbidden
NewCreateSITAddressUpdateRequestForbidden creates a CreateSITAddressUpdateRequestForbidden with default headers values
func (*CreateSITAddressUpdateRequestForbidden) Code ¶
func (o *CreateSITAddressUpdateRequestForbidden) Code() int
Code gets the status code for the create s i t address update request forbidden response
func (*CreateSITAddressUpdateRequestForbidden) Error ¶
func (o *CreateSITAddressUpdateRequestForbidden) Error() string
func (*CreateSITAddressUpdateRequestForbidden) GetPayload ¶
func (o *CreateSITAddressUpdateRequestForbidden) GetPayload() *primemessages.ClientError
func (*CreateSITAddressUpdateRequestForbidden) IsClientError ¶
func (o *CreateSITAddressUpdateRequestForbidden) IsClientError() bool
IsClientError returns true when this create s i t address update request forbidden response has a 4xx status code
func (*CreateSITAddressUpdateRequestForbidden) IsCode ¶
func (o *CreateSITAddressUpdateRequestForbidden) IsCode(code int) bool
IsCode returns true when this create s i t address update request forbidden response a status code equal to that given
func (*CreateSITAddressUpdateRequestForbidden) IsRedirect ¶
func (o *CreateSITAddressUpdateRequestForbidden) IsRedirect() bool
IsRedirect returns true when this create s i t address update request forbidden response has a 3xx status code
func (*CreateSITAddressUpdateRequestForbidden) IsServerError ¶
func (o *CreateSITAddressUpdateRequestForbidden) IsServerError() bool
IsServerError returns true when this create s i t address update request forbidden response has a 5xx status code
func (*CreateSITAddressUpdateRequestForbidden) IsSuccess ¶
func (o *CreateSITAddressUpdateRequestForbidden) IsSuccess() bool
IsSuccess returns true when this create s i t address update request forbidden response has a 2xx status code
func (*CreateSITAddressUpdateRequestForbidden) String ¶
func (o *CreateSITAddressUpdateRequestForbidden) String() string
type CreateSITAddressUpdateRequestInternalServerError ¶
type CreateSITAddressUpdateRequestInternalServerError struct {
Payload *primemessages.Error
}
CreateSITAddressUpdateRequestInternalServerError describes a response with status code 500, with default header values.
A server error occurred.
func NewCreateSITAddressUpdateRequestInternalServerError ¶
func NewCreateSITAddressUpdateRequestInternalServerError() *CreateSITAddressUpdateRequestInternalServerError
NewCreateSITAddressUpdateRequestInternalServerError creates a CreateSITAddressUpdateRequestInternalServerError with default headers values
func (*CreateSITAddressUpdateRequestInternalServerError) Code ¶
func (o *CreateSITAddressUpdateRequestInternalServerError) Code() int
Code gets the status code for the create s i t address update request internal server error response
func (*CreateSITAddressUpdateRequestInternalServerError) Error ¶
func (o *CreateSITAddressUpdateRequestInternalServerError) Error() string
func (*CreateSITAddressUpdateRequestInternalServerError) GetPayload ¶
func (o *CreateSITAddressUpdateRequestInternalServerError) GetPayload() *primemessages.Error
func (*CreateSITAddressUpdateRequestInternalServerError) IsClientError ¶
func (o *CreateSITAddressUpdateRequestInternalServerError) IsClientError() bool
IsClientError returns true when this create s i t address update request internal server error response has a 4xx status code
func (*CreateSITAddressUpdateRequestInternalServerError) IsCode ¶
func (o *CreateSITAddressUpdateRequestInternalServerError) IsCode(code int) bool
IsCode returns true when this create s i t address update request internal server error response a status code equal to that given
func (*CreateSITAddressUpdateRequestInternalServerError) IsRedirect ¶
func (o *CreateSITAddressUpdateRequestInternalServerError) IsRedirect() bool
IsRedirect returns true when this create s i t address update request internal server error response has a 3xx status code
func (*CreateSITAddressUpdateRequestInternalServerError) IsServerError ¶
func (o *CreateSITAddressUpdateRequestInternalServerError) IsServerError() bool
IsServerError returns true when this create s i t address update request internal server error response has a 5xx status code
func (*CreateSITAddressUpdateRequestInternalServerError) IsSuccess ¶
func (o *CreateSITAddressUpdateRequestInternalServerError) IsSuccess() bool
IsSuccess returns true when this create s i t address update request internal server error response has a 2xx status code
func (*CreateSITAddressUpdateRequestInternalServerError) String ¶
func (o *CreateSITAddressUpdateRequestInternalServerError) String() string
type CreateSITAddressUpdateRequestNotFound ¶
type CreateSITAddressUpdateRequestNotFound struct {
Payload *primemessages.ClientError
}
CreateSITAddressUpdateRequestNotFound describes a response with status code 404, with default header values.
The requested resource wasn't found.
func NewCreateSITAddressUpdateRequestNotFound ¶
func NewCreateSITAddressUpdateRequestNotFound() *CreateSITAddressUpdateRequestNotFound
NewCreateSITAddressUpdateRequestNotFound creates a CreateSITAddressUpdateRequestNotFound with default headers values
func (*CreateSITAddressUpdateRequestNotFound) Code ¶
func (o *CreateSITAddressUpdateRequestNotFound) Code() int
Code gets the status code for the create s i t address update request not found response
func (*CreateSITAddressUpdateRequestNotFound) Error ¶
func (o *CreateSITAddressUpdateRequestNotFound) Error() string
func (*CreateSITAddressUpdateRequestNotFound) GetPayload ¶
func (o *CreateSITAddressUpdateRequestNotFound) GetPayload() *primemessages.ClientError
func (*CreateSITAddressUpdateRequestNotFound) IsClientError ¶
func (o *CreateSITAddressUpdateRequestNotFound) IsClientError() bool
IsClientError returns true when this create s i t address update request not found response has a 4xx status code
func (*CreateSITAddressUpdateRequestNotFound) IsCode ¶
func (o *CreateSITAddressUpdateRequestNotFound) IsCode(code int) bool
IsCode returns true when this create s i t address update request not found response a status code equal to that given
func (*CreateSITAddressUpdateRequestNotFound) IsRedirect ¶
func (o *CreateSITAddressUpdateRequestNotFound) IsRedirect() bool
IsRedirect returns true when this create s i t address update request not found response has a 3xx status code
func (*CreateSITAddressUpdateRequestNotFound) IsServerError ¶
func (o *CreateSITAddressUpdateRequestNotFound) IsServerError() bool
IsServerError returns true when this create s i t address update request not found response has a 5xx status code
func (*CreateSITAddressUpdateRequestNotFound) IsSuccess ¶
func (o *CreateSITAddressUpdateRequestNotFound) IsSuccess() bool
IsSuccess returns true when this create s i t address update request not found response has a 2xx status code
func (*CreateSITAddressUpdateRequestNotFound) String ¶
func (o *CreateSITAddressUpdateRequestNotFound) String() string
type CreateSITAddressUpdateRequestParams ¶
type CreateSITAddressUpdateRequestParams struct { // Body. Body *primemessages.CreateSITAddressUpdateRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateSITAddressUpdateRequestParams contains all the parameters to send to the API endpoint
for the create s i t address update request operation. Typically these are written to a http.Request.
func NewCreateSITAddressUpdateRequestParams ¶
func NewCreateSITAddressUpdateRequestParams() *CreateSITAddressUpdateRequestParams
NewCreateSITAddressUpdateRequestParams creates a new CreateSITAddressUpdateRequestParams 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 NewCreateSITAddressUpdateRequestParamsWithContext ¶
func NewCreateSITAddressUpdateRequestParamsWithContext(ctx context.Context) *CreateSITAddressUpdateRequestParams
NewCreateSITAddressUpdateRequestParamsWithContext creates a new CreateSITAddressUpdateRequestParams object with the ability to set a context for a request.
func NewCreateSITAddressUpdateRequestParamsWithHTTPClient ¶
func NewCreateSITAddressUpdateRequestParamsWithHTTPClient(client *http.Client) *CreateSITAddressUpdateRequestParams
NewCreateSITAddressUpdateRequestParamsWithHTTPClient creates a new CreateSITAddressUpdateRequestParams object with the ability to set a custom HTTPClient for a request.
func NewCreateSITAddressUpdateRequestParamsWithTimeout ¶
func NewCreateSITAddressUpdateRequestParamsWithTimeout(timeout time.Duration) *CreateSITAddressUpdateRequestParams
NewCreateSITAddressUpdateRequestParamsWithTimeout creates a new CreateSITAddressUpdateRequestParams object with the ability to set a timeout on a request.
func (*CreateSITAddressUpdateRequestParams) SetBody ¶
func (o *CreateSITAddressUpdateRequestParams) SetBody(body *primemessages.CreateSITAddressUpdateRequest)
SetBody adds the body to the create s i t address update request params
func (*CreateSITAddressUpdateRequestParams) SetContext ¶
func (o *CreateSITAddressUpdateRequestParams) SetContext(ctx context.Context)
SetContext adds the context to the create s i t address update request params
func (*CreateSITAddressUpdateRequestParams) SetDefaults ¶
func (o *CreateSITAddressUpdateRequestParams) SetDefaults()
SetDefaults hydrates default values in the create s i t address update request params (not the query body).
All values with no default are reset to their zero value.
func (*CreateSITAddressUpdateRequestParams) SetHTTPClient ¶
func (o *CreateSITAddressUpdateRequestParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create s i t address update request params
func (*CreateSITAddressUpdateRequestParams) SetTimeout ¶
func (o *CreateSITAddressUpdateRequestParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create s i t address update request params
func (*CreateSITAddressUpdateRequestParams) WithBody ¶
func (o *CreateSITAddressUpdateRequestParams) WithBody(body *primemessages.CreateSITAddressUpdateRequest) *CreateSITAddressUpdateRequestParams
WithBody adds the body to the create s i t address update request params
func (*CreateSITAddressUpdateRequestParams) WithContext ¶
func (o *CreateSITAddressUpdateRequestParams) WithContext(ctx context.Context) *CreateSITAddressUpdateRequestParams
WithContext adds the context to the create s i t address update request params
func (*CreateSITAddressUpdateRequestParams) WithDefaults ¶
func (o *CreateSITAddressUpdateRequestParams) WithDefaults() *CreateSITAddressUpdateRequestParams
WithDefaults hydrates default values in the create s i t address update request params (not the query body).
All values with no default are reset to their zero value.
func (*CreateSITAddressUpdateRequestParams) WithHTTPClient ¶
func (o *CreateSITAddressUpdateRequestParams) WithHTTPClient(client *http.Client) *CreateSITAddressUpdateRequestParams
WithHTTPClient adds the HTTPClient to the create s i t address update request params
func (*CreateSITAddressUpdateRequestParams) WithTimeout ¶
func (o *CreateSITAddressUpdateRequestParams) WithTimeout(timeout time.Duration) *CreateSITAddressUpdateRequestParams
WithTimeout adds the timeout to the create s i t address update request params
func (*CreateSITAddressUpdateRequestParams) WriteToRequest ¶
func (o *CreateSITAddressUpdateRequestParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateSITAddressUpdateRequestReader ¶
type CreateSITAddressUpdateRequestReader struct {
// contains filtered or unexported fields
}
CreateSITAddressUpdateRequestReader is a Reader for the CreateSITAddressUpdateRequest structure.
func (*CreateSITAddressUpdateRequestReader) ReadResponse ¶
func (o *CreateSITAddressUpdateRequestReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateSITAddressUpdateRequestUnauthorized ¶
type CreateSITAddressUpdateRequestUnauthorized struct {
}CreateSITAddressUpdateRequestUnauthorized describes a response with status code 401, with default header values.
The request was denied.
func NewCreateSITAddressUpdateRequestUnauthorized ¶
func NewCreateSITAddressUpdateRequestUnauthorized() *CreateSITAddressUpdateRequestUnauthorized
NewCreateSITAddressUpdateRequestUnauthorized creates a CreateSITAddressUpdateRequestUnauthorized with default headers values
func (*CreateSITAddressUpdateRequestUnauthorized) Code ¶
func (o *CreateSITAddressUpdateRequestUnauthorized) Code() int
Code gets the status code for the create s i t address update request unauthorized response
func (*CreateSITAddressUpdateRequestUnauthorized) Error ¶
func (o *CreateSITAddressUpdateRequestUnauthorized) Error() string
func (*CreateSITAddressUpdateRequestUnauthorized) GetPayload ¶
func (o *CreateSITAddressUpdateRequestUnauthorized) GetPayload() *primemessages.ClientError
func (*CreateSITAddressUpdateRequestUnauthorized) IsClientError ¶
func (o *CreateSITAddressUpdateRequestUnauthorized) IsClientError() bool
IsClientError returns true when this create s i t address update request unauthorized response has a 4xx status code
func (*CreateSITAddressUpdateRequestUnauthorized) IsCode ¶
func (o *CreateSITAddressUpdateRequestUnauthorized) IsCode(code int) bool
IsCode returns true when this create s i t address update request unauthorized response a status code equal to that given
func (*CreateSITAddressUpdateRequestUnauthorized) IsRedirect ¶
func (o *CreateSITAddressUpdateRequestUnauthorized) IsRedirect() bool
IsRedirect returns true when this create s i t address update request unauthorized response has a 3xx status code
func (*CreateSITAddressUpdateRequestUnauthorized) IsServerError ¶
func (o *CreateSITAddressUpdateRequestUnauthorized) IsServerError() bool
IsServerError returns true when this create s i t address update request unauthorized response has a 5xx status code
func (*CreateSITAddressUpdateRequestUnauthorized) IsSuccess ¶
func (o *CreateSITAddressUpdateRequestUnauthorized) IsSuccess() bool
IsSuccess returns true when this create s i t address update request unauthorized response has a 2xx status code
func (*CreateSITAddressUpdateRequestUnauthorized) String ¶
func (o *CreateSITAddressUpdateRequestUnauthorized) String() string
type CreateSITAddressUpdateRequestUnprocessableEntity ¶
type CreateSITAddressUpdateRequestUnprocessableEntity struct {
Payload *primemessages.ValidationError
}
CreateSITAddressUpdateRequestUnprocessableEntity describes a response with status code 422, with default header values.
The request was unprocessable, likely due to bad input from the requester.
func NewCreateSITAddressUpdateRequestUnprocessableEntity ¶
func NewCreateSITAddressUpdateRequestUnprocessableEntity() *CreateSITAddressUpdateRequestUnprocessableEntity
NewCreateSITAddressUpdateRequestUnprocessableEntity creates a CreateSITAddressUpdateRequestUnprocessableEntity with default headers values
func (*CreateSITAddressUpdateRequestUnprocessableEntity) Code ¶
func (o *CreateSITAddressUpdateRequestUnprocessableEntity) Code() int
Code gets the status code for the create s i t address update request unprocessable entity response
func (*CreateSITAddressUpdateRequestUnprocessableEntity) Error ¶
func (o *CreateSITAddressUpdateRequestUnprocessableEntity) Error() string
func (*CreateSITAddressUpdateRequestUnprocessableEntity) GetPayload ¶
func (o *CreateSITAddressUpdateRequestUnprocessableEntity) GetPayload() *primemessages.ValidationError
func (*CreateSITAddressUpdateRequestUnprocessableEntity) IsClientError ¶
func (o *CreateSITAddressUpdateRequestUnprocessableEntity) IsClientError() bool
IsClientError returns true when this create s i t address update request unprocessable entity response has a 4xx status code
func (*CreateSITAddressUpdateRequestUnprocessableEntity) IsCode ¶
func (o *CreateSITAddressUpdateRequestUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this create s i t address update request unprocessable entity response a status code equal to that given
func (*CreateSITAddressUpdateRequestUnprocessableEntity) IsRedirect ¶
func (o *CreateSITAddressUpdateRequestUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this create s i t address update request unprocessable entity response has a 3xx status code
func (*CreateSITAddressUpdateRequestUnprocessableEntity) IsServerError ¶
func (o *CreateSITAddressUpdateRequestUnprocessableEntity) IsServerError() bool
IsServerError returns true when this create s i t address update request unprocessable entity response has a 5xx status code
func (*CreateSITAddressUpdateRequestUnprocessableEntity) IsSuccess ¶
func (o *CreateSITAddressUpdateRequestUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this create s i t address update request unprocessable entity response has a 2xx status code
func (*CreateSITAddressUpdateRequestUnprocessableEntity) String ¶
func (o *CreateSITAddressUpdateRequestUnprocessableEntity) String() string