Documentation ¶
Index ¶
- type Client
- func (a *Client) ServiceGetUsingGET(params *ServiceGetUsingGETParams, opts ...ClientOption) (*ServiceGetUsingGETOK, error)
- func (a *Client) ServiceListUsingGET(params *ServiceListUsingGETParams, opts ...ClientOption) (*ServiceListUsingGETOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type ServiceGetUsingGETBadRequest
- type ServiceGetUsingGETNotFound
- type ServiceGetUsingGETOK
- type ServiceGetUsingGETParams
- func NewServiceGetUsingGETParams() *ServiceGetUsingGETParams
- func NewServiceGetUsingGETParamsWithContext(ctx context.Context) *ServiceGetUsingGETParams
- func NewServiceGetUsingGETParamsWithHTTPClient(client *http.Client) *ServiceGetUsingGETParams
- func NewServiceGetUsingGETParamsWithTimeout(timeout time.Duration) *ServiceGetUsingGETParams
- func (o *ServiceGetUsingGETParams) SetContext(ctx context.Context)
- func (o *ServiceGetUsingGETParams) SetDefaults()
- func (o *ServiceGetUsingGETParams) SetHTTPClient(client *http.Client)
- func (o *ServiceGetUsingGETParams) SetServiceID(serviceID string)
- func (o *ServiceGetUsingGETParams) SetTimeout(timeout time.Duration)
- func (o *ServiceGetUsingGETParams) WithContext(ctx context.Context) *ServiceGetUsingGETParams
- func (o *ServiceGetUsingGETParams) WithDefaults() *ServiceGetUsingGETParams
- func (o *ServiceGetUsingGETParams) WithHTTPClient(client *http.Client) *ServiceGetUsingGETParams
- func (o *ServiceGetUsingGETParams) WithServiceID(serviceID string) *ServiceGetUsingGETParams
- func (o *ServiceGetUsingGETParams) WithTimeout(timeout time.Duration) *ServiceGetUsingGETParams
- func (o *ServiceGetUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ServiceGetUsingGETReader
- type ServiceListUsingGETBadRequest
- type ServiceListUsingGETOK
- type ServiceListUsingGETParams
- func NewServiceListUsingGETParams() *ServiceListUsingGETParams
- func NewServiceListUsingGETParamsWithContext(ctx context.Context) *ServiceListUsingGETParams
- func NewServiceListUsingGETParamsWithHTTPClient(client *http.Client) *ServiceListUsingGETParams
- func NewServiceListUsingGETParamsWithTimeout(timeout time.Duration) *ServiceListUsingGETParams
- func (o *ServiceListUsingGETParams) SetContext(ctx context.Context)
- func (o *ServiceListUsingGETParams) SetDefaults()
- func (o *ServiceListUsingGETParams) SetDisplayName(displayName *string)
- func (o *ServiceListUsingGETParams) SetHTTPClient(client *http.Client)
- func (o *ServiceListUsingGETParams) SetTimeout(timeout time.Duration)
- func (o *ServiceListUsingGETParams) WithContext(ctx context.Context) *ServiceListUsingGETParams
- func (o *ServiceListUsingGETParams) WithDefaults() *ServiceListUsingGETParams
- func (o *ServiceListUsingGETParams) WithDisplayName(displayName *string) *ServiceListUsingGETParams
- func (o *ServiceListUsingGETParams) WithHTTPClient(client *http.Client) *ServiceListUsingGETParams
- func (o *ServiceListUsingGETParams) WithTimeout(timeout time.Duration) *ServiceListUsingGETParams
- func (o *ServiceListUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ServiceListUsingGETReader
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 default services API
func (*Client) ServiceGetUsingGET ¶
func (a *Client) ServiceGetUsingGET(params *ServiceGetUsingGETParams, opts ...ClientOption) (*ServiceGetUsingGETOK, error)
ServiceGetUsingGET gets
Get default service from NSX-T
func (*Client) ServiceListUsingGET ¶
func (a *Client) ServiceListUsingGET(params *ServiceListUsingGETParams, opts ...ClientOption) (*ServiceListUsingGETOK, error)
ServiceListUsingGET lists
List default services from NSX-T
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶ added in v1.2.4
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { ServiceGetUsingGET(params *ServiceGetUsingGETParams, opts ...ClientOption) (*ServiceGetUsingGETOK, error) ServiceListUsingGET(params *ServiceListUsingGETParams, opts ...ClientOption) (*ServiceListUsingGETOK, 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 default services API client.
type ServiceGetUsingGETBadRequest ¶
type ServiceGetUsingGETBadRequest struct {
Payload *models.ProxyResponseMessage
}
ServiceGetUsingGETBadRequest describes a response with status code 400, with default header values.
Bad request, error occurred. For more details see log messages.
func NewServiceGetUsingGETBadRequest ¶
func NewServiceGetUsingGETBadRequest() *ServiceGetUsingGETBadRequest
NewServiceGetUsingGETBadRequest creates a ServiceGetUsingGETBadRequest with default headers values
func (*ServiceGetUsingGETBadRequest) Error ¶
func (o *ServiceGetUsingGETBadRequest) Error() string
func (*ServiceGetUsingGETBadRequest) GetPayload ¶ added in v1.2.0
func (o *ServiceGetUsingGETBadRequest) GetPayload() *models.ProxyResponseMessage
type ServiceGetUsingGETNotFound ¶
type ServiceGetUsingGETNotFound struct { }
ServiceGetUsingGETNotFound describes a response with status code 404, with default header values.
Entity not found.
func NewServiceGetUsingGETNotFound ¶
func NewServiceGetUsingGETNotFound() *ServiceGetUsingGETNotFound
NewServiceGetUsingGETNotFound creates a ServiceGetUsingGETNotFound with default headers values
func (*ServiceGetUsingGETNotFound) Error ¶
func (o *ServiceGetUsingGETNotFound) Error() string
type ServiceGetUsingGETOK ¶
type ServiceGetUsingGETOK struct {
Payload *models.ServiceGetResponse
}
ServiceGetUsingGETOK describes a response with status code 200, with default header values.
OK
func NewServiceGetUsingGETOK ¶
func NewServiceGetUsingGETOK() *ServiceGetUsingGETOK
NewServiceGetUsingGETOK creates a ServiceGetUsingGETOK with default headers values
func (*ServiceGetUsingGETOK) Error ¶
func (o *ServiceGetUsingGETOK) Error() string
func (*ServiceGetUsingGETOK) GetPayload ¶
func (o *ServiceGetUsingGETOK) GetPayload() *models.ServiceGetResponse
type ServiceGetUsingGETParams ¶
type ServiceGetUsingGETParams struct { /* ServiceID. serviceId */ ServiceID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ServiceGetUsingGETParams contains all the parameters to send to the API endpoint
for the service get using g e t operation. Typically these are written to a http.Request.
func NewServiceGetUsingGETParams ¶
func NewServiceGetUsingGETParams() *ServiceGetUsingGETParams
NewServiceGetUsingGETParams creates a new ServiceGetUsingGETParams 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 NewServiceGetUsingGETParamsWithContext ¶
func NewServiceGetUsingGETParamsWithContext(ctx context.Context) *ServiceGetUsingGETParams
NewServiceGetUsingGETParamsWithContext creates a new ServiceGetUsingGETParams object with the ability to set a context for a request.
func NewServiceGetUsingGETParamsWithHTTPClient ¶
func NewServiceGetUsingGETParamsWithHTTPClient(client *http.Client) *ServiceGetUsingGETParams
NewServiceGetUsingGETParamsWithHTTPClient creates a new ServiceGetUsingGETParams object with the ability to set a custom HTTPClient for a request.
func NewServiceGetUsingGETParamsWithTimeout ¶
func NewServiceGetUsingGETParamsWithTimeout(timeout time.Duration) *ServiceGetUsingGETParams
NewServiceGetUsingGETParamsWithTimeout creates a new ServiceGetUsingGETParams object with the ability to set a timeout on a request.
func (*ServiceGetUsingGETParams) SetContext ¶
func (o *ServiceGetUsingGETParams) SetContext(ctx context.Context)
SetContext adds the context to the service get using g e t params
func (*ServiceGetUsingGETParams) SetDefaults ¶ added in v1.2.4
func (o *ServiceGetUsingGETParams) SetDefaults()
SetDefaults hydrates default values in the service get using g e t params (not the query body).
All values with no default are reset to their zero value.
func (*ServiceGetUsingGETParams) SetHTTPClient ¶
func (o *ServiceGetUsingGETParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the service get using g e t params
func (*ServiceGetUsingGETParams) SetServiceID ¶
func (o *ServiceGetUsingGETParams) SetServiceID(serviceID string)
SetServiceID adds the serviceId to the service get using g e t params
func (*ServiceGetUsingGETParams) SetTimeout ¶
func (o *ServiceGetUsingGETParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the service get using g e t params
func (*ServiceGetUsingGETParams) WithContext ¶
func (o *ServiceGetUsingGETParams) WithContext(ctx context.Context) *ServiceGetUsingGETParams
WithContext adds the context to the service get using g e t params
func (*ServiceGetUsingGETParams) WithDefaults ¶ added in v1.2.4
func (o *ServiceGetUsingGETParams) WithDefaults() *ServiceGetUsingGETParams
WithDefaults hydrates default values in the service get using g e t params (not the query body).
All values with no default are reset to their zero value.
func (*ServiceGetUsingGETParams) WithHTTPClient ¶
func (o *ServiceGetUsingGETParams) WithHTTPClient(client *http.Client) *ServiceGetUsingGETParams
WithHTTPClient adds the HTTPClient to the service get using g e t params
func (*ServiceGetUsingGETParams) WithServiceID ¶
func (o *ServiceGetUsingGETParams) WithServiceID(serviceID string) *ServiceGetUsingGETParams
WithServiceID adds the serviceID to the service get using g e t params
func (*ServiceGetUsingGETParams) WithTimeout ¶
func (o *ServiceGetUsingGETParams) WithTimeout(timeout time.Duration) *ServiceGetUsingGETParams
WithTimeout adds the timeout to the service get using g e t params
func (*ServiceGetUsingGETParams) WriteToRequest ¶
func (o *ServiceGetUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ServiceGetUsingGETReader ¶
type ServiceGetUsingGETReader struct {
// contains filtered or unexported fields
}
ServiceGetUsingGETReader is a Reader for the ServiceGetUsingGET structure.
func (*ServiceGetUsingGETReader) ReadResponse ¶
func (o *ServiceGetUsingGETReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ServiceListUsingGETBadRequest ¶
type ServiceListUsingGETBadRequest struct {
Payload *models.ProxyResponseMessage
}
ServiceListUsingGETBadRequest describes a response with status code 400, with default header values.
Bad request, error occurred. For more details see log messages.
func NewServiceListUsingGETBadRequest ¶
func NewServiceListUsingGETBadRequest() *ServiceListUsingGETBadRequest
NewServiceListUsingGETBadRequest creates a ServiceListUsingGETBadRequest with default headers values
func (*ServiceListUsingGETBadRequest) Error ¶
func (o *ServiceListUsingGETBadRequest) Error() string
func (*ServiceListUsingGETBadRequest) GetPayload ¶ added in v1.2.0
func (o *ServiceListUsingGETBadRequest) GetPayload() *models.ProxyResponseMessage
type ServiceListUsingGETOK ¶
type ServiceListUsingGETOK struct {
Payload *models.ServiceListResponse
}
ServiceListUsingGETOK describes a response with status code 200, with default header values.
OK
func NewServiceListUsingGETOK ¶
func NewServiceListUsingGETOK() *ServiceListUsingGETOK
NewServiceListUsingGETOK creates a ServiceListUsingGETOK with default headers values
func (*ServiceListUsingGETOK) Error ¶
func (o *ServiceListUsingGETOK) Error() string
func (*ServiceListUsingGETOK) GetPayload ¶
func (o *ServiceListUsingGETOK) GetPayload() *models.ServiceListResponse
type ServiceListUsingGETParams ¶
type ServiceListUsingGETParams struct { /* DisplayName. displayName */ DisplayName *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ServiceListUsingGETParams contains all the parameters to send to the API endpoint
for the service list using g e t operation. Typically these are written to a http.Request.
func NewServiceListUsingGETParams ¶
func NewServiceListUsingGETParams() *ServiceListUsingGETParams
NewServiceListUsingGETParams creates a new ServiceListUsingGETParams 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 NewServiceListUsingGETParamsWithContext ¶
func NewServiceListUsingGETParamsWithContext(ctx context.Context) *ServiceListUsingGETParams
NewServiceListUsingGETParamsWithContext creates a new ServiceListUsingGETParams object with the ability to set a context for a request.
func NewServiceListUsingGETParamsWithHTTPClient ¶
func NewServiceListUsingGETParamsWithHTTPClient(client *http.Client) *ServiceListUsingGETParams
NewServiceListUsingGETParamsWithHTTPClient creates a new ServiceListUsingGETParams object with the ability to set a custom HTTPClient for a request.
func NewServiceListUsingGETParamsWithTimeout ¶
func NewServiceListUsingGETParamsWithTimeout(timeout time.Duration) *ServiceListUsingGETParams
NewServiceListUsingGETParamsWithTimeout creates a new ServiceListUsingGETParams object with the ability to set a timeout on a request.
func (*ServiceListUsingGETParams) SetContext ¶
func (o *ServiceListUsingGETParams) SetContext(ctx context.Context)
SetContext adds the context to the service list using g e t params
func (*ServiceListUsingGETParams) SetDefaults ¶ added in v1.2.4
func (o *ServiceListUsingGETParams) SetDefaults()
SetDefaults hydrates default values in the service list using g e t params (not the query body).
All values with no default are reset to their zero value.
func (*ServiceListUsingGETParams) SetDisplayName ¶
func (o *ServiceListUsingGETParams) SetDisplayName(displayName *string)
SetDisplayName adds the displayName to the service list using g e t params
func (*ServiceListUsingGETParams) SetHTTPClient ¶
func (o *ServiceListUsingGETParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the service list using g e t params
func (*ServiceListUsingGETParams) SetTimeout ¶
func (o *ServiceListUsingGETParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the service list using g e t params
func (*ServiceListUsingGETParams) WithContext ¶
func (o *ServiceListUsingGETParams) WithContext(ctx context.Context) *ServiceListUsingGETParams
WithContext adds the context to the service list using g e t params
func (*ServiceListUsingGETParams) WithDefaults ¶ added in v1.2.4
func (o *ServiceListUsingGETParams) WithDefaults() *ServiceListUsingGETParams
WithDefaults hydrates default values in the service list using g e t params (not the query body).
All values with no default are reset to their zero value.
func (*ServiceListUsingGETParams) WithDisplayName ¶
func (o *ServiceListUsingGETParams) WithDisplayName(displayName *string) *ServiceListUsingGETParams
WithDisplayName adds the displayName to the service list using g e t params
func (*ServiceListUsingGETParams) WithHTTPClient ¶
func (o *ServiceListUsingGETParams) WithHTTPClient(client *http.Client) *ServiceListUsingGETParams
WithHTTPClient adds the HTTPClient to the service list using g e t params
func (*ServiceListUsingGETParams) WithTimeout ¶
func (o *ServiceListUsingGETParams) WithTimeout(timeout time.Duration) *ServiceListUsingGETParams
WithTimeout adds the timeout to the service list using g e t params
func (*ServiceListUsingGETParams) WriteToRequest ¶
func (o *ServiceListUsingGETParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ServiceListUsingGETReader ¶
type ServiceListUsingGETReader struct {
// contains filtered or unexported fields
}
ServiceListUsingGETReader is a Reader for the ServiceListUsingGET structure.
func (*ServiceListUsingGETReader) ReadResponse ¶
func (o *ServiceListUsingGETReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.