environment

package
v0.4.27 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 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 environment API

func (*Client) Disable

func (a *Client) Disable(params *DisableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DisableOK, error)

Disable disable API

func (*Client) Enable

func (a *Client) Enable(params *EnableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*EnableCreated, error)

Enable enable API

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 is the option for Client methods

type ClientService

type ClientService interface {
	Disable(params *DisableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DisableOK, error)

	Enable(params *EnableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*EnableCreated, 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 environment API client.

type DisableInternalServerError

type DisableInternalServerError struct {
}

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

internal server error

func NewDisableInternalServerError

func NewDisableInternalServerError() *DisableInternalServerError

NewDisableInternalServerError creates a DisableInternalServerError with default headers values

func (*DisableInternalServerError) Code added in v0.4.19

func (o *DisableInternalServerError) Code() int

Code gets the status code for the disable internal server error response

func (*DisableInternalServerError) Error

func (*DisableInternalServerError) IsClientError

func (o *DisableInternalServerError) IsClientError() bool

IsClientError returns true when this disable internal server error response has a 4xx status code

func (*DisableInternalServerError) IsCode

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

IsCode returns true when this disable internal server error response a status code equal to that given

func (*DisableInternalServerError) IsRedirect

func (o *DisableInternalServerError) IsRedirect() bool

IsRedirect returns true when this disable internal server error response has a 3xx status code

func (*DisableInternalServerError) IsServerError

func (o *DisableInternalServerError) IsServerError() bool

IsServerError returns true when this disable internal server error response has a 5xx status code

func (*DisableInternalServerError) IsSuccess

func (o *DisableInternalServerError) IsSuccess() bool

IsSuccess returns true when this disable internal server error response has a 2xx status code

func (*DisableInternalServerError) String

func (o *DisableInternalServerError) String() string

type DisableOK

type DisableOK struct {
}

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

environment disabled

func NewDisableOK

func NewDisableOK() *DisableOK

NewDisableOK creates a DisableOK with default headers values

func (*DisableOK) Code added in v0.4.19

func (o *DisableOK) Code() int

Code gets the status code for the disable o k response

func (*DisableOK) Error

func (o *DisableOK) Error() string

func (*DisableOK) IsClientError

func (o *DisableOK) IsClientError() bool

IsClientError returns true when this disable o k response has a 4xx status code

func (*DisableOK) IsCode

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

IsCode returns true when this disable o k response a status code equal to that given

func (*DisableOK) IsRedirect

func (o *DisableOK) IsRedirect() bool

IsRedirect returns true when this disable o k response has a 3xx status code

func (*DisableOK) IsServerError

func (o *DisableOK) IsServerError() bool

IsServerError returns true when this disable o k response has a 5xx status code

func (*DisableOK) IsSuccess

func (o *DisableOK) IsSuccess() bool

IsSuccess returns true when this disable o k response has a 2xx status code

func (*DisableOK) String

func (o *DisableOK) String() string

type DisableParams

type DisableParams struct {

	// Body.
	Body *rest_model_zrok.DisableRequest

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

DisableParams contains all the parameters to send to the API endpoint

for the disable operation.

Typically these are written to a http.Request.

func NewDisableParams

func NewDisableParams() *DisableParams

NewDisableParams creates a new DisableParams 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 NewDisableParamsWithContext

func NewDisableParamsWithContext(ctx context.Context) *DisableParams

NewDisableParamsWithContext creates a new DisableParams object with the ability to set a context for a request.

func NewDisableParamsWithHTTPClient

func NewDisableParamsWithHTTPClient(client *http.Client) *DisableParams

NewDisableParamsWithHTTPClient creates a new DisableParams object with the ability to set a custom HTTPClient for a request.

func NewDisableParamsWithTimeout

func NewDisableParamsWithTimeout(timeout time.Duration) *DisableParams

NewDisableParamsWithTimeout creates a new DisableParams object with the ability to set a timeout on a request.

func (*DisableParams) SetBody

func (o *DisableParams) SetBody(body *rest_model_zrok.DisableRequest)

SetBody adds the body to the disable params

func (*DisableParams) SetContext

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

SetContext adds the context to the disable params

func (*DisableParams) SetDefaults

func (o *DisableParams) SetDefaults()

SetDefaults hydrates default values in the disable params (not the query body).

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

func (*DisableParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the disable params

func (*DisableParams) SetTimeout

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

SetTimeout adds the timeout to the disable params

func (*DisableParams) WithBody

WithBody adds the body to the disable params

func (*DisableParams) WithContext

func (o *DisableParams) WithContext(ctx context.Context) *DisableParams

WithContext adds the context to the disable params

func (*DisableParams) WithDefaults

func (o *DisableParams) WithDefaults() *DisableParams

WithDefaults hydrates default values in the disable params (not the query body).

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

func (*DisableParams) WithHTTPClient

func (o *DisableParams) WithHTTPClient(client *http.Client) *DisableParams

WithHTTPClient adds the HTTPClient to the disable params

func (*DisableParams) WithTimeout

func (o *DisableParams) WithTimeout(timeout time.Duration) *DisableParams

WithTimeout adds the timeout to the disable params

func (*DisableParams) WriteToRequest

func (o *DisableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DisableReader

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

DisableReader is a Reader for the Disable structure.

func (*DisableReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DisableUnauthorized

type DisableUnauthorized struct {
}

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

invalid environment

func NewDisableUnauthorized

func NewDisableUnauthorized() *DisableUnauthorized

NewDisableUnauthorized creates a DisableUnauthorized with default headers values

func (*DisableUnauthorized) Code added in v0.4.19

func (o *DisableUnauthorized) Code() int

Code gets the status code for the disable unauthorized response

func (*DisableUnauthorized) Error

func (o *DisableUnauthorized) Error() string

func (*DisableUnauthorized) IsClientError

func (o *DisableUnauthorized) IsClientError() bool

IsClientError returns true when this disable unauthorized response has a 4xx status code

func (*DisableUnauthorized) IsCode

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

IsCode returns true when this disable unauthorized response a status code equal to that given

func (*DisableUnauthorized) IsRedirect

func (o *DisableUnauthorized) IsRedirect() bool

IsRedirect returns true when this disable unauthorized response has a 3xx status code

func (*DisableUnauthorized) IsServerError

func (o *DisableUnauthorized) IsServerError() bool

IsServerError returns true when this disable unauthorized response has a 5xx status code

func (*DisableUnauthorized) IsSuccess

func (o *DisableUnauthorized) IsSuccess() bool

IsSuccess returns true when this disable unauthorized response has a 2xx status code

func (*DisableUnauthorized) String

func (o *DisableUnauthorized) String() string

type EnableCreated

type EnableCreated struct {
	Payload *rest_model_zrok.EnableResponse
}

EnableCreated describes a response with status code 201, with default header values.

environment enabled

func NewEnableCreated

func NewEnableCreated() *EnableCreated

NewEnableCreated creates a EnableCreated with default headers values

func (*EnableCreated) Code added in v0.4.19

func (o *EnableCreated) Code() int

Code gets the status code for the enable created response

func (*EnableCreated) Error

func (o *EnableCreated) Error() string

func (*EnableCreated) GetPayload

func (o *EnableCreated) GetPayload() *rest_model_zrok.EnableResponse

func (*EnableCreated) IsClientError

func (o *EnableCreated) IsClientError() bool

IsClientError returns true when this enable created response has a 4xx status code

func (*EnableCreated) IsCode

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

IsCode returns true when this enable created response a status code equal to that given

func (*EnableCreated) IsRedirect

func (o *EnableCreated) IsRedirect() bool

IsRedirect returns true when this enable created response has a 3xx status code

func (*EnableCreated) IsServerError

func (o *EnableCreated) IsServerError() bool

IsServerError returns true when this enable created response has a 5xx status code

func (*EnableCreated) IsSuccess

func (o *EnableCreated) IsSuccess() bool

IsSuccess returns true when this enable created response has a 2xx status code

func (*EnableCreated) String

func (o *EnableCreated) String() string

type EnableInternalServerError

type EnableInternalServerError struct {
}

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

internal server error

func NewEnableInternalServerError

func NewEnableInternalServerError() *EnableInternalServerError

NewEnableInternalServerError creates a EnableInternalServerError with default headers values

func (*EnableInternalServerError) Code added in v0.4.19

func (o *EnableInternalServerError) Code() int

Code gets the status code for the enable internal server error response

func (*EnableInternalServerError) Error

func (o *EnableInternalServerError) Error() string

func (*EnableInternalServerError) IsClientError

func (o *EnableInternalServerError) IsClientError() bool

IsClientError returns true when this enable internal server error response has a 4xx status code

func (*EnableInternalServerError) IsCode

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

IsCode returns true when this enable internal server error response a status code equal to that given

func (*EnableInternalServerError) IsRedirect

func (o *EnableInternalServerError) IsRedirect() bool

IsRedirect returns true when this enable internal server error response has a 3xx status code

func (*EnableInternalServerError) IsServerError

func (o *EnableInternalServerError) IsServerError() bool

IsServerError returns true when this enable internal server error response has a 5xx status code

func (*EnableInternalServerError) IsSuccess

func (o *EnableInternalServerError) IsSuccess() bool

IsSuccess returns true when this enable internal server error response has a 2xx status code

func (*EnableInternalServerError) String

func (o *EnableInternalServerError) String() string

type EnableNotFound

type EnableNotFound struct {
}

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

account not found

func NewEnableNotFound

func NewEnableNotFound() *EnableNotFound

NewEnableNotFound creates a EnableNotFound with default headers values

func (*EnableNotFound) Code added in v0.4.19

func (o *EnableNotFound) Code() int

Code gets the status code for the enable not found response

func (*EnableNotFound) Error

func (o *EnableNotFound) Error() string

func (*EnableNotFound) IsClientError

func (o *EnableNotFound) IsClientError() bool

IsClientError returns true when this enable not found response has a 4xx status code

func (*EnableNotFound) IsCode

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

IsCode returns true when this enable not found response a status code equal to that given

func (*EnableNotFound) IsRedirect

func (o *EnableNotFound) IsRedirect() bool

IsRedirect returns true when this enable not found response has a 3xx status code

func (*EnableNotFound) IsServerError

func (o *EnableNotFound) IsServerError() bool

IsServerError returns true when this enable not found response has a 5xx status code

func (*EnableNotFound) IsSuccess

func (o *EnableNotFound) IsSuccess() bool

IsSuccess returns true when this enable not found response has a 2xx status code

func (*EnableNotFound) String

func (o *EnableNotFound) String() string

type EnableParams

type EnableParams struct {

	// Body.
	Body *rest_model_zrok.EnableRequest

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

EnableParams contains all the parameters to send to the API endpoint

for the enable operation.

Typically these are written to a http.Request.

func NewEnableParams

func NewEnableParams() *EnableParams

NewEnableParams creates a new EnableParams 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 NewEnableParamsWithContext

func NewEnableParamsWithContext(ctx context.Context) *EnableParams

NewEnableParamsWithContext creates a new EnableParams object with the ability to set a context for a request.

func NewEnableParamsWithHTTPClient

func NewEnableParamsWithHTTPClient(client *http.Client) *EnableParams

NewEnableParamsWithHTTPClient creates a new EnableParams object with the ability to set a custom HTTPClient for a request.

func NewEnableParamsWithTimeout

func NewEnableParamsWithTimeout(timeout time.Duration) *EnableParams

NewEnableParamsWithTimeout creates a new EnableParams object with the ability to set a timeout on a request.

func (*EnableParams) SetBody

func (o *EnableParams) SetBody(body *rest_model_zrok.EnableRequest)

SetBody adds the body to the enable params

func (*EnableParams) SetContext

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

SetContext adds the context to the enable params

func (*EnableParams) SetDefaults

func (o *EnableParams) SetDefaults()

SetDefaults hydrates default values in the enable params (not the query body).

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

func (*EnableParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the enable params

func (*EnableParams) SetTimeout

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

SetTimeout adds the timeout to the enable params

func (*EnableParams) WithBody

WithBody adds the body to the enable params

func (*EnableParams) WithContext

func (o *EnableParams) WithContext(ctx context.Context) *EnableParams

WithContext adds the context to the enable params

func (*EnableParams) WithDefaults

func (o *EnableParams) WithDefaults() *EnableParams

WithDefaults hydrates default values in the enable params (not the query body).

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

func (*EnableParams) WithHTTPClient

func (o *EnableParams) WithHTTPClient(client *http.Client) *EnableParams

WithHTTPClient adds the HTTPClient to the enable params

func (*EnableParams) WithTimeout

func (o *EnableParams) WithTimeout(timeout time.Duration) *EnableParams

WithTimeout adds the timeout to the enable params

func (*EnableParams) WriteToRequest

func (o *EnableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type EnableReader

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

EnableReader is a Reader for the Enable structure.

func (*EnableReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EnableUnauthorized

type EnableUnauthorized struct {
}

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

unauthorized

func NewEnableUnauthorized

func NewEnableUnauthorized() *EnableUnauthorized

NewEnableUnauthorized creates a EnableUnauthorized with default headers values

func (*EnableUnauthorized) Code added in v0.4.19

func (o *EnableUnauthorized) Code() int

Code gets the status code for the enable unauthorized response

func (*EnableUnauthorized) Error

func (o *EnableUnauthorized) Error() string

func (*EnableUnauthorized) IsClientError

func (o *EnableUnauthorized) IsClientError() bool

IsClientError returns true when this enable unauthorized response has a 4xx status code

func (*EnableUnauthorized) IsCode

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

IsCode returns true when this enable unauthorized response a status code equal to that given

func (*EnableUnauthorized) IsRedirect

func (o *EnableUnauthorized) IsRedirect() bool

IsRedirect returns true when this enable unauthorized response has a 3xx status code

func (*EnableUnauthorized) IsServerError

func (o *EnableUnauthorized) IsServerError() bool

IsServerError returns true when this enable unauthorized response has a 5xx status code

func (*EnableUnauthorized) IsSuccess

func (o *EnableUnauthorized) IsSuccess() bool

IsSuccess returns true when this enable unauthorized response has a 2xx status code

func (*EnableUnauthorized) String

func (o *EnableUnauthorized) String() string

Jump to

Keyboard shortcuts

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