power_edge_router

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 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 power edge router API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) V1PoweredgerouterActionPost

func (a *Client) V1PoweredgerouterActionPost(params *V1PoweredgerouterActionPostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*V1PoweredgerouterActionPostOK, error)

V1PoweredgerouterActionPost performs a power edge router action migrate start migrate validate on a workspace

type ClientOption

type ClientOption func(*runtime.ClientOperation)

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

type ClientService

type ClientService interface {
	V1PoweredgerouterActionPost(params *V1PoweredgerouterActionPostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*V1PoweredgerouterActionPostOK, 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 power edge router API client.

func NewClientWithBasicAuth

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

New creates a new power edge router 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 power edge router 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 V1PoweredgerouterActionPostBadRequest

type V1PoweredgerouterActionPostBadRequest struct {
	Payload *models.Error
}

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

Bad Request

func NewV1PoweredgerouterActionPostBadRequest

func NewV1PoweredgerouterActionPostBadRequest() *V1PoweredgerouterActionPostBadRequest

NewV1PoweredgerouterActionPostBadRequest creates a V1PoweredgerouterActionPostBadRequest with default headers values

func (*V1PoweredgerouterActionPostBadRequest) Code

Code gets the status code for the v1 poweredgerouter action post bad request response

func (*V1PoweredgerouterActionPostBadRequest) Error

func (*V1PoweredgerouterActionPostBadRequest) GetPayload

func (*V1PoweredgerouterActionPostBadRequest) IsClientError

func (o *V1PoweredgerouterActionPostBadRequest) IsClientError() bool

IsClientError returns true when this v1 poweredgerouter action post bad request response has a 4xx status code

func (*V1PoweredgerouterActionPostBadRequest) IsCode

IsCode returns true when this v1 poweredgerouter action post bad request response a status code equal to that given

func (*V1PoweredgerouterActionPostBadRequest) IsRedirect

IsRedirect returns true when this v1 poweredgerouter action post bad request response has a 3xx status code

func (*V1PoweredgerouterActionPostBadRequest) IsServerError

func (o *V1PoweredgerouterActionPostBadRequest) IsServerError() bool

IsServerError returns true when this v1 poweredgerouter action post bad request response has a 5xx status code

func (*V1PoweredgerouterActionPostBadRequest) IsSuccess

IsSuccess returns true when this v1 poweredgerouter action post bad request response has a 2xx status code

func (*V1PoweredgerouterActionPostBadRequest) String

type V1PoweredgerouterActionPostConflict

type V1PoweredgerouterActionPostConflict struct {
	Payload *models.Error
}

V1PoweredgerouterActionPostConflict describes a response with status code 409, with default header values.

Conflict

func NewV1PoweredgerouterActionPostConflict

func NewV1PoweredgerouterActionPostConflict() *V1PoweredgerouterActionPostConflict

NewV1PoweredgerouterActionPostConflict creates a V1PoweredgerouterActionPostConflict with default headers values

func (*V1PoweredgerouterActionPostConflict) Code

Code gets the status code for the v1 poweredgerouter action post conflict response

func (*V1PoweredgerouterActionPostConflict) Error

func (*V1PoweredgerouterActionPostConflict) GetPayload

func (*V1PoweredgerouterActionPostConflict) IsClientError

func (o *V1PoweredgerouterActionPostConflict) IsClientError() bool

IsClientError returns true when this v1 poweredgerouter action post conflict response has a 4xx status code

func (*V1PoweredgerouterActionPostConflict) IsCode

IsCode returns true when this v1 poweredgerouter action post conflict response a status code equal to that given

func (*V1PoweredgerouterActionPostConflict) IsRedirect

func (o *V1PoweredgerouterActionPostConflict) IsRedirect() bool

IsRedirect returns true when this v1 poweredgerouter action post conflict response has a 3xx status code

func (*V1PoweredgerouterActionPostConflict) IsServerError

func (o *V1PoweredgerouterActionPostConflict) IsServerError() bool

IsServerError returns true when this v1 poweredgerouter action post conflict response has a 5xx status code

func (*V1PoweredgerouterActionPostConflict) IsSuccess

IsSuccess returns true when this v1 poweredgerouter action post conflict response has a 2xx status code

func (*V1PoweredgerouterActionPostConflict) String

type V1PoweredgerouterActionPostForbidden

type V1PoweredgerouterActionPostForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewV1PoweredgerouterActionPostForbidden

func NewV1PoweredgerouterActionPostForbidden() *V1PoweredgerouterActionPostForbidden

NewV1PoweredgerouterActionPostForbidden creates a V1PoweredgerouterActionPostForbidden with default headers values

func (*V1PoweredgerouterActionPostForbidden) Code

Code gets the status code for the v1 poweredgerouter action post forbidden response

func (*V1PoweredgerouterActionPostForbidden) Error

func (*V1PoweredgerouterActionPostForbidden) GetPayload

func (*V1PoweredgerouterActionPostForbidden) IsClientError

func (o *V1PoweredgerouterActionPostForbidden) IsClientError() bool

IsClientError returns true when this v1 poweredgerouter action post forbidden response has a 4xx status code

func (*V1PoweredgerouterActionPostForbidden) IsCode

IsCode returns true when this v1 poweredgerouter action post forbidden response a status code equal to that given

func (*V1PoweredgerouterActionPostForbidden) IsRedirect

IsRedirect returns true when this v1 poweredgerouter action post forbidden response has a 3xx status code

func (*V1PoweredgerouterActionPostForbidden) IsServerError

func (o *V1PoweredgerouterActionPostForbidden) IsServerError() bool

IsServerError returns true when this v1 poweredgerouter action post forbidden response has a 5xx status code

func (*V1PoweredgerouterActionPostForbidden) IsSuccess

IsSuccess returns true when this v1 poweredgerouter action post forbidden response has a 2xx status code

func (*V1PoweredgerouterActionPostForbidden) String

type V1PoweredgerouterActionPostInternalServerError

type V1PoweredgerouterActionPostInternalServerError struct {
	Payload *models.Error
}

V1PoweredgerouterActionPostInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewV1PoweredgerouterActionPostInternalServerError

func NewV1PoweredgerouterActionPostInternalServerError() *V1PoweredgerouterActionPostInternalServerError

NewV1PoweredgerouterActionPostInternalServerError creates a V1PoweredgerouterActionPostInternalServerError with default headers values

func (*V1PoweredgerouterActionPostInternalServerError) Code

Code gets the status code for the v1 poweredgerouter action post internal server error response

func (*V1PoweredgerouterActionPostInternalServerError) Error

func (*V1PoweredgerouterActionPostInternalServerError) GetPayload

func (*V1PoweredgerouterActionPostInternalServerError) IsClientError

IsClientError returns true when this v1 poweredgerouter action post internal server error response has a 4xx status code

func (*V1PoweredgerouterActionPostInternalServerError) IsCode

IsCode returns true when this v1 poweredgerouter action post internal server error response a status code equal to that given

func (*V1PoweredgerouterActionPostInternalServerError) IsRedirect

IsRedirect returns true when this v1 poweredgerouter action post internal server error response has a 3xx status code

func (*V1PoweredgerouterActionPostInternalServerError) IsServerError

IsServerError returns true when this v1 poweredgerouter action post internal server error response has a 5xx status code

func (*V1PoweredgerouterActionPostInternalServerError) IsSuccess

IsSuccess returns true when this v1 poweredgerouter action post internal server error response has a 2xx status code

func (*V1PoweredgerouterActionPostInternalServerError) String

type V1PoweredgerouterActionPostNotFound

type V1PoweredgerouterActionPostNotFound struct {
	Payload *models.Error
}

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

Not Found

func NewV1PoweredgerouterActionPostNotFound

func NewV1PoweredgerouterActionPostNotFound() *V1PoweredgerouterActionPostNotFound

NewV1PoweredgerouterActionPostNotFound creates a V1PoweredgerouterActionPostNotFound with default headers values

func (*V1PoweredgerouterActionPostNotFound) Code

Code gets the status code for the v1 poweredgerouter action post not found response

func (*V1PoweredgerouterActionPostNotFound) Error

func (*V1PoweredgerouterActionPostNotFound) GetPayload

func (*V1PoweredgerouterActionPostNotFound) IsClientError

func (o *V1PoweredgerouterActionPostNotFound) IsClientError() bool

IsClientError returns true when this v1 poweredgerouter action post not found response has a 4xx status code

func (*V1PoweredgerouterActionPostNotFound) IsCode

IsCode returns true when this v1 poweredgerouter action post not found response a status code equal to that given

func (*V1PoweredgerouterActionPostNotFound) IsRedirect

func (o *V1PoweredgerouterActionPostNotFound) IsRedirect() bool

IsRedirect returns true when this v1 poweredgerouter action post not found response has a 3xx status code

func (*V1PoweredgerouterActionPostNotFound) IsServerError

func (o *V1PoweredgerouterActionPostNotFound) IsServerError() bool

IsServerError returns true when this v1 poweredgerouter action post not found response has a 5xx status code

func (*V1PoweredgerouterActionPostNotFound) IsSuccess

IsSuccess returns true when this v1 poweredgerouter action post not found response has a 2xx status code

func (*V1PoweredgerouterActionPostNotFound) String

type V1PoweredgerouterActionPostOK

type V1PoweredgerouterActionPostOK struct {
	Payload models.Object
}

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

OK

func NewV1PoweredgerouterActionPostOK

func NewV1PoweredgerouterActionPostOK() *V1PoweredgerouterActionPostOK

NewV1PoweredgerouterActionPostOK creates a V1PoweredgerouterActionPostOK with default headers values

func (*V1PoweredgerouterActionPostOK) Code

Code gets the status code for the v1 poweredgerouter action post o k response

func (*V1PoweredgerouterActionPostOK) Error

func (*V1PoweredgerouterActionPostOK) GetPayload

func (*V1PoweredgerouterActionPostOK) IsClientError

func (o *V1PoweredgerouterActionPostOK) IsClientError() bool

IsClientError returns true when this v1 poweredgerouter action post o k response has a 4xx status code

func (*V1PoweredgerouterActionPostOK) IsCode

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

IsCode returns true when this v1 poweredgerouter action post o k response a status code equal to that given

func (*V1PoweredgerouterActionPostOK) IsRedirect

func (o *V1PoweredgerouterActionPostOK) IsRedirect() bool

IsRedirect returns true when this v1 poweredgerouter action post o k response has a 3xx status code

func (*V1PoweredgerouterActionPostOK) IsServerError

func (o *V1PoweredgerouterActionPostOK) IsServerError() bool

IsServerError returns true when this v1 poweredgerouter action post o k response has a 5xx status code

func (*V1PoweredgerouterActionPostOK) IsSuccess

func (o *V1PoweredgerouterActionPostOK) IsSuccess() bool

IsSuccess returns true when this v1 poweredgerouter action post o k response has a 2xx status code

func (*V1PoweredgerouterActionPostOK) String

type V1PoweredgerouterActionPostParams

type V1PoweredgerouterActionPostParams struct {

	/* Body.

	   Parameters for the desired action
	*/
	Body *models.PowerEdgeRouterAction

	/* WorkspaceID.

	   Workspace ID
	*/
	WorkspaceID string

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

V1PoweredgerouterActionPostParams contains all the parameters to send to the API endpoint

for the v1 poweredgerouter action post operation.

Typically these are written to a http.Request.

func NewV1PoweredgerouterActionPostParams

func NewV1PoweredgerouterActionPostParams() *V1PoweredgerouterActionPostParams

NewV1PoweredgerouterActionPostParams creates a new V1PoweredgerouterActionPostParams 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 NewV1PoweredgerouterActionPostParamsWithContext

func NewV1PoweredgerouterActionPostParamsWithContext(ctx context.Context) *V1PoweredgerouterActionPostParams

NewV1PoweredgerouterActionPostParamsWithContext creates a new V1PoweredgerouterActionPostParams object with the ability to set a context for a request.

func NewV1PoweredgerouterActionPostParamsWithHTTPClient

func NewV1PoweredgerouterActionPostParamsWithHTTPClient(client *http.Client) *V1PoweredgerouterActionPostParams

NewV1PoweredgerouterActionPostParamsWithHTTPClient creates a new V1PoweredgerouterActionPostParams object with the ability to set a custom HTTPClient for a request.

func NewV1PoweredgerouterActionPostParamsWithTimeout

func NewV1PoweredgerouterActionPostParamsWithTimeout(timeout time.Duration) *V1PoweredgerouterActionPostParams

NewV1PoweredgerouterActionPostParamsWithTimeout creates a new V1PoweredgerouterActionPostParams object with the ability to set a timeout on a request.

func (*V1PoweredgerouterActionPostParams) SetBody

SetBody adds the body to the v1 poweredgerouter action post params

func (*V1PoweredgerouterActionPostParams) SetContext

SetContext adds the context to the v1 poweredgerouter action post params

func (*V1PoweredgerouterActionPostParams) SetDefaults

func (o *V1PoweredgerouterActionPostParams) SetDefaults()

SetDefaults hydrates default values in the v1 poweredgerouter action post params (not the query body).

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

func (*V1PoweredgerouterActionPostParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the v1 poweredgerouter action post params

func (*V1PoweredgerouterActionPostParams) SetTimeout

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

SetTimeout adds the timeout to the v1 poweredgerouter action post params

func (*V1PoweredgerouterActionPostParams) SetWorkspaceID

func (o *V1PoweredgerouterActionPostParams) SetWorkspaceID(workspaceID string)

SetWorkspaceID adds the workspaceId to the v1 poweredgerouter action post params

func (*V1PoweredgerouterActionPostParams) WithBody

WithBody adds the body to the v1 poweredgerouter action post params

func (*V1PoweredgerouterActionPostParams) WithContext

WithContext adds the context to the v1 poweredgerouter action post params

func (*V1PoweredgerouterActionPostParams) WithDefaults

WithDefaults hydrates default values in the v1 poweredgerouter action post params (not the query body).

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

func (*V1PoweredgerouterActionPostParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the v1 poweredgerouter action post params

func (*V1PoweredgerouterActionPostParams) WithTimeout

WithTimeout adds the timeout to the v1 poweredgerouter action post params

func (*V1PoweredgerouterActionPostParams) WithWorkspaceID

WithWorkspaceID adds the workspaceID to the v1 poweredgerouter action post params

func (*V1PoweredgerouterActionPostParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type V1PoweredgerouterActionPostReader

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

V1PoweredgerouterActionPostReader is a Reader for the V1PoweredgerouterActionPost structure.

func (*V1PoweredgerouterActionPostReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type V1PoweredgerouterActionPostUnauthorized

type V1PoweredgerouterActionPostUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewV1PoweredgerouterActionPostUnauthorized

func NewV1PoweredgerouterActionPostUnauthorized() *V1PoweredgerouterActionPostUnauthorized

NewV1PoweredgerouterActionPostUnauthorized creates a V1PoweredgerouterActionPostUnauthorized with default headers values

func (*V1PoweredgerouterActionPostUnauthorized) Code

Code gets the status code for the v1 poweredgerouter action post unauthorized response

func (*V1PoweredgerouterActionPostUnauthorized) Error

func (*V1PoweredgerouterActionPostUnauthorized) GetPayload

func (*V1PoweredgerouterActionPostUnauthorized) IsClientError

func (o *V1PoweredgerouterActionPostUnauthorized) IsClientError() bool

IsClientError returns true when this v1 poweredgerouter action post unauthorized response has a 4xx status code

func (*V1PoweredgerouterActionPostUnauthorized) IsCode

IsCode returns true when this v1 poweredgerouter action post unauthorized response a status code equal to that given

func (*V1PoweredgerouterActionPostUnauthorized) IsRedirect

IsRedirect returns true when this v1 poweredgerouter action post unauthorized response has a 3xx status code

func (*V1PoweredgerouterActionPostUnauthorized) IsServerError

func (o *V1PoweredgerouterActionPostUnauthorized) IsServerError() bool

IsServerError returns true when this v1 poweredgerouter action post unauthorized response has a 5xx status code

func (*V1PoweredgerouterActionPostUnauthorized) IsSuccess

IsSuccess returns true when this v1 poweredgerouter action post unauthorized response has a 2xx status code

func (*V1PoweredgerouterActionPostUnauthorized) String

Jump to

Keyboard shortcuts

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