swagger_spec

package
v1.8.0-beta19 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 11 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 swagger spec API

func (*Client) ServiceBrokerSwaggerspec

func (a *Client) ServiceBrokerSwaggerspec(params *ServiceBrokerSwaggerspecParams, opts ...ClientOption) (*ServiceBrokerSwaggerspecOK, error)

ServiceBrokerSwaggerspec gets swagger json spec

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption added in v1.1.0

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService added in v1.1.0

type ClientService interface {
	ServiceBrokerSwaggerspec(params *ServiceBrokerSwaggerspecParams, opts ...ClientOption) (*ServiceBrokerSwaggerspecOK, 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 swagger spec API client.

func NewClientWithBasicAuth added in v1.7.0

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new swagger spec 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 swagger spec 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 ServiceBrokerSwaggerspecBadRequest added in v1.4.2

type ServiceBrokerSwaggerspecBadRequest struct {
	Payload *models.Error
}

ServiceBrokerSwaggerspecBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewServiceBrokerSwaggerspecBadRequest added in v1.4.2

func NewServiceBrokerSwaggerspecBadRequest() *ServiceBrokerSwaggerspecBadRequest

NewServiceBrokerSwaggerspecBadRequest creates a ServiceBrokerSwaggerspecBadRequest with default headers values

func (*ServiceBrokerSwaggerspecBadRequest) Code added in v1.4.2

Code gets the status code for the service broker swaggerspec bad request response

func (*ServiceBrokerSwaggerspecBadRequest) Error added in v1.4.2

func (*ServiceBrokerSwaggerspecBadRequest) GetPayload added in v1.4.2

func (*ServiceBrokerSwaggerspecBadRequest) IsClientError added in v1.4.2

func (o *ServiceBrokerSwaggerspecBadRequest) IsClientError() bool

IsClientError returns true when this service broker swaggerspec bad request response has a 4xx status code

func (*ServiceBrokerSwaggerspecBadRequest) IsCode added in v1.4.2

IsCode returns true when this service broker swaggerspec bad request response a status code equal to that given

func (*ServiceBrokerSwaggerspecBadRequest) IsRedirect added in v1.4.2

func (o *ServiceBrokerSwaggerspecBadRequest) IsRedirect() bool

IsRedirect returns true when this service broker swaggerspec bad request response has a 3xx status code

func (*ServiceBrokerSwaggerspecBadRequest) IsServerError added in v1.4.2

func (o *ServiceBrokerSwaggerspecBadRequest) IsServerError() bool

IsServerError returns true when this service broker swaggerspec bad request response has a 5xx status code

func (*ServiceBrokerSwaggerspecBadRequest) IsSuccess added in v1.4.2

IsSuccess returns true when this service broker swaggerspec bad request response has a 2xx status code

func (*ServiceBrokerSwaggerspecBadRequest) String added in v1.4.2

type ServiceBrokerSwaggerspecForbidden added in v1.4.2

type ServiceBrokerSwaggerspecForbidden struct {
	Payload *models.Error
}

ServiceBrokerSwaggerspecForbidden describes a response with status code 403, with default header values.

Forbidden

func NewServiceBrokerSwaggerspecForbidden added in v1.4.2

func NewServiceBrokerSwaggerspecForbidden() *ServiceBrokerSwaggerspecForbidden

NewServiceBrokerSwaggerspecForbidden creates a ServiceBrokerSwaggerspecForbidden with default headers values

func (*ServiceBrokerSwaggerspecForbidden) Code added in v1.4.2

Code gets the status code for the service broker swaggerspec forbidden response

func (*ServiceBrokerSwaggerspecForbidden) Error added in v1.4.2

func (*ServiceBrokerSwaggerspecForbidden) GetPayload added in v1.4.2

func (*ServiceBrokerSwaggerspecForbidden) IsClientError added in v1.4.2

func (o *ServiceBrokerSwaggerspecForbidden) IsClientError() bool

IsClientError returns true when this service broker swaggerspec forbidden response has a 4xx status code

func (*ServiceBrokerSwaggerspecForbidden) IsCode added in v1.4.2

func (o *ServiceBrokerSwaggerspecForbidden) IsCode(code int) bool

IsCode returns true when this service broker swaggerspec forbidden response a status code equal to that given

func (*ServiceBrokerSwaggerspecForbidden) IsRedirect added in v1.4.2

func (o *ServiceBrokerSwaggerspecForbidden) IsRedirect() bool

IsRedirect returns true when this service broker swaggerspec forbidden response has a 3xx status code

func (*ServiceBrokerSwaggerspecForbidden) IsServerError added in v1.4.2

func (o *ServiceBrokerSwaggerspecForbidden) IsServerError() bool

IsServerError returns true when this service broker swaggerspec forbidden response has a 5xx status code

func (*ServiceBrokerSwaggerspecForbidden) IsSuccess added in v1.4.2

func (o *ServiceBrokerSwaggerspecForbidden) IsSuccess() bool

IsSuccess returns true when this service broker swaggerspec forbidden response has a 2xx status code

func (*ServiceBrokerSwaggerspecForbidden) String added in v1.4.2

type ServiceBrokerSwaggerspecNotFound added in v1.4.2

type ServiceBrokerSwaggerspecNotFound struct {
	Payload *models.Error
}

ServiceBrokerSwaggerspecNotFound describes a response with status code 404, with default header values.

Not Found

func NewServiceBrokerSwaggerspecNotFound added in v1.4.2

func NewServiceBrokerSwaggerspecNotFound() *ServiceBrokerSwaggerspecNotFound

NewServiceBrokerSwaggerspecNotFound creates a ServiceBrokerSwaggerspecNotFound with default headers values

func (*ServiceBrokerSwaggerspecNotFound) Code added in v1.4.2

Code gets the status code for the service broker swaggerspec not found response

func (*ServiceBrokerSwaggerspecNotFound) Error added in v1.4.2

func (*ServiceBrokerSwaggerspecNotFound) GetPayload added in v1.4.2

func (*ServiceBrokerSwaggerspecNotFound) IsClientError added in v1.4.2

func (o *ServiceBrokerSwaggerspecNotFound) IsClientError() bool

IsClientError returns true when this service broker swaggerspec not found response has a 4xx status code

func (*ServiceBrokerSwaggerspecNotFound) IsCode added in v1.4.2

func (o *ServiceBrokerSwaggerspecNotFound) IsCode(code int) bool

IsCode returns true when this service broker swaggerspec not found response a status code equal to that given

func (*ServiceBrokerSwaggerspecNotFound) IsRedirect added in v1.4.2

func (o *ServiceBrokerSwaggerspecNotFound) IsRedirect() bool

IsRedirect returns true when this service broker swaggerspec not found response has a 3xx status code

func (*ServiceBrokerSwaggerspecNotFound) IsServerError added in v1.4.2

func (o *ServiceBrokerSwaggerspecNotFound) IsServerError() bool

IsServerError returns true when this service broker swaggerspec not found response has a 5xx status code

func (*ServiceBrokerSwaggerspecNotFound) IsSuccess added in v1.4.2

func (o *ServiceBrokerSwaggerspecNotFound) IsSuccess() bool

IsSuccess returns true when this service broker swaggerspec not found response has a 2xx status code

func (*ServiceBrokerSwaggerspecNotFound) String added in v1.4.2

type ServiceBrokerSwaggerspecOK

type ServiceBrokerSwaggerspecOK struct {
	Payload models.Object
}

ServiceBrokerSwaggerspecOK describes a response with status code 200, with default header values.

OK

func NewServiceBrokerSwaggerspecOK

func NewServiceBrokerSwaggerspecOK() *ServiceBrokerSwaggerspecOK

NewServiceBrokerSwaggerspecOK creates a ServiceBrokerSwaggerspecOK with default headers values

func (*ServiceBrokerSwaggerspecOK) Code added in v1.2.4

func (o *ServiceBrokerSwaggerspecOK) Code() int

Code gets the status code for the service broker swaggerspec o k response

func (*ServiceBrokerSwaggerspecOK) Error

func (*ServiceBrokerSwaggerspecOK) GetPayload added in v1.1.0

func (o *ServiceBrokerSwaggerspecOK) GetPayload() models.Object

func (*ServiceBrokerSwaggerspecOK) IsClientError added in v1.2.2

func (o *ServiceBrokerSwaggerspecOK) IsClientError() bool

IsClientError returns true when this service broker swaggerspec o k response has a 4xx status code

func (*ServiceBrokerSwaggerspecOK) IsCode added in v1.2.2

func (o *ServiceBrokerSwaggerspecOK) IsCode(code int) bool

IsCode returns true when this service broker swaggerspec o k response a status code equal to that given

func (*ServiceBrokerSwaggerspecOK) IsRedirect added in v1.2.2

func (o *ServiceBrokerSwaggerspecOK) IsRedirect() bool

IsRedirect returns true when this service broker swaggerspec o k response has a 3xx status code

func (*ServiceBrokerSwaggerspecOK) IsServerError added in v1.2.2

func (o *ServiceBrokerSwaggerspecOK) IsServerError() bool

IsServerError returns true when this service broker swaggerspec o k response has a 5xx status code

func (*ServiceBrokerSwaggerspecOK) IsSuccess added in v1.2.2

func (o *ServiceBrokerSwaggerspecOK) IsSuccess() bool

IsSuccess returns true when this service broker swaggerspec o k response has a 2xx status code

func (*ServiceBrokerSwaggerspecOK) String added in v1.2.2

func (o *ServiceBrokerSwaggerspecOK) String() string

type ServiceBrokerSwaggerspecParams

type ServiceBrokerSwaggerspecParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ServiceBrokerSwaggerspecParams contains all the parameters to send to the API endpoint

for the service broker swaggerspec operation.

Typically these are written to a http.Request.

func NewServiceBrokerSwaggerspecParams

func NewServiceBrokerSwaggerspecParams() *ServiceBrokerSwaggerspecParams

NewServiceBrokerSwaggerspecParams creates a new ServiceBrokerSwaggerspecParams 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 NewServiceBrokerSwaggerspecParamsWithContext

func NewServiceBrokerSwaggerspecParamsWithContext(ctx context.Context) *ServiceBrokerSwaggerspecParams

NewServiceBrokerSwaggerspecParamsWithContext creates a new ServiceBrokerSwaggerspecParams object with the ability to set a context for a request.

func NewServiceBrokerSwaggerspecParamsWithHTTPClient

func NewServiceBrokerSwaggerspecParamsWithHTTPClient(client *http.Client) *ServiceBrokerSwaggerspecParams

NewServiceBrokerSwaggerspecParamsWithHTTPClient creates a new ServiceBrokerSwaggerspecParams object with the ability to set a custom HTTPClient for a request.

func NewServiceBrokerSwaggerspecParamsWithTimeout

func NewServiceBrokerSwaggerspecParamsWithTimeout(timeout time.Duration) *ServiceBrokerSwaggerspecParams

NewServiceBrokerSwaggerspecParamsWithTimeout creates a new ServiceBrokerSwaggerspecParams object with the ability to set a timeout on a request.

func (*ServiceBrokerSwaggerspecParams) SetContext

func (o *ServiceBrokerSwaggerspecParams) SetContext(ctx context.Context)

SetContext adds the context to the service broker swaggerspec params

func (*ServiceBrokerSwaggerspecParams) SetDefaults added in v1.1.0

func (o *ServiceBrokerSwaggerspecParams) SetDefaults()

SetDefaults hydrates default values in the service broker swaggerspec params (not the query body).

All values with no default are reset to their zero value.

func (*ServiceBrokerSwaggerspecParams) SetHTTPClient

func (o *ServiceBrokerSwaggerspecParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the service broker swaggerspec params

func (*ServiceBrokerSwaggerspecParams) SetTimeout

func (o *ServiceBrokerSwaggerspecParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the service broker swaggerspec params

func (*ServiceBrokerSwaggerspecParams) WithContext

WithContext adds the context to the service broker swaggerspec params

func (*ServiceBrokerSwaggerspecParams) WithDefaults added in v1.1.0

WithDefaults hydrates default values in the service broker swaggerspec params (not the query body).

All values with no default are reset to their zero value.

func (*ServiceBrokerSwaggerspecParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the service broker swaggerspec params

func (*ServiceBrokerSwaggerspecParams) WithTimeout

WithTimeout adds the timeout to the service broker swaggerspec params

func (*ServiceBrokerSwaggerspecParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ServiceBrokerSwaggerspecReader

type ServiceBrokerSwaggerspecReader struct {
	// contains filtered or unexported fields
}

ServiceBrokerSwaggerspecReader is a Reader for the ServiceBrokerSwaggerspec structure.

func (*ServiceBrokerSwaggerspecReader) ReadResponse

func (o *ServiceBrokerSwaggerspecReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ServiceBrokerSwaggerspecUnauthorized added in v1.4.2

type ServiceBrokerSwaggerspecUnauthorized struct {
	Payload *models.Error
}

ServiceBrokerSwaggerspecUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewServiceBrokerSwaggerspecUnauthorized added in v1.4.2

func NewServiceBrokerSwaggerspecUnauthorized() *ServiceBrokerSwaggerspecUnauthorized

NewServiceBrokerSwaggerspecUnauthorized creates a ServiceBrokerSwaggerspecUnauthorized with default headers values

func (*ServiceBrokerSwaggerspecUnauthorized) Code added in v1.4.2

Code gets the status code for the service broker swaggerspec unauthorized response

func (*ServiceBrokerSwaggerspecUnauthorized) Error added in v1.4.2

func (*ServiceBrokerSwaggerspecUnauthorized) GetPayload added in v1.4.2

func (*ServiceBrokerSwaggerspecUnauthorized) IsClientError added in v1.4.2

func (o *ServiceBrokerSwaggerspecUnauthorized) IsClientError() bool

IsClientError returns true when this service broker swaggerspec unauthorized response has a 4xx status code

func (*ServiceBrokerSwaggerspecUnauthorized) IsCode added in v1.4.2

IsCode returns true when this service broker swaggerspec unauthorized response a status code equal to that given

func (*ServiceBrokerSwaggerspecUnauthorized) IsRedirect added in v1.4.2

IsRedirect returns true when this service broker swaggerspec unauthorized response has a 3xx status code

func (*ServiceBrokerSwaggerspecUnauthorized) IsServerError added in v1.4.2

func (o *ServiceBrokerSwaggerspecUnauthorized) IsServerError() bool

IsServerError returns true when this service broker swaggerspec unauthorized response has a 5xx status code

func (*ServiceBrokerSwaggerspecUnauthorized) IsSuccess added in v1.4.2

IsSuccess returns true when this service broker swaggerspec unauthorized response has a 2xx status code

func (*ServiceBrokerSwaggerspecUnauthorized) String added in v1.4.2

Jump to

Keyboard shortcuts

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