Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetTrustedEnvsNotFound
- func (o *GetTrustedEnvsNotFound) Code() int
- func (o *GetTrustedEnvsNotFound) Error() string
- func (o *GetTrustedEnvsNotFound) GetPayload() *models.BasicFailedReply
- func (o *GetTrustedEnvsNotFound) IsClientError() bool
- func (o *GetTrustedEnvsNotFound) IsCode(code int) bool
- func (o *GetTrustedEnvsNotFound) IsRedirect() bool
- func (o *GetTrustedEnvsNotFound) IsServerError() bool
- func (o *GetTrustedEnvsNotFound) IsSuccess() bool
- func (o *GetTrustedEnvsNotFound) String() string
- type GetTrustedEnvsOK
- func (o *GetTrustedEnvsOK) Code() int
- func (o *GetTrustedEnvsOK) Error() string
- func (o *GetTrustedEnvsOK) GetPayload() *models.ElasticsearchClusterTrustSettings
- func (o *GetTrustedEnvsOK) IsClientError() bool
- func (o *GetTrustedEnvsOK) IsCode(code int) bool
- func (o *GetTrustedEnvsOK) IsRedirect() bool
- func (o *GetTrustedEnvsOK) IsServerError() bool
- func (o *GetTrustedEnvsOK) IsSuccess() bool
- func (o *GetTrustedEnvsOK) String() string
- type GetTrustedEnvsParams
- func NewGetTrustedEnvsParams() *GetTrustedEnvsParams
- func NewGetTrustedEnvsParamsWithContext(ctx context.Context) *GetTrustedEnvsParams
- func NewGetTrustedEnvsParamsWithHTTPClient(client *http.Client) *GetTrustedEnvsParams
- func NewGetTrustedEnvsParamsWithTimeout(timeout time.Duration) *GetTrustedEnvsParams
- func (o *GetTrustedEnvsParams) SetContext(ctx context.Context)
- func (o *GetTrustedEnvsParams) SetDefaults()
- func (o *GetTrustedEnvsParams) SetHTTPClient(client *http.Client)
- func (o *GetTrustedEnvsParams) SetOrganizationID(organizationID *string)
- func (o *GetTrustedEnvsParams) SetTimeout(timeout time.Duration)
- func (o *GetTrustedEnvsParams) WithContext(ctx context.Context) *GetTrustedEnvsParams
- func (o *GetTrustedEnvsParams) WithDefaults() *GetTrustedEnvsParams
- func (o *GetTrustedEnvsParams) WithHTTPClient(client *http.Client) *GetTrustedEnvsParams
- func (o *GetTrustedEnvsParams) WithOrganizationID(organizationID *string) *GetTrustedEnvsParams
- func (o *GetTrustedEnvsParams) WithTimeout(timeout time.Duration) *GetTrustedEnvsParams
- func (o *GetTrustedEnvsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTrustedEnvsReader
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 ¶ added in v1.13.0
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 (o *GetTrustedEnvsNotFound) GetPayload() *models.BasicFailedReply
func (*GetTrustedEnvsNotFound) IsClientError ¶ added in v1.13.0
func (o *GetTrustedEnvsNotFound) IsClientError() bool
IsClientError returns true when this get trusted envs not found response has a 4xx status code
func (*GetTrustedEnvsNotFound) IsCode ¶ added in v1.13.0
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 ¶ added in v1.13.0
func (o *GetTrustedEnvsNotFound) IsRedirect() bool
IsRedirect returns true when this get trusted envs not found response has a 3xx status code
func (*GetTrustedEnvsNotFound) IsServerError ¶ added in v1.13.0
func (o *GetTrustedEnvsNotFound) IsServerError() bool
IsServerError returns true when this get trusted envs not found response has a 5xx status code
func (*GetTrustedEnvsNotFound) IsSuccess ¶ added in v1.13.0
func (o *GetTrustedEnvsNotFound) IsSuccess() bool
IsSuccess returns true when this get trusted envs not found response has a 2xx status code
func (*GetTrustedEnvsNotFound) String ¶ added in v1.13.0
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 ¶ added in v1.13.0
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 (o *GetTrustedEnvsOK) GetPayload() *models.ElasticsearchClusterTrustSettings
func (*GetTrustedEnvsOK) IsClientError ¶ added in v1.13.0
func (o *GetTrustedEnvsOK) IsClientError() bool
IsClientError returns true when this get trusted envs o k response has a 4xx status code
func (*GetTrustedEnvsOK) IsCode ¶ added in v1.13.0
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 ¶ added in v1.13.0
func (o *GetTrustedEnvsOK) IsRedirect() bool
IsRedirect returns true when this get trusted envs o k response has a 3xx status code
func (*GetTrustedEnvsOK) IsServerError ¶ added in v1.13.0
func (o *GetTrustedEnvsOK) IsServerError() bool
IsServerError returns true when this get trusted envs o k response has a 5xx status code
func (*GetTrustedEnvsOK) IsSuccess ¶ added in v1.13.0
func (o *GetTrustedEnvsOK) IsSuccess() bool
IsSuccess returns true when this get trusted envs o k response has a 2xx status code
func (*GetTrustedEnvsOK) String ¶ added in v1.13.0
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 ¶
func (o *GetTrustedEnvsParams) WithContext(ctx context.Context) *GetTrustedEnvsParams
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.