servers

package
v0.0.0-...-6316459 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 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 servers API

func (*Client) DeleteAuthorizationServer

DeleteAuthorizationServer deletes authorization server

Delete authorization server.

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 may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	DeleteAuthorizationServer(params *DeleteAuthorizationServerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAuthorizationServerNoContent, 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 servers API client.

func NewClientWithBasicAuth

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

New creates a new servers 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

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new servers 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 DeleteAuthorizationServerBadRequest

type DeleteAuthorizationServerBadRequest struct {
	Payload *models.Error
}

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

Bad request

func NewDeleteAuthorizationServerBadRequest

func NewDeleteAuthorizationServerBadRequest() *DeleteAuthorizationServerBadRequest

NewDeleteAuthorizationServerBadRequest creates a DeleteAuthorizationServerBadRequest with default headers values

func (*DeleteAuthorizationServerBadRequest) Code

Code gets the status code for the delete authorization server bad request response

func (*DeleteAuthorizationServerBadRequest) Error

func (*DeleteAuthorizationServerBadRequest) GetPayload

func (*DeleteAuthorizationServerBadRequest) IsClientError

func (o *DeleteAuthorizationServerBadRequest) IsClientError() bool

IsClientError returns true when this delete authorization server bad request response has a 4xx status code

func (*DeleteAuthorizationServerBadRequest) IsCode

IsCode returns true when this delete authorization server bad request response a status code equal to that given

func (*DeleteAuthorizationServerBadRequest) IsRedirect

func (o *DeleteAuthorizationServerBadRequest) IsRedirect() bool

IsRedirect returns true when this delete authorization server bad request response has a 3xx status code

func (*DeleteAuthorizationServerBadRequest) IsServerError

func (o *DeleteAuthorizationServerBadRequest) IsServerError() bool

IsServerError returns true when this delete authorization server bad request response has a 5xx status code

func (*DeleteAuthorizationServerBadRequest) IsSuccess

IsSuccess returns true when this delete authorization server bad request response has a 2xx status code

func (*DeleteAuthorizationServerBadRequest) String

type DeleteAuthorizationServerForbidden

type DeleteAuthorizationServerForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewDeleteAuthorizationServerForbidden

func NewDeleteAuthorizationServerForbidden() *DeleteAuthorizationServerForbidden

NewDeleteAuthorizationServerForbidden creates a DeleteAuthorizationServerForbidden with default headers values

func (*DeleteAuthorizationServerForbidden) Code

Code gets the status code for the delete authorization server forbidden response

func (*DeleteAuthorizationServerForbidden) Error

func (*DeleteAuthorizationServerForbidden) GetPayload

func (*DeleteAuthorizationServerForbidden) IsClientError

func (o *DeleteAuthorizationServerForbidden) IsClientError() bool

IsClientError returns true when this delete authorization server forbidden response has a 4xx status code

func (*DeleteAuthorizationServerForbidden) IsCode

IsCode returns true when this delete authorization server forbidden response a status code equal to that given

func (*DeleteAuthorizationServerForbidden) IsRedirect

func (o *DeleteAuthorizationServerForbidden) IsRedirect() bool

IsRedirect returns true when this delete authorization server forbidden response has a 3xx status code

func (*DeleteAuthorizationServerForbidden) IsServerError

func (o *DeleteAuthorizationServerForbidden) IsServerError() bool

IsServerError returns true when this delete authorization server forbidden response has a 5xx status code

func (*DeleteAuthorizationServerForbidden) IsSuccess

IsSuccess returns true when this delete authorization server forbidden response has a 2xx status code

func (*DeleteAuthorizationServerForbidden) String

type DeleteAuthorizationServerNoContent

type DeleteAuthorizationServerNoContent struct {
}

DeleteAuthorizationServerNoContent describes a response with status code 204, with default header values.

Authorization server has been deleted

func NewDeleteAuthorizationServerNoContent

func NewDeleteAuthorizationServerNoContent() *DeleteAuthorizationServerNoContent

NewDeleteAuthorizationServerNoContent creates a DeleteAuthorizationServerNoContent with default headers values

func (*DeleteAuthorizationServerNoContent) Code

Code gets the status code for the delete authorization server no content response

func (*DeleteAuthorizationServerNoContent) Error

func (*DeleteAuthorizationServerNoContent) IsClientError

func (o *DeleteAuthorizationServerNoContent) IsClientError() bool

IsClientError returns true when this delete authorization server no content response has a 4xx status code

func (*DeleteAuthorizationServerNoContent) IsCode

IsCode returns true when this delete authorization server no content response a status code equal to that given

func (*DeleteAuthorizationServerNoContent) IsRedirect

func (o *DeleteAuthorizationServerNoContent) IsRedirect() bool

IsRedirect returns true when this delete authorization server no content response has a 3xx status code

func (*DeleteAuthorizationServerNoContent) IsServerError

func (o *DeleteAuthorizationServerNoContent) IsServerError() bool

IsServerError returns true when this delete authorization server no content response has a 5xx status code

func (*DeleteAuthorizationServerNoContent) IsSuccess

IsSuccess returns true when this delete authorization server no content response has a 2xx status code

func (*DeleteAuthorizationServerNoContent) String

type DeleteAuthorizationServerNotFound

type DeleteAuthorizationServerNotFound struct {
	Payload *models.Error
}

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

Not found

func NewDeleteAuthorizationServerNotFound

func NewDeleteAuthorizationServerNotFound() *DeleteAuthorizationServerNotFound

NewDeleteAuthorizationServerNotFound creates a DeleteAuthorizationServerNotFound with default headers values

func (*DeleteAuthorizationServerNotFound) Code

Code gets the status code for the delete authorization server not found response

func (*DeleteAuthorizationServerNotFound) Error

func (*DeleteAuthorizationServerNotFound) GetPayload

func (*DeleteAuthorizationServerNotFound) IsClientError

func (o *DeleteAuthorizationServerNotFound) IsClientError() bool

IsClientError returns true when this delete authorization server not found response has a 4xx status code

func (*DeleteAuthorizationServerNotFound) IsCode

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

IsCode returns true when this delete authorization server not found response a status code equal to that given

func (*DeleteAuthorizationServerNotFound) IsRedirect

func (o *DeleteAuthorizationServerNotFound) IsRedirect() bool

IsRedirect returns true when this delete authorization server not found response has a 3xx status code

func (*DeleteAuthorizationServerNotFound) IsServerError

func (o *DeleteAuthorizationServerNotFound) IsServerError() bool

IsServerError returns true when this delete authorization server not found response has a 5xx status code

func (*DeleteAuthorizationServerNotFound) IsSuccess

func (o *DeleteAuthorizationServerNotFound) IsSuccess() bool

IsSuccess returns true when this delete authorization server not found response has a 2xx status code

func (*DeleteAuthorizationServerNotFound) String

type DeleteAuthorizationServerParams

type DeleteAuthorizationServerParams struct {

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* Wid.

	   Workspace id

	   Default: "default"
	*/
	Wid string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteAuthorizationServerParams contains all the parameters to send to the API endpoint

for the delete authorization server operation.

Typically these are written to a http.Request.

func NewDeleteAuthorizationServerParams

func NewDeleteAuthorizationServerParams() *DeleteAuthorizationServerParams

NewDeleteAuthorizationServerParams creates a new DeleteAuthorizationServerParams 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 NewDeleteAuthorizationServerParamsWithContext

func NewDeleteAuthorizationServerParamsWithContext(ctx context.Context) *DeleteAuthorizationServerParams

NewDeleteAuthorizationServerParamsWithContext creates a new DeleteAuthorizationServerParams object with the ability to set a context for a request.

func NewDeleteAuthorizationServerParamsWithHTTPClient

func NewDeleteAuthorizationServerParamsWithHTTPClient(client *http.Client) *DeleteAuthorizationServerParams

NewDeleteAuthorizationServerParamsWithHTTPClient creates a new DeleteAuthorizationServerParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteAuthorizationServerParamsWithTimeout

func NewDeleteAuthorizationServerParamsWithTimeout(timeout time.Duration) *DeleteAuthorizationServerParams

NewDeleteAuthorizationServerParamsWithTimeout creates a new DeleteAuthorizationServerParams object with the ability to set a timeout on a request.

func (*DeleteAuthorizationServerParams) SetContext

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

SetContext adds the context to the delete authorization server params

func (*DeleteAuthorizationServerParams) SetDefaults

func (o *DeleteAuthorizationServerParams) SetDefaults()

SetDefaults hydrates default values in the delete authorization server params (not the query body).

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

func (*DeleteAuthorizationServerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete authorization server params

func (*DeleteAuthorizationServerParams) SetIfMatch

func (o *DeleteAuthorizationServerParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the delete authorization server params

func (*DeleteAuthorizationServerParams) SetTimeout

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

SetTimeout adds the timeout to the delete authorization server params

func (*DeleteAuthorizationServerParams) SetWid

func (o *DeleteAuthorizationServerParams) SetWid(wid string)

SetWid adds the wid to the delete authorization server params

func (*DeleteAuthorizationServerParams) WithContext

WithContext adds the context to the delete authorization server params

func (*DeleteAuthorizationServerParams) WithDefaults

WithDefaults hydrates default values in the delete authorization server params (not the query body).

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

func (*DeleteAuthorizationServerParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete authorization server params

func (*DeleteAuthorizationServerParams) WithIfMatch

WithIfMatch adds the ifMatch to the delete authorization server params

func (*DeleteAuthorizationServerParams) WithTimeout

WithTimeout adds the timeout to the delete authorization server params

func (*DeleteAuthorizationServerParams) WithWid

WithWid adds the wid to the delete authorization server params

func (*DeleteAuthorizationServerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteAuthorizationServerReader

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

DeleteAuthorizationServerReader is a Reader for the DeleteAuthorizationServer structure.

func (*DeleteAuthorizationServerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteAuthorizationServerTooManyRequests

type DeleteAuthorizationServerTooManyRequests struct {
	Payload *models.Error
}

DeleteAuthorizationServerTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewDeleteAuthorizationServerTooManyRequests

func NewDeleteAuthorizationServerTooManyRequests() *DeleteAuthorizationServerTooManyRequests

NewDeleteAuthorizationServerTooManyRequests creates a DeleteAuthorizationServerTooManyRequests with default headers values

func (*DeleteAuthorizationServerTooManyRequests) Code

Code gets the status code for the delete authorization server too many requests response

func (*DeleteAuthorizationServerTooManyRequests) Error

func (*DeleteAuthorizationServerTooManyRequests) GetPayload

func (*DeleteAuthorizationServerTooManyRequests) IsClientError

IsClientError returns true when this delete authorization server too many requests response has a 4xx status code

func (*DeleteAuthorizationServerTooManyRequests) IsCode

IsCode returns true when this delete authorization server too many requests response a status code equal to that given

func (*DeleteAuthorizationServerTooManyRequests) IsRedirect

IsRedirect returns true when this delete authorization server too many requests response has a 3xx status code

func (*DeleteAuthorizationServerTooManyRequests) IsServerError

IsServerError returns true when this delete authorization server too many requests response has a 5xx status code

func (*DeleteAuthorizationServerTooManyRequests) IsSuccess

IsSuccess returns true when this delete authorization server too many requests response has a 2xx status code

func (*DeleteAuthorizationServerTooManyRequests) String

type DeleteAuthorizationServerUnauthorized

type DeleteAuthorizationServerUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewDeleteAuthorizationServerUnauthorized

func NewDeleteAuthorizationServerUnauthorized() *DeleteAuthorizationServerUnauthorized

NewDeleteAuthorizationServerUnauthorized creates a DeleteAuthorizationServerUnauthorized with default headers values

func (*DeleteAuthorizationServerUnauthorized) Code

Code gets the status code for the delete authorization server unauthorized response

func (*DeleteAuthorizationServerUnauthorized) Error

func (*DeleteAuthorizationServerUnauthorized) GetPayload

func (*DeleteAuthorizationServerUnauthorized) IsClientError

func (o *DeleteAuthorizationServerUnauthorized) IsClientError() bool

IsClientError returns true when this delete authorization server unauthorized response has a 4xx status code

func (*DeleteAuthorizationServerUnauthorized) IsCode

IsCode returns true when this delete authorization server unauthorized response a status code equal to that given

func (*DeleteAuthorizationServerUnauthorized) IsRedirect

IsRedirect returns true when this delete authorization server unauthorized response has a 3xx status code

func (*DeleteAuthorizationServerUnauthorized) IsServerError

func (o *DeleteAuthorizationServerUnauthorized) IsServerError() bool

IsServerError returns true when this delete authorization server unauthorized response has a 5xx status code

func (*DeleteAuthorizationServerUnauthorized) IsSuccess

IsSuccess returns true when this delete authorization server unauthorized response has a 2xx status code

func (*DeleteAuthorizationServerUnauthorized) String

Jump to

Keyboard shortcuts

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