utility

package
v0.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckReadinessOK

type CheckReadinessOK struct {
	Payload *legalclientmodels.LegalReadinessStatusResponse
}

CheckReadinessOK handles this case with default header values.

successful operation

func NewCheckReadinessOK

func NewCheckReadinessOK() *CheckReadinessOK

NewCheckReadinessOK creates a CheckReadinessOK with default headers values

func (*CheckReadinessOK) Error

func (o *CheckReadinessOK) Error() string

func (*CheckReadinessOK) GetPayload

func (*CheckReadinessOK) ToJSONString

func (o *CheckReadinessOK) ToJSONString() string

type CheckReadinessParams

type CheckReadinessParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

CheckReadinessParams contains all the parameters to send to the API endpoint for the check readiness operation typically these are written to a http.Request

func NewCheckReadinessParams

func NewCheckReadinessParams() *CheckReadinessParams

NewCheckReadinessParams creates a new CheckReadinessParams object with the default values initialized.

func NewCheckReadinessParamsWithContext

func NewCheckReadinessParamsWithContext(ctx context.Context) *CheckReadinessParams

NewCheckReadinessParamsWithContext creates a new CheckReadinessParams object with the default values initialized, and the ability to set a context for a request

func NewCheckReadinessParamsWithHTTPClient

func NewCheckReadinessParamsWithHTTPClient(client *http.Client) *CheckReadinessParams

NewCheckReadinessParamsWithHTTPClient creates a new CheckReadinessParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCheckReadinessParamsWithTimeout

func NewCheckReadinessParamsWithTimeout(timeout time.Duration) *CheckReadinessParams

NewCheckReadinessParamsWithTimeout creates a new CheckReadinessParams object with the default values initialized, and the ability to set a timeout on a request

func (*CheckReadinessParams) SetAuthInfoWriter

func (o *CheckReadinessParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the check readiness params

func (*CheckReadinessParams) SetContext

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

SetContext adds the context to the check readiness params

func (*CheckReadinessParams) SetFlightId

func (o *CheckReadinessParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*CheckReadinessParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the check readiness params

func (*CheckReadinessParams) SetHTTPClientTransport

func (o *CheckReadinessParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the check readiness params

func (*CheckReadinessParams) SetTimeout

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

SetTimeout adds the timeout to the check readiness params

func (*CheckReadinessParams) WithContext

WithContext adds the context to the check readiness params

func (*CheckReadinessParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the check readiness params

func (*CheckReadinessParams) WithTimeout

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

WithTimeout adds the timeout to the check readiness params

func (*CheckReadinessParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CheckReadinessReader

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

CheckReadinessReader is a Reader for the CheckReadiness structure.

func (*CheckReadinessReader) ReadResponse

func (o *CheckReadinessReader) 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 utility API

func (*Client) CheckReadiness deprecated

func (a *Client) CheckReadiness(params *CheckReadinessParams, authInfo runtime.ClientAuthInfoWriter) (*CheckReadinessOK, error)

Deprecated: 2022-08-10 - Use CheckReadinessShort instead.

CheckReadiness check legal data readiness Readiness status defined as at least one legal basePolicy is present and having active basePolicy. Other detail info:

  • Required permission : resource="NAMESPACE:{namespace}:LEGAL", action=2 (READ)

func (*Client) CheckReadinessShort

func (a *Client) CheckReadinessShort(params *CheckReadinessParams, authInfo runtime.ClientAuthInfoWriter) (*CheckReadinessOK, error)

CheckReadinessShort check legal data readiness Readiness status defined as at least one legal basePolicy is present and having active basePolicy. Other detail info:

  • Required permission : resource="NAMESPACE:{namespace}:LEGAL", action=2 (READ)

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	CheckReadiness(params *CheckReadinessParams, authInfo runtime.ClientAuthInfoWriter) (*CheckReadinessOK, error)
	CheckReadinessShort(params *CheckReadinessParams, authInfo runtime.ClientAuthInfoWriter) (*CheckReadinessOK, 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 utility API client.

Jump to

Keyboard shortcuts

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