consul_telemetry_service

package
v0.94.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MPL-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentTelemetryConfigBody added in v0.47.0

type AgentTelemetryConfigBody struct {

	// location
	Location *AgentTelemetryConfigParamsBodyLocation `json:"location,omitempty"`
}

AgentTelemetryConfigBody agent telemetry config body swagger:model AgentTelemetryConfigBody

func (*AgentTelemetryConfigBody) ContextValidate added in v0.47.0

func (o *AgentTelemetryConfigBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this agent telemetry config body based on the context it is used

func (*AgentTelemetryConfigBody) MarshalBinary added in v0.47.0

func (o *AgentTelemetryConfigBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AgentTelemetryConfigBody) UnmarshalBinary added in v0.47.0

func (o *AgentTelemetryConfigBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AgentTelemetryConfigBody) Validate added in v0.47.0

func (o *AgentTelemetryConfigBody) Validate(formats strfmt.Registry) error

Validate validates this agent telemetry config body

type AgentTelemetryConfigDefault

type AgentTelemetryConfigDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

AgentTelemetryConfigDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewAgentTelemetryConfigDefault

func NewAgentTelemetryConfigDefault(code int) *AgentTelemetryConfigDefault

NewAgentTelemetryConfigDefault creates a AgentTelemetryConfigDefault with default headers values

func (*AgentTelemetryConfigDefault) Code

func (o *AgentTelemetryConfigDefault) Code() int

Code gets the status code for the agent telemetry config default response

func (*AgentTelemetryConfigDefault) Error

func (*AgentTelemetryConfigDefault) GetPayload

func (*AgentTelemetryConfigDefault) IsClientError

func (o *AgentTelemetryConfigDefault) IsClientError() bool

IsClientError returns true when this agent telemetry config default response has a 4xx status code

func (*AgentTelemetryConfigDefault) IsCode

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

IsCode returns true when this agent telemetry config default response a status code equal to that given

func (*AgentTelemetryConfigDefault) IsRedirect

func (o *AgentTelemetryConfigDefault) IsRedirect() bool

IsRedirect returns true when this agent telemetry config default response has a 3xx status code

func (*AgentTelemetryConfigDefault) IsServerError

func (o *AgentTelemetryConfigDefault) IsServerError() bool

IsServerError returns true when this agent telemetry config default response has a 5xx status code

func (*AgentTelemetryConfigDefault) IsSuccess

func (o *AgentTelemetryConfigDefault) IsSuccess() bool

IsSuccess returns true when this agent telemetry config default response has a 2xx status code

func (*AgentTelemetryConfigDefault) String

func (o *AgentTelemetryConfigDefault) String() string

type AgentTelemetryConfigOK

type AgentTelemetryConfigOK struct {
	Payload *models.HashicorpCloudConsulTelemetry20230414AgentTelemetryConfigResponse
}

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

A successful response.

func NewAgentTelemetryConfigOK

func NewAgentTelemetryConfigOK() *AgentTelemetryConfigOK

NewAgentTelemetryConfigOK creates a AgentTelemetryConfigOK with default headers values

func (*AgentTelemetryConfigOK) Code added in v0.78.0

func (o *AgentTelemetryConfigOK) Code() int

Code gets the status code for the agent telemetry config o k response

func (*AgentTelemetryConfigOK) Error

func (o *AgentTelemetryConfigOK) Error() string

func (*AgentTelemetryConfigOK) IsClientError

func (o *AgentTelemetryConfigOK) IsClientError() bool

IsClientError returns true when this agent telemetry config o k response has a 4xx status code

func (*AgentTelemetryConfigOK) IsCode

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

IsCode returns true when this agent telemetry config o k response a status code equal to that given

func (*AgentTelemetryConfigOK) IsRedirect

func (o *AgentTelemetryConfigOK) IsRedirect() bool

IsRedirect returns true when this agent telemetry config o k response has a 3xx status code

func (*AgentTelemetryConfigOK) IsServerError

func (o *AgentTelemetryConfigOK) IsServerError() bool

IsServerError returns true when this agent telemetry config o k response has a 5xx status code

func (*AgentTelemetryConfigOK) IsSuccess

func (o *AgentTelemetryConfigOK) IsSuccess() bool

IsSuccess returns true when this agent telemetry config o k response has a 2xx status code

func (*AgentTelemetryConfigOK) String

func (o *AgentTelemetryConfigOK) String() string

type AgentTelemetryConfigParams

type AgentTelemetryConfigParams struct {

	// Body.
	Body AgentTelemetryConfigBody

	// ClusterID.
	ClusterID string

	/* LocationOrganizationID.

	   organization_id is the id of the organization.
	*/
	LocationOrganizationID string

	/* LocationProjectID.

	   project_id is the projects id.
	*/
	LocationProjectID string

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

AgentTelemetryConfigParams contains all the parameters to send to the API endpoint

for the agent telemetry config operation.

Typically these are written to a http.Request.

func NewAgentTelemetryConfigParams

func NewAgentTelemetryConfigParams() *AgentTelemetryConfigParams

NewAgentTelemetryConfigParams creates a new AgentTelemetryConfigParams 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 NewAgentTelemetryConfigParamsWithContext

func NewAgentTelemetryConfigParamsWithContext(ctx context.Context) *AgentTelemetryConfigParams

NewAgentTelemetryConfigParamsWithContext creates a new AgentTelemetryConfigParams object with the ability to set a context for a request.

func NewAgentTelemetryConfigParamsWithHTTPClient

func NewAgentTelemetryConfigParamsWithHTTPClient(client *http.Client) *AgentTelemetryConfigParams

NewAgentTelemetryConfigParamsWithHTTPClient creates a new AgentTelemetryConfigParams object with the ability to set a custom HTTPClient for a request.

func NewAgentTelemetryConfigParamsWithTimeout

func NewAgentTelemetryConfigParamsWithTimeout(timeout time.Duration) *AgentTelemetryConfigParams

NewAgentTelemetryConfigParamsWithTimeout creates a new AgentTelemetryConfigParams object with the ability to set a timeout on a request.

func (*AgentTelemetryConfigParams) SetBody added in v0.47.0

SetBody adds the body to the agent telemetry config params

func (*AgentTelemetryConfigParams) SetClusterID

func (o *AgentTelemetryConfigParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the agent telemetry config params

func (*AgentTelemetryConfigParams) SetContext

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

SetContext adds the context to the agent telemetry config params

func (*AgentTelemetryConfigParams) SetDefaults

func (o *AgentTelemetryConfigParams) SetDefaults()

SetDefaults hydrates default values in the agent telemetry config params (not the query body).

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

func (*AgentTelemetryConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the agent telemetry config params

func (*AgentTelemetryConfigParams) SetLocationOrganizationID

func (o *AgentTelemetryConfigParams) SetLocationOrganizationID(locationOrganizationID string)

SetLocationOrganizationID adds the locationOrganizationId to the agent telemetry config params

func (*AgentTelemetryConfigParams) SetLocationProjectID

func (o *AgentTelemetryConfigParams) SetLocationProjectID(locationProjectID string)

SetLocationProjectID adds the locationProjectId to the agent telemetry config params

func (*AgentTelemetryConfigParams) SetTimeout

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

SetTimeout adds the timeout to the agent telemetry config params

func (*AgentTelemetryConfigParams) WithBody added in v0.47.0

WithBody adds the body to the agent telemetry config params

func (*AgentTelemetryConfigParams) WithClusterID

func (o *AgentTelemetryConfigParams) WithClusterID(clusterID string) *AgentTelemetryConfigParams

WithClusterID adds the clusterID to the agent telemetry config params

func (*AgentTelemetryConfigParams) WithContext

WithContext adds the context to the agent telemetry config params

func (*AgentTelemetryConfigParams) WithDefaults

WithDefaults hydrates default values in the agent telemetry config params (not the query body).

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

func (*AgentTelemetryConfigParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the agent telemetry config params

func (*AgentTelemetryConfigParams) WithLocationOrganizationID

func (o *AgentTelemetryConfigParams) WithLocationOrganizationID(locationOrganizationID string) *AgentTelemetryConfigParams

WithLocationOrganizationID adds the locationOrganizationID to the agent telemetry config params

func (*AgentTelemetryConfigParams) WithLocationProjectID

func (o *AgentTelemetryConfigParams) WithLocationProjectID(locationProjectID string) *AgentTelemetryConfigParams

WithLocationProjectID adds the locationProjectID to the agent telemetry config params

func (*AgentTelemetryConfigParams) WithTimeout

WithTimeout adds the timeout to the agent telemetry config params

func (*AgentTelemetryConfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AgentTelemetryConfigParamsBodyLocation added in v0.47.0

type AgentTelemetryConfigParamsBodyLocation struct {

	// region is the region that the resource is located in. It is
	// optional if the object being referenced is a global object.
	Region *cloud.HashicorpCloudLocationRegion `json:"region,omitempty"`
}

AgentTelemetryConfigParamsBodyLocation Location represents a target for an operation in HCP. swagger:model AgentTelemetryConfigParamsBodyLocation

func (*AgentTelemetryConfigParamsBodyLocation) ContextValidate added in v0.47.0

ContextValidate validate this agent telemetry config params body location based on the context it is used

func (*AgentTelemetryConfigParamsBodyLocation) MarshalBinary added in v0.47.0

func (o *AgentTelemetryConfigParamsBodyLocation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AgentTelemetryConfigParamsBodyLocation) UnmarshalBinary added in v0.47.0

func (o *AgentTelemetryConfigParamsBodyLocation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AgentTelemetryConfigParamsBodyLocation) Validate added in v0.47.0

Validate validates this agent telemetry config params body location

type AgentTelemetryConfigReader

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

AgentTelemetryConfigReader is a Reader for the AgentTelemetryConfig structure.

func (*AgentTelemetryConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for consul telemetry service API

func (*Client) AgentTelemetryConfig

func (a *Client) AgentTelemetryConfig(params *AgentTelemetryConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AgentTelemetryConfigOK, error)

AgentTelemetryConfig agent telemetry config API

func (*Client) GetLabelValues added in v0.47.0

func (a *Client) GetLabelValues(params *GetLabelValuesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLabelValuesOK, error)

GetLabelValues returns the label values for a given cluster

func (*Client) GetServiceTopology added in v0.78.0

func (a *Client) GetServiceTopology(params *GetServiceTopologyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetServiceTopologyOK, error)

GetServiceTopology creates a service topology graph based on recent metrics from the mesh

func (*Client) QueryRangeBatch added in v0.47.0

func (a *Client) QueryRangeBatch(params *QueryRangeBatchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*QueryRangeBatchOK, error)

QueryRangeBatch customs endpoints for observability that batches query range requests

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 {
	AgentTelemetryConfig(params *AgentTelemetryConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AgentTelemetryConfigOK, error)

	GetLabelValues(params *GetLabelValuesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLabelValuesOK, error)

	GetServiceTopology(params *GetServiceTopologyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetServiceTopologyOK, error)

	QueryRangeBatch(params *QueryRangeBatchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*QueryRangeBatchOK, 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 consul telemetry service API client.

type GetLabelValuesBody added in v0.47.0

type GetLabelValuesBody struct {

	// cluster_internal_id is the internal UUID of the cluster. This is used, instead of the public id,
	// to separate metrics per cluster. There could be two clusters in the same organization with the same public id,
	// or a two clusters with the same name in the same project, one created after the other is deleted. In either
	// scenario, we do not want to show the other cluster's metrics.
	ClusterInternalID string `json:"cluster_internal_id,omitempty"`

	// end
	// Format: date-time
	End strfmt.DateTime `json:"end,omitempty"`

	// location
	Location *GetLabelValuesParamsBodyLocation `json:"location,omitempty"`

	// start
	// Format: date-time
	Start strfmt.DateTime `json:"start,omitempty"`

	// refs a metric that we allow frontend to query values for
	Type *models.HashicorpCloudConsulTelemetry20230414LVT `json:"type,omitempty"`
}

GetLabelValuesBody GetLabelValuesRequest swagger:model GetLabelValuesBody

func (*GetLabelValuesBody) ContextValidate added in v0.47.0

func (o *GetLabelValuesBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get label values body based on the context it is used

func (*GetLabelValuesBody) MarshalBinary added in v0.47.0

func (o *GetLabelValuesBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetLabelValuesBody) UnmarshalBinary added in v0.47.0

func (o *GetLabelValuesBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetLabelValuesBody) Validate added in v0.47.0

func (o *GetLabelValuesBody) Validate(formats strfmt.Registry) error

Validate validates this get label values body

type GetLabelValuesDefault added in v0.47.0

type GetLabelValuesDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

GetLabelValuesDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewGetLabelValuesDefault added in v0.47.0

func NewGetLabelValuesDefault(code int) *GetLabelValuesDefault

NewGetLabelValuesDefault creates a GetLabelValuesDefault with default headers values

func (*GetLabelValuesDefault) Code added in v0.47.0

func (o *GetLabelValuesDefault) Code() int

Code gets the status code for the get label values default response

func (*GetLabelValuesDefault) Error added in v0.47.0

func (o *GetLabelValuesDefault) Error() string

func (*GetLabelValuesDefault) GetPayload added in v0.47.0

func (o *GetLabelValuesDefault) GetPayload() *cloud.GoogleRPCStatus

func (*GetLabelValuesDefault) IsClientError added in v0.47.0

func (o *GetLabelValuesDefault) IsClientError() bool

IsClientError returns true when this get label values default response has a 4xx status code

func (*GetLabelValuesDefault) IsCode added in v0.47.0

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

IsCode returns true when this get label values default response a status code equal to that given

func (*GetLabelValuesDefault) IsRedirect added in v0.47.0

func (o *GetLabelValuesDefault) IsRedirect() bool

IsRedirect returns true when this get label values default response has a 3xx status code

func (*GetLabelValuesDefault) IsServerError added in v0.47.0

func (o *GetLabelValuesDefault) IsServerError() bool

IsServerError returns true when this get label values default response has a 5xx status code

func (*GetLabelValuesDefault) IsSuccess added in v0.47.0

func (o *GetLabelValuesDefault) IsSuccess() bool

IsSuccess returns true when this get label values default response has a 2xx status code

func (*GetLabelValuesDefault) String added in v0.47.0

func (o *GetLabelValuesDefault) String() string

type GetLabelValuesOK added in v0.47.0

type GetLabelValuesOK struct {
	Payload *models.HashicorpCloudConsulTelemetry20230414GetLabelValuesResponse
}

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

A successful response.

func NewGetLabelValuesOK added in v0.47.0

func NewGetLabelValuesOK() *GetLabelValuesOK

NewGetLabelValuesOK creates a GetLabelValuesOK with default headers values

func (*GetLabelValuesOK) Code added in v0.78.0

func (o *GetLabelValuesOK) Code() int

Code gets the status code for the get label values o k response

func (*GetLabelValuesOK) Error added in v0.47.0

func (o *GetLabelValuesOK) Error() string

func (*GetLabelValuesOK) GetPayload added in v0.47.0

func (*GetLabelValuesOK) IsClientError added in v0.47.0

func (o *GetLabelValuesOK) IsClientError() bool

IsClientError returns true when this get label values o k response has a 4xx status code

func (*GetLabelValuesOK) IsCode added in v0.47.0

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

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

func (*GetLabelValuesOK) IsRedirect added in v0.47.0

func (o *GetLabelValuesOK) IsRedirect() bool

IsRedirect returns true when this get label values o k response has a 3xx status code

func (*GetLabelValuesOK) IsServerError added in v0.47.0

func (o *GetLabelValuesOK) IsServerError() bool

IsServerError returns true when this get label values o k response has a 5xx status code

func (*GetLabelValuesOK) IsSuccess added in v0.47.0

func (o *GetLabelValuesOK) IsSuccess() bool

IsSuccess returns true when this get label values o k response has a 2xx status code

func (*GetLabelValuesOK) String added in v0.47.0

func (o *GetLabelValuesOK) String() string

type GetLabelValuesParams added in v0.47.0

type GetLabelValuesParams struct {

	// Body.
	Body GetLabelValuesBody

	// ClusterID.
	ClusterID string

	/* LocationOrganizationID.

	   organization_id is the id of the organization.
	*/
	LocationOrganizationID string

	/* LocationProjectID.

	   project_id is the projects id.
	*/
	LocationProjectID string

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

GetLabelValuesParams contains all the parameters to send to the API endpoint

for the get label values operation.

Typically these are written to a http.Request.

func NewGetLabelValuesParams added in v0.47.0

func NewGetLabelValuesParams() *GetLabelValuesParams

NewGetLabelValuesParams creates a new GetLabelValuesParams 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 NewGetLabelValuesParamsWithContext added in v0.47.0

func NewGetLabelValuesParamsWithContext(ctx context.Context) *GetLabelValuesParams

NewGetLabelValuesParamsWithContext creates a new GetLabelValuesParams object with the ability to set a context for a request.

func NewGetLabelValuesParamsWithHTTPClient added in v0.47.0

func NewGetLabelValuesParamsWithHTTPClient(client *http.Client) *GetLabelValuesParams

NewGetLabelValuesParamsWithHTTPClient creates a new GetLabelValuesParams object with the ability to set a custom HTTPClient for a request.

func NewGetLabelValuesParamsWithTimeout added in v0.47.0

func NewGetLabelValuesParamsWithTimeout(timeout time.Duration) *GetLabelValuesParams

NewGetLabelValuesParamsWithTimeout creates a new GetLabelValuesParams object with the ability to set a timeout on a request.

func (*GetLabelValuesParams) SetBody added in v0.47.0

func (o *GetLabelValuesParams) SetBody(body GetLabelValuesBody)

SetBody adds the body to the get label values params

func (*GetLabelValuesParams) SetClusterID added in v0.47.0

func (o *GetLabelValuesParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the get label values params

func (*GetLabelValuesParams) SetContext added in v0.47.0

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

SetContext adds the context to the get label values params

func (*GetLabelValuesParams) SetDefaults added in v0.47.0

func (o *GetLabelValuesParams) SetDefaults()

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

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

func (*GetLabelValuesParams) SetHTTPClient added in v0.47.0

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

SetHTTPClient adds the HTTPClient to the get label values params

func (*GetLabelValuesParams) SetLocationOrganizationID added in v0.47.0

func (o *GetLabelValuesParams) SetLocationOrganizationID(locationOrganizationID string)

SetLocationOrganizationID adds the locationOrganizationId to the get label values params

func (*GetLabelValuesParams) SetLocationProjectID added in v0.47.0

func (o *GetLabelValuesParams) SetLocationProjectID(locationProjectID string)

SetLocationProjectID adds the locationProjectId to the get label values params

func (*GetLabelValuesParams) SetTimeout added in v0.47.0

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

SetTimeout adds the timeout to the get label values params

func (*GetLabelValuesParams) WithBody added in v0.47.0

WithBody adds the body to the get label values params

func (*GetLabelValuesParams) WithClusterID added in v0.47.0

func (o *GetLabelValuesParams) WithClusterID(clusterID string) *GetLabelValuesParams

WithClusterID adds the clusterID to the get label values params

func (*GetLabelValuesParams) WithContext added in v0.47.0

WithContext adds the context to the get label values params

func (*GetLabelValuesParams) WithDefaults added in v0.47.0

func (o *GetLabelValuesParams) WithDefaults() *GetLabelValuesParams

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

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

func (*GetLabelValuesParams) WithHTTPClient added in v0.47.0

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

WithHTTPClient adds the HTTPClient to the get label values params

func (*GetLabelValuesParams) WithLocationOrganizationID added in v0.47.0

func (o *GetLabelValuesParams) WithLocationOrganizationID(locationOrganizationID string) *GetLabelValuesParams

WithLocationOrganizationID adds the locationOrganizationID to the get label values params

func (*GetLabelValuesParams) WithLocationProjectID added in v0.47.0

func (o *GetLabelValuesParams) WithLocationProjectID(locationProjectID string) *GetLabelValuesParams

WithLocationProjectID adds the locationProjectID to the get label values params

func (*GetLabelValuesParams) WithTimeout added in v0.47.0

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

WithTimeout adds the timeout to the get label values params

func (*GetLabelValuesParams) WriteToRequest added in v0.47.0

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

WriteToRequest writes these params to a swagger request

type GetLabelValuesParamsBodyLocation added in v0.47.0

type GetLabelValuesParamsBodyLocation struct {

	// region is the region that the resource is located in. It is
	// optional if the object being referenced is a global object.
	Region *cloud.HashicorpCloudLocationRegion `json:"region,omitempty"`
}

GetLabelValuesParamsBodyLocation Location represents a target for an operation in HCP. swagger:model GetLabelValuesParamsBodyLocation

func (*GetLabelValuesParamsBodyLocation) ContextValidate added in v0.47.0

func (o *GetLabelValuesParamsBodyLocation) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get label values params body location based on the context it is used

func (*GetLabelValuesParamsBodyLocation) MarshalBinary added in v0.47.0

func (o *GetLabelValuesParamsBodyLocation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetLabelValuesParamsBodyLocation) UnmarshalBinary added in v0.47.0

func (o *GetLabelValuesParamsBodyLocation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetLabelValuesParamsBodyLocation) Validate added in v0.47.0

Validate validates this get label values params body location

type GetLabelValuesReader added in v0.47.0

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

GetLabelValuesReader is a Reader for the GetLabelValues structure.

func (*GetLabelValuesReader) ReadResponse added in v0.47.0

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

ReadResponse reads a server response into the received o.

type GetServiceTopologyDefault added in v0.78.0

type GetServiceTopologyDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

GetServiceTopologyDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewGetServiceTopologyDefault added in v0.78.0

func NewGetServiceTopologyDefault(code int) *GetServiceTopologyDefault

NewGetServiceTopologyDefault creates a GetServiceTopologyDefault with default headers values

func (*GetServiceTopologyDefault) Code added in v0.78.0

func (o *GetServiceTopologyDefault) Code() int

Code gets the status code for the get service topology default response

func (*GetServiceTopologyDefault) Error added in v0.78.0

func (o *GetServiceTopologyDefault) Error() string

func (*GetServiceTopologyDefault) GetPayload added in v0.78.0

func (*GetServiceTopologyDefault) IsClientError added in v0.78.0

func (o *GetServiceTopologyDefault) IsClientError() bool

IsClientError returns true when this get service topology default response has a 4xx status code

func (*GetServiceTopologyDefault) IsCode added in v0.78.0

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

IsCode returns true when this get service topology default response a status code equal to that given

func (*GetServiceTopologyDefault) IsRedirect added in v0.78.0

func (o *GetServiceTopologyDefault) IsRedirect() bool

IsRedirect returns true when this get service topology default response has a 3xx status code

func (*GetServiceTopologyDefault) IsServerError added in v0.78.0

func (o *GetServiceTopologyDefault) IsServerError() bool

IsServerError returns true when this get service topology default response has a 5xx status code

func (*GetServiceTopologyDefault) IsSuccess added in v0.78.0

func (o *GetServiceTopologyDefault) IsSuccess() bool

IsSuccess returns true when this get service topology default response has a 2xx status code

func (*GetServiceTopologyDefault) String added in v0.78.0

func (o *GetServiceTopologyDefault) String() string

type GetServiceTopologyInternalServerError added in v0.78.0

type GetServiceTopologyInternalServerError struct {
	Payload *models.HashicorpCloudConsulTelemetry20230414GetServiceTopologyStatus
}

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

An unexpected internal server error response.

func NewGetServiceTopologyInternalServerError added in v0.78.0

func NewGetServiceTopologyInternalServerError() *GetServiceTopologyInternalServerError

NewGetServiceTopologyInternalServerError creates a GetServiceTopologyInternalServerError with default headers values

func (*GetServiceTopologyInternalServerError) Code added in v0.78.0

Code gets the status code for the get service topology internal server error response

func (*GetServiceTopologyInternalServerError) Error added in v0.78.0

func (*GetServiceTopologyInternalServerError) GetPayload added in v0.78.0

func (*GetServiceTopologyInternalServerError) IsClientError added in v0.78.0

func (o *GetServiceTopologyInternalServerError) IsClientError() bool

IsClientError returns true when this get service topology internal server error response has a 4xx status code

func (*GetServiceTopologyInternalServerError) IsCode added in v0.78.0

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

func (*GetServiceTopologyInternalServerError) IsRedirect added in v0.78.0

IsRedirect returns true when this get service topology internal server error response has a 3xx status code

func (*GetServiceTopologyInternalServerError) IsServerError added in v0.78.0

func (o *GetServiceTopologyInternalServerError) IsServerError() bool

IsServerError returns true when this get service topology internal server error response has a 5xx status code

func (*GetServiceTopologyInternalServerError) IsSuccess added in v0.78.0

IsSuccess returns true when this get service topology internal server error response has a 2xx status code

func (*GetServiceTopologyInternalServerError) String added in v0.78.0

type GetServiceTopologyOK added in v0.78.0

type GetServiceTopologyOK struct {
	Payload *models.HashicorpCloudConsulTelemetry20230414GetServiceTopologyResponse
}

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

A successful response.

func NewGetServiceTopologyOK added in v0.78.0

func NewGetServiceTopologyOK() *GetServiceTopologyOK

NewGetServiceTopologyOK creates a GetServiceTopologyOK with default headers values

func (*GetServiceTopologyOK) Code added in v0.78.0

func (o *GetServiceTopologyOK) Code() int

Code gets the status code for the get service topology o k response

func (*GetServiceTopologyOK) Error added in v0.78.0

func (o *GetServiceTopologyOK) Error() string

func (*GetServiceTopologyOK) GetPayload added in v0.78.0

func (*GetServiceTopologyOK) IsClientError added in v0.78.0

func (o *GetServiceTopologyOK) IsClientError() bool

IsClientError returns true when this get service topology o k response has a 4xx status code

func (*GetServiceTopologyOK) IsCode added in v0.78.0

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

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

func (*GetServiceTopologyOK) IsRedirect added in v0.78.0

func (o *GetServiceTopologyOK) IsRedirect() bool

IsRedirect returns true when this get service topology o k response has a 3xx status code

func (*GetServiceTopologyOK) IsServerError added in v0.78.0

func (o *GetServiceTopologyOK) IsServerError() bool

IsServerError returns true when this get service topology o k response has a 5xx status code

func (*GetServiceTopologyOK) IsSuccess added in v0.78.0

func (o *GetServiceTopologyOK) IsSuccess() bool

IsSuccess returns true when this get service topology o k response has a 2xx status code

func (*GetServiceTopologyOK) String added in v0.78.0

func (o *GetServiceTopologyOK) String() string

type GetServiceTopologyParams added in v0.78.0

type GetServiceTopologyParams struct {

	/* Duration.

	     duration is the length of time, from start, to include in the query for metrics from the mesh.
	The returned graph will not include requests/connections between services that happened
	after start + duration.
	*/
	Duration *string

	/* IncludesClusterID.

	   Cluster ID is the name of the cluster in GNM. This is the user settable name.
	*/
	IncludesClusterID *string

	/* IncludesClusterInternalID.

	   The internal id the Consul cluster the service is registered with. This is from global-network-manager.
	*/
	IncludesClusterInternalID *string

	/* IncludesName.

	   Name of the service.
	*/
	IncludesName *string

	/* IncludesNamespace.

	   Namespace where the service is deployed.
	*/
	IncludesNamespace *string

	/* IncludesPartition.

	   Partition where the service is deployed.
	*/
	IncludesPartition *string

	/* IncludesTrustDomain.

	     trust_domain of the cluster. This is a globally unique UUID created by the Consul cluster on startup
	for its certificate authority if connect is enabled: https://developer.hashicorp.com/consul/api-docs/connect/ca#sample-request.
	*/
	IncludesTrustDomain *string

	/* LocationOrganizationID.

	   organization_id is the id of the organization.
	*/
	LocationOrganizationID string

	/* LocationProjectID.

	   project_id is the projects id.
	*/
	LocationProjectID string

	/* LocationRegionProvider.

	   provider is the named cloud provider ("aws", "gcp", "azure")
	*/
	LocationRegionProvider *string

	/* LocationRegionRegion.

	   region is the cloud region ("us-west1", "us-east1")
	*/
	LocationRegionRegion *string

	/* RootClusterID.

	   Cluster ID is the name of the cluster in GNM. This is the user settable name.
	*/
	RootClusterID *string

	/* RootClusterInternalID.

	   The internal id the Consul cluster the service is registered with. This is from global-network-manager.
	*/
	RootClusterInternalID *string

	/* RootName.

	   Name of the service.
	*/
	RootName *string

	/* RootNamespace.

	   Namespace where the service is deployed.
	*/
	RootNamespace *string

	/* RootPartition.

	   Partition where the service is deployed.
	*/
	RootPartition *string

	/* RootTrustDomain.

	     trust_domain of the cluster. This is a globally unique UUID created by the Consul cluster on startup
	for its certificate authority if connect is enabled: https://developer.hashicorp.com/consul/api-docs/connect/ca#sample-request.
	*/
	RootTrustDomain *string

	/* Start.

	     start is the beginning of the time range over which metrics are queried from the mesh.
	The returned graph will not include requests/connections between services that happened
	before this.

	     Format: date-time
	*/
	Start *strfmt.DateTime

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

GetServiceTopologyParams contains all the parameters to send to the API endpoint

for the get service topology operation.

Typically these are written to a http.Request.

func NewGetServiceTopologyParams added in v0.78.0

func NewGetServiceTopologyParams() *GetServiceTopologyParams

NewGetServiceTopologyParams creates a new GetServiceTopologyParams 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 NewGetServiceTopologyParamsWithContext added in v0.78.0

func NewGetServiceTopologyParamsWithContext(ctx context.Context) *GetServiceTopologyParams

NewGetServiceTopologyParamsWithContext creates a new GetServiceTopologyParams object with the ability to set a context for a request.

func NewGetServiceTopologyParamsWithHTTPClient added in v0.78.0

func NewGetServiceTopologyParamsWithHTTPClient(client *http.Client) *GetServiceTopologyParams

NewGetServiceTopologyParamsWithHTTPClient creates a new GetServiceTopologyParams object with the ability to set a custom HTTPClient for a request.

func NewGetServiceTopologyParamsWithTimeout added in v0.78.0

func NewGetServiceTopologyParamsWithTimeout(timeout time.Duration) *GetServiceTopologyParams

NewGetServiceTopologyParamsWithTimeout creates a new GetServiceTopologyParams object with the ability to set a timeout on a request.

func (*GetServiceTopologyParams) SetContext added in v0.78.0

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

SetContext adds the context to the get service topology params

func (*GetServiceTopologyParams) SetDefaults added in v0.78.0

func (o *GetServiceTopologyParams) SetDefaults()

SetDefaults hydrates default values in the get service topology params (not the query body).

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

func (*GetServiceTopologyParams) SetDuration added in v0.78.0

func (o *GetServiceTopologyParams) SetDuration(duration *string)

SetDuration adds the duration to the get service topology params

func (*GetServiceTopologyParams) SetHTTPClient added in v0.78.0

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

SetHTTPClient adds the HTTPClient to the get service topology params

func (*GetServiceTopologyParams) SetIncludesClusterID added in v0.78.0

func (o *GetServiceTopologyParams) SetIncludesClusterID(includesClusterID *string)

SetIncludesClusterID adds the includesClusterId to the get service topology params

func (*GetServiceTopologyParams) SetIncludesClusterInternalID added in v0.78.0

func (o *GetServiceTopologyParams) SetIncludesClusterInternalID(includesClusterInternalID *string)

SetIncludesClusterInternalID adds the includesClusterInternalId to the get service topology params

func (*GetServiceTopologyParams) SetIncludesName added in v0.78.0

func (o *GetServiceTopologyParams) SetIncludesName(includesName *string)

SetIncludesName adds the includesName to the get service topology params

func (*GetServiceTopologyParams) SetIncludesNamespace added in v0.78.0

func (o *GetServiceTopologyParams) SetIncludesNamespace(includesNamespace *string)

SetIncludesNamespace adds the includesNamespace to the get service topology params

func (*GetServiceTopologyParams) SetIncludesPartition added in v0.78.0

func (o *GetServiceTopologyParams) SetIncludesPartition(includesPartition *string)

SetIncludesPartition adds the includesPartition to the get service topology params

func (*GetServiceTopologyParams) SetIncludesTrustDomain added in v0.83.0

func (o *GetServiceTopologyParams) SetIncludesTrustDomain(includesTrustDomain *string)

SetIncludesTrustDomain adds the includesTrustDomain to the get service topology params

func (*GetServiceTopologyParams) SetLocationOrganizationID added in v0.78.0

func (o *GetServiceTopologyParams) SetLocationOrganizationID(locationOrganizationID string)

SetLocationOrganizationID adds the locationOrganizationId to the get service topology params

func (*GetServiceTopologyParams) SetLocationProjectID added in v0.78.0

func (o *GetServiceTopologyParams) SetLocationProjectID(locationProjectID string)

SetLocationProjectID adds the locationProjectId to the get service topology params

func (*GetServiceTopologyParams) SetLocationRegionProvider added in v0.78.0

func (o *GetServiceTopologyParams) SetLocationRegionProvider(locationRegionProvider *string)

SetLocationRegionProvider adds the locationRegionProvider to the get service topology params

func (*GetServiceTopologyParams) SetLocationRegionRegion added in v0.78.0

func (o *GetServiceTopologyParams) SetLocationRegionRegion(locationRegionRegion *string)

SetLocationRegionRegion adds the locationRegionRegion to the get service topology params

func (*GetServiceTopologyParams) SetRootClusterID added in v0.78.0

func (o *GetServiceTopologyParams) SetRootClusterID(rootClusterID *string)

SetRootClusterID adds the rootClusterId to the get service topology params

func (*GetServiceTopologyParams) SetRootClusterInternalID added in v0.78.0

func (o *GetServiceTopologyParams) SetRootClusterInternalID(rootClusterInternalID *string)

SetRootClusterInternalID adds the rootClusterInternalId to the get service topology params

func (*GetServiceTopologyParams) SetRootName added in v0.78.0

func (o *GetServiceTopologyParams) SetRootName(rootName *string)

SetRootName adds the rootName to the get service topology params

func (*GetServiceTopologyParams) SetRootNamespace added in v0.78.0

func (o *GetServiceTopologyParams) SetRootNamespace(rootNamespace *string)

SetRootNamespace adds the rootNamespace to the get service topology params

func (*GetServiceTopologyParams) SetRootPartition added in v0.78.0

func (o *GetServiceTopologyParams) SetRootPartition(rootPartition *string)

SetRootPartition adds the rootPartition to the get service topology params

func (*GetServiceTopologyParams) SetRootTrustDomain added in v0.83.0

func (o *GetServiceTopologyParams) SetRootTrustDomain(rootTrustDomain *string)

SetRootTrustDomain adds the rootTrustDomain to the get service topology params

func (*GetServiceTopologyParams) SetStart added in v0.78.0

func (o *GetServiceTopologyParams) SetStart(start *strfmt.DateTime)

SetStart adds the start to the get service topology params

func (*GetServiceTopologyParams) SetTimeout added in v0.78.0

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

SetTimeout adds the timeout to the get service topology params

func (*GetServiceTopologyParams) WithContext added in v0.78.0

WithContext adds the context to the get service topology params

func (*GetServiceTopologyParams) WithDefaults added in v0.78.0

WithDefaults hydrates default values in the get service topology params (not the query body).

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

func (*GetServiceTopologyParams) WithDuration added in v0.78.0

func (o *GetServiceTopologyParams) WithDuration(duration *string) *GetServiceTopologyParams

WithDuration adds the duration to the get service topology params

func (*GetServiceTopologyParams) WithHTTPClient added in v0.78.0

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

WithHTTPClient adds the HTTPClient to the get service topology params

func (*GetServiceTopologyParams) WithIncludesClusterID added in v0.78.0

func (o *GetServiceTopologyParams) WithIncludesClusterID(includesClusterID *string) *GetServiceTopologyParams

WithIncludesClusterID adds the includesClusterID to the get service topology params

func (*GetServiceTopologyParams) WithIncludesClusterInternalID added in v0.78.0

func (o *GetServiceTopologyParams) WithIncludesClusterInternalID(includesClusterInternalID *string) *GetServiceTopologyParams

WithIncludesClusterInternalID adds the includesClusterInternalID to the get service topology params

func (*GetServiceTopologyParams) WithIncludesName added in v0.78.0

func (o *GetServiceTopologyParams) WithIncludesName(includesName *string) *GetServiceTopologyParams

WithIncludesName adds the includesName to the get service topology params

func (*GetServiceTopologyParams) WithIncludesNamespace added in v0.78.0

func (o *GetServiceTopologyParams) WithIncludesNamespace(includesNamespace *string) *GetServiceTopologyParams

WithIncludesNamespace adds the includesNamespace to the get service topology params

func (*GetServiceTopologyParams) WithIncludesPartition added in v0.78.0

func (o *GetServiceTopologyParams) WithIncludesPartition(includesPartition *string) *GetServiceTopologyParams

WithIncludesPartition adds the includesPartition to the get service topology params

func (*GetServiceTopologyParams) WithIncludesTrustDomain added in v0.83.0

func (o *GetServiceTopologyParams) WithIncludesTrustDomain(includesTrustDomain *string) *GetServiceTopologyParams

WithIncludesTrustDomain adds the includesTrustDomain to the get service topology params

func (*GetServiceTopologyParams) WithLocationOrganizationID added in v0.78.0

func (o *GetServiceTopologyParams) WithLocationOrganizationID(locationOrganizationID string) *GetServiceTopologyParams

WithLocationOrganizationID adds the locationOrganizationID to the get service topology params

func (*GetServiceTopologyParams) WithLocationProjectID added in v0.78.0

func (o *GetServiceTopologyParams) WithLocationProjectID(locationProjectID string) *GetServiceTopologyParams

WithLocationProjectID adds the locationProjectID to the get service topology params

func (*GetServiceTopologyParams) WithLocationRegionProvider added in v0.78.0

func (o *GetServiceTopologyParams) WithLocationRegionProvider(locationRegionProvider *string) *GetServiceTopologyParams

WithLocationRegionProvider adds the locationRegionProvider to the get service topology params

func (*GetServiceTopologyParams) WithLocationRegionRegion added in v0.78.0

func (o *GetServiceTopologyParams) WithLocationRegionRegion(locationRegionRegion *string) *GetServiceTopologyParams

WithLocationRegionRegion adds the locationRegionRegion to the get service topology params

func (*GetServiceTopologyParams) WithRootClusterID added in v0.78.0

func (o *GetServiceTopologyParams) WithRootClusterID(rootClusterID *string) *GetServiceTopologyParams

WithRootClusterID adds the rootClusterID to the get service topology params

func (*GetServiceTopologyParams) WithRootClusterInternalID added in v0.78.0

func (o *GetServiceTopologyParams) WithRootClusterInternalID(rootClusterInternalID *string) *GetServiceTopologyParams

WithRootClusterInternalID adds the rootClusterInternalID to the get service topology params

func (*GetServiceTopologyParams) WithRootName added in v0.78.0

func (o *GetServiceTopologyParams) WithRootName(rootName *string) *GetServiceTopologyParams

WithRootName adds the rootName to the get service topology params

func (*GetServiceTopologyParams) WithRootNamespace added in v0.78.0

func (o *GetServiceTopologyParams) WithRootNamespace(rootNamespace *string) *GetServiceTopologyParams

WithRootNamespace adds the rootNamespace to the get service topology params

func (*GetServiceTopologyParams) WithRootPartition added in v0.78.0

func (o *GetServiceTopologyParams) WithRootPartition(rootPartition *string) *GetServiceTopologyParams

WithRootPartition adds the rootPartition to the get service topology params

func (*GetServiceTopologyParams) WithRootTrustDomain added in v0.83.0

func (o *GetServiceTopologyParams) WithRootTrustDomain(rootTrustDomain *string) *GetServiceTopologyParams

WithRootTrustDomain adds the rootTrustDomain to the get service topology params

func (*GetServiceTopologyParams) WithStart added in v0.78.0

WithStart adds the start to the get service topology params

func (*GetServiceTopologyParams) WithTimeout added in v0.78.0

WithTimeout adds the timeout to the get service topology params

func (*GetServiceTopologyParams) WriteToRequest added in v0.78.0

WriteToRequest writes these params to a swagger request

type GetServiceTopologyReader added in v0.78.0

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

GetServiceTopologyReader is a Reader for the GetServiceTopology structure.

func (*GetServiceTopologyReader) ReadResponse added in v0.78.0

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

ReadResponse reads a server response into the received o.

type QueryRangeBatchBody added in v0.47.0

type QueryRangeBatchBody struct {

	// cluster_internal_id is the internal UUID of the cluster. This is used, instead of the public id,
	// to separate metrics per cluster. There could be two clusters in the same organization with the same public id,
	// or a two clusters with the same name in the same project, one created after the other is deleted. In either
	// scenario, we do not want to show the other cluster's metrics.
	ClusterInternalID string `json:"cluster_internal_id,omitempty"`

	// end
	// Format: date-time
	End strfmt.DateTime `json:"end,omitempty"`

	// location
	Location *QueryRangeBatchParamsBodyLocation `json:"location,omitempty"`

	// query is the set of QueryRangeTypes (QRT) to query for. Between 1 and 10 queries can be issued in one batch.
	Query []*models.HashicorpCloudConsulTelemetry20230414QRT `json:"query"`

	// service_name is an optional filter for service-level queries. Required for service-specific queries.
	ServiceName string `json:"service_name,omitempty"`

	// service_namespace is an optional filter for service-level queries. Required for service-specific queries.
	ServiceNamespace string `json:"service_namespace,omitempty"`

	// service_partition is an optional filter for service-level queries. Required for service-specific queries.
	ServicePartition string `json:"service_partition,omitempty"`

	// start
	// Format: date-time
	Start strfmt.DateTime `json:"start,omitempty"`

	// step
	Step string `json:"step,omitempty"`
}

QueryRangeBatchBody QueryRangeBatchRequest // // QueryRangeBatchRequest is a custom endpoint request to have multiple QueryRangeReuqests in a single endpoint that will multiple QueryRangeRequests in a single endpoint. Same // restricuts on the type and the response type are required and must return a map of <string(the QueryRangeType), MetricMatrix>. swagger:model QueryRangeBatchBody

func (*QueryRangeBatchBody) ContextValidate added in v0.47.0

func (o *QueryRangeBatchBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this query range batch body based on the context it is used

func (*QueryRangeBatchBody) MarshalBinary added in v0.47.0

func (o *QueryRangeBatchBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*QueryRangeBatchBody) UnmarshalBinary added in v0.47.0

func (o *QueryRangeBatchBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*QueryRangeBatchBody) Validate added in v0.47.0

func (o *QueryRangeBatchBody) Validate(formats strfmt.Registry) error

Validate validates this query range batch body

type QueryRangeBatchDefault added in v0.47.0

type QueryRangeBatchDefault struct {
	Payload *cloud.GoogleRPCStatus
	// contains filtered or unexported fields
}

QueryRangeBatchDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewQueryRangeBatchDefault added in v0.47.0

func NewQueryRangeBatchDefault(code int) *QueryRangeBatchDefault

NewQueryRangeBatchDefault creates a QueryRangeBatchDefault with default headers values

func (*QueryRangeBatchDefault) Code added in v0.47.0

func (o *QueryRangeBatchDefault) Code() int

Code gets the status code for the query range batch default response

func (*QueryRangeBatchDefault) Error added in v0.47.0

func (o *QueryRangeBatchDefault) Error() string

func (*QueryRangeBatchDefault) GetPayload added in v0.47.0

func (o *QueryRangeBatchDefault) GetPayload() *cloud.GoogleRPCStatus

func (*QueryRangeBatchDefault) IsClientError added in v0.47.0

func (o *QueryRangeBatchDefault) IsClientError() bool

IsClientError returns true when this query range batch default response has a 4xx status code

func (*QueryRangeBatchDefault) IsCode added in v0.47.0

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

IsCode returns true when this query range batch default response a status code equal to that given

func (*QueryRangeBatchDefault) IsRedirect added in v0.47.0

func (o *QueryRangeBatchDefault) IsRedirect() bool

IsRedirect returns true when this query range batch default response has a 3xx status code

func (*QueryRangeBatchDefault) IsServerError added in v0.47.0

func (o *QueryRangeBatchDefault) IsServerError() bool

IsServerError returns true when this query range batch default response has a 5xx status code

func (*QueryRangeBatchDefault) IsSuccess added in v0.47.0

func (o *QueryRangeBatchDefault) IsSuccess() bool

IsSuccess returns true when this query range batch default response has a 2xx status code

func (*QueryRangeBatchDefault) String added in v0.47.0

func (o *QueryRangeBatchDefault) String() string

type QueryRangeBatchOK added in v0.47.0

type QueryRangeBatchOK struct {
	Payload *models.HashicorpCloudConsulTelemetry20230414QueryRangeBatchResponse
}

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

A successful response.

func NewQueryRangeBatchOK added in v0.47.0

func NewQueryRangeBatchOK() *QueryRangeBatchOK

NewQueryRangeBatchOK creates a QueryRangeBatchOK with default headers values

func (*QueryRangeBatchOK) Code added in v0.78.0

func (o *QueryRangeBatchOK) Code() int

Code gets the status code for the query range batch o k response

func (*QueryRangeBatchOK) Error added in v0.47.0

func (o *QueryRangeBatchOK) Error() string

func (*QueryRangeBatchOK) GetPayload added in v0.47.0

func (*QueryRangeBatchOK) IsClientError added in v0.47.0

func (o *QueryRangeBatchOK) IsClientError() bool

IsClientError returns true when this query range batch o k response has a 4xx status code

func (*QueryRangeBatchOK) IsCode added in v0.47.0

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

IsCode returns true when this query range batch o k response a status code equal to that given

func (*QueryRangeBatchOK) IsRedirect added in v0.47.0

func (o *QueryRangeBatchOK) IsRedirect() bool

IsRedirect returns true when this query range batch o k response has a 3xx status code

func (*QueryRangeBatchOK) IsServerError added in v0.47.0

func (o *QueryRangeBatchOK) IsServerError() bool

IsServerError returns true when this query range batch o k response has a 5xx status code

func (*QueryRangeBatchOK) IsSuccess added in v0.47.0

func (o *QueryRangeBatchOK) IsSuccess() bool

IsSuccess returns true when this query range batch o k response has a 2xx status code

func (*QueryRangeBatchOK) String added in v0.47.0

func (o *QueryRangeBatchOK) String() string

type QueryRangeBatchParams added in v0.47.0

type QueryRangeBatchParams struct {

	// Body.
	Body QueryRangeBatchBody

	// ClusterID.
	ClusterID string

	/* LocationOrganizationID.

	   organization_id is the id of the organization.
	*/
	LocationOrganizationID string

	/* LocationProjectID.

	   project_id is the projects id.
	*/
	LocationProjectID string

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

QueryRangeBatchParams contains all the parameters to send to the API endpoint

for the query range batch operation.

Typically these are written to a http.Request.

func NewQueryRangeBatchParams added in v0.47.0

func NewQueryRangeBatchParams() *QueryRangeBatchParams

NewQueryRangeBatchParams creates a new QueryRangeBatchParams 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 NewQueryRangeBatchParamsWithContext added in v0.47.0

func NewQueryRangeBatchParamsWithContext(ctx context.Context) *QueryRangeBatchParams

NewQueryRangeBatchParamsWithContext creates a new QueryRangeBatchParams object with the ability to set a context for a request.

func NewQueryRangeBatchParamsWithHTTPClient added in v0.47.0

func NewQueryRangeBatchParamsWithHTTPClient(client *http.Client) *QueryRangeBatchParams

NewQueryRangeBatchParamsWithHTTPClient creates a new QueryRangeBatchParams object with the ability to set a custom HTTPClient for a request.

func NewQueryRangeBatchParamsWithTimeout added in v0.47.0

func NewQueryRangeBatchParamsWithTimeout(timeout time.Duration) *QueryRangeBatchParams

NewQueryRangeBatchParamsWithTimeout creates a new QueryRangeBatchParams object with the ability to set a timeout on a request.

func (*QueryRangeBatchParams) SetBody added in v0.47.0

func (o *QueryRangeBatchParams) SetBody(body QueryRangeBatchBody)

SetBody adds the body to the query range batch params

func (*QueryRangeBatchParams) SetClusterID added in v0.47.0

func (o *QueryRangeBatchParams) SetClusterID(clusterID string)

SetClusterID adds the clusterId to the query range batch params

func (*QueryRangeBatchParams) SetContext added in v0.47.0

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

SetContext adds the context to the query range batch params

func (*QueryRangeBatchParams) SetDefaults added in v0.47.0

func (o *QueryRangeBatchParams) SetDefaults()

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

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

func (*QueryRangeBatchParams) SetHTTPClient added in v0.47.0

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

SetHTTPClient adds the HTTPClient to the query range batch params

func (*QueryRangeBatchParams) SetLocationOrganizationID added in v0.47.0

func (o *QueryRangeBatchParams) SetLocationOrganizationID(locationOrganizationID string)

SetLocationOrganizationID adds the locationOrganizationId to the query range batch params

func (*QueryRangeBatchParams) SetLocationProjectID added in v0.47.0

func (o *QueryRangeBatchParams) SetLocationProjectID(locationProjectID string)

SetLocationProjectID adds the locationProjectId to the query range batch params

func (*QueryRangeBatchParams) SetTimeout added in v0.47.0

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

SetTimeout adds the timeout to the query range batch params

func (*QueryRangeBatchParams) WithBody added in v0.47.0

WithBody adds the body to the query range batch params

func (*QueryRangeBatchParams) WithClusterID added in v0.47.0

func (o *QueryRangeBatchParams) WithClusterID(clusterID string) *QueryRangeBatchParams

WithClusterID adds the clusterID to the query range batch params

func (*QueryRangeBatchParams) WithContext added in v0.47.0

WithContext adds the context to the query range batch params

func (*QueryRangeBatchParams) WithDefaults added in v0.47.0

func (o *QueryRangeBatchParams) WithDefaults() *QueryRangeBatchParams

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

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

func (*QueryRangeBatchParams) WithHTTPClient added in v0.47.0

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

WithHTTPClient adds the HTTPClient to the query range batch params

func (*QueryRangeBatchParams) WithLocationOrganizationID added in v0.47.0

func (o *QueryRangeBatchParams) WithLocationOrganizationID(locationOrganizationID string) *QueryRangeBatchParams

WithLocationOrganizationID adds the locationOrganizationID to the query range batch params

func (*QueryRangeBatchParams) WithLocationProjectID added in v0.47.0

func (o *QueryRangeBatchParams) WithLocationProjectID(locationProjectID string) *QueryRangeBatchParams

WithLocationProjectID adds the locationProjectID to the query range batch params

func (*QueryRangeBatchParams) WithTimeout added in v0.47.0

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

WithTimeout adds the timeout to the query range batch params

func (*QueryRangeBatchParams) WriteToRequest added in v0.47.0

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

WriteToRequest writes these params to a swagger request

type QueryRangeBatchParamsBodyLocation added in v0.47.0

type QueryRangeBatchParamsBodyLocation struct {

	// region is the region that the resource is located in. It is
	// optional if the object being referenced is a global object.
	Region *cloud.HashicorpCloudLocationRegion `json:"region,omitempty"`
}

QueryRangeBatchParamsBodyLocation Location represents a target for an operation in HCP. swagger:model QueryRangeBatchParamsBodyLocation

func (*QueryRangeBatchParamsBodyLocation) ContextValidate added in v0.47.0

func (o *QueryRangeBatchParamsBodyLocation) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this query range batch params body location based on the context it is used

func (*QueryRangeBatchParamsBodyLocation) MarshalBinary added in v0.47.0

func (o *QueryRangeBatchParamsBodyLocation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*QueryRangeBatchParamsBodyLocation) UnmarshalBinary added in v0.47.0

func (o *QueryRangeBatchParamsBodyLocation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*QueryRangeBatchParamsBodyLocation) Validate added in v0.47.0

Validate validates this query range batch params body location

type QueryRangeBatchReader added in v0.47.0

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

QueryRangeBatchReader is a Reader for the QueryRangeBatch structure.

func (*QueryRangeBatchReader) ReadResponse added in v0.47.0

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