Documentation ¶
Index ¶
- type Client
- func (a *Client) GetTelemetryConfig(params *GetTelemetryConfigParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetTelemetryConfigOK, error)
- func (a *Client) SetTelemetryConfig(params *SetTelemetryConfigParams, authInfo runtime.ClientAuthInfoWriter, ...) (*SetTelemetryConfigOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetTelemetryConfigForbidden
- type GetTelemetryConfigOK
- type GetTelemetryConfigParams
- func NewGetTelemetryConfigParams() *GetTelemetryConfigParams
- func NewGetTelemetryConfigParamsWithContext(ctx context.Context) *GetTelemetryConfigParams
- func NewGetTelemetryConfigParamsWithHTTPClient(client *http.Client) *GetTelemetryConfigParams
- func NewGetTelemetryConfigParamsWithTimeout(timeout time.Duration) *GetTelemetryConfigParams
- func (o *GetTelemetryConfigParams) SetContext(ctx context.Context)
- func (o *GetTelemetryConfigParams) SetDefaults()
- func (o *GetTelemetryConfigParams) SetHTTPClient(client *http.Client)
- func (o *GetTelemetryConfigParams) SetTimeout(timeout time.Duration)
- func (o *GetTelemetryConfigParams) WithContext(ctx context.Context) *GetTelemetryConfigParams
- func (o *GetTelemetryConfigParams) WithDefaults() *GetTelemetryConfigParams
- func (o *GetTelemetryConfigParams) WithHTTPClient(client *http.Client) *GetTelemetryConfigParams
- func (o *GetTelemetryConfigParams) WithTimeout(timeout time.Duration) *GetTelemetryConfigParams
- func (o *GetTelemetryConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTelemetryConfigReader
- type SetTelemetryConfigConflict
- type SetTelemetryConfigForbidden
- type SetTelemetryConfigInternalServerError
- type SetTelemetryConfigOK
- type SetTelemetryConfigParams
- func NewSetTelemetryConfigParams() *SetTelemetryConfigParams
- func NewSetTelemetryConfigParamsWithContext(ctx context.Context) *SetTelemetryConfigParams
- func NewSetTelemetryConfigParamsWithHTTPClient(client *http.Client) *SetTelemetryConfigParams
- func NewSetTelemetryConfigParamsWithTimeout(timeout time.Duration) *SetTelemetryConfigParams
- func (o *SetTelemetryConfigParams) SetBody(body *models.TelemetryConfigRequest)
- func (o *SetTelemetryConfigParams) SetContext(ctx context.Context)
- func (o *SetTelemetryConfigParams) SetDefaults()
- func (o *SetTelemetryConfigParams) SetHTTPClient(client *http.Client)
- func (o *SetTelemetryConfigParams) SetTimeout(timeout time.Duration)
- func (o *SetTelemetryConfigParams) WithBody(body *models.TelemetryConfigRequest) *SetTelemetryConfigParams
- func (o *SetTelemetryConfigParams) WithContext(ctx context.Context) *SetTelemetryConfigParams
- func (o *SetTelemetryConfigParams) WithDefaults() *SetTelemetryConfigParams
- func (o *SetTelemetryConfigParams) WithHTTPClient(client *http.Client) *SetTelemetryConfigParams
- func (o *SetTelemetryConfigParams) WithTimeout(timeout time.Duration) *SetTelemetryConfigParams
- func (o *SetTelemetryConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetTelemetryConfigReader
- type SetTelemetryConfigRetryWith
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 telemetry API
func (*Client) GetTelemetryConfig ¶
func (a *Client) GetTelemetryConfig(params *GetTelemetryConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTelemetryConfigOK, error)
GetTelemetryConfig gets e c e telemetry config
Returns whether ECE telemetry is enabled.
func (*Client) SetTelemetryConfig ¶
func (a *Client) SetTelemetryConfig(params *SetTelemetryConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetTelemetryConfigOK, error)
SetTelemetryConfig sets e c e telemetry config
Sets whether to enable ECE telemetry.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶ added in v1.3.0
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetTelemetryConfig(params *GetTelemetryConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTelemetryConfigOK, error) SetTelemetryConfig(params *SetTelemetryConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetTelemetryConfigOK, 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 telemetry API client.
type GetTelemetryConfigForbidden ¶
type GetTelemetryConfigForbidden struct { /* The error codes associated with the response */ XCloudErrorCodes string Payload *models.BasicFailedReply }
GetTelemetryConfigForbidden describes a response with status code 403, with default header values.
User must have Platform level permissions. (code: `root.unauthorized.rbac`)
func NewGetTelemetryConfigForbidden ¶
func NewGetTelemetryConfigForbidden() *GetTelemetryConfigForbidden
NewGetTelemetryConfigForbidden creates a GetTelemetryConfigForbidden with default headers values
func (*GetTelemetryConfigForbidden) Error ¶
func (o *GetTelemetryConfigForbidden) Error() string
func (*GetTelemetryConfigForbidden) GetPayload ¶
func (o *GetTelemetryConfigForbidden) GetPayload() *models.BasicFailedReply
type GetTelemetryConfigOK ¶
type GetTelemetryConfigOK struct {
Payload *models.TelemetryConfig
}
GetTelemetryConfigOK describes a response with status code 200, with default header values.
The current ECE telemetry configuration
func NewGetTelemetryConfigOK ¶
func NewGetTelemetryConfigOK() *GetTelemetryConfigOK
NewGetTelemetryConfigOK creates a GetTelemetryConfigOK with default headers values
func (*GetTelemetryConfigOK) Error ¶
func (o *GetTelemetryConfigOK) Error() string
func (*GetTelemetryConfigOK) GetPayload ¶
func (o *GetTelemetryConfigOK) GetPayload() *models.TelemetryConfig
type GetTelemetryConfigParams ¶
type GetTelemetryConfigParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetTelemetryConfigParams contains all the parameters to send to the API endpoint
for the get telemetry config operation. Typically these are written to a http.Request.
func NewGetTelemetryConfigParams ¶
func NewGetTelemetryConfigParams() *GetTelemetryConfigParams
NewGetTelemetryConfigParams creates a new GetTelemetryConfigParams 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 NewGetTelemetryConfigParamsWithContext ¶
func NewGetTelemetryConfigParamsWithContext(ctx context.Context) *GetTelemetryConfigParams
NewGetTelemetryConfigParamsWithContext creates a new GetTelemetryConfigParams object with the ability to set a context for a request.
func NewGetTelemetryConfigParamsWithHTTPClient ¶
func NewGetTelemetryConfigParamsWithHTTPClient(client *http.Client) *GetTelemetryConfigParams
NewGetTelemetryConfigParamsWithHTTPClient creates a new GetTelemetryConfigParams object with the ability to set a custom HTTPClient for a request.
func NewGetTelemetryConfigParamsWithTimeout ¶
func NewGetTelemetryConfigParamsWithTimeout(timeout time.Duration) *GetTelemetryConfigParams
NewGetTelemetryConfigParamsWithTimeout creates a new GetTelemetryConfigParams object with the ability to set a timeout on a request.
func (*GetTelemetryConfigParams) SetContext ¶
func (o *GetTelemetryConfigParams) SetContext(ctx context.Context)
SetContext adds the context to the get telemetry config params
func (*GetTelemetryConfigParams) SetDefaults ¶ added in v1.3.0
func (o *GetTelemetryConfigParams) SetDefaults()
SetDefaults hydrates default values in the get telemetry config params (not the query body).
All values with no default are reset to their zero value.
func (*GetTelemetryConfigParams) SetHTTPClient ¶
func (o *GetTelemetryConfigParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get telemetry config params
func (*GetTelemetryConfigParams) SetTimeout ¶
func (o *GetTelemetryConfigParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get telemetry config params
func (*GetTelemetryConfigParams) WithContext ¶
func (o *GetTelemetryConfigParams) WithContext(ctx context.Context) *GetTelemetryConfigParams
WithContext adds the context to the get telemetry config params
func (*GetTelemetryConfigParams) WithDefaults ¶ added in v1.3.0
func (o *GetTelemetryConfigParams) WithDefaults() *GetTelemetryConfigParams
WithDefaults hydrates default values in the get telemetry config params (not the query body).
All values with no default are reset to their zero value.
func (*GetTelemetryConfigParams) WithHTTPClient ¶
func (o *GetTelemetryConfigParams) WithHTTPClient(client *http.Client) *GetTelemetryConfigParams
WithHTTPClient adds the HTTPClient to the get telemetry config params
func (*GetTelemetryConfigParams) WithTimeout ¶
func (o *GetTelemetryConfigParams) WithTimeout(timeout time.Duration) *GetTelemetryConfigParams
WithTimeout adds the timeout to the get telemetry config params
func (*GetTelemetryConfigParams) WriteToRequest ¶
func (o *GetTelemetryConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetTelemetryConfigReader ¶
type GetTelemetryConfigReader struct {
// contains filtered or unexported fields
}
GetTelemetryConfigReader is a Reader for the GetTelemetryConfig structure.
func (*GetTelemetryConfigReader) ReadResponse ¶
func (o *GetTelemetryConfigReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SetTelemetryConfigConflict ¶
type SetTelemetryConfigConflict struct { /* The error codes associated with the response */ XCloudErrorCodes string Payload *models.BasicFailedReply }
SetTelemetryConfigConflict describes a response with status code 409, with default header values.
The telemetry configuration did not exist so there was an attempt to create one. Another request resulted in the creation of a telemetry configuration before this request completed, resulting in the failure of this request to create a configuration. Please retry. (code: `telemetry.already_exists`)
func NewSetTelemetryConfigConflict ¶
func NewSetTelemetryConfigConflict() *SetTelemetryConfigConflict
NewSetTelemetryConfigConflict creates a SetTelemetryConfigConflict with default headers values
func (*SetTelemetryConfigConflict) Error ¶
func (o *SetTelemetryConfigConflict) Error() string
func (*SetTelemetryConfigConflict) GetPayload ¶
func (o *SetTelemetryConfigConflict) GetPayload() *models.BasicFailedReply
type SetTelemetryConfigForbidden ¶
type SetTelemetryConfigForbidden struct { /* The error codes associated with the response */ XCloudErrorCodes string Payload *models.BasicFailedReply }
SetTelemetryConfigForbidden describes a response with status code 403, with default header values.
User must have Platform level permissions. (code: `root.unauthorized.rbac`)
func NewSetTelemetryConfigForbidden ¶
func NewSetTelemetryConfigForbidden() *SetTelemetryConfigForbidden
NewSetTelemetryConfigForbidden creates a SetTelemetryConfigForbidden with default headers values
func (*SetTelemetryConfigForbidden) Error ¶
func (o *SetTelemetryConfigForbidden) Error() string
func (*SetTelemetryConfigForbidden) GetPayload ¶
func (o *SetTelemetryConfigForbidden) GetPayload() *models.BasicFailedReply
type SetTelemetryConfigInternalServerError ¶
type SetTelemetryConfigInternalServerError struct { /* The error codes associated with the response */ XCloudErrorCodes string Payload *models.BasicFailedReply }
SetTelemetryConfigInternalServerError describes a response with status code 500, with default header values.
Failed to set the configuration due to an internal server error. (code: `telemetry.request_execution_failed`)
func NewSetTelemetryConfigInternalServerError ¶
func NewSetTelemetryConfigInternalServerError() *SetTelemetryConfigInternalServerError
NewSetTelemetryConfigInternalServerError creates a SetTelemetryConfigInternalServerError with default headers values
func (*SetTelemetryConfigInternalServerError) Error ¶
func (o *SetTelemetryConfigInternalServerError) Error() string
func (*SetTelemetryConfigInternalServerError) GetPayload ¶
func (o *SetTelemetryConfigInternalServerError) GetPayload() *models.BasicFailedReply
type SetTelemetryConfigOK ¶
type SetTelemetryConfigOK struct {
Payload *models.TelemetryConfig
}
SetTelemetryConfigOK describes a response with status code 200, with default header values.
Telemetry configuration updated successfully
func NewSetTelemetryConfigOK ¶
func NewSetTelemetryConfigOK() *SetTelemetryConfigOK
NewSetTelemetryConfigOK creates a SetTelemetryConfigOK with default headers values
func (*SetTelemetryConfigOK) Error ¶
func (o *SetTelemetryConfigOK) Error() string
func (*SetTelemetryConfigOK) GetPayload ¶
func (o *SetTelemetryConfigOK) GetPayload() *models.TelemetryConfig
type SetTelemetryConfigParams ¶
type SetTelemetryConfigParams struct { /* Body. The desired ECE telemetry configuration */ Body *models.TelemetryConfigRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SetTelemetryConfigParams contains all the parameters to send to the API endpoint
for the set telemetry config operation. Typically these are written to a http.Request.
func NewSetTelemetryConfigParams ¶
func NewSetTelemetryConfigParams() *SetTelemetryConfigParams
NewSetTelemetryConfigParams creates a new SetTelemetryConfigParams 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 NewSetTelemetryConfigParamsWithContext ¶
func NewSetTelemetryConfigParamsWithContext(ctx context.Context) *SetTelemetryConfigParams
NewSetTelemetryConfigParamsWithContext creates a new SetTelemetryConfigParams object with the ability to set a context for a request.
func NewSetTelemetryConfigParamsWithHTTPClient ¶
func NewSetTelemetryConfigParamsWithHTTPClient(client *http.Client) *SetTelemetryConfigParams
NewSetTelemetryConfigParamsWithHTTPClient creates a new SetTelemetryConfigParams object with the ability to set a custom HTTPClient for a request.
func NewSetTelemetryConfigParamsWithTimeout ¶
func NewSetTelemetryConfigParamsWithTimeout(timeout time.Duration) *SetTelemetryConfigParams
NewSetTelemetryConfigParamsWithTimeout creates a new SetTelemetryConfigParams object with the ability to set a timeout on a request.
func (*SetTelemetryConfigParams) SetBody ¶
func (o *SetTelemetryConfigParams) SetBody(body *models.TelemetryConfigRequest)
SetBody adds the body to the set telemetry config params
func (*SetTelemetryConfigParams) SetContext ¶
func (o *SetTelemetryConfigParams) SetContext(ctx context.Context)
SetContext adds the context to the set telemetry config params
func (*SetTelemetryConfigParams) SetDefaults ¶ added in v1.3.0
func (o *SetTelemetryConfigParams) SetDefaults()
SetDefaults hydrates default values in the set telemetry config params (not the query body).
All values with no default are reset to their zero value.
func (*SetTelemetryConfigParams) SetHTTPClient ¶
func (o *SetTelemetryConfigParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the set telemetry config params
func (*SetTelemetryConfigParams) SetTimeout ¶
func (o *SetTelemetryConfigParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the set telemetry config params
func (*SetTelemetryConfigParams) WithBody ¶
func (o *SetTelemetryConfigParams) WithBody(body *models.TelemetryConfigRequest) *SetTelemetryConfigParams
WithBody adds the body to the set telemetry config params
func (*SetTelemetryConfigParams) WithContext ¶
func (o *SetTelemetryConfigParams) WithContext(ctx context.Context) *SetTelemetryConfigParams
WithContext adds the context to the set telemetry config params
func (*SetTelemetryConfigParams) WithDefaults ¶ added in v1.3.0
func (o *SetTelemetryConfigParams) WithDefaults() *SetTelemetryConfigParams
WithDefaults hydrates default values in the set telemetry config params (not the query body).
All values with no default are reset to their zero value.
func (*SetTelemetryConfigParams) WithHTTPClient ¶
func (o *SetTelemetryConfigParams) WithHTTPClient(client *http.Client) *SetTelemetryConfigParams
WithHTTPClient adds the HTTPClient to the set telemetry config params
func (*SetTelemetryConfigParams) WithTimeout ¶
func (o *SetTelemetryConfigParams) WithTimeout(timeout time.Duration) *SetTelemetryConfigParams
WithTimeout adds the timeout to the set telemetry config params
func (*SetTelemetryConfigParams) WriteToRequest ¶
func (o *SetTelemetryConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SetTelemetryConfigReader ¶
type SetTelemetryConfigReader struct {
// contains filtered or unexported fields
}
SetTelemetryConfigReader is a Reader for the SetTelemetryConfig structure.
func (*SetTelemetryConfigReader) ReadResponse ¶
func (o *SetTelemetryConfigReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SetTelemetryConfigRetryWith ¶
type SetTelemetryConfigRetryWith struct { /* The error codes associated with the response */ XCloudErrorCodes string Payload *models.BasicFailedReply }
SetTelemetryConfigRetryWith describes a response with status code 449, with default header values.
Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`)
func NewSetTelemetryConfigRetryWith ¶
func NewSetTelemetryConfigRetryWith() *SetTelemetryConfigRetryWith
NewSetTelemetryConfigRetryWith creates a SetTelemetryConfigRetryWith with default headers values
func (*SetTelemetryConfigRetryWith) Error ¶
func (o *SetTelemetryConfigRetryWith) Error() string
func (*SetTelemetryConfigRetryWith) GetPayload ¶
func (o *SetTelemetryConfigRetryWith) GetPayload() *models.BasicFailedReply