trusted_environments

package
v1.2.30 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 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 trusted environments API

func (*Client) GetTrustedEnvs

func (a *Client) GetTrustedEnvs(params *GetTrustedEnvsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTrustedEnvsOK, error)

GetTrustedEnvs gets trusted environments

Returns the list of trusted environments for the organization. If no organization is passed in, the organization attached to the user is assumed.

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 {
	GetTrustedEnvs(params *GetTrustedEnvsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTrustedEnvsOK, 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 trusted environments API client.

type GetTrustedEnvsNotFound

type GetTrustedEnvsNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

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

Organization not found. (code: `organization.not_found`)

func NewGetTrustedEnvsNotFound

func NewGetTrustedEnvsNotFound() *GetTrustedEnvsNotFound

NewGetTrustedEnvsNotFound creates a GetTrustedEnvsNotFound with default headers values

func (*GetTrustedEnvsNotFound) Code

func (o *GetTrustedEnvsNotFound) Code() int

Code gets the status code for the get trusted envs not found response

func (*GetTrustedEnvsNotFound) Error

func (o *GetTrustedEnvsNotFound) Error() string

func (*GetTrustedEnvsNotFound) GetPayload

func (*GetTrustedEnvsNotFound) IsClientError

func (o *GetTrustedEnvsNotFound) IsClientError() bool

IsClientError returns true when this get trusted envs not found response has a 4xx status code

func (*GetTrustedEnvsNotFound) IsCode

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

IsCode returns true when this get trusted envs not found response a status code equal to that given

func (*GetTrustedEnvsNotFound) IsRedirect

func (o *GetTrustedEnvsNotFound) IsRedirect() bool

IsRedirect returns true when this get trusted envs not found response has a 3xx status code

func (*GetTrustedEnvsNotFound) IsServerError

func (o *GetTrustedEnvsNotFound) IsServerError() bool

IsServerError returns true when this get trusted envs not found response has a 5xx status code

func (*GetTrustedEnvsNotFound) IsSuccess

func (o *GetTrustedEnvsNotFound) IsSuccess() bool

IsSuccess returns true when this get trusted envs not found response has a 2xx status code

func (*GetTrustedEnvsNotFound) String

func (o *GetTrustedEnvsNotFound) String() string

type GetTrustedEnvsOK

type GetTrustedEnvsOK struct {
	Payload *models.ElasticsearchClusterTrustSettings
}

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

Trusted environments for this organization

func NewGetTrustedEnvsOK

func NewGetTrustedEnvsOK() *GetTrustedEnvsOK

NewGetTrustedEnvsOK creates a GetTrustedEnvsOK with default headers values

func (*GetTrustedEnvsOK) Code

func (o *GetTrustedEnvsOK) Code() int

Code gets the status code for the get trusted envs o k response

func (*GetTrustedEnvsOK) Error

func (o *GetTrustedEnvsOK) Error() string

func (*GetTrustedEnvsOK) GetPayload

func (*GetTrustedEnvsOK) IsClientError

func (o *GetTrustedEnvsOK) IsClientError() bool

IsClientError returns true when this get trusted envs o k response has a 4xx status code

func (*GetTrustedEnvsOK) IsCode

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

IsCode returns true when this get trusted envs o k response a status code equal to that given

func (*GetTrustedEnvsOK) IsRedirect

func (o *GetTrustedEnvsOK) IsRedirect() bool

IsRedirect returns true when this get trusted envs o k response has a 3xx status code

func (*GetTrustedEnvsOK) IsServerError

func (o *GetTrustedEnvsOK) IsServerError() bool

IsServerError returns true when this get trusted envs o k response has a 5xx status code

func (*GetTrustedEnvsOK) IsSuccess

func (o *GetTrustedEnvsOK) IsSuccess() bool

IsSuccess returns true when this get trusted envs o k response has a 2xx status code

func (*GetTrustedEnvsOK) String

func (o *GetTrustedEnvsOK) String() string

type GetTrustedEnvsParams

type GetTrustedEnvsParams struct {

	/* OrganizationID.

	   (Optional) Organization Id for which to retrieve the trusted environments
	*/
	OrganizationID *string

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

GetTrustedEnvsParams contains all the parameters to send to the API endpoint

for the get trusted envs operation.

Typically these are written to a http.Request.

func NewGetTrustedEnvsParams

func NewGetTrustedEnvsParams() *GetTrustedEnvsParams

NewGetTrustedEnvsParams creates a new GetTrustedEnvsParams 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 NewGetTrustedEnvsParamsWithContext

func NewGetTrustedEnvsParamsWithContext(ctx context.Context) *GetTrustedEnvsParams

NewGetTrustedEnvsParamsWithContext creates a new GetTrustedEnvsParams object with the ability to set a context for a request.

func NewGetTrustedEnvsParamsWithHTTPClient

func NewGetTrustedEnvsParamsWithHTTPClient(client *http.Client) *GetTrustedEnvsParams

NewGetTrustedEnvsParamsWithHTTPClient creates a new GetTrustedEnvsParams object with the ability to set a custom HTTPClient for a request.

func NewGetTrustedEnvsParamsWithTimeout

func NewGetTrustedEnvsParamsWithTimeout(timeout time.Duration) *GetTrustedEnvsParams

NewGetTrustedEnvsParamsWithTimeout creates a new GetTrustedEnvsParams object with the ability to set a timeout on a request.

func (*GetTrustedEnvsParams) SetContext

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

SetContext adds the context to the get trusted envs params

func (*GetTrustedEnvsParams) SetDefaults

func (o *GetTrustedEnvsParams) SetDefaults()

SetDefaults hydrates default values in the get trusted envs params (not the query body).

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

func (*GetTrustedEnvsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get trusted envs params

func (*GetTrustedEnvsParams) SetOrganizationID

func (o *GetTrustedEnvsParams) SetOrganizationID(organizationID *string)

SetOrganizationID adds the organizationId to the get trusted envs params

func (*GetTrustedEnvsParams) SetTimeout

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

SetTimeout adds the timeout to the get trusted envs params

func (*GetTrustedEnvsParams) WithContext

WithContext adds the context to the get trusted envs params

func (*GetTrustedEnvsParams) WithDefaults

func (o *GetTrustedEnvsParams) WithDefaults() *GetTrustedEnvsParams

WithDefaults hydrates default values in the get trusted envs params (not the query body).

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

func (*GetTrustedEnvsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get trusted envs params

func (*GetTrustedEnvsParams) WithOrganizationID

func (o *GetTrustedEnvsParams) WithOrganizationID(organizationID *string) *GetTrustedEnvsParams

WithOrganizationID adds the organizationID to the get trusted envs params

func (*GetTrustedEnvsParams) WithTimeout

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

WithTimeout adds the timeout to the get trusted envs params

func (*GetTrustedEnvsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetTrustedEnvsReader

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

GetTrustedEnvsReader is a Reader for the GetTrustedEnvs structure.

func (*GetTrustedEnvsReader) ReadResponse

func (o *GetTrustedEnvsReader) 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