Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateLocation(params *CreateLocationParams, authInfo runtime.ClientAuthInfoWriter) (*CreateLocationOK, error)
- func (a *Client) DeleteLocation(params *DeleteLocationParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteLocationOK, error)
- func (a *Client) GetLocation(params *GetLocationParams, authInfo runtime.ClientAuthInfoWriter) (*GetLocationOK, error)
- func (a *Client) ListLocations(params *ListLocationsParams, authInfo runtime.ClientAuthInfoWriter) (*ListLocationsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateLocation(params *UpdateLocationParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateLocationOK, error)
- type CreateLocationBadRequest
- type CreateLocationDefault
- type CreateLocationForbidden
- type CreateLocationOK
- type CreateLocationParams
- func NewCreateLocationParams() *CreateLocationParams
- func NewCreateLocationParamsWithContext(ctx context.Context) *CreateLocationParams
- func NewCreateLocationParamsWithHTTPClient(client *http.Client) *CreateLocationParams
- func NewCreateLocationParamsWithTimeout(timeout time.Duration) *CreateLocationParams
- func (o *CreateLocationParams) SetAuthorization(authorization string)
- func (o *CreateLocationParams) SetContext(ctx context.Context)
- func (o *CreateLocationParams) SetCreateLocationRequest(createLocationRequest *models.CreateLocationRequest)
- func (o *CreateLocationParams) SetHTTPClient(client *http.Client)
- func (o *CreateLocationParams) SetTimeout(timeout time.Duration)
- func (o *CreateLocationParams) WithAuthorization(authorization string) *CreateLocationParams
- func (o *CreateLocationParams) WithContext(ctx context.Context) *CreateLocationParams
- func (o *CreateLocationParams) WithCreateLocationRequest(createLocationRequest *models.CreateLocationRequest) *CreateLocationParams
- func (o *CreateLocationParams) WithHTTPClient(client *http.Client) *CreateLocationParams
- func (o *CreateLocationParams) WithTimeout(timeout time.Duration) *CreateLocationParams
- func (o *CreateLocationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateLocationReader
- type CreateLocationTooManyRequests
- type CreateLocationUnauthorized
- type CreateLocationUnprocessableEntity
- type DeleteLocationBadRequest
- type DeleteLocationDefault
- type DeleteLocationForbidden
- type DeleteLocationOK
- type DeleteLocationParams
- func NewDeleteLocationParams() *DeleteLocationParams
- func NewDeleteLocationParamsWithContext(ctx context.Context) *DeleteLocationParams
- func NewDeleteLocationParamsWithHTTPClient(client *http.Client) *DeleteLocationParams
- func NewDeleteLocationParamsWithTimeout(timeout time.Duration) *DeleteLocationParams
- func (o *DeleteLocationParams) SetAuthorization(authorization string)
- func (o *DeleteLocationParams) SetContext(ctx context.Context)
- func (o *DeleteLocationParams) SetHTTPClient(client *http.Client)
- func (o *DeleteLocationParams) SetLocationID(locationID string)
- func (o *DeleteLocationParams) SetTimeout(timeout time.Duration)
- func (o *DeleteLocationParams) WithAuthorization(authorization string) *DeleteLocationParams
- func (o *DeleteLocationParams) WithContext(ctx context.Context) *DeleteLocationParams
- func (o *DeleteLocationParams) WithHTTPClient(client *http.Client) *DeleteLocationParams
- func (o *DeleteLocationParams) WithLocationID(locationID string) *DeleteLocationParams
- func (o *DeleteLocationParams) WithTimeout(timeout time.Duration) *DeleteLocationParams
- func (o *DeleteLocationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteLocationReader
- type DeleteLocationTooManyRequests
- type DeleteLocationUnauthorized
- type GetLocationBadRequest
- type GetLocationDefault
- type GetLocationForbidden
- type GetLocationOK
- type GetLocationParams
- func (o *GetLocationParams) SetAuthorization(authorization string)
- func (o *GetLocationParams) SetContext(ctx context.Context)
- func (o *GetLocationParams) SetHTTPClient(client *http.Client)
- func (o *GetLocationParams) SetLocationID(locationID string)
- func (o *GetLocationParams) SetTimeout(timeout time.Duration)
- func (o *GetLocationParams) WithAuthorization(authorization string) *GetLocationParams
- func (o *GetLocationParams) WithContext(ctx context.Context) *GetLocationParams
- func (o *GetLocationParams) WithHTTPClient(client *http.Client) *GetLocationParams
- func (o *GetLocationParams) WithLocationID(locationID string) *GetLocationParams
- func (o *GetLocationParams) WithTimeout(timeout time.Duration) *GetLocationParams
- func (o *GetLocationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetLocationReader
- type GetLocationTooManyRequests
- type GetLocationUnauthorized
- type ListLocationsDefault
- type ListLocationsForbidden
- type ListLocationsOK
- type ListLocationsParams
- func (o *ListLocationsParams) SetAuthorization(authorization string)
- func (o *ListLocationsParams) SetContext(ctx context.Context)
- func (o *ListLocationsParams) SetHTTPClient(client *http.Client)
- func (o *ListLocationsParams) SetTimeout(timeout time.Duration)
- func (o *ListLocationsParams) WithAuthorization(authorization string) *ListLocationsParams
- func (o *ListLocationsParams) WithContext(ctx context.Context) *ListLocationsParams
- func (o *ListLocationsParams) WithHTTPClient(client *http.Client) *ListLocationsParams
- func (o *ListLocationsParams) WithTimeout(timeout time.Duration) *ListLocationsParams
- func (o *ListLocationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListLocationsReader
- type ListLocationsTooManyRequests
- type ListLocationsUnauthorized
- type UpdateLocationBadRequest
- type UpdateLocationDefault
- type UpdateLocationForbidden
- type UpdateLocationOK
- type UpdateLocationParams
- func NewUpdateLocationParams() *UpdateLocationParams
- func NewUpdateLocationParamsWithContext(ctx context.Context) *UpdateLocationParams
- func NewUpdateLocationParamsWithHTTPClient(client *http.Client) *UpdateLocationParams
- func NewUpdateLocationParamsWithTimeout(timeout time.Duration) *UpdateLocationParams
- func (o *UpdateLocationParams) SetAuthorization(authorization string)
- func (o *UpdateLocationParams) SetContext(ctx context.Context)
- func (o *UpdateLocationParams) SetHTTPClient(client *http.Client)
- func (o *UpdateLocationParams) SetLocationID(locationID string)
- func (o *UpdateLocationParams) SetTimeout(timeout time.Duration)
- func (o *UpdateLocationParams) SetUpdateLocationRequest(updateLocationRequest *models.UpdateLocationRequest)
- func (o *UpdateLocationParams) WithAuthorization(authorization string) *UpdateLocationParams
- func (o *UpdateLocationParams) WithContext(ctx context.Context) *UpdateLocationParams
- func (o *UpdateLocationParams) WithHTTPClient(client *http.Client) *UpdateLocationParams
- func (o *UpdateLocationParams) WithLocationID(locationID string) *UpdateLocationParams
- func (o *UpdateLocationParams) WithTimeout(timeout time.Duration) *UpdateLocationParams
- func (o *UpdateLocationParams) WithUpdateLocationRequest(updateLocationRequest *models.UpdateLocationRequest) *UpdateLocationParams
- func (o *UpdateLocationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateLocationReader
- type UpdateLocationTooManyRequests
- type UpdateLocationUnauthorized
- type UpdateLocationUnprocessableEntity
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 locations API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new locations API client.
func (*Client) CreateLocation ¶
func (a *Client) CreateLocation(params *CreateLocationParams, authInfo runtime.ClientAuthInfoWriter) (*CreateLocationOK, error)
CreateLocation creates a location
Create a Location for a user. We will try and create the Location geographically close to the country code provided in the request body. If we do not support Location creation in the requested country code, then the API will return a 422 error response with an error code of UnsupportedGeoRegionError.
func (*Client) DeleteLocation ¶
func (a *Client) DeleteLocation(params *DeleteLocationParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteLocationOK, error)
DeleteLocation deletes a location
Delete a Location from a user's account.
func (*Client) GetLocation ¶
func (a *Client) GetLocation(params *GetLocationParams, authInfo runtime.ClientAuthInfoWriter) (*GetLocationOK, error)
GetLocation gets a location
Get a specific Location from a user's account.
func (*Client) ListLocations ¶
func (a *Client) ListLocations(params *ListLocationsParams, authInfo runtime.ClientAuthInfoWriter) (*ListLocationsOK, error)
ListLocations lists locations
List all Locations currently available in a user account.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateLocation ¶
func (a *Client) UpdateLocation(params *UpdateLocationParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateLocationOK, error)
UpdateLocation updates a location
All the fields in the request body are optional. Only the specified fields will be updated.
type CreateLocationBadRequest ¶
type CreateLocationBadRequest struct {
Payload *models.ErrorResponse
}
CreateLocationBadRequest handles this case with default header values.
Bad request
func NewCreateLocationBadRequest ¶
func NewCreateLocationBadRequest() *CreateLocationBadRequest
NewCreateLocationBadRequest creates a CreateLocationBadRequest with default headers values
func (*CreateLocationBadRequest) Error ¶
func (o *CreateLocationBadRequest) Error() string
type CreateLocationDefault ¶
type CreateLocationDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
CreateLocationDefault handles this case with default header values.
Unexpected error
func NewCreateLocationDefault ¶
func NewCreateLocationDefault(code int) *CreateLocationDefault
NewCreateLocationDefault creates a CreateLocationDefault with default headers values
func (*CreateLocationDefault) Code ¶
func (o *CreateLocationDefault) Code() int
Code gets the status code for the create location default response
func (*CreateLocationDefault) Error ¶
func (o *CreateLocationDefault) Error() string
type CreateLocationForbidden ¶
type CreateLocationForbidden struct { }
CreateLocationForbidden handles this case with default header values.
Not authorized
func NewCreateLocationForbidden ¶
func NewCreateLocationForbidden() *CreateLocationForbidden
NewCreateLocationForbidden creates a CreateLocationForbidden with default headers values
func (*CreateLocationForbidden) Error ¶
func (o *CreateLocationForbidden) Error() string
type CreateLocationOK ¶
CreateLocationOK handles this case with default header values.
Created successfully.
func NewCreateLocationOK ¶
func NewCreateLocationOK() *CreateLocationOK
NewCreateLocationOK creates a CreateLocationOK with default headers values
func (*CreateLocationOK) Error ¶
func (o *CreateLocationOK) Error() string
type CreateLocationParams ¶
type CreateLocationParams struct { /*Authorization OAuth token */ Authorization string /*CreateLocationRequest*/ CreateLocationRequest *models.CreateLocationRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateLocationParams contains all the parameters to send to the API endpoint for the create location operation typically these are written to a http.Request
func NewCreateLocationParams ¶
func NewCreateLocationParams() *CreateLocationParams
NewCreateLocationParams creates a new CreateLocationParams object with the default values initialized.
func NewCreateLocationParamsWithContext ¶
func NewCreateLocationParamsWithContext(ctx context.Context) *CreateLocationParams
NewCreateLocationParamsWithContext creates a new CreateLocationParams object with the default values initialized, and the ability to set a context for a request
func NewCreateLocationParamsWithHTTPClient ¶
func NewCreateLocationParamsWithHTTPClient(client *http.Client) *CreateLocationParams
NewCreateLocationParamsWithHTTPClient creates a new CreateLocationParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateLocationParamsWithTimeout ¶
func NewCreateLocationParamsWithTimeout(timeout time.Duration) *CreateLocationParams
NewCreateLocationParamsWithTimeout creates a new CreateLocationParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateLocationParams) SetAuthorization ¶
func (o *CreateLocationParams) SetAuthorization(authorization string)
SetAuthorization adds the authorization to the create location params
func (*CreateLocationParams) SetContext ¶
func (o *CreateLocationParams) SetContext(ctx context.Context)
SetContext adds the context to the create location params
func (*CreateLocationParams) SetCreateLocationRequest ¶
func (o *CreateLocationParams) SetCreateLocationRequest(createLocationRequest *models.CreateLocationRequest)
SetCreateLocationRequest adds the createLocationRequest to the create location params
func (*CreateLocationParams) SetHTTPClient ¶
func (o *CreateLocationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create location params
func (*CreateLocationParams) SetTimeout ¶
func (o *CreateLocationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create location params
func (*CreateLocationParams) WithAuthorization ¶
func (o *CreateLocationParams) WithAuthorization(authorization string) *CreateLocationParams
WithAuthorization adds the authorization to the create location params
func (*CreateLocationParams) WithContext ¶
func (o *CreateLocationParams) WithContext(ctx context.Context) *CreateLocationParams
WithContext adds the context to the create location params
func (*CreateLocationParams) WithCreateLocationRequest ¶
func (o *CreateLocationParams) WithCreateLocationRequest(createLocationRequest *models.CreateLocationRequest) *CreateLocationParams
WithCreateLocationRequest adds the createLocationRequest to the create location params
func (*CreateLocationParams) WithHTTPClient ¶
func (o *CreateLocationParams) WithHTTPClient(client *http.Client) *CreateLocationParams
WithHTTPClient adds the HTTPClient to the create location params
func (*CreateLocationParams) WithTimeout ¶
func (o *CreateLocationParams) WithTimeout(timeout time.Duration) *CreateLocationParams
WithTimeout adds the timeout to the create location params
func (*CreateLocationParams) WriteToRequest ¶
func (o *CreateLocationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateLocationReader ¶
type CreateLocationReader struct {
// contains filtered or unexported fields
}
CreateLocationReader is a Reader for the CreateLocation structure.
func (*CreateLocationReader) ReadResponse ¶
func (o *CreateLocationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateLocationTooManyRequests ¶
type CreateLocationTooManyRequests struct {
Payload *models.ErrorResponse
}
CreateLocationTooManyRequests handles this case with default header values.
Too many requests
func NewCreateLocationTooManyRequests ¶
func NewCreateLocationTooManyRequests() *CreateLocationTooManyRequests
NewCreateLocationTooManyRequests creates a CreateLocationTooManyRequests with default headers values
func (*CreateLocationTooManyRequests) Error ¶
func (o *CreateLocationTooManyRequests) Error() string
type CreateLocationUnauthorized ¶
type CreateLocationUnauthorized struct { }
CreateLocationUnauthorized handles this case with default header values.
Not authenticated
func NewCreateLocationUnauthorized ¶
func NewCreateLocationUnauthorized() *CreateLocationUnauthorized
NewCreateLocationUnauthorized creates a CreateLocationUnauthorized with default headers values
func (*CreateLocationUnauthorized) Error ¶
func (o *CreateLocationUnauthorized) Error() string
type CreateLocationUnprocessableEntity ¶
type CreateLocationUnprocessableEntity struct {
Payload *models.ErrorResponse
}
CreateLocationUnprocessableEntity handles this case with default header values.
Unprocessable Entity
func NewCreateLocationUnprocessableEntity ¶
func NewCreateLocationUnprocessableEntity() *CreateLocationUnprocessableEntity
NewCreateLocationUnprocessableEntity creates a CreateLocationUnprocessableEntity with default headers values
func (*CreateLocationUnprocessableEntity) Error ¶
func (o *CreateLocationUnprocessableEntity) Error() string
type DeleteLocationBadRequest ¶
type DeleteLocationBadRequest struct {
Payload *models.ErrorResponse
}
DeleteLocationBadRequest handles this case with default header values.
Bad request
func NewDeleteLocationBadRequest ¶
func NewDeleteLocationBadRequest() *DeleteLocationBadRequest
NewDeleteLocationBadRequest creates a DeleteLocationBadRequest with default headers values
func (*DeleteLocationBadRequest) Error ¶
func (o *DeleteLocationBadRequest) Error() string
type DeleteLocationDefault ¶
type DeleteLocationDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
DeleteLocationDefault handles this case with default header values.
Unexpected error
func NewDeleteLocationDefault ¶
func NewDeleteLocationDefault(code int) *DeleteLocationDefault
NewDeleteLocationDefault creates a DeleteLocationDefault with default headers values
func (*DeleteLocationDefault) Code ¶
func (o *DeleteLocationDefault) Code() int
Code gets the status code for the delete location default response
func (*DeleteLocationDefault) Error ¶
func (o *DeleteLocationDefault) Error() string
type DeleteLocationForbidden ¶
type DeleteLocationForbidden struct { }
DeleteLocationForbidden handles this case with default header values.
Not authorized
func NewDeleteLocationForbidden ¶
func NewDeleteLocationForbidden() *DeleteLocationForbidden
NewDeleteLocationForbidden creates a DeleteLocationForbidden with default headers values
func (*DeleteLocationForbidden) Error ¶
func (o *DeleteLocationForbidden) Error() string
type DeleteLocationOK ¶
type DeleteLocationOK struct {
Payload models.DeleteLocationResponse
}
DeleteLocationOK handles this case with default header values.
An empty object response.
func NewDeleteLocationOK ¶
func NewDeleteLocationOK() *DeleteLocationOK
NewDeleteLocationOK creates a DeleteLocationOK with default headers values
func (*DeleteLocationOK) Error ¶
func (o *DeleteLocationOK) Error() string
type DeleteLocationParams ¶
type DeleteLocationParams struct { /*Authorization OAuth token */ Authorization string /*LocationID The ID of the location. */ LocationID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteLocationParams contains all the parameters to send to the API endpoint for the delete location operation typically these are written to a http.Request
func NewDeleteLocationParams ¶
func NewDeleteLocationParams() *DeleteLocationParams
NewDeleteLocationParams creates a new DeleteLocationParams object with the default values initialized.
func NewDeleteLocationParamsWithContext ¶
func NewDeleteLocationParamsWithContext(ctx context.Context) *DeleteLocationParams
NewDeleteLocationParamsWithContext creates a new DeleteLocationParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteLocationParamsWithHTTPClient ¶
func NewDeleteLocationParamsWithHTTPClient(client *http.Client) *DeleteLocationParams
NewDeleteLocationParamsWithHTTPClient creates a new DeleteLocationParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteLocationParamsWithTimeout ¶
func NewDeleteLocationParamsWithTimeout(timeout time.Duration) *DeleteLocationParams
NewDeleteLocationParamsWithTimeout creates a new DeleteLocationParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteLocationParams) SetAuthorization ¶
func (o *DeleteLocationParams) SetAuthorization(authorization string)
SetAuthorization adds the authorization to the delete location params
func (*DeleteLocationParams) SetContext ¶
func (o *DeleteLocationParams) SetContext(ctx context.Context)
SetContext adds the context to the delete location params
func (*DeleteLocationParams) SetHTTPClient ¶
func (o *DeleteLocationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete location params
func (*DeleteLocationParams) SetLocationID ¶
func (o *DeleteLocationParams) SetLocationID(locationID string)
SetLocationID adds the locationId to the delete location params
func (*DeleteLocationParams) SetTimeout ¶
func (o *DeleteLocationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete location params
func (*DeleteLocationParams) WithAuthorization ¶
func (o *DeleteLocationParams) WithAuthorization(authorization string) *DeleteLocationParams
WithAuthorization adds the authorization to the delete location params
func (*DeleteLocationParams) WithContext ¶
func (o *DeleteLocationParams) WithContext(ctx context.Context) *DeleteLocationParams
WithContext adds the context to the delete location params
func (*DeleteLocationParams) WithHTTPClient ¶
func (o *DeleteLocationParams) WithHTTPClient(client *http.Client) *DeleteLocationParams
WithHTTPClient adds the HTTPClient to the delete location params
func (*DeleteLocationParams) WithLocationID ¶
func (o *DeleteLocationParams) WithLocationID(locationID string) *DeleteLocationParams
WithLocationID adds the locationID to the delete location params
func (*DeleteLocationParams) WithTimeout ¶
func (o *DeleteLocationParams) WithTimeout(timeout time.Duration) *DeleteLocationParams
WithTimeout adds the timeout to the delete location params
func (*DeleteLocationParams) WriteToRequest ¶
func (o *DeleteLocationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteLocationReader ¶
type DeleteLocationReader struct {
// contains filtered or unexported fields
}
DeleteLocationReader is a Reader for the DeleteLocation structure.
func (*DeleteLocationReader) ReadResponse ¶
func (o *DeleteLocationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteLocationTooManyRequests ¶
type DeleteLocationTooManyRequests struct {
Payload *models.ErrorResponse
}
DeleteLocationTooManyRequests handles this case with default header values.
Too many requests
func NewDeleteLocationTooManyRequests ¶
func NewDeleteLocationTooManyRequests() *DeleteLocationTooManyRequests
NewDeleteLocationTooManyRequests creates a DeleteLocationTooManyRequests with default headers values
func (*DeleteLocationTooManyRequests) Error ¶
func (o *DeleteLocationTooManyRequests) Error() string
type DeleteLocationUnauthorized ¶
type DeleteLocationUnauthorized struct { }
DeleteLocationUnauthorized handles this case with default header values.
Not authenticated
func NewDeleteLocationUnauthorized ¶
func NewDeleteLocationUnauthorized() *DeleteLocationUnauthorized
NewDeleteLocationUnauthorized creates a DeleteLocationUnauthorized with default headers values
func (*DeleteLocationUnauthorized) Error ¶
func (o *DeleteLocationUnauthorized) Error() string
type GetLocationBadRequest ¶
type GetLocationBadRequest struct {
Payload *models.ErrorResponse
}
GetLocationBadRequest handles this case with default header values.
Bad request
func NewGetLocationBadRequest ¶
func NewGetLocationBadRequest() *GetLocationBadRequest
NewGetLocationBadRequest creates a GetLocationBadRequest with default headers values
func (*GetLocationBadRequest) Error ¶
func (o *GetLocationBadRequest) Error() string
type GetLocationDefault ¶
type GetLocationDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
GetLocationDefault handles this case with default header values.
Unexpected error
func NewGetLocationDefault ¶
func NewGetLocationDefault(code int) *GetLocationDefault
NewGetLocationDefault creates a GetLocationDefault with default headers values
func (*GetLocationDefault) Code ¶
func (o *GetLocationDefault) Code() int
Code gets the status code for the get location default response
func (*GetLocationDefault) Error ¶
func (o *GetLocationDefault) Error() string
type GetLocationForbidden ¶
type GetLocationForbidden struct { }
GetLocationForbidden handles this case with default header values.
Not authorized
func NewGetLocationForbidden ¶
func NewGetLocationForbidden() *GetLocationForbidden
NewGetLocationForbidden creates a GetLocationForbidden with default headers values
func (*GetLocationForbidden) Error ¶
func (o *GetLocationForbidden) Error() string
type GetLocationOK ¶
GetLocationOK handles this case with default header values.
A Location.
func NewGetLocationOK ¶
func NewGetLocationOK() *GetLocationOK
NewGetLocationOK creates a GetLocationOK with default headers values
func (*GetLocationOK) Error ¶
func (o *GetLocationOK) Error() string
type GetLocationParams ¶
type GetLocationParams struct { /*Authorization OAuth token */ Authorization string /*LocationID The ID of the location. */ LocationID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetLocationParams contains all the parameters to send to the API endpoint for the get location operation typically these are written to a http.Request
func NewGetLocationParams ¶
func NewGetLocationParams() *GetLocationParams
NewGetLocationParams creates a new GetLocationParams object with the default values initialized.
func NewGetLocationParamsWithContext ¶
func NewGetLocationParamsWithContext(ctx context.Context) *GetLocationParams
NewGetLocationParamsWithContext creates a new GetLocationParams object with the default values initialized, and the ability to set a context for a request
func NewGetLocationParamsWithHTTPClient ¶
func NewGetLocationParamsWithHTTPClient(client *http.Client) *GetLocationParams
NewGetLocationParamsWithHTTPClient creates a new GetLocationParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetLocationParamsWithTimeout ¶
func NewGetLocationParamsWithTimeout(timeout time.Duration) *GetLocationParams
NewGetLocationParamsWithTimeout creates a new GetLocationParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetLocationParams) SetAuthorization ¶
func (o *GetLocationParams) SetAuthorization(authorization string)
SetAuthorization adds the authorization to the get location params
func (*GetLocationParams) SetContext ¶
func (o *GetLocationParams) SetContext(ctx context.Context)
SetContext adds the context to the get location params
func (*GetLocationParams) SetHTTPClient ¶
func (o *GetLocationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get location params
func (*GetLocationParams) SetLocationID ¶
func (o *GetLocationParams) SetLocationID(locationID string)
SetLocationID adds the locationId to the get location params
func (*GetLocationParams) SetTimeout ¶
func (o *GetLocationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get location params
func (*GetLocationParams) WithAuthorization ¶
func (o *GetLocationParams) WithAuthorization(authorization string) *GetLocationParams
WithAuthorization adds the authorization to the get location params
func (*GetLocationParams) WithContext ¶
func (o *GetLocationParams) WithContext(ctx context.Context) *GetLocationParams
WithContext adds the context to the get location params
func (*GetLocationParams) WithHTTPClient ¶
func (o *GetLocationParams) WithHTTPClient(client *http.Client) *GetLocationParams
WithHTTPClient adds the HTTPClient to the get location params
func (*GetLocationParams) WithLocationID ¶
func (o *GetLocationParams) WithLocationID(locationID string) *GetLocationParams
WithLocationID adds the locationID to the get location params
func (*GetLocationParams) WithTimeout ¶
func (o *GetLocationParams) WithTimeout(timeout time.Duration) *GetLocationParams
WithTimeout adds the timeout to the get location params
func (*GetLocationParams) WriteToRequest ¶
func (o *GetLocationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetLocationReader ¶
type GetLocationReader struct {
// contains filtered or unexported fields
}
GetLocationReader is a Reader for the GetLocation structure.
func (*GetLocationReader) ReadResponse ¶
func (o *GetLocationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetLocationTooManyRequests ¶
type GetLocationTooManyRequests struct {
Payload *models.ErrorResponse
}
GetLocationTooManyRequests handles this case with default header values.
Too many requests
func NewGetLocationTooManyRequests ¶
func NewGetLocationTooManyRequests() *GetLocationTooManyRequests
NewGetLocationTooManyRequests creates a GetLocationTooManyRequests with default headers values
func (*GetLocationTooManyRequests) Error ¶
func (o *GetLocationTooManyRequests) Error() string
type GetLocationUnauthorized ¶
type GetLocationUnauthorized struct { }
GetLocationUnauthorized handles this case with default header values.
Not authenticated
func NewGetLocationUnauthorized ¶
func NewGetLocationUnauthorized() *GetLocationUnauthorized
NewGetLocationUnauthorized creates a GetLocationUnauthorized with default headers values
func (*GetLocationUnauthorized) Error ¶
func (o *GetLocationUnauthorized) Error() string
type ListLocationsDefault ¶
type ListLocationsDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
ListLocationsDefault handles this case with default header values.
Unexpected error
func NewListLocationsDefault ¶
func NewListLocationsDefault(code int) *ListLocationsDefault
NewListLocationsDefault creates a ListLocationsDefault with default headers values
func (*ListLocationsDefault) Code ¶
func (o *ListLocationsDefault) Code() int
Code gets the status code for the list locations default response
func (*ListLocationsDefault) Error ¶
func (o *ListLocationsDefault) Error() string
type ListLocationsForbidden ¶
type ListLocationsForbidden struct { }
ListLocationsForbidden handles this case with default header values.
Not authorized
func NewListLocationsForbidden ¶
func NewListLocationsForbidden() *ListLocationsForbidden
NewListLocationsForbidden creates a ListLocationsForbidden with default headers values
func (*ListLocationsForbidden) Error ¶
func (o *ListLocationsForbidden) Error() string
type ListLocationsOK ¶
type ListLocationsOK struct {
Payload *models.PagedLocations
}
ListLocationsOK handles this case with default header values.
An array of Locations
func NewListLocationsOK ¶
func NewListLocationsOK() *ListLocationsOK
NewListLocationsOK creates a ListLocationsOK with default headers values
func (*ListLocationsOK) Error ¶
func (o *ListLocationsOK) Error() string
type ListLocationsParams ¶
type ListLocationsParams struct { /*Authorization OAuth token */ Authorization string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListLocationsParams contains all the parameters to send to the API endpoint for the list locations operation typically these are written to a http.Request
func NewListLocationsParams ¶
func NewListLocationsParams() *ListLocationsParams
NewListLocationsParams creates a new ListLocationsParams object with the default values initialized.
func NewListLocationsParamsWithContext ¶
func NewListLocationsParamsWithContext(ctx context.Context) *ListLocationsParams
NewListLocationsParamsWithContext creates a new ListLocationsParams object with the default values initialized, and the ability to set a context for a request
func NewListLocationsParamsWithHTTPClient ¶
func NewListLocationsParamsWithHTTPClient(client *http.Client) *ListLocationsParams
NewListLocationsParamsWithHTTPClient creates a new ListLocationsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListLocationsParamsWithTimeout ¶
func NewListLocationsParamsWithTimeout(timeout time.Duration) *ListLocationsParams
NewListLocationsParamsWithTimeout creates a new ListLocationsParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListLocationsParams) SetAuthorization ¶
func (o *ListLocationsParams) SetAuthorization(authorization string)
SetAuthorization adds the authorization to the list locations params
func (*ListLocationsParams) SetContext ¶
func (o *ListLocationsParams) SetContext(ctx context.Context)
SetContext adds the context to the list locations params
func (*ListLocationsParams) SetHTTPClient ¶
func (o *ListLocationsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list locations params
func (*ListLocationsParams) SetTimeout ¶
func (o *ListLocationsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list locations params
func (*ListLocationsParams) WithAuthorization ¶
func (o *ListLocationsParams) WithAuthorization(authorization string) *ListLocationsParams
WithAuthorization adds the authorization to the list locations params
func (*ListLocationsParams) WithContext ¶
func (o *ListLocationsParams) WithContext(ctx context.Context) *ListLocationsParams
WithContext adds the context to the list locations params
func (*ListLocationsParams) WithHTTPClient ¶
func (o *ListLocationsParams) WithHTTPClient(client *http.Client) *ListLocationsParams
WithHTTPClient adds the HTTPClient to the list locations params
func (*ListLocationsParams) WithTimeout ¶
func (o *ListLocationsParams) WithTimeout(timeout time.Duration) *ListLocationsParams
WithTimeout adds the timeout to the list locations params
func (*ListLocationsParams) WriteToRequest ¶
func (o *ListLocationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListLocationsReader ¶
type ListLocationsReader struct {
// contains filtered or unexported fields
}
ListLocationsReader is a Reader for the ListLocations structure.
func (*ListLocationsReader) ReadResponse ¶
func (o *ListLocationsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListLocationsTooManyRequests ¶
type ListLocationsTooManyRequests struct {
Payload *models.ErrorResponse
}
ListLocationsTooManyRequests handles this case with default header values.
Too many requests
func NewListLocationsTooManyRequests ¶
func NewListLocationsTooManyRequests() *ListLocationsTooManyRequests
NewListLocationsTooManyRequests creates a ListLocationsTooManyRequests with default headers values
func (*ListLocationsTooManyRequests) Error ¶
func (o *ListLocationsTooManyRequests) Error() string
type ListLocationsUnauthorized ¶
type ListLocationsUnauthorized struct { }
ListLocationsUnauthorized handles this case with default header values.
Not authenticated
func NewListLocationsUnauthorized ¶
func NewListLocationsUnauthorized() *ListLocationsUnauthorized
NewListLocationsUnauthorized creates a ListLocationsUnauthorized with default headers values
func (*ListLocationsUnauthorized) Error ¶
func (o *ListLocationsUnauthorized) Error() string
type UpdateLocationBadRequest ¶
type UpdateLocationBadRequest struct {
Payload *models.ErrorResponse
}
UpdateLocationBadRequest handles this case with default header values.
Bad request
func NewUpdateLocationBadRequest ¶
func NewUpdateLocationBadRequest() *UpdateLocationBadRequest
NewUpdateLocationBadRequest creates a UpdateLocationBadRequest with default headers values
func (*UpdateLocationBadRequest) Error ¶
func (o *UpdateLocationBadRequest) Error() string
type UpdateLocationDefault ¶
type UpdateLocationDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
UpdateLocationDefault handles this case with default header values.
Unexpected error
func NewUpdateLocationDefault ¶
func NewUpdateLocationDefault(code int) *UpdateLocationDefault
NewUpdateLocationDefault creates a UpdateLocationDefault with default headers values
func (*UpdateLocationDefault) Code ¶
func (o *UpdateLocationDefault) Code() int
Code gets the status code for the update location default response
func (*UpdateLocationDefault) Error ¶
func (o *UpdateLocationDefault) Error() string
type UpdateLocationForbidden ¶
type UpdateLocationForbidden struct { }
UpdateLocationForbidden handles this case with default header values.
Not authorized
func NewUpdateLocationForbidden ¶
func NewUpdateLocationForbidden() *UpdateLocationForbidden
NewUpdateLocationForbidden creates a UpdateLocationForbidden with default headers values
func (*UpdateLocationForbidden) Error ¶
func (o *UpdateLocationForbidden) Error() string
type UpdateLocationOK ¶
UpdateLocationOK handles this case with default header values.
A Location.
func NewUpdateLocationOK ¶
func NewUpdateLocationOK() *UpdateLocationOK
NewUpdateLocationOK creates a UpdateLocationOK with default headers values
func (*UpdateLocationOK) Error ¶
func (o *UpdateLocationOK) Error() string
type UpdateLocationParams ¶
type UpdateLocationParams struct { /*Authorization OAuth token */ Authorization string /*LocationID The ID of the location. */ LocationID string /*UpdateLocationRequest*/ UpdateLocationRequest *models.UpdateLocationRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateLocationParams contains all the parameters to send to the API endpoint for the update location operation typically these are written to a http.Request
func NewUpdateLocationParams ¶
func NewUpdateLocationParams() *UpdateLocationParams
NewUpdateLocationParams creates a new UpdateLocationParams object with the default values initialized.
func NewUpdateLocationParamsWithContext ¶
func NewUpdateLocationParamsWithContext(ctx context.Context) *UpdateLocationParams
NewUpdateLocationParamsWithContext creates a new UpdateLocationParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateLocationParamsWithHTTPClient ¶
func NewUpdateLocationParamsWithHTTPClient(client *http.Client) *UpdateLocationParams
NewUpdateLocationParamsWithHTTPClient creates a new UpdateLocationParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateLocationParamsWithTimeout ¶
func NewUpdateLocationParamsWithTimeout(timeout time.Duration) *UpdateLocationParams
NewUpdateLocationParamsWithTimeout creates a new UpdateLocationParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateLocationParams) SetAuthorization ¶
func (o *UpdateLocationParams) SetAuthorization(authorization string)
SetAuthorization adds the authorization to the update location params
func (*UpdateLocationParams) SetContext ¶
func (o *UpdateLocationParams) SetContext(ctx context.Context)
SetContext adds the context to the update location params
func (*UpdateLocationParams) SetHTTPClient ¶
func (o *UpdateLocationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update location params
func (*UpdateLocationParams) SetLocationID ¶
func (o *UpdateLocationParams) SetLocationID(locationID string)
SetLocationID adds the locationId to the update location params
func (*UpdateLocationParams) SetTimeout ¶
func (o *UpdateLocationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update location params
func (*UpdateLocationParams) SetUpdateLocationRequest ¶
func (o *UpdateLocationParams) SetUpdateLocationRequest(updateLocationRequest *models.UpdateLocationRequest)
SetUpdateLocationRequest adds the updateLocationRequest to the update location params
func (*UpdateLocationParams) WithAuthorization ¶
func (o *UpdateLocationParams) WithAuthorization(authorization string) *UpdateLocationParams
WithAuthorization adds the authorization to the update location params
func (*UpdateLocationParams) WithContext ¶
func (o *UpdateLocationParams) WithContext(ctx context.Context) *UpdateLocationParams
WithContext adds the context to the update location params
func (*UpdateLocationParams) WithHTTPClient ¶
func (o *UpdateLocationParams) WithHTTPClient(client *http.Client) *UpdateLocationParams
WithHTTPClient adds the HTTPClient to the update location params
func (*UpdateLocationParams) WithLocationID ¶
func (o *UpdateLocationParams) WithLocationID(locationID string) *UpdateLocationParams
WithLocationID adds the locationID to the update location params
func (*UpdateLocationParams) WithTimeout ¶
func (o *UpdateLocationParams) WithTimeout(timeout time.Duration) *UpdateLocationParams
WithTimeout adds the timeout to the update location params
func (*UpdateLocationParams) WithUpdateLocationRequest ¶
func (o *UpdateLocationParams) WithUpdateLocationRequest(updateLocationRequest *models.UpdateLocationRequest) *UpdateLocationParams
WithUpdateLocationRequest adds the updateLocationRequest to the update location params
func (*UpdateLocationParams) WriteToRequest ¶
func (o *UpdateLocationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateLocationReader ¶
type UpdateLocationReader struct {
// contains filtered or unexported fields
}
UpdateLocationReader is a Reader for the UpdateLocation structure.
func (*UpdateLocationReader) ReadResponse ¶
func (o *UpdateLocationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateLocationTooManyRequests ¶
type UpdateLocationTooManyRequests struct {
Payload *models.ErrorResponse
}
UpdateLocationTooManyRequests handles this case with default header values.
Too many requests
func NewUpdateLocationTooManyRequests ¶
func NewUpdateLocationTooManyRequests() *UpdateLocationTooManyRequests
NewUpdateLocationTooManyRequests creates a UpdateLocationTooManyRequests with default headers values
func (*UpdateLocationTooManyRequests) Error ¶
func (o *UpdateLocationTooManyRequests) Error() string
type UpdateLocationUnauthorized ¶
type UpdateLocationUnauthorized struct { }
UpdateLocationUnauthorized handles this case with default header values.
Not authenticated
func NewUpdateLocationUnauthorized ¶
func NewUpdateLocationUnauthorized() *UpdateLocationUnauthorized
NewUpdateLocationUnauthorized creates a UpdateLocationUnauthorized with default headers values
func (*UpdateLocationUnauthorized) Error ¶
func (o *UpdateLocationUnauthorized) Error() string
type UpdateLocationUnprocessableEntity ¶
type UpdateLocationUnprocessableEntity struct {
Payload *models.ErrorResponse
}
UpdateLocationUnprocessableEntity handles this case with default header values.
Unprocessable Entity
func NewUpdateLocationUnprocessableEntity ¶
func NewUpdateLocationUnprocessableEntity() *UpdateLocationUnprocessableEntity
NewUpdateLocationUnprocessableEntity creates a UpdateLocationUnprocessableEntity with default headers values
func (*UpdateLocationUnprocessableEntity) Error ¶
func (o *UpdateLocationUnprocessableEntity) Error() string
Source Files ¶
- create_location_parameters.go
- create_location_responses.go
- delete_location_parameters.go
- delete_location_responses.go
- get_location_parameters.go
- get_location_responses.go
- list_locations_parameters.go
- list_locations_responses.go
- locations_client.go
- update_location_parameters.go
- update_location_responses.go