default_services

package
v1.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 (*ServiceGetUsingGETBadRequest) GetPayload added in v1.2.0

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

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

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

WithContext adds the context to the service get using g e t params

func (*ServiceGetUsingGETParams) WithDefaults added in v1.2.4

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

WithTimeout adds the timeout to the service get using g e t params

func (*ServiceGetUsingGETParams) WriteToRequest

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 (*ServiceListUsingGETBadRequest) GetPayload added in v1.2.0

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

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

WithContext adds the context to the service list using g e t params

func (*ServiceListUsingGETParams) WithDefaults added in v1.2.4

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

WithTimeout adds the timeout to the service list using g e t params

func (*ServiceListUsingGETParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL