services

package
v0.121.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 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 services API

func (*Client) GetService

func (a *Client) GetService(params *GetServiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetServiceOK, error)

GetService get service API

func (*Client) ListClusterServices

func (a *Client) ListClusterServices(params *ListClusterServicesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListClusterServicesOK, error)

ListClusterServices list cluster services API

func (*Client) ListServices

func (a *Client) ListServices(params *ListServicesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServicesOK, error)

ListServices services 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 {
	GetService(params *GetServiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetServiceOK, error)

	ListClusterServices(params *ListClusterServicesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListClusterServicesOK, error)

	ListServices(params *ListServicesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServicesOK, 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 services API client.

type GetServiceDefault

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

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

An unexpected error response.

func NewGetServiceDefault

func NewGetServiceDefault(code int) *GetServiceDefault

NewGetServiceDefault creates a GetServiceDefault with default headers values

func (*GetServiceDefault) Code

func (o *GetServiceDefault) Code() int

Code gets the status code for the get service default response

func (*GetServiceDefault) Error

func (o *GetServiceDefault) Error() string

func (*GetServiceDefault) GetPayload

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

func (*GetServiceDefault) IsClientError

func (o *GetServiceDefault) IsClientError() bool

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

func (*GetServiceDefault) IsCode

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

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

func (*GetServiceDefault) IsRedirect

func (o *GetServiceDefault) IsRedirect() bool

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

func (*GetServiceDefault) IsServerError

func (o *GetServiceDefault) IsServerError() bool

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

func (*GetServiceDefault) IsSuccess

func (o *GetServiceDefault) IsSuccess() bool

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

func (*GetServiceDefault) String

func (o *GetServiceDefault) String() string

type GetServiceOK

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

A successful response.

func NewGetServiceOK

func NewGetServiceOK() *GetServiceOK

NewGetServiceOK creates a GetServiceOK with default headers values

func (*GetServiceOK) Code

func (o *GetServiceOK) Code() int

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

func (*GetServiceOK) Error

func (o *GetServiceOK) Error() string

func (*GetServiceOK) IsClientError

func (o *GetServiceOK) IsClientError() bool

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

func (*GetServiceOK) IsCode

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

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

func (*GetServiceOK) IsRedirect

func (o *GetServiceOK) IsRedirect() bool

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

func (*GetServiceOK) IsServerError

func (o *GetServiceOK) IsServerError() bool

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

func (*GetServiceOK) IsSuccess

func (o *GetServiceOK) IsSuccess() bool

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

func (*GetServiceOK) String

func (o *GetServiceOK) String() string

type GetServiceParams

type GetServiceParams 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

	/* Partition.

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

	/* ServiceName.

	   The `name` of the service.
	*/
	ServiceName string

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

GetServiceParams contains all the parameters to send to the API endpoint

for the get service operation.

Typically these are written to a http.Request.

func NewGetServiceParams

func NewGetServiceParams() *GetServiceParams

NewGetServiceParams creates a new GetServiceParams 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 NewGetServiceParamsWithContext

func NewGetServiceParamsWithContext(ctx context.Context) *GetServiceParams

NewGetServiceParamsWithContext creates a new GetServiceParams object with the ability to set a context for a request.

func NewGetServiceParamsWithHTTPClient

func NewGetServiceParamsWithHTTPClient(client *http.Client) *GetServiceParams

NewGetServiceParamsWithHTTPClient creates a new GetServiceParams object with the ability to set a custom HTTPClient for a request.

func NewGetServiceParamsWithTimeout

func NewGetServiceParamsWithTimeout(timeout time.Duration) *GetServiceParams

NewGetServiceParamsWithTimeout creates a new GetServiceParams object with the ability to set a timeout on a request.

func (*GetServiceParams) SetClusterResourceName

func (o *GetServiceParams) SetClusterResourceName(clusterResourceName string)

SetClusterResourceName adds the clusterResourceName to the get service params

func (*GetServiceParams) SetContext

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

SetContext adds the context to the get service params

func (*GetServiceParams) SetDefaults

func (o *GetServiceParams) SetDefaults()

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

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

func (*GetServiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get service params

func (*GetServiceParams) SetNamespace

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

SetNamespace adds the namespace to the get service params

func (*GetServiceParams) SetPartition

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

SetPartition adds the partition to the get service params

func (*GetServiceParams) SetServiceName

func (o *GetServiceParams) SetServiceName(serviceName string)

SetServiceName adds the serviceName to the get service params

func (*GetServiceParams) SetTimeout

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

SetTimeout adds the timeout to the get service params

func (*GetServiceParams) WithClusterResourceName

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

WithClusterResourceName adds the clusterResourceName to the get service params

func (*GetServiceParams) WithContext

func (o *GetServiceParams) WithContext(ctx context.Context) *GetServiceParams

WithContext adds the context to the get service params

func (*GetServiceParams) WithDefaults

func (o *GetServiceParams) WithDefaults() *GetServiceParams

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

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

func (*GetServiceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get service params

func (*GetServiceParams) WithNamespace

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

WithNamespace adds the namespace to the get service params

func (*GetServiceParams) WithPartition

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

WithPartition adds the partition to the get service params

func (*GetServiceParams) WithServiceName

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

WithServiceName adds the serviceName to the get service params

func (*GetServiceParams) WithTimeout

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

WithTimeout adds the timeout to the get service params

func (*GetServiceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetServiceReader

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

GetServiceReader is a Reader for the GetService structure.

func (*GetServiceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListClusterServicesDefault

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

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

An unexpected error response.

func NewListClusterServicesDefault

func NewListClusterServicesDefault(code int) *ListClusterServicesDefault

NewListClusterServicesDefault creates a ListClusterServicesDefault with default headers values

func (*ListClusterServicesDefault) Code

func (o *ListClusterServicesDefault) Code() int

Code gets the status code for the list cluster services default response

func (*ListClusterServicesDefault) Error

func (*ListClusterServicesDefault) GetPayload

func (*ListClusterServicesDefault) IsClientError

func (o *ListClusterServicesDefault) IsClientError() bool

IsClientError returns true when this list cluster services default response has a 4xx status code

func (*ListClusterServicesDefault) IsCode

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

IsCode returns true when this list cluster services default response a status code equal to that given

func (*ListClusterServicesDefault) IsRedirect

func (o *ListClusterServicesDefault) IsRedirect() bool

IsRedirect returns true when this list cluster services default response has a 3xx status code

func (*ListClusterServicesDefault) IsServerError

func (o *ListClusterServicesDefault) IsServerError() bool

IsServerError returns true when this list cluster services default response has a 5xx status code

func (*ListClusterServicesDefault) IsSuccess

func (o *ListClusterServicesDefault) IsSuccess() bool

IsSuccess returns true when this list cluster services default response has a 2xx status code

func (*ListClusterServicesDefault) String

func (o *ListClusterServicesDefault) String() string

type ListClusterServicesOK

type ListClusterServicesOK struct {
	Payload *models.HashicorpCloudGlobalNetworkManager20220215ListClusterServicesResponse
}

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

A successful response.

func NewListClusterServicesOK

func NewListClusterServicesOK() *ListClusterServicesOK

NewListClusterServicesOK creates a ListClusterServicesOK with default headers values

func (*ListClusterServicesOK) Code

func (o *ListClusterServicesOK) Code() int

Code gets the status code for the list cluster services o k response

func (*ListClusterServicesOK) Error

func (o *ListClusterServicesOK) Error() string

func (*ListClusterServicesOK) IsClientError

func (o *ListClusterServicesOK) IsClientError() bool

IsClientError returns true when this list cluster services o k response has a 4xx status code

func (*ListClusterServicesOK) IsCode

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

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

func (*ListClusterServicesOK) IsRedirect

func (o *ListClusterServicesOK) IsRedirect() bool

IsRedirect returns true when this list cluster services o k response has a 3xx status code

func (*ListClusterServicesOK) IsServerError

func (o *ListClusterServicesOK) IsServerError() bool

IsServerError returns true when this list cluster services o k response has a 5xx status code

func (*ListClusterServicesOK) IsSuccess

func (o *ListClusterServicesOK) IsSuccess() bool

IsSuccess returns true when this list cluster services o k response has a 2xx status code

func (*ListClusterServicesOK) String

func (o *ListClusterServicesOK) String() string

type ListClusterServicesParams

type ListClusterServicesParams struct {

	/* ClusterResourceName.

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

	/* ExternalSources.

	   Query param filter: `external_sources`. Returns a service when service's external sources overlap with the external sources specified.
	*/
	ExternalSources []string

	/* InMesh.

	   Query param filter: whether the service is in the service mesh or not. Possible values: `true` or `false`.
	*/
	InMesh *bool

	/* Kind.

	   Query param filter: `kind` of the service. This can be combination of `typical`, `connect-proxy`, `destination`, `api-gateway`, `ingress-gateway`, `terminating-gateway`, `mesh-gateway`.
	*/
	Kind []string

	/* MtlsMode.

	   Query param filter: mTLS mode of the service. Possible value: `permissive`, `strict`.
	*/
	MtlsMode []string

	/* Namespace.

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

	/* OrderBy.

	   Sorts the services based on a field. Allowed fields: `name`, `health`. The value needs to be of the format <{name/health} {asc/desc}> For example: `name 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 service `name`, `cluster_id`, `partition`, `namespace`, `sameness_group`, `tags`
	*/
	Query *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
}

ListClusterServicesParams contains all the parameters to send to the API endpoint

for the list cluster services operation.

Typically these are written to a http.Request.

func NewListClusterServicesParams

func NewListClusterServicesParams() *ListClusterServicesParams

NewListClusterServicesParams creates a new ListClusterServicesParams 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 NewListClusterServicesParamsWithContext

func NewListClusterServicesParamsWithContext(ctx context.Context) *ListClusterServicesParams

NewListClusterServicesParamsWithContext creates a new ListClusterServicesParams object with the ability to set a context for a request.

func NewListClusterServicesParamsWithHTTPClient

func NewListClusterServicesParamsWithHTTPClient(client *http.Client) *ListClusterServicesParams

NewListClusterServicesParamsWithHTTPClient creates a new ListClusterServicesParams object with the ability to set a custom HTTPClient for a request.

func NewListClusterServicesParamsWithTimeout

func NewListClusterServicesParamsWithTimeout(timeout time.Duration) *ListClusterServicesParams

NewListClusterServicesParamsWithTimeout creates a new ListClusterServicesParams object with the ability to set a timeout on a request.

func (*ListClusterServicesParams) SetClusterResourceName

func (o *ListClusterServicesParams) SetClusterResourceName(clusterResourceName string)

SetClusterResourceName adds the clusterResourceName to the list cluster services params

func (*ListClusterServicesParams) SetContext

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

SetContext adds the context to the list cluster services params

func (*ListClusterServicesParams) SetDefaults

func (o *ListClusterServicesParams) SetDefaults()

SetDefaults hydrates default values in the list cluster services params (not the query body).

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

func (*ListClusterServicesParams) SetExternalSources

func (o *ListClusterServicesParams) SetExternalSources(externalSources []string)

SetExternalSources adds the externalSources to the list cluster services params

func (*ListClusterServicesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list cluster services params

func (*ListClusterServicesParams) SetInMesh

func (o *ListClusterServicesParams) SetInMesh(inMesh *bool)

SetInMesh adds the inMesh to the list cluster services params

func (*ListClusterServicesParams) SetKind

func (o *ListClusterServicesParams) SetKind(kind []string)

SetKind adds the kind to the list cluster services params

func (*ListClusterServicesParams) SetMtlsMode

func (o *ListClusterServicesParams) SetMtlsMode(mtlsMode []string)

SetMtlsMode adds the mtlsMode to the list cluster services params

func (*ListClusterServicesParams) SetNamespace

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

SetNamespace adds the namespace to the list cluster services params

func (*ListClusterServicesParams) SetOrderBy

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

SetOrderBy adds the orderBy to the list cluster services params

func (*ListClusterServicesParams) SetPaginationNextPageToken

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

SetPaginationNextPageToken adds the paginationNextPageToken to the list cluster services params

func (*ListClusterServicesParams) SetPaginationPageSize

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

SetPaginationPageSize adds the paginationPageSize to the list cluster services params

func (*ListClusterServicesParams) SetPaginationPreviousPageToken

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

SetPaginationPreviousPageToken adds the paginationPreviousPageToken to the list cluster services params

func (*ListClusterServicesParams) SetPartition

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

SetPartition adds the partition to the list cluster services params

func (*ListClusterServicesParams) SetQuery

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

SetQuery adds the query to the list cluster services params

func (*ListClusterServicesParams) SetStatus

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

SetStatus adds the status to the list cluster services params

func (*ListClusterServicesParams) SetTimeout

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

SetTimeout adds the timeout to the list cluster services params

func (*ListClusterServicesParams) WithClusterResourceName

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

WithClusterResourceName adds the clusterResourceName to the list cluster services params

func (*ListClusterServicesParams) WithContext

WithContext adds the context to the list cluster services params

func (*ListClusterServicesParams) WithDefaults

WithDefaults hydrates default values in the list cluster services params (not the query body).

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

func (*ListClusterServicesParams) WithExternalSources

func (o *ListClusterServicesParams) WithExternalSources(externalSources []string) *ListClusterServicesParams

WithExternalSources adds the externalSources to the list cluster services params

func (*ListClusterServicesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list cluster services params

func (*ListClusterServicesParams) WithInMesh

WithInMesh adds the inMesh to the list cluster services params

func (*ListClusterServicesParams) WithKind

WithKind adds the kind to the list cluster services params

func (*ListClusterServicesParams) WithMtlsMode

func (o *ListClusterServicesParams) WithMtlsMode(mtlsMode []string) *ListClusterServicesParams

WithMtlsMode adds the mtlsMode to the list cluster services params

func (*ListClusterServicesParams) WithNamespace

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

WithNamespace adds the namespace to the list cluster services params

func (*ListClusterServicesParams) WithOrderBy

func (o *ListClusterServicesParams) WithOrderBy(orderBy []string) *ListClusterServicesParams

WithOrderBy adds the orderBy to the list cluster services params

func (*ListClusterServicesParams) WithPaginationNextPageToken

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

WithPaginationNextPageToken adds the paginationNextPageToken to the list cluster services params

func (*ListClusterServicesParams) WithPaginationPageSize

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

WithPaginationPageSize adds the paginationPageSize to the list cluster services params

func (*ListClusterServicesParams) WithPaginationPreviousPageToken

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

WithPaginationPreviousPageToken adds the paginationPreviousPageToken to the list cluster services params

func (*ListClusterServicesParams) WithPartition

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

WithPartition adds the partition to the list cluster services params

func (*ListClusterServicesParams) WithQuery

WithQuery adds the query to the list cluster services params

func (*ListClusterServicesParams) WithStatus

WithStatus adds the status to the list cluster services params

func (*ListClusterServicesParams) WithTimeout

WithTimeout adds the timeout to the list cluster services params

func (*ListClusterServicesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListClusterServicesReader

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

ListClusterServicesReader is a Reader for the ListClusterServices structure.

func (*ListClusterServicesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListServicesDefault

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

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

An unexpected error response.

func NewListServicesDefault

func NewListServicesDefault(code int) *ListServicesDefault

NewListServicesDefault creates a ListServicesDefault with default headers values

func (*ListServicesDefault) Code

func (o *ListServicesDefault) Code() int

Code gets the status code for the list services default response

func (*ListServicesDefault) Error

func (o *ListServicesDefault) Error() string

func (*ListServicesDefault) GetPayload

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

func (*ListServicesDefault) IsClientError

func (o *ListServicesDefault) IsClientError() bool

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

func (*ListServicesDefault) IsCode

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

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

func (*ListServicesDefault) IsRedirect

func (o *ListServicesDefault) IsRedirect() bool

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

func (*ListServicesDefault) IsServerError

func (o *ListServicesDefault) IsServerError() bool

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

func (*ListServicesDefault) IsSuccess

func (o *ListServicesDefault) IsSuccess() bool

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

func (*ListServicesDefault) String

func (o *ListServicesDefault) String() string

type ListServicesOK

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

A successful response.

func NewListServicesOK

func NewListServicesOK() *ListServicesOK

NewListServicesOK creates a ListServicesOK with default headers values

func (*ListServicesOK) Code

func (o *ListServicesOK) Code() int

Code gets the status code for the list services o k response

func (*ListServicesOK) Error

func (o *ListServicesOK) Error() string

func (*ListServicesOK) IsClientError

func (o *ListServicesOK) IsClientError() bool

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

func (*ListServicesOK) IsCode

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

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

func (*ListServicesOK) IsRedirect

func (o *ListServicesOK) IsRedirect() bool

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

func (*ListServicesOK) IsServerError

func (o *ListServicesOK) IsServerError() bool

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

func (*ListServicesOK) IsSuccess

func (o *ListServicesOK) IsSuccess() bool

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

func (*ListServicesOK) String

func (o *ListServicesOK) String() string

type ListServicesParams

type ListServicesParams struct {

	/* ClusterIds.

	   Query param filter: `cluster_id` of the service.
	*/
	ClusterIds []string

	/* ExternalSources.

	   Query param filter: `external_sources`. Returns a service when service's external sources overlap with the external sources specified.
	*/
	ExternalSources []string

	/* InMesh.

	   Query param filter: whether the service is in the service mesh or not. Possible values: `true` or `false`.
	*/
	InMesh *bool

	/* Kind.

	   Query param filter: `kind` of the service. This can be combination of `typical`, `connect-proxy`, `destination`, `api_gateway`, `ingress_gateway`, `terminating_gateway`, `mesh_gateway`.
	*/
	Kind []string

	/* MtlsMode.

	   Query param filter: mTLS mode of the service. Possible values: `permissive`, `strict`.
	*/
	MtlsMode []string

	/* Namespace.

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

	/* OrderBy.

	   Sorts the services based on a field. Allowed fields: `name`, `health`. The value needs to be of the format `<Field Name> {asc/desc}` For example: `name`, `name asc`, `name 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

	/* ProjectResourceName.

	   Parent Resource name will be of the form `project/<project_id>`
	*/
	ProjectResourceName string

	/* Query.

	   Search query to filter by. Searches across service `name`, `cluster_id`, `partition`, `namespace`, `sameness_group`, `tags`.
	*/
	Query *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
}

ListServicesParams contains all the parameters to send to the API endpoint

for the list services operation.

Typically these are written to a http.Request.

func NewListServicesParams

func NewListServicesParams() *ListServicesParams

NewListServicesParams creates a new ListServicesParams 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 NewListServicesParamsWithContext

func NewListServicesParamsWithContext(ctx context.Context) *ListServicesParams

NewListServicesParamsWithContext creates a new ListServicesParams object with the ability to set a context for a request.

func NewListServicesParamsWithHTTPClient

func NewListServicesParamsWithHTTPClient(client *http.Client) *ListServicesParams

NewListServicesParamsWithHTTPClient creates a new ListServicesParams object with the ability to set a custom HTTPClient for a request.

func NewListServicesParamsWithTimeout

func NewListServicesParamsWithTimeout(timeout time.Duration) *ListServicesParams

NewListServicesParamsWithTimeout creates a new ListServicesParams object with the ability to set a timeout on a request.

func (*ListServicesParams) SetClusterIds

func (o *ListServicesParams) SetClusterIds(clusterIds []string)

SetClusterIds adds the clusterIds to the list services params

func (*ListServicesParams) SetContext

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

SetContext adds the context to the list services params

func (*ListServicesParams) SetDefaults

func (o *ListServicesParams) SetDefaults()

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

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

func (*ListServicesParams) SetExternalSources

func (o *ListServicesParams) SetExternalSources(externalSources []string)

SetExternalSources adds the externalSources to the list services params

func (*ListServicesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list services params

func (*ListServicesParams) SetInMesh

func (o *ListServicesParams) SetInMesh(inMesh *bool)

SetInMesh adds the inMesh to the list services params

func (*ListServicesParams) SetKind

func (o *ListServicesParams) SetKind(kind []string)

SetKind adds the kind to the list services params

func (*ListServicesParams) SetMtlsMode

func (o *ListServicesParams) SetMtlsMode(mtlsMode []string)

SetMtlsMode adds the mtlsMode to the list services params

func (*ListServicesParams) SetNamespace

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

SetNamespace adds the namespace to the list services params

func (*ListServicesParams) SetOrderBy

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

SetOrderBy adds the orderBy to the list services params

func (*ListServicesParams) SetPaginationNextPageToken

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

SetPaginationNextPageToken adds the paginationNextPageToken to the list services params

func (*ListServicesParams) SetPaginationPageSize

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

SetPaginationPageSize adds the paginationPageSize to the list services params

func (*ListServicesParams) SetPaginationPreviousPageToken

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

SetPaginationPreviousPageToken adds the paginationPreviousPageToken to the list services params

func (*ListServicesParams) SetPartition

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

SetPartition adds the partition to the list services params

func (*ListServicesParams) SetProjectResourceName

func (o *ListServicesParams) SetProjectResourceName(projectResourceName string)

SetProjectResourceName adds the projectResourceName to the list services params

func (*ListServicesParams) SetQuery

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

SetQuery adds the query to the list services params

func (*ListServicesParams) SetStatus

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

SetStatus adds the status to the list services params

func (*ListServicesParams) SetTimeout

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

SetTimeout adds the timeout to the list services params

func (*ListServicesParams) WithClusterIds

func (o *ListServicesParams) WithClusterIds(clusterIds []string) *ListServicesParams

WithClusterIds adds the clusterIds to the list services params

func (*ListServicesParams) WithContext

WithContext adds the context to the list services params

func (*ListServicesParams) WithDefaults

func (o *ListServicesParams) WithDefaults() *ListServicesParams

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

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

func (*ListServicesParams) WithExternalSources

func (o *ListServicesParams) WithExternalSources(externalSources []string) *ListServicesParams

WithExternalSources adds the externalSources to the list services params

func (*ListServicesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list services params

func (*ListServicesParams) WithInMesh

func (o *ListServicesParams) WithInMesh(inMesh *bool) *ListServicesParams

WithInMesh adds the inMesh to the list services params

func (*ListServicesParams) WithKind

func (o *ListServicesParams) WithKind(kind []string) *ListServicesParams

WithKind adds the kind to the list services params

func (*ListServicesParams) WithMtlsMode

func (o *ListServicesParams) WithMtlsMode(mtlsMode []string) *ListServicesParams

WithMtlsMode adds the mtlsMode to the list services params

func (*ListServicesParams) WithNamespace

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

WithNamespace adds the namespace to the list services params

func (*ListServicesParams) WithOrderBy

func (o *ListServicesParams) WithOrderBy(orderBy []string) *ListServicesParams

WithOrderBy adds the orderBy to the list services params

func (*ListServicesParams) WithPaginationNextPageToken

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

WithPaginationNextPageToken adds the paginationNextPageToken to the list services params

func (*ListServicesParams) WithPaginationPageSize

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

WithPaginationPageSize adds the paginationPageSize to the list services params

func (*ListServicesParams) WithPaginationPreviousPageToken

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

WithPaginationPreviousPageToken adds the paginationPreviousPageToken to the list services params

func (*ListServicesParams) WithPartition

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

WithPartition adds the partition to the list services params

func (*ListServicesParams) WithProjectResourceName

func (o *ListServicesParams) WithProjectResourceName(projectResourceName string) *ListServicesParams

WithProjectResourceName adds the projectResourceName to the list services params

func (*ListServicesParams) WithQuery

func (o *ListServicesParams) WithQuery(query *string) *ListServicesParams

WithQuery adds the query to the list services params

func (*ListServicesParams) WithStatus

func (o *ListServicesParams) WithStatus(status []string) *ListServicesParams

WithStatus adds the status to the list services params

func (*ListServicesParams) WithTimeout

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

WithTimeout adds the timeout to the list services params

func (*ListServicesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListServicesReader

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

ListServicesReader is a Reader for the ListServices structure.

func (*ListServicesReader) ReadResponse

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