replication_plan

package
v2.20.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: ISC Imports: 10 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 replication plan API

func (*Client) GetReplicationPlans

func (a *Client) GetReplicationPlans(params *GetReplicationPlansParams, opts ...ClientOption) (*GetReplicationPlansOK, error)

GetReplicationPlans get replication plans API

func (*Client) GetReplicationPlansConnection

func (a *Client) GetReplicationPlansConnection(params *GetReplicationPlansConnectionParams, opts ...ClientOption) (*GetReplicationPlansConnectionOK, error)

GetReplicationPlansConnection get replication plans connection API

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 {
	GetReplicationPlans(params *GetReplicationPlansParams, opts ...ClientOption) (*GetReplicationPlansOK, error)

	GetReplicationPlansConnection(params *GetReplicationPlansConnectionParams, opts ...ClientOption) (*GetReplicationPlansConnectionOK, 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 replication plan API client.

type GetReplicationPlansBadRequest

type GetReplicationPlansBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetReplicationPlansBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetReplicationPlansBadRequest

func NewGetReplicationPlansBadRequest() *GetReplicationPlansBadRequest

NewGetReplicationPlansBadRequest creates a GetReplicationPlansBadRequest with default headers values

func (*GetReplicationPlansBadRequest) Error

func (*GetReplicationPlansBadRequest) GetPayload

type GetReplicationPlansConnectionBadRequest

type GetReplicationPlansConnectionBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetReplicationPlansConnectionBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetReplicationPlansConnectionBadRequest

func NewGetReplicationPlansConnectionBadRequest() *GetReplicationPlansConnectionBadRequest

NewGetReplicationPlansConnectionBadRequest creates a GetReplicationPlansConnectionBadRequest with default headers values

func (*GetReplicationPlansConnectionBadRequest) Error

func (*GetReplicationPlansConnectionBadRequest) GetPayload

type GetReplicationPlansConnectionInternalServerError

type GetReplicationPlansConnectionInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetReplicationPlansConnectionInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetReplicationPlansConnectionInternalServerError

func NewGetReplicationPlansConnectionInternalServerError() *GetReplicationPlansConnectionInternalServerError

NewGetReplicationPlansConnectionInternalServerError creates a GetReplicationPlansConnectionInternalServerError with default headers values

func (*GetReplicationPlansConnectionInternalServerError) Error

func (*GetReplicationPlansConnectionInternalServerError) GetPayload

type GetReplicationPlansConnectionNotFound

type GetReplicationPlansConnectionNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetReplicationPlansConnectionNotFound describes a response with status code 404, with default header values.

Not found

func NewGetReplicationPlansConnectionNotFound

func NewGetReplicationPlansConnectionNotFound() *GetReplicationPlansConnectionNotFound

NewGetReplicationPlansConnectionNotFound creates a GetReplicationPlansConnectionNotFound with default headers values

func (*GetReplicationPlansConnectionNotFound) Error

func (*GetReplicationPlansConnectionNotFound) GetPayload

type GetReplicationPlansConnectionOK

type GetReplicationPlansConnectionOK struct {
	XTowerRequestID string

	Payload *models.ReplicationPlanConnection
}
GetReplicationPlansConnectionOK describes a response with status code 200, with default header values.

GetReplicationPlansConnectionOK get replication plans connection o k

func NewGetReplicationPlansConnectionOK

func NewGetReplicationPlansConnectionOK() *GetReplicationPlansConnectionOK

NewGetReplicationPlansConnectionOK creates a GetReplicationPlansConnectionOK with default headers values

func (*GetReplicationPlansConnectionOK) Error

func (*GetReplicationPlansConnectionOK) GetPayload

type GetReplicationPlansConnectionParams

type GetReplicationPlansConnectionParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetReplicationPlansConnectionRequestBody

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

GetReplicationPlansConnectionParams contains all the parameters to send to the API endpoint

for the get replication plans connection operation.

Typically these are written to a http.Request.

func NewGetReplicationPlansConnectionParams

func NewGetReplicationPlansConnectionParams() *GetReplicationPlansConnectionParams

NewGetReplicationPlansConnectionParams creates a new GetReplicationPlansConnectionParams 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 NewGetReplicationPlansConnectionParamsWithContext

func NewGetReplicationPlansConnectionParamsWithContext(ctx context.Context) *GetReplicationPlansConnectionParams

NewGetReplicationPlansConnectionParamsWithContext creates a new GetReplicationPlansConnectionParams object with the ability to set a context for a request.

func NewGetReplicationPlansConnectionParamsWithHTTPClient

func NewGetReplicationPlansConnectionParamsWithHTTPClient(client *http.Client) *GetReplicationPlansConnectionParams

NewGetReplicationPlansConnectionParamsWithHTTPClient creates a new GetReplicationPlansConnectionParams object with the ability to set a custom HTTPClient for a request.

func NewGetReplicationPlansConnectionParamsWithTimeout

func NewGetReplicationPlansConnectionParamsWithTimeout(timeout time.Duration) *GetReplicationPlansConnectionParams

NewGetReplicationPlansConnectionParamsWithTimeout creates a new GetReplicationPlansConnectionParams object with the ability to set a timeout on a request.

func (*GetReplicationPlansConnectionParams) SetContentLanguage

func (o *GetReplicationPlansConnectionParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get replication plans connection params

func (*GetReplicationPlansConnectionParams) SetContext

SetContext adds the context to the get replication plans connection params

func (*GetReplicationPlansConnectionParams) SetDefaults

func (o *GetReplicationPlansConnectionParams) SetDefaults()

SetDefaults hydrates default values in the get replication plans connection params (not the query body).

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

func (*GetReplicationPlansConnectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get replication plans connection params

func (*GetReplicationPlansConnectionParams) SetRequestBody

SetRequestBody adds the requestBody to the get replication plans connection params

func (*GetReplicationPlansConnectionParams) SetTimeout

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

SetTimeout adds the timeout to the get replication plans connection params

func (*GetReplicationPlansConnectionParams) WithContentLanguage

func (o *GetReplicationPlansConnectionParams) WithContentLanguage(contentLanguage *string) *GetReplicationPlansConnectionParams

WithContentLanguage adds the contentLanguage to the get replication plans connection params

func (*GetReplicationPlansConnectionParams) WithContext

WithContext adds the context to the get replication plans connection params

func (*GetReplicationPlansConnectionParams) WithDefaults

WithDefaults hydrates default values in the get replication plans connection params (not the query body).

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

func (*GetReplicationPlansConnectionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get replication plans connection params

func (*GetReplicationPlansConnectionParams) WithRequestBody

WithRequestBody adds the requestBody to the get replication plans connection params

func (*GetReplicationPlansConnectionParams) WithTimeout

WithTimeout adds the timeout to the get replication plans connection params

func (*GetReplicationPlansConnectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetReplicationPlansConnectionReader

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

GetReplicationPlansConnectionReader is a Reader for the GetReplicationPlansConnection structure.

func (*GetReplicationPlansConnectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetReplicationPlansInternalServerError

type GetReplicationPlansInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetReplicationPlansInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetReplicationPlansInternalServerError

func NewGetReplicationPlansInternalServerError() *GetReplicationPlansInternalServerError

NewGetReplicationPlansInternalServerError creates a GetReplicationPlansInternalServerError with default headers values

func (*GetReplicationPlansInternalServerError) Error

func (*GetReplicationPlansInternalServerError) GetPayload

type GetReplicationPlansNotFound

type GetReplicationPlansNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetReplicationPlansNotFound describes a response with status code 404, with default header values.

Not found

func NewGetReplicationPlansNotFound

func NewGetReplicationPlansNotFound() *GetReplicationPlansNotFound

NewGetReplicationPlansNotFound creates a GetReplicationPlansNotFound with default headers values

func (*GetReplicationPlansNotFound) Error

func (*GetReplicationPlansNotFound) GetPayload

func (o *GetReplicationPlansNotFound) GetPayload() *models.ErrorBody

type GetReplicationPlansOK

type GetReplicationPlansOK struct {
	XTowerRequestID string

	Payload []*models.ReplicationPlan
}
GetReplicationPlansOK describes a response with status code 200, with default header values.

GetReplicationPlansOK get replication plans o k

func NewGetReplicationPlansOK

func NewGetReplicationPlansOK() *GetReplicationPlansOK

NewGetReplicationPlansOK creates a GetReplicationPlansOK with default headers values

func (*GetReplicationPlansOK) Error

func (o *GetReplicationPlansOK) Error() string

func (*GetReplicationPlansOK) GetPayload

func (o *GetReplicationPlansOK) GetPayload() []*models.ReplicationPlan

type GetReplicationPlansParams

type GetReplicationPlansParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetReplicationPlansRequestBody

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

GetReplicationPlansParams contains all the parameters to send to the API endpoint

for the get replication plans operation.

Typically these are written to a http.Request.

func NewGetReplicationPlansParams

func NewGetReplicationPlansParams() *GetReplicationPlansParams

NewGetReplicationPlansParams creates a new GetReplicationPlansParams 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 NewGetReplicationPlansParamsWithContext

func NewGetReplicationPlansParamsWithContext(ctx context.Context) *GetReplicationPlansParams

NewGetReplicationPlansParamsWithContext creates a new GetReplicationPlansParams object with the ability to set a context for a request.

func NewGetReplicationPlansParamsWithHTTPClient

func NewGetReplicationPlansParamsWithHTTPClient(client *http.Client) *GetReplicationPlansParams

NewGetReplicationPlansParamsWithHTTPClient creates a new GetReplicationPlansParams object with the ability to set a custom HTTPClient for a request.

func NewGetReplicationPlansParamsWithTimeout

func NewGetReplicationPlansParamsWithTimeout(timeout time.Duration) *GetReplicationPlansParams

NewGetReplicationPlansParamsWithTimeout creates a new GetReplicationPlansParams object with the ability to set a timeout on a request.

func (*GetReplicationPlansParams) SetContentLanguage

func (o *GetReplicationPlansParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get replication plans params

func (*GetReplicationPlansParams) SetContext

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

SetContext adds the context to the get replication plans params

func (*GetReplicationPlansParams) SetDefaults

func (o *GetReplicationPlansParams) SetDefaults()

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

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

func (*GetReplicationPlansParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get replication plans params

func (*GetReplicationPlansParams) SetRequestBody

func (o *GetReplicationPlansParams) SetRequestBody(requestBody *models.GetReplicationPlansRequestBody)

SetRequestBody adds the requestBody to the get replication plans params

func (*GetReplicationPlansParams) SetTimeout

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

SetTimeout adds the timeout to the get replication plans params

func (*GetReplicationPlansParams) WithContentLanguage

func (o *GetReplicationPlansParams) WithContentLanguage(contentLanguage *string) *GetReplicationPlansParams

WithContentLanguage adds the contentLanguage to the get replication plans params

func (*GetReplicationPlansParams) WithContext

WithContext adds the context to the get replication plans params

func (*GetReplicationPlansParams) WithDefaults

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

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

func (*GetReplicationPlansParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get replication plans params

func (*GetReplicationPlansParams) WithRequestBody

WithRequestBody adds the requestBody to the get replication plans params

func (*GetReplicationPlansParams) WithTimeout

WithTimeout adds the timeout to the get replication plans params

func (*GetReplicationPlansParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetReplicationPlansReader

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

GetReplicationPlansReader is a Reader for the GetReplicationPlans structure.

func (*GetReplicationPlansReader) ReadResponse

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