Documentation ¶
Index ¶
- type Client
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) V1DatacentersGet(params *V1DatacentersGetParams, opts ...ClientOption) (*V1DatacentersGetOK, error)
- func (a *Client) V1DatacentersGetall(params *V1DatacentersGetallParams, opts ...ClientOption) (*V1DatacentersGetallOK, error)
- type ClientOption
- type ClientService
- type V1DatacentersGetBadRequest
- func (o *V1DatacentersGetBadRequest) Code() int
- func (o *V1DatacentersGetBadRequest) Error() string
- func (o *V1DatacentersGetBadRequest) GetPayload() *models.Error
- func (o *V1DatacentersGetBadRequest) IsClientError() bool
- func (o *V1DatacentersGetBadRequest) IsCode(code int) bool
- func (o *V1DatacentersGetBadRequest) IsRedirect() bool
- func (o *V1DatacentersGetBadRequest) IsServerError() bool
- func (o *V1DatacentersGetBadRequest) IsSuccess() bool
- func (o *V1DatacentersGetBadRequest) String() string
- type V1DatacentersGetForbidden
- func (o *V1DatacentersGetForbidden) Code() int
- func (o *V1DatacentersGetForbidden) Error() string
- func (o *V1DatacentersGetForbidden) GetPayload() *models.Error
- func (o *V1DatacentersGetForbidden) IsClientError() bool
- func (o *V1DatacentersGetForbidden) IsCode(code int) bool
- func (o *V1DatacentersGetForbidden) IsRedirect() bool
- func (o *V1DatacentersGetForbidden) IsServerError() bool
- func (o *V1DatacentersGetForbidden) IsSuccess() bool
- func (o *V1DatacentersGetForbidden) String() string
- type V1DatacentersGetInternalServerError
- func (o *V1DatacentersGetInternalServerError) Code() int
- func (o *V1DatacentersGetInternalServerError) Error() string
- func (o *V1DatacentersGetInternalServerError) GetPayload() *models.Error
- func (o *V1DatacentersGetInternalServerError) IsClientError() bool
- func (o *V1DatacentersGetInternalServerError) IsCode(code int) bool
- func (o *V1DatacentersGetInternalServerError) IsRedirect() bool
- func (o *V1DatacentersGetInternalServerError) IsServerError() bool
- func (o *V1DatacentersGetInternalServerError) IsSuccess() bool
- func (o *V1DatacentersGetInternalServerError) String() string
- type V1DatacentersGetOK
- func (o *V1DatacentersGetOK) Code() int
- func (o *V1DatacentersGetOK) Error() string
- func (o *V1DatacentersGetOK) GetPayload() *models.Datacenter
- func (o *V1DatacentersGetOK) IsClientError() bool
- func (o *V1DatacentersGetOK) IsCode(code int) bool
- func (o *V1DatacentersGetOK) IsRedirect() bool
- func (o *V1DatacentersGetOK) IsServerError() bool
- func (o *V1DatacentersGetOK) IsSuccess() bool
- func (o *V1DatacentersGetOK) String() string
- type V1DatacentersGetParams
- func NewV1DatacentersGetParams() *V1DatacentersGetParams
- func NewV1DatacentersGetParamsWithContext(ctx context.Context) *V1DatacentersGetParams
- func NewV1DatacentersGetParamsWithHTTPClient(client *http.Client) *V1DatacentersGetParams
- func NewV1DatacentersGetParamsWithTimeout(timeout time.Duration) *V1DatacentersGetParams
- func (o *V1DatacentersGetParams) SetContext(ctx context.Context)
- func (o *V1DatacentersGetParams) SetDatacenterRegion(datacenterRegion string)
- func (o *V1DatacentersGetParams) SetDefaults()
- func (o *V1DatacentersGetParams) SetHTTPClient(client *http.Client)
- func (o *V1DatacentersGetParams) SetTimeout(timeout time.Duration)
- func (o *V1DatacentersGetParams) WithContext(ctx context.Context) *V1DatacentersGetParams
- func (o *V1DatacentersGetParams) WithDatacenterRegion(datacenterRegion string) *V1DatacentersGetParams
- func (o *V1DatacentersGetParams) WithDefaults() *V1DatacentersGetParams
- func (o *V1DatacentersGetParams) WithHTTPClient(client *http.Client) *V1DatacentersGetParams
- func (o *V1DatacentersGetParams) WithTimeout(timeout time.Duration) *V1DatacentersGetParams
- func (o *V1DatacentersGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type V1DatacentersGetReader
- type V1DatacentersGetUnauthorized
- func (o *V1DatacentersGetUnauthorized) Code() int
- func (o *V1DatacentersGetUnauthorized) Error() string
- func (o *V1DatacentersGetUnauthorized) GetPayload() *models.Error
- func (o *V1DatacentersGetUnauthorized) IsClientError() bool
- func (o *V1DatacentersGetUnauthorized) IsCode(code int) bool
- func (o *V1DatacentersGetUnauthorized) IsRedirect() bool
- func (o *V1DatacentersGetUnauthorized) IsServerError() bool
- func (o *V1DatacentersGetUnauthorized) IsSuccess() bool
- func (o *V1DatacentersGetUnauthorized) String() string
- type V1DatacentersGetallBadRequest
- func (o *V1DatacentersGetallBadRequest) Code() int
- func (o *V1DatacentersGetallBadRequest) Error() string
- func (o *V1DatacentersGetallBadRequest) GetPayload() *models.Error
- func (o *V1DatacentersGetallBadRequest) IsClientError() bool
- func (o *V1DatacentersGetallBadRequest) IsCode(code int) bool
- func (o *V1DatacentersGetallBadRequest) IsRedirect() bool
- func (o *V1DatacentersGetallBadRequest) IsServerError() bool
- func (o *V1DatacentersGetallBadRequest) IsSuccess() bool
- func (o *V1DatacentersGetallBadRequest) String() string
- type V1DatacentersGetallForbidden
- func (o *V1DatacentersGetallForbidden) Code() int
- func (o *V1DatacentersGetallForbidden) Error() string
- func (o *V1DatacentersGetallForbidden) GetPayload() *models.Error
- func (o *V1DatacentersGetallForbidden) IsClientError() bool
- func (o *V1DatacentersGetallForbidden) IsCode(code int) bool
- func (o *V1DatacentersGetallForbidden) IsRedirect() bool
- func (o *V1DatacentersGetallForbidden) IsServerError() bool
- func (o *V1DatacentersGetallForbidden) IsSuccess() bool
- func (o *V1DatacentersGetallForbidden) String() string
- type V1DatacentersGetallInternalServerError
- func (o *V1DatacentersGetallInternalServerError) Code() int
- func (o *V1DatacentersGetallInternalServerError) Error() string
- func (o *V1DatacentersGetallInternalServerError) GetPayload() *models.Error
- func (o *V1DatacentersGetallInternalServerError) IsClientError() bool
- func (o *V1DatacentersGetallInternalServerError) IsCode(code int) bool
- func (o *V1DatacentersGetallInternalServerError) IsRedirect() bool
- func (o *V1DatacentersGetallInternalServerError) IsServerError() bool
- func (o *V1DatacentersGetallInternalServerError) IsSuccess() bool
- func (o *V1DatacentersGetallInternalServerError) String() string
- type V1DatacentersGetallOK
- func (o *V1DatacentersGetallOK) Code() int
- func (o *V1DatacentersGetallOK) Error() string
- func (o *V1DatacentersGetallOK) GetPayload() *models.Datacenters
- func (o *V1DatacentersGetallOK) IsClientError() bool
- func (o *V1DatacentersGetallOK) IsCode(code int) bool
- func (o *V1DatacentersGetallOK) IsRedirect() bool
- func (o *V1DatacentersGetallOK) IsServerError() bool
- func (o *V1DatacentersGetallOK) IsSuccess() bool
- func (o *V1DatacentersGetallOK) String() string
- type V1DatacentersGetallParams
- func NewV1DatacentersGetallParams() *V1DatacentersGetallParams
- func NewV1DatacentersGetallParamsWithContext(ctx context.Context) *V1DatacentersGetallParams
- func NewV1DatacentersGetallParamsWithHTTPClient(client *http.Client) *V1DatacentersGetallParams
- func NewV1DatacentersGetallParamsWithTimeout(timeout time.Duration) *V1DatacentersGetallParams
- func (o *V1DatacentersGetallParams) SetContext(ctx context.Context)
- func (o *V1DatacentersGetallParams) SetDefaults()
- func (o *V1DatacentersGetallParams) SetHTTPClient(client *http.Client)
- func (o *V1DatacentersGetallParams) SetTimeout(timeout time.Duration)
- func (o *V1DatacentersGetallParams) WithContext(ctx context.Context) *V1DatacentersGetallParams
- func (o *V1DatacentersGetallParams) WithDefaults() *V1DatacentersGetallParams
- func (o *V1DatacentersGetallParams) WithHTTPClient(client *http.Client) *V1DatacentersGetallParams
- func (o *V1DatacentersGetallParams) WithTimeout(timeout time.Duration) *V1DatacentersGetallParams
- func (o *V1DatacentersGetallParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type V1DatacentersGetallReader
- type V1DatacentersGetallUnauthorized
- func (o *V1DatacentersGetallUnauthorized) Code() int
- func (o *V1DatacentersGetallUnauthorized) Error() string
- func (o *V1DatacentersGetallUnauthorized) GetPayload() *models.Error
- func (o *V1DatacentersGetallUnauthorized) IsClientError() bool
- func (o *V1DatacentersGetallUnauthorized) IsCode(code int) bool
- func (o *V1DatacentersGetallUnauthorized) IsRedirect() bool
- func (o *V1DatacentersGetallUnauthorized) IsServerError() bool
- func (o *V1DatacentersGetallUnauthorized) IsSuccess() bool
- func (o *V1DatacentersGetallUnauthorized) 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 datacenters API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) V1DatacentersGet ¶
func (a *Client) V1DatacentersGet(params *V1DatacentersGetParams, opts ...ClientOption) (*V1DatacentersGetOK, error)
V1DatacentersGet gets a datacenter s information and capabilities
func (*Client) V1DatacentersGetall ¶
func (a *Client) V1DatacentersGetall(params *V1DatacentersGetallParams, opts ...ClientOption) (*V1DatacentersGetallOK, error)
V1DatacentersGetall gets all datacenters information and capabilities
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface { V1DatacentersGet(params *V1DatacentersGetParams, opts ...ClientOption) (*V1DatacentersGetOK, error) V1DatacentersGetall(params *V1DatacentersGetallParams, opts ...ClientOption) (*V1DatacentersGetallOK, 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 datacenters API client.
func NewClientWithBasicAuth ¶ added in v1.7.0
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new datacenters API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶ added in v1.7.0
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new datacenters API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type V1DatacentersGetBadRequest ¶
V1DatacentersGetBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewV1DatacentersGetBadRequest ¶
func NewV1DatacentersGetBadRequest() *V1DatacentersGetBadRequest
NewV1DatacentersGetBadRequest creates a V1DatacentersGetBadRequest with default headers values
func (*V1DatacentersGetBadRequest) Code ¶
func (o *V1DatacentersGetBadRequest) Code() int
Code gets the status code for the v1 datacenters get bad request response
func (*V1DatacentersGetBadRequest) Error ¶
func (o *V1DatacentersGetBadRequest) Error() string
func (*V1DatacentersGetBadRequest) GetPayload ¶
func (o *V1DatacentersGetBadRequest) GetPayload() *models.Error
func (*V1DatacentersGetBadRequest) IsClientError ¶
func (o *V1DatacentersGetBadRequest) IsClientError() bool
IsClientError returns true when this v1 datacenters get bad request response has a 4xx status code
func (*V1DatacentersGetBadRequest) IsCode ¶
func (o *V1DatacentersGetBadRequest) IsCode(code int) bool
IsCode returns true when this v1 datacenters get bad request response a status code equal to that given
func (*V1DatacentersGetBadRequest) IsRedirect ¶
func (o *V1DatacentersGetBadRequest) IsRedirect() bool
IsRedirect returns true when this v1 datacenters get bad request response has a 3xx status code
func (*V1DatacentersGetBadRequest) IsServerError ¶
func (o *V1DatacentersGetBadRequest) IsServerError() bool
IsServerError returns true when this v1 datacenters get bad request response has a 5xx status code
func (*V1DatacentersGetBadRequest) IsSuccess ¶
func (o *V1DatacentersGetBadRequest) IsSuccess() bool
IsSuccess returns true when this v1 datacenters get bad request response has a 2xx status code
func (*V1DatacentersGetBadRequest) String ¶
func (o *V1DatacentersGetBadRequest) String() string
type V1DatacentersGetForbidden ¶
V1DatacentersGetForbidden describes a response with status code 403, with default header values.
Forbidden
func NewV1DatacentersGetForbidden ¶
func NewV1DatacentersGetForbidden() *V1DatacentersGetForbidden
NewV1DatacentersGetForbidden creates a V1DatacentersGetForbidden with default headers values
func (*V1DatacentersGetForbidden) Code ¶
func (o *V1DatacentersGetForbidden) Code() int
Code gets the status code for the v1 datacenters get forbidden response
func (*V1DatacentersGetForbidden) Error ¶
func (o *V1DatacentersGetForbidden) Error() string
func (*V1DatacentersGetForbidden) GetPayload ¶
func (o *V1DatacentersGetForbidden) GetPayload() *models.Error
func (*V1DatacentersGetForbidden) IsClientError ¶
func (o *V1DatacentersGetForbidden) IsClientError() bool
IsClientError returns true when this v1 datacenters get forbidden response has a 4xx status code
func (*V1DatacentersGetForbidden) IsCode ¶
func (o *V1DatacentersGetForbidden) IsCode(code int) bool
IsCode returns true when this v1 datacenters get forbidden response a status code equal to that given
func (*V1DatacentersGetForbidden) IsRedirect ¶
func (o *V1DatacentersGetForbidden) IsRedirect() bool
IsRedirect returns true when this v1 datacenters get forbidden response has a 3xx status code
func (*V1DatacentersGetForbidden) IsServerError ¶
func (o *V1DatacentersGetForbidden) IsServerError() bool
IsServerError returns true when this v1 datacenters get forbidden response has a 5xx status code
func (*V1DatacentersGetForbidden) IsSuccess ¶
func (o *V1DatacentersGetForbidden) IsSuccess() bool
IsSuccess returns true when this v1 datacenters get forbidden response has a 2xx status code
func (*V1DatacentersGetForbidden) String ¶
func (o *V1DatacentersGetForbidden) String() string
type V1DatacentersGetInternalServerError ¶
V1DatacentersGetInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewV1DatacentersGetInternalServerError ¶
func NewV1DatacentersGetInternalServerError() *V1DatacentersGetInternalServerError
NewV1DatacentersGetInternalServerError creates a V1DatacentersGetInternalServerError with default headers values
func (*V1DatacentersGetInternalServerError) Code ¶
func (o *V1DatacentersGetInternalServerError) Code() int
Code gets the status code for the v1 datacenters get internal server error response
func (*V1DatacentersGetInternalServerError) Error ¶
func (o *V1DatacentersGetInternalServerError) Error() string
func (*V1DatacentersGetInternalServerError) GetPayload ¶
func (o *V1DatacentersGetInternalServerError) GetPayload() *models.Error
func (*V1DatacentersGetInternalServerError) IsClientError ¶
func (o *V1DatacentersGetInternalServerError) IsClientError() bool
IsClientError returns true when this v1 datacenters get internal server error response has a 4xx status code
func (*V1DatacentersGetInternalServerError) IsCode ¶
func (o *V1DatacentersGetInternalServerError) IsCode(code int) bool
IsCode returns true when this v1 datacenters get internal server error response a status code equal to that given
func (*V1DatacentersGetInternalServerError) IsRedirect ¶
func (o *V1DatacentersGetInternalServerError) IsRedirect() bool
IsRedirect returns true when this v1 datacenters get internal server error response has a 3xx status code
func (*V1DatacentersGetInternalServerError) IsServerError ¶
func (o *V1DatacentersGetInternalServerError) IsServerError() bool
IsServerError returns true when this v1 datacenters get internal server error response has a 5xx status code
func (*V1DatacentersGetInternalServerError) IsSuccess ¶
func (o *V1DatacentersGetInternalServerError) IsSuccess() bool
IsSuccess returns true when this v1 datacenters get internal server error response has a 2xx status code
func (*V1DatacentersGetInternalServerError) String ¶
func (o *V1DatacentersGetInternalServerError) String() string
type V1DatacentersGetOK ¶
type V1DatacentersGetOK struct {
Payload *models.Datacenter
}
V1DatacentersGetOK describes a response with status code 200, with default header values.
OK
func NewV1DatacentersGetOK ¶
func NewV1DatacentersGetOK() *V1DatacentersGetOK
NewV1DatacentersGetOK creates a V1DatacentersGetOK with default headers values
func (*V1DatacentersGetOK) Code ¶
func (o *V1DatacentersGetOK) Code() int
Code gets the status code for the v1 datacenters get o k response
func (*V1DatacentersGetOK) Error ¶
func (o *V1DatacentersGetOK) Error() string
func (*V1DatacentersGetOK) GetPayload ¶
func (o *V1DatacentersGetOK) GetPayload() *models.Datacenter
func (*V1DatacentersGetOK) IsClientError ¶
func (o *V1DatacentersGetOK) IsClientError() bool
IsClientError returns true when this v1 datacenters get o k response has a 4xx status code
func (*V1DatacentersGetOK) IsCode ¶
func (o *V1DatacentersGetOK) IsCode(code int) bool
IsCode returns true when this v1 datacenters get o k response a status code equal to that given
func (*V1DatacentersGetOK) IsRedirect ¶
func (o *V1DatacentersGetOK) IsRedirect() bool
IsRedirect returns true when this v1 datacenters get o k response has a 3xx status code
func (*V1DatacentersGetOK) IsServerError ¶
func (o *V1DatacentersGetOK) IsServerError() bool
IsServerError returns true when this v1 datacenters get o k response has a 5xx status code
func (*V1DatacentersGetOK) IsSuccess ¶
func (o *V1DatacentersGetOK) IsSuccess() bool
IsSuccess returns true when this v1 datacenters get o k response has a 2xx status code
func (*V1DatacentersGetOK) String ¶
func (o *V1DatacentersGetOK) String() string
type V1DatacentersGetParams ¶
type V1DatacentersGetParams struct { /* DatacenterRegion. Datacenter Region */ DatacenterRegion string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
V1DatacentersGetParams contains all the parameters to send to the API endpoint
for the v1 datacenters get operation. Typically these are written to a http.Request.
func NewV1DatacentersGetParams ¶
func NewV1DatacentersGetParams() *V1DatacentersGetParams
NewV1DatacentersGetParams creates a new V1DatacentersGetParams 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 NewV1DatacentersGetParamsWithContext ¶
func NewV1DatacentersGetParamsWithContext(ctx context.Context) *V1DatacentersGetParams
NewV1DatacentersGetParamsWithContext creates a new V1DatacentersGetParams object with the ability to set a context for a request.
func NewV1DatacentersGetParamsWithHTTPClient ¶
func NewV1DatacentersGetParamsWithHTTPClient(client *http.Client) *V1DatacentersGetParams
NewV1DatacentersGetParamsWithHTTPClient creates a new V1DatacentersGetParams object with the ability to set a custom HTTPClient for a request.
func NewV1DatacentersGetParamsWithTimeout ¶
func NewV1DatacentersGetParamsWithTimeout(timeout time.Duration) *V1DatacentersGetParams
NewV1DatacentersGetParamsWithTimeout creates a new V1DatacentersGetParams object with the ability to set a timeout on a request.
func (*V1DatacentersGetParams) SetContext ¶
func (o *V1DatacentersGetParams) SetContext(ctx context.Context)
SetContext adds the context to the v1 datacenters get params
func (*V1DatacentersGetParams) SetDatacenterRegion ¶
func (o *V1DatacentersGetParams) SetDatacenterRegion(datacenterRegion string)
SetDatacenterRegion adds the datacenterRegion to the v1 datacenters get params
func (*V1DatacentersGetParams) SetDefaults ¶
func (o *V1DatacentersGetParams) SetDefaults()
SetDefaults hydrates default values in the v1 datacenters get params (not the query body).
All values with no default are reset to their zero value.
func (*V1DatacentersGetParams) SetHTTPClient ¶
func (o *V1DatacentersGetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the v1 datacenters get params
func (*V1DatacentersGetParams) SetTimeout ¶
func (o *V1DatacentersGetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the v1 datacenters get params
func (*V1DatacentersGetParams) WithContext ¶
func (o *V1DatacentersGetParams) WithContext(ctx context.Context) *V1DatacentersGetParams
WithContext adds the context to the v1 datacenters get params
func (*V1DatacentersGetParams) WithDatacenterRegion ¶
func (o *V1DatacentersGetParams) WithDatacenterRegion(datacenterRegion string) *V1DatacentersGetParams
WithDatacenterRegion adds the datacenterRegion to the v1 datacenters get params
func (*V1DatacentersGetParams) WithDefaults ¶
func (o *V1DatacentersGetParams) WithDefaults() *V1DatacentersGetParams
WithDefaults hydrates default values in the v1 datacenters get params (not the query body).
All values with no default are reset to their zero value.
func (*V1DatacentersGetParams) WithHTTPClient ¶
func (o *V1DatacentersGetParams) WithHTTPClient(client *http.Client) *V1DatacentersGetParams
WithHTTPClient adds the HTTPClient to the v1 datacenters get params
func (*V1DatacentersGetParams) WithTimeout ¶
func (o *V1DatacentersGetParams) WithTimeout(timeout time.Duration) *V1DatacentersGetParams
WithTimeout adds the timeout to the v1 datacenters get params
func (*V1DatacentersGetParams) WriteToRequest ¶
func (o *V1DatacentersGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type V1DatacentersGetReader ¶
type V1DatacentersGetReader struct {
// contains filtered or unexported fields
}
V1DatacentersGetReader is a Reader for the V1DatacentersGet structure.
func (*V1DatacentersGetReader) ReadResponse ¶
func (o *V1DatacentersGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type V1DatacentersGetUnauthorized ¶
type V1DatacentersGetUnauthorized struct {
}V1DatacentersGetUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewV1DatacentersGetUnauthorized ¶
func NewV1DatacentersGetUnauthorized() *V1DatacentersGetUnauthorized
NewV1DatacentersGetUnauthorized creates a V1DatacentersGetUnauthorized with default headers values
func (*V1DatacentersGetUnauthorized) Code ¶
func (o *V1DatacentersGetUnauthorized) Code() int
Code gets the status code for the v1 datacenters get unauthorized response
func (*V1DatacentersGetUnauthorized) Error ¶
func (o *V1DatacentersGetUnauthorized) Error() string
func (*V1DatacentersGetUnauthorized) GetPayload ¶
func (o *V1DatacentersGetUnauthorized) GetPayload() *models.Error
func (*V1DatacentersGetUnauthorized) IsClientError ¶
func (o *V1DatacentersGetUnauthorized) IsClientError() bool
IsClientError returns true when this v1 datacenters get unauthorized response has a 4xx status code
func (*V1DatacentersGetUnauthorized) IsCode ¶
func (o *V1DatacentersGetUnauthorized) IsCode(code int) bool
IsCode returns true when this v1 datacenters get unauthorized response a status code equal to that given
func (*V1DatacentersGetUnauthorized) IsRedirect ¶
func (o *V1DatacentersGetUnauthorized) IsRedirect() bool
IsRedirect returns true when this v1 datacenters get unauthorized response has a 3xx status code
func (*V1DatacentersGetUnauthorized) IsServerError ¶
func (o *V1DatacentersGetUnauthorized) IsServerError() bool
IsServerError returns true when this v1 datacenters get unauthorized response has a 5xx status code
func (*V1DatacentersGetUnauthorized) IsSuccess ¶
func (o *V1DatacentersGetUnauthorized) IsSuccess() bool
IsSuccess returns true when this v1 datacenters get unauthorized response has a 2xx status code
func (*V1DatacentersGetUnauthorized) String ¶
func (o *V1DatacentersGetUnauthorized) String() string
type V1DatacentersGetallBadRequest ¶
V1DatacentersGetallBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewV1DatacentersGetallBadRequest ¶
func NewV1DatacentersGetallBadRequest() *V1DatacentersGetallBadRequest
NewV1DatacentersGetallBadRequest creates a V1DatacentersGetallBadRequest with default headers values
func (*V1DatacentersGetallBadRequest) Code ¶
func (o *V1DatacentersGetallBadRequest) Code() int
Code gets the status code for the v1 datacenters getall bad request response
func (*V1DatacentersGetallBadRequest) Error ¶
func (o *V1DatacentersGetallBadRequest) Error() string
func (*V1DatacentersGetallBadRequest) GetPayload ¶
func (o *V1DatacentersGetallBadRequest) GetPayload() *models.Error
func (*V1DatacentersGetallBadRequest) IsClientError ¶
func (o *V1DatacentersGetallBadRequest) IsClientError() bool
IsClientError returns true when this v1 datacenters getall bad request response has a 4xx status code
func (*V1DatacentersGetallBadRequest) IsCode ¶
func (o *V1DatacentersGetallBadRequest) IsCode(code int) bool
IsCode returns true when this v1 datacenters getall bad request response a status code equal to that given
func (*V1DatacentersGetallBadRequest) IsRedirect ¶
func (o *V1DatacentersGetallBadRequest) IsRedirect() bool
IsRedirect returns true when this v1 datacenters getall bad request response has a 3xx status code
func (*V1DatacentersGetallBadRequest) IsServerError ¶
func (o *V1DatacentersGetallBadRequest) IsServerError() bool
IsServerError returns true when this v1 datacenters getall bad request response has a 5xx status code
func (*V1DatacentersGetallBadRequest) IsSuccess ¶
func (o *V1DatacentersGetallBadRequest) IsSuccess() bool
IsSuccess returns true when this v1 datacenters getall bad request response has a 2xx status code
func (*V1DatacentersGetallBadRequest) String ¶
func (o *V1DatacentersGetallBadRequest) String() string
type V1DatacentersGetallForbidden ¶
V1DatacentersGetallForbidden describes a response with status code 403, with default header values.
Forbidden
func NewV1DatacentersGetallForbidden ¶
func NewV1DatacentersGetallForbidden() *V1DatacentersGetallForbidden
NewV1DatacentersGetallForbidden creates a V1DatacentersGetallForbidden with default headers values
func (*V1DatacentersGetallForbidden) Code ¶
func (o *V1DatacentersGetallForbidden) Code() int
Code gets the status code for the v1 datacenters getall forbidden response
func (*V1DatacentersGetallForbidden) Error ¶
func (o *V1DatacentersGetallForbidden) Error() string
func (*V1DatacentersGetallForbidden) GetPayload ¶
func (o *V1DatacentersGetallForbidden) GetPayload() *models.Error
func (*V1DatacentersGetallForbidden) IsClientError ¶
func (o *V1DatacentersGetallForbidden) IsClientError() bool
IsClientError returns true when this v1 datacenters getall forbidden response has a 4xx status code
func (*V1DatacentersGetallForbidden) IsCode ¶
func (o *V1DatacentersGetallForbidden) IsCode(code int) bool
IsCode returns true when this v1 datacenters getall forbidden response a status code equal to that given
func (*V1DatacentersGetallForbidden) IsRedirect ¶
func (o *V1DatacentersGetallForbidden) IsRedirect() bool
IsRedirect returns true when this v1 datacenters getall forbidden response has a 3xx status code
func (*V1DatacentersGetallForbidden) IsServerError ¶
func (o *V1DatacentersGetallForbidden) IsServerError() bool
IsServerError returns true when this v1 datacenters getall forbidden response has a 5xx status code
func (*V1DatacentersGetallForbidden) IsSuccess ¶
func (o *V1DatacentersGetallForbidden) IsSuccess() bool
IsSuccess returns true when this v1 datacenters getall forbidden response has a 2xx status code
func (*V1DatacentersGetallForbidden) String ¶
func (o *V1DatacentersGetallForbidden) String() string
type V1DatacentersGetallInternalServerError ¶
V1DatacentersGetallInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewV1DatacentersGetallInternalServerError ¶
func NewV1DatacentersGetallInternalServerError() *V1DatacentersGetallInternalServerError
NewV1DatacentersGetallInternalServerError creates a V1DatacentersGetallInternalServerError with default headers values
func (*V1DatacentersGetallInternalServerError) Code ¶
func (o *V1DatacentersGetallInternalServerError) Code() int
Code gets the status code for the v1 datacenters getall internal server error response
func (*V1DatacentersGetallInternalServerError) Error ¶
func (o *V1DatacentersGetallInternalServerError) Error() string
func (*V1DatacentersGetallInternalServerError) GetPayload ¶
func (o *V1DatacentersGetallInternalServerError) GetPayload() *models.Error
func (*V1DatacentersGetallInternalServerError) IsClientError ¶
func (o *V1DatacentersGetallInternalServerError) IsClientError() bool
IsClientError returns true when this v1 datacenters getall internal server error response has a 4xx status code
func (*V1DatacentersGetallInternalServerError) IsCode ¶
func (o *V1DatacentersGetallInternalServerError) IsCode(code int) bool
IsCode returns true when this v1 datacenters getall internal server error response a status code equal to that given
func (*V1DatacentersGetallInternalServerError) IsRedirect ¶
func (o *V1DatacentersGetallInternalServerError) IsRedirect() bool
IsRedirect returns true when this v1 datacenters getall internal server error response has a 3xx status code
func (*V1DatacentersGetallInternalServerError) IsServerError ¶
func (o *V1DatacentersGetallInternalServerError) IsServerError() bool
IsServerError returns true when this v1 datacenters getall internal server error response has a 5xx status code
func (*V1DatacentersGetallInternalServerError) IsSuccess ¶
func (o *V1DatacentersGetallInternalServerError) IsSuccess() bool
IsSuccess returns true when this v1 datacenters getall internal server error response has a 2xx status code
func (*V1DatacentersGetallInternalServerError) String ¶
func (o *V1DatacentersGetallInternalServerError) String() string
type V1DatacentersGetallOK ¶
type V1DatacentersGetallOK struct {
Payload *models.Datacenters
}
V1DatacentersGetallOK describes a response with status code 200, with default header values.
OK
func NewV1DatacentersGetallOK ¶
func NewV1DatacentersGetallOK() *V1DatacentersGetallOK
NewV1DatacentersGetallOK creates a V1DatacentersGetallOK with default headers values
func (*V1DatacentersGetallOK) Code ¶
func (o *V1DatacentersGetallOK) Code() int
Code gets the status code for the v1 datacenters getall o k response
func (*V1DatacentersGetallOK) Error ¶
func (o *V1DatacentersGetallOK) Error() string
func (*V1DatacentersGetallOK) GetPayload ¶
func (o *V1DatacentersGetallOK) GetPayload() *models.Datacenters
func (*V1DatacentersGetallOK) IsClientError ¶
func (o *V1DatacentersGetallOK) IsClientError() bool
IsClientError returns true when this v1 datacenters getall o k response has a 4xx status code
func (*V1DatacentersGetallOK) IsCode ¶
func (o *V1DatacentersGetallOK) IsCode(code int) bool
IsCode returns true when this v1 datacenters getall o k response a status code equal to that given
func (*V1DatacentersGetallOK) IsRedirect ¶
func (o *V1DatacentersGetallOK) IsRedirect() bool
IsRedirect returns true when this v1 datacenters getall o k response has a 3xx status code
func (*V1DatacentersGetallOK) IsServerError ¶
func (o *V1DatacentersGetallOK) IsServerError() bool
IsServerError returns true when this v1 datacenters getall o k response has a 5xx status code
func (*V1DatacentersGetallOK) IsSuccess ¶
func (o *V1DatacentersGetallOK) IsSuccess() bool
IsSuccess returns true when this v1 datacenters getall o k response has a 2xx status code
func (*V1DatacentersGetallOK) String ¶
func (o *V1DatacentersGetallOK) String() string
type V1DatacentersGetallParams ¶
type V1DatacentersGetallParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
V1DatacentersGetallParams contains all the parameters to send to the API endpoint
for the v1 datacenters getall operation. Typically these are written to a http.Request.
func NewV1DatacentersGetallParams ¶
func NewV1DatacentersGetallParams() *V1DatacentersGetallParams
NewV1DatacentersGetallParams creates a new V1DatacentersGetallParams 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 NewV1DatacentersGetallParamsWithContext ¶
func NewV1DatacentersGetallParamsWithContext(ctx context.Context) *V1DatacentersGetallParams
NewV1DatacentersGetallParamsWithContext creates a new V1DatacentersGetallParams object with the ability to set a context for a request.
func NewV1DatacentersGetallParamsWithHTTPClient ¶
func NewV1DatacentersGetallParamsWithHTTPClient(client *http.Client) *V1DatacentersGetallParams
NewV1DatacentersGetallParamsWithHTTPClient creates a new V1DatacentersGetallParams object with the ability to set a custom HTTPClient for a request.
func NewV1DatacentersGetallParamsWithTimeout ¶
func NewV1DatacentersGetallParamsWithTimeout(timeout time.Duration) *V1DatacentersGetallParams
NewV1DatacentersGetallParamsWithTimeout creates a new V1DatacentersGetallParams object with the ability to set a timeout on a request.
func (*V1DatacentersGetallParams) SetContext ¶
func (o *V1DatacentersGetallParams) SetContext(ctx context.Context)
SetContext adds the context to the v1 datacenters getall params
func (*V1DatacentersGetallParams) SetDefaults ¶
func (o *V1DatacentersGetallParams) SetDefaults()
SetDefaults hydrates default values in the v1 datacenters getall params (not the query body).
All values with no default are reset to their zero value.
func (*V1DatacentersGetallParams) SetHTTPClient ¶
func (o *V1DatacentersGetallParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the v1 datacenters getall params
func (*V1DatacentersGetallParams) SetTimeout ¶
func (o *V1DatacentersGetallParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the v1 datacenters getall params
func (*V1DatacentersGetallParams) WithContext ¶
func (o *V1DatacentersGetallParams) WithContext(ctx context.Context) *V1DatacentersGetallParams
WithContext adds the context to the v1 datacenters getall params
func (*V1DatacentersGetallParams) WithDefaults ¶
func (o *V1DatacentersGetallParams) WithDefaults() *V1DatacentersGetallParams
WithDefaults hydrates default values in the v1 datacenters getall params (not the query body).
All values with no default are reset to their zero value.
func (*V1DatacentersGetallParams) WithHTTPClient ¶
func (o *V1DatacentersGetallParams) WithHTTPClient(client *http.Client) *V1DatacentersGetallParams
WithHTTPClient adds the HTTPClient to the v1 datacenters getall params
func (*V1DatacentersGetallParams) WithTimeout ¶
func (o *V1DatacentersGetallParams) WithTimeout(timeout time.Duration) *V1DatacentersGetallParams
WithTimeout adds the timeout to the v1 datacenters getall params
func (*V1DatacentersGetallParams) WriteToRequest ¶
func (o *V1DatacentersGetallParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type V1DatacentersGetallReader ¶
type V1DatacentersGetallReader struct {
// contains filtered or unexported fields
}
V1DatacentersGetallReader is a Reader for the V1DatacentersGetall structure.
func (*V1DatacentersGetallReader) ReadResponse ¶
func (o *V1DatacentersGetallReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type V1DatacentersGetallUnauthorized ¶
type V1DatacentersGetallUnauthorized struct {
}V1DatacentersGetallUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewV1DatacentersGetallUnauthorized ¶
func NewV1DatacentersGetallUnauthorized() *V1DatacentersGetallUnauthorized
NewV1DatacentersGetallUnauthorized creates a V1DatacentersGetallUnauthorized with default headers values
func (*V1DatacentersGetallUnauthorized) Code ¶
func (o *V1DatacentersGetallUnauthorized) Code() int
Code gets the status code for the v1 datacenters getall unauthorized response
func (*V1DatacentersGetallUnauthorized) Error ¶
func (o *V1DatacentersGetallUnauthorized) Error() string
func (*V1DatacentersGetallUnauthorized) GetPayload ¶
func (o *V1DatacentersGetallUnauthorized) GetPayload() *models.Error
func (*V1DatacentersGetallUnauthorized) IsClientError ¶
func (o *V1DatacentersGetallUnauthorized) IsClientError() bool
IsClientError returns true when this v1 datacenters getall unauthorized response has a 4xx status code
func (*V1DatacentersGetallUnauthorized) IsCode ¶
func (o *V1DatacentersGetallUnauthorized) IsCode(code int) bool
IsCode returns true when this v1 datacenters getall unauthorized response a status code equal to that given
func (*V1DatacentersGetallUnauthorized) IsRedirect ¶
func (o *V1DatacentersGetallUnauthorized) IsRedirect() bool
IsRedirect returns true when this v1 datacenters getall unauthorized response has a 3xx status code
func (*V1DatacentersGetallUnauthorized) IsServerError ¶
func (o *V1DatacentersGetallUnauthorized) IsServerError() bool
IsServerError returns true when this v1 datacenters getall unauthorized response has a 5xx status code
func (*V1DatacentersGetallUnauthorized) IsSuccess ¶
func (o *V1DatacentersGetallUnauthorized) IsSuccess() bool
IsSuccess returns true when this v1 datacenters getall unauthorized response has a 2xx status code
func (*V1DatacentersGetallUnauthorized) String ¶
func (o *V1DatacentersGetallUnauthorized) String() string