service_instances

package
v0.79.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for service instances API

func (*Client) GetServiceInstance

func (a *Client) GetServiceInstance(params *GetServiceInstanceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetServiceInstanceOK, error)

GetServiceInstance get service instance API

func (*Client) ListServiceInstances

func (a *Client) ListServiceInstances(params *ListServiceInstancesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServiceInstancesOK, error)

ListServiceInstances instances a p is

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 {
	GetServiceInstance(params *GetServiceInstanceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetServiceInstanceOK, error)

	ListServiceInstances(params *ListServiceInstancesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServiceInstancesOK, 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 service instances API client.

type GetServiceInstanceDefault

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

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

An unexpected error response.

func NewGetServiceInstanceDefault

func NewGetServiceInstanceDefault(code int) *GetServiceInstanceDefault

NewGetServiceInstanceDefault creates a GetServiceInstanceDefault with default headers values

func (*GetServiceInstanceDefault) Code

func (o *GetServiceInstanceDefault) Code() int

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

func (*GetServiceInstanceDefault) Error

func (o *GetServiceInstanceDefault) Error() string

func (*GetServiceInstanceDefault) GetPayload

func (*GetServiceInstanceDefault) IsClientError

func (o *GetServiceInstanceDefault) IsClientError() bool

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

func (*GetServiceInstanceDefault) IsCode

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

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

func (*GetServiceInstanceDefault) IsRedirect

func (o *GetServiceInstanceDefault) IsRedirect() bool

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

func (*GetServiceInstanceDefault) IsServerError

func (o *GetServiceInstanceDefault) IsServerError() bool

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

func (*GetServiceInstanceDefault) IsSuccess

func (o *GetServiceInstanceDefault) IsSuccess() bool

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

func (*GetServiceInstanceDefault) String

func (o *GetServiceInstanceDefault) String() string

type GetServiceInstanceOK

type GetServiceInstanceOK struct {
	Payload *models.HashicorpCloudConsulCloudManager20231010GetServiceInstanceResponse
}

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

A successful response.

func NewGetServiceInstanceOK

func NewGetServiceInstanceOK() *GetServiceInstanceOK

NewGetServiceInstanceOK creates a GetServiceInstanceOK with default headers values

func (*GetServiceInstanceOK) Code

func (o *GetServiceInstanceOK) Code() int

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

func (*GetServiceInstanceOK) Error

func (o *GetServiceInstanceOK) Error() string

func (*GetServiceInstanceOK) IsClientError

func (o *GetServiceInstanceOK) IsClientError() bool

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

func (*GetServiceInstanceOK) IsCode

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

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

func (*GetServiceInstanceOK) IsRedirect

func (o *GetServiceInstanceOK) IsRedirect() bool

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

func (*GetServiceInstanceOK) IsServerError

func (o *GetServiceInstanceOK) IsServerError() bool

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

func (*GetServiceInstanceOK) IsSuccess

func (o *GetServiceInstanceOK) IsSuccess() bool

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

func (*GetServiceInstanceOK) String

func (o *GetServiceInstanceOK) String() string

type GetServiceInstanceParams

type GetServiceInstanceParams struct {

	/* ClusterResourceName.

	   Cluster resource name will be of the form `consul/project/<project_id>/cluster/<cluster_id>`
	*/
	ClusterResourceName string

	/* InstanceID.

	   Unique identifier for the service instance.
	*/
	InstanceID string

	/* Namespace.

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

	/* Node.

	   Name of the node on which the service instance resides.
	*/
	Node string

	/* Partition.

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

	/* ServiceName.

	   Name of the service.
	*/
	ServiceName string

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

GetServiceInstanceParams contains all the parameters to send to the API endpoint

for the get service instance operation.

Typically these are written to a http.Request.

func NewGetServiceInstanceParams

func NewGetServiceInstanceParams() *GetServiceInstanceParams

NewGetServiceInstanceParams creates a new GetServiceInstanceParams 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 NewGetServiceInstanceParamsWithContext

func NewGetServiceInstanceParamsWithContext(ctx context.Context) *GetServiceInstanceParams

NewGetServiceInstanceParamsWithContext creates a new GetServiceInstanceParams object with the ability to set a context for a request.

func NewGetServiceInstanceParamsWithHTTPClient

func NewGetServiceInstanceParamsWithHTTPClient(client *http.Client) *GetServiceInstanceParams

NewGetServiceInstanceParamsWithHTTPClient creates a new GetServiceInstanceParams object with the ability to set a custom HTTPClient for a request.

func NewGetServiceInstanceParamsWithTimeout

func NewGetServiceInstanceParamsWithTimeout(timeout time.Duration) *GetServiceInstanceParams

NewGetServiceInstanceParamsWithTimeout creates a new GetServiceInstanceParams object with the ability to set a timeout on a request.

func (*GetServiceInstanceParams) SetClusterResourceName

func (o *GetServiceInstanceParams) SetClusterResourceName(clusterResourceName string)

SetClusterResourceName adds the clusterResourceName to the get service instance params

func (*GetServiceInstanceParams) SetContext

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

SetContext adds the context to the get service instance params

func (*GetServiceInstanceParams) SetDefaults

func (o *GetServiceInstanceParams) SetDefaults()

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

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

func (*GetServiceInstanceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get service instance params

func (*GetServiceInstanceParams) SetInstanceID

func (o *GetServiceInstanceParams) SetInstanceID(instanceID string)

SetInstanceID adds the instanceId to the get service instance params

func (*GetServiceInstanceParams) SetNamespace

func (o *GetServiceInstanceParams) SetNamespace(namespace *string)

SetNamespace adds the namespace to the get service instance params

func (*GetServiceInstanceParams) SetNode

func (o *GetServiceInstanceParams) SetNode(node string)

SetNode adds the node to the get service instance params

func (*GetServiceInstanceParams) SetPartition

func (o *GetServiceInstanceParams) SetPartition(partition *string)

SetPartition adds the partition to the get service instance params

func (*GetServiceInstanceParams) SetServiceName

func (o *GetServiceInstanceParams) SetServiceName(serviceName string)

SetServiceName adds the serviceName to the get service instance params

func (*GetServiceInstanceParams) SetTimeout

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

SetTimeout adds the timeout to the get service instance params

func (*GetServiceInstanceParams) WithClusterResourceName

func (o *GetServiceInstanceParams) WithClusterResourceName(clusterResourceName string) *GetServiceInstanceParams

WithClusterResourceName adds the clusterResourceName to the get service instance params

func (*GetServiceInstanceParams) WithContext

WithContext adds the context to the get service instance params

func (*GetServiceInstanceParams) WithDefaults

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

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

func (*GetServiceInstanceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get service instance params

func (*GetServiceInstanceParams) WithInstanceID

func (o *GetServiceInstanceParams) WithInstanceID(instanceID string) *GetServiceInstanceParams

WithInstanceID adds the instanceID to the get service instance params

func (*GetServiceInstanceParams) WithNamespace

func (o *GetServiceInstanceParams) WithNamespace(namespace *string) *GetServiceInstanceParams

WithNamespace adds the namespace to the get service instance params

func (*GetServiceInstanceParams) WithNode

WithNode adds the node to the get service instance params

func (*GetServiceInstanceParams) WithPartition

func (o *GetServiceInstanceParams) WithPartition(partition *string) *GetServiceInstanceParams

WithPartition adds the partition to the get service instance params

func (*GetServiceInstanceParams) WithServiceName

func (o *GetServiceInstanceParams) WithServiceName(serviceName string) *GetServiceInstanceParams

WithServiceName adds the serviceName to the get service instance params

func (*GetServiceInstanceParams) WithTimeout

WithTimeout adds the timeout to the get service instance params

func (*GetServiceInstanceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetServiceInstanceReader

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

GetServiceInstanceReader is a Reader for the GetServiceInstance structure.

func (*GetServiceInstanceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListServiceInstancesDefault

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

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

An unexpected error response.

func NewListServiceInstancesDefault

func NewListServiceInstancesDefault(code int) *ListServiceInstancesDefault

NewListServiceInstancesDefault creates a ListServiceInstancesDefault with default headers values

func (*ListServiceInstancesDefault) Code

func (o *ListServiceInstancesDefault) Code() int

Code gets the status code for the list service instances default response

func (*ListServiceInstancesDefault) Error

func (*ListServiceInstancesDefault) GetPayload

func (*ListServiceInstancesDefault) IsClientError

func (o *ListServiceInstancesDefault) IsClientError() bool

IsClientError returns true when this list service instances default response has a 4xx status code

func (*ListServiceInstancesDefault) IsCode

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

IsCode returns true when this list service instances default response a status code equal to that given

func (*ListServiceInstancesDefault) IsRedirect

func (o *ListServiceInstancesDefault) IsRedirect() bool

IsRedirect returns true when this list service instances default response has a 3xx status code

func (*ListServiceInstancesDefault) IsServerError

func (o *ListServiceInstancesDefault) IsServerError() bool

IsServerError returns true when this list service instances default response has a 5xx status code

func (*ListServiceInstancesDefault) IsSuccess

func (o *ListServiceInstancesDefault) IsSuccess() bool

IsSuccess returns true when this list service instances default response has a 2xx status code

func (*ListServiceInstancesDefault) String

func (o *ListServiceInstancesDefault) String() string

type ListServiceInstancesOK

type ListServiceInstancesOK struct {
	Payload *models.HashicorpCloudGlobalNetworkManager20220215ListServiceInstancesResponse
}

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

A successful response.

func NewListServiceInstancesOK

func NewListServiceInstancesOK() *ListServiceInstancesOK

NewListServiceInstancesOK creates a ListServiceInstancesOK with default headers values

func (*ListServiceInstancesOK) Code

func (o *ListServiceInstancesOK) Code() int

Code gets the status code for the list service instances o k response

func (*ListServiceInstancesOK) Error

func (o *ListServiceInstancesOK) Error() string

func (*ListServiceInstancesOK) IsClientError

func (o *ListServiceInstancesOK) IsClientError() bool

IsClientError returns true when this list service instances o k response has a 4xx status code

func (*ListServiceInstancesOK) IsCode

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

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

func (*ListServiceInstancesOK) IsRedirect

func (o *ListServiceInstancesOK) IsRedirect() bool

IsRedirect returns true when this list service instances o k response has a 3xx status code

func (*ListServiceInstancesOK) IsServerError

func (o *ListServiceInstancesOK) IsServerError() bool

IsServerError returns true when this list service instances o k response has a 5xx status code

func (*ListServiceInstancesOK) IsSuccess

func (o *ListServiceInstancesOK) IsSuccess() bool

IsSuccess returns true when this list service instances o k response has a 2xx status code

func (*ListServiceInstancesOK) String

func (o *ListServiceInstancesOK) String() string

type ListServiceInstancesParams

type ListServiceInstancesParams struct {

	/* ClusterResourceName.

	   Cluster resource name will be of the form `consul/project/<project_id>/cluster/<cluster_id>`
	*/
	ClusterResourceName string

	/* Namespace.

	   Query param filter: `namespace` of the service.
	*/
	Namespace *string

	/* OrderBy.

	     Sorts the services based on a field. Allowed fields: id, health.
	The value needs to be of the format `<Field Name> {asc/desc}` For example: `id`, `id asc`, `health desc`.
	*/
	OrderBy []string

	/* PaginationNextPageToken.

	     Specifies a page token to use to retrieve the next page. Set this parameter to the
	`next_page_token` returned by previous list requests to get the next page of
	results. If set, `previous_page_token` must not be set.
	*/
	PaginationNextPageToken *string

	/* PaginationPageSize.

	     The maximum number of results per page to return. If the number
	of available results is larger than `page_size`, a `next_page_token` is
	returned, which you can use to get the next page of results in subsequent
	requests. A value of zero causes `page_size` to be defaulted.

	     Format: int64
	*/
	PaginationPageSize *int64

	/* PaginationPreviousPageToken.

	     Specifies a page token to use to retrieve the previous page. Set this parameter to
	the `previous_page_token` returned by previous list requests to get the
	previous page of results. If set, `next_page_token` must not be set.
	*/
	PaginationPreviousPageToken *string

	/* Partition.

	   Query param filter: `partition` of the service.
	*/
	Partition *string

	/* Query.

	   Search query to filter by. Searches across `id` and `tags`.
	*/
	Query *string

	/* ServiceName.

	   Unique identifier for the service instance.
	*/
	ServiceName string

	/* Status.

	   Query param filter: `status` of the service. This can be combination of `passing`, `warning`, `critical`, `none`.
	*/
	Status []string

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

ListServiceInstancesParams contains all the parameters to send to the API endpoint

for the list service instances operation.

Typically these are written to a http.Request.

func NewListServiceInstancesParams

func NewListServiceInstancesParams() *ListServiceInstancesParams

NewListServiceInstancesParams creates a new ListServiceInstancesParams 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 NewListServiceInstancesParamsWithContext

func NewListServiceInstancesParamsWithContext(ctx context.Context) *ListServiceInstancesParams

NewListServiceInstancesParamsWithContext creates a new ListServiceInstancesParams object with the ability to set a context for a request.

func NewListServiceInstancesParamsWithHTTPClient

func NewListServiceInstancesParamsWithHTTPClient(client *http.Client) *ListServiceInstancesParams

NewListServiceInstancesParamsWithHTTPClient creates a new ListServiceInstancesParams object with the ability to set a custom HTTPClient for a request.

func NewListServiceInstancesParamsWithTimeout

func NewListServiceInstancesParamsWithTimeout(timeout time.Duration) *ListServiceInstancesParams

NewListServiceInstancesParamsWithTimeout creates a new ListServiceInstancesParams object with the ability to set a timeout on a request.

func (*ListServiceInstancesParams) SetClusterResourceName

func (o *ListServiceInstancesParams) SetClusterResourceName(clusterResourceName string)

SetClusterResourceName adds the clusterResourceName to the list service instances params

func (*ListServiceInstancesParams) SetContext

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

SetContext adds the context to the list service instances params

func (*ListServiceInstancesParams) SetDefaults

func (o *ListServiceInstancesParams) SetDefaults()

SetDefaults hydrates default values in the list service instances params (not the query body).

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

func (*ListServiceInstancesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list service instances params

func (*ListServiceInstancesParams) SetNamespace

func (o *ListServiceInstancesParams) SetNamespace(namespace *string)

SetNamespace adds the namespace to the list service instances params

func (*ListServiceInstancesParams) SetOrderBy

func (o *ListServiceInstancesParams) SetOrderBy(orderBy []string)

SetOrderBy adds the orderBy to the list service instances params

func (*ListServiceInstancesParams) SetPaginationNextPageToken

func (o *ListServiceInstancesParams) SetPaginationNextPageToken(paginationNextPageToken *string)

SetPaginationNextPageToken adds the paginationNextPageToken to the list service instances params

func (*ListServiceInstancesParams) SetPaginationPageSize

func (o *ListServiceInstancesParams) SetPaginationPageSize(paginationPageSize *int64)

SetPaginationPageSize adds the paginationPageSize to the list service instances params

func (*ListServiceInstancesParams) SetPaginationPreviousPageToken

func (o *ListServiceInstancesParams) SetPaginationPreviousPageToken(paginationPreviousPageToken *string)

SetPaginationPreviousPageToken adds the paginationPreviousPageToken to the list service instances params

func (*ListServiceInstancesParams) SetPartition

func (o *ListServiceInstancesParams) SetPartition(partition *string)

SetPartition adds the partition to the list service instances params

func (*ListServiceInstancesParams) SetQuery

func (o *ListServiceInstancesParams) SetQuery(query *string)

SetQuery adds the query to the list service instances params

func (*ListServiceInstancesParams) SetServiceName

func (o *ListServiceInstancesParams) SetServiceName(serviceName string)

SetServiceName adds the serviceName to the list service instances params

func (*ListServiceInstancesParams) SetStatus

func (o *ListServiceInstancesParams) SetStatus(status []string)

SetStatus adds the status to the list service instances params

func (*ListServiceInstancesParams) SetTimeout

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

SetTimeout adds the timeout to the list service instances params

func (*ListServiceInstancesParams) WithClusterResourceName

func (o *ListServiceInstancesParams) WithClusterResourceName(clusterResourceName string) *ListServiceInstancesParams

WithClusterResourceName adds the clusterResourceName to the list service instances params

func (*ListServiceInstancesParams) WithContext

WithContext adds the context to the list service instances params

func (*ListServiceInstancesParams) WithDefaults

WithDefaults hydrates default values in the list service instances params (not the query body).

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

func (*ListServiceInstancesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list service instances params

func (*ListServiceInstancesParams) WithNamespace

func (o *ListServiceInstancesParams) WithNamespace(namespace *string) *ListServiceInstancesParams

WithNamespace adds the namespace to the list service instances params

func (*ListServiceInstancesParams) WithOrderBy

WithOrderBy adds the orderBy to the list service instances params

func (*ListServiceInstancesParams) WithPaginationNextPageToken

func (o *ListServiceInstancesParams) WithPaginationNextPageToken(paginationNextPageToken *string) *ListServiceInstancesParams

WithPaginationNextPageToken adds the paginationNextPageToken to the list service instances params

func (*ListServiceInstancesParams) WithPaginationPageSize

func (o *ListServiceInstancesParams) WithPaginationPageSize(paginationPageSize *int64) *ListServiceInstancesParams

WithPaginationPageSize adds the paginationPageSize to the list service instances params

func (*ListServiceInstancesParams) WithPaginationPreviousPageToken

func (o *ListServiceInstancesParams) WithPaginationPreviousPageToken(paginationPreviousPageToken *string) *ListServiceInstancesParams

WithPaginationPreviousPageToken adds the paginationPreviousPageToken to the list service instances params

func (*ListServiceInstancesParams) WithPartition

func (o *ListServiceInstancesParams) WithPartition(partition *string) *ListServiceInstancesParams

WithPartition adds the partition to the list service instances params

func (*ListServiceInstancesParams) WithQuery

WithQuery adds the query to the list service instances params

func (*ListServiceInstancesParams) WithServiceName

func (o *ListServiceInstancesParams) WithServiceName(serviceName string) *ListServiceInstancesParams

WithServiceName adds the serviceName to the list service instances params

func (*ListServiceInstancesParams) WithStatus

WithStatus adds the status to the list service instances params

func (*ListServiceInstancesParams) WithTimeout

WithTimeout adds the timeout to the list service instances params

func (*ListServiceInstancesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListServiceInstancesReader

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

ListServiceInstancesReader is a Reader for the ListServiceInstances structure.

func (*ListServiceInstancesReader) ReadResponse

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