Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetNetworkDefaultsDefault
- type GetNetworkDefaultsForbidden
- type GetNetworkDefaultsOK
- type GetNetworkDefaultsParams
- func NewGetNetworkDefaultsParams() *GetNetworkDefaultsParams
- func NewGetNetworkDefaultsParamsWithContext(ctx context.Context) *GetNetworkDefaultsParams
- func NewGetNetworkDefaultsParamsWithHTTPClient(client *http.Client) *GetNetworkDefaultsParams
- func NewGetNetworkDefaultsParamsWithTimeout(timeout time.Duration) *GetNetworkDefaultsParams
- func (o *GetNetworkDefaultsParams) SetContext(ctx context.Context)
- func (o *GetNetworkDefaultsParams) SetDC(dc string)
- func (o *GetNetworkDefaultsParams) SetDefaults()
- func (o *GetNetworkDefaultsParams) SetHTTPClient(client *http.Client)
- func (o *GetNetworkDefaultsParams) SetProviderName(providerName string)
- func (o *GetNetworkDefaultsParams) SetTimeout(timeout time.Duration)
- func (o *GetNetworkDefaultsParams) WithContext(ctx context.Context) *GetNetworkDefaultsParams
- func (o *GetNetworkDefaultsParams) WithDC(dc string) *GetNetworkDefaultsParams
- func (o *GetNetworkDefaultsParams) WithDefaults() *GetNetworkDefaultsParams
- func (o *GetNetworkDefaultsParams) WithHTTPClient(client *http.Client) *GetNetworkDefaultsParams
- func (o *GetNetworkDefaultsParams) WithProviderName(providerName string) *GetNetworkDefaultsParams
- func (o *GetNetworkDefaultsParams) WithTimeout(timeout time.Duration) *GetNetworkDefaultsParams
- func (o *GetNetworkDefaultsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetNetworkDefaultsReader
- type GetNetworkDefaultsUnauthorized
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 networkdefaults API
func (*Client) GetNetworkDefaults ¶
func (a *Client) GetNetworkDefaults(params *GetNetworkDefaultsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNetworkDefaultsOK, error)
GetNetworkDefaults retrieves the cluster networking defaults for the given provider and datacenter
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 { GetNetworkDefaults(params *GetNetworkDefaultsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNetworkDefaultsOK, 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 networkdefaults API client.
type GetNetworkDefaultsDefault ¶
type GetNetworkDefaultsDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
GetNetworkDefaultsDefault describes a response with status code -1, with default header values.
errorResponse
func NewGetNetworkDefaultsDefault ¶
func NewGetNetworkDefaultsDefault(code int) *GetNetworkDefaultsDefault
NewGetNetworkDefaultsDefault creates a GetNetworkDefaultsDefault with default headers values
func (*GetNetworkDefaultsDefault) Code ¶
func (o *GetNetworkDefaultsDefault) Code() int
Code gets the status code for the get network defaults default response
func (*GetNetworkDefaultsDefault) Error ¶
func (o *GetNetworkDefaultsDefault) Error() string
func (*GetNetworkDefaultsDefault) GetPayload ¶
func (o *GetNetworkDefaultsDefault) GetPayload() *models.ErrorResponse
type GetNetworkDefaultsForbidden ¶
type GetNetworkDefaultsForbidden struct { }
GetNetworkDefaultsForbidden describes a response with status code 403, with default header values.
EmptyResponse is a empty response
func NewGetNetworkDefaultsForbidden ¶
func NewGetNetworkDefaultsForbidden() *GetNetworkDefaultsForbidden
NewGetNetworkDefaultsForbidden creates a GetNetworkDefaultsForbidden with default headers values
func (*GetNetworkDefaultsForbidden) Error ¶
func (o *GetNetworkDefaultsForbidden) Error() string
type GetNetworkDefaultsOK ¶
type GetNetworkDefaultsOK struct {
Payload *models.NetworkDefaults
}
GetNetworkDefaultsOK describes a response with status code 200, with default header values.
NetworkDefaults
func NewGetNetworkDefaultsOK ¶
func NewGetNetworkDefaultsOK() *GetNetworkDefaultsOK
NewGetNetworkDefaultsOK creates a GetNetworkDefaultsOK with default headers values
func (*GetNetworkDefaultsOK) Error ¶
func (o *GetNetworkDefaultsOK) Error() string
func (*GetNetworkDefaultsOK) GetPayload ¶
func (o *GetNetworkDefaultsOK) GetPayload() *models.NetworkDefaults
type GetNetworkDefaultsParams ¶
type GetNetworkDefaultsParams struct { // Dc. DC string // ProviderName. ProviderName string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetNetworkDefaultsParams contains all the parameters to send to the API endpoint
for the get network defaults operation. Typically these are written to a http.Request.
func NewGetNetworkDefaultsParams ¶
func NewGetNetworkDefaultsParams() *GetNetworkDefaultsParams
NewGetNetworkDefaultsParams creates a new GetNetworkDefaultsParams 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 NewGetNetworkDefaultsParamsWithContext ¶
func NewGetNetworkDefaultsParamsWithContext(ctx context.Context) *GetNetworkDefaultsParams
NewGetNetworkDefaultsParamsWithContext creates a new GetNetworkDefaultsParams object with the ability to set a context for a request.
func NewGetNetworkDefaultsParamsWithHTTPClient ¶
func NewGetNetworkDefaultsParamsWithHTTPClient(client *http.Client) *GetNetworkDefaultsParams
NewGetNetworkDefaultsParamsWithHTTPClient creates a new GetNetworkDefaultsParams object with the ability to set a custom HTTPClient for a request.
func NewGetNetworkDefaultsParamsWithTimeout ¶
func NewGetNetworkDefaultsParamsWithTimeout(timeout time.Duration) *GetNetworkDefaultsParams
NewGetNetworkDefaultsParamsWithTimeout creates a new GetNetworkDefaultsParams object with the ability to set a timeout on a request.
func (*GetNetworkDefaultsParams) SetContext ¶
func (o *GetNetworkDefaultsParams) SetContext(ctx context.Context)
SetContext adds the context to the get network defaults params
func (*GetNetworkDefaultsParams) SetDC ¶
func (o *GetNetworkDefaultsParams) SetDC(dc string)
SetDC adds the dc to the get network defaults params
func (*GetNetworkDefaultsParams) SetDefaults ¶
func (o *GetNetworkDefaultsParams) SetDefaults()
SetDefaults hydrates default values in the get network defaults params (not the query body).
All values with no default are reset to their zero value.
func (*GetNetworkDefaultsParams) SetHTTPClient ¶
func (o *GetNetworkDefaultsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get network defaults params
func (*GetNetworkDefaultsParams) SetProviderName ¶
func (o *GetNetworkDefaultsParams) SetProviderName(providerName string)
SetProviderName adds the providerName to the get network defaults params
func (*GetNetworkDefaultsParams) SetTimeout ¶
func (o *GetNetworkDefaultsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get network defaults params
func (*GetNetworkDefaultsParams) WithContext ¶
func (o *GetNetworkDefaultsParams) WithContext(ctx context.Context) *GetNetworkDefaultsParams
WithContext adds the context to the get network defaults params
func (*GetNetworkDefaultsParams) WithDC ¶
func (o *GetNetworkDefaultsParams) WithDC(dc string) *GetNetworkDefaultsParams
WithDC adds the dc to the get network defaults params
func (*GetNetworkDefaultsParams) WithDefaults ¶
func (o *GetNetworkDefaultsParams) WithDefaults() *GetNetworkDefaultsParams
WithDefaults hydrates default values in the get network defaults params (not the query body).
All values with no default are reset to their zero value.
func (*GetNetworkDefaultsParams) WithHTTPClient ¶
func (o *GetNetworkDefaultsParams) WithHTTPClient(client *http.Client) *GetNetworkDefaultsParams
WithHTTPClient adds the HTTPClient to the get network defaults params
func (*GetNetworkDefaultsParams) WithProviderName ¶
func (o *GetNetworkDefaultsParams) WithProviderName(providerName string) *GetNetworkDefaultsParams
WithProviderName adds the providerName to the get network defaults params
func (*GetNetworkDefaultsParams) WithTimeout ¶
func (o *GetNetworkDefaultsParams) WithTimeout(timeout time.Duration) *GetNetworkDefaultsParams
WithTimeout adds the timeout to the get network defaults params
func (*GetNetworkDefaultsParams) WriteToRequest ¶
func (o *GetNetworkDefaultsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetNetworkDefaultsReader ¶
type GetNetworkDefaultsReader struct {
// contains filtered or unexported fields
}
GetNetworkDefaultsReader is a Reader for the GetNetworkDefaults structure.
func (*GetNetworkDefaultsReader) ReadResponse ¶
func (o *GetNetworkDefaultsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetNetworkDefaultsUnauthorized ¶
type GetNetworkDefaultsUnauthorized struct { }
GetNetworkDefaultsUnauthorized describes a response with status code 401, with default header values.
EmptyResponse is a empty response
func NewGetNetworkDefaultsUnauthorized ¶
func NewGetNetworkDefaultsUnauthorized() *GetNetworkDefaultsUnauthorized
NewGetNetworkDefaultsUnauthorized creates a GetNetworkDefaultsUnauthorized with default headers values
func (*GetNetworkDefaultsUnauthorized) Error ¶
func (o *GetNetworkDefaultsUnauthorized) Error() string