telemetry

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2020 License: Apache-2.0 Imports: 10 Imported by: 1

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 telemetry API

func (*Client) GetTelemetryConfig

func (a *Client) GetTelemetryConfig(params *GetTelemetryConfigParams, authInfo runtime.ClientAuthInfoWriter) (*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) (*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 ClientService

type ClientService interface {
	GetTelemetryConfig(params *GetTelemetryConfigParams, authInfo runtime.ClientAuthInfoWriter) (*GetTelemetryConfigOK, error)

	SetTelemetryConfig(params *SetTelemetryConfigParams, authInfo runtime.ClientAuthInfoWriter) (*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 handles this case 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 (*GetTelemetryConfigForbidden) GetPayload

type GetTelemetryConfigOK

type GetTelemetryConfigOK struct {
	Payload *models.TelemetryConfig
}

GetTelemetryConfigOK handles this case 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 values initialized.

func NewGetTelemetryConfigParamsWithContext

func NewGetTelemetryConfigParamsWithContext(ctx context.Context) *GetTelemetryConfigParams

NewGetTelemetryConfigParamsWithContext creates a new GetTelemetryConfigParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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

WithContext adds the context to the get telemetry config params

func (*GetTelemetryConfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get telemetry config params

func (*GetTelemetryConfigParams) WithTimeout

WithTimeout adds the timeout to the get telemetry config params

func (*GetTelemetryConfigParams) WriteToRequest

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 handles this case 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 (*SetTelemetryConfigConflict) GetPayload

type SetTelemetryConfigForbidden

type SetTelemetryConfigForbidden struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

SetTelemetryConfigForbidden handles this case 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 (*SetTelemetryConfigForbidden) GetPayload

type SetTelemetryConfigInternalServerError

type SetTelemetryConfigInternalServerError struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

SetTelemetryConfigInternalServerError handles this case 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 (*SetTelemetryConfigInternalServerError) GetPayload

type SetTelemetryConfigOK

type SetTelemetryConfigOK struct {
	Payload *models.TelemetryConfig
}

SetTelemetryConfigOK handles this case 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 values initialized.

func NewSetTelemetryConfigParamsWithContext

func NewSetTelemetryConfigParamsWithContext(ctx context.Context) *SetTelemetryConfigParams

NewSetTelemetryConfigParamsWithContext creates a new SetTelemetryConfigParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*SetTelemetryConfigParams) SetBody

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) 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

WithBody adds the body to the set telemetry config params

func (*SetTelemetryConfigParams) WithContext

WithContext adds the context to the set telemetry config params

func (*SetTelemetryConfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the set telemetry config params

func (*SetTelemetryConfigParams) WithTimeout

WithTimeout adds the timeout to the set telemetry config params

func (*SetTelemetryConfigParams) WriteToRequest

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 handles this case 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 (*SetTelemetryConfigRetryWith) GetPayload

Jump to

Keyboard shortcuts

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