service

package
v0.0.0-...-acbd0ad Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT 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 API

func (*Client) CreateService

func (a *Client) CreateService(params *CreateServiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateServiceCreated, error)

CreateService Create Service

func (*Client) CreateServiceVersion

func (a *Client) CreateServiceVersion(params *CreateServiceVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateServiceVersionCreated, error)

CreateServiceVersion Create Service Version

func (*Client) DeleteService

func (a *Client) DeleteService(params *DeleteServiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteServiceOK, error)

DeleteService Delete Service

func (*Client) GetServiceVersion

func (a *Client) GetServiceVersion(params *GetServiceVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetServiceVersionOK, error)

GetServiceVersion get Service Version by version ID.

func (*Client) ListService

func (a *Client) ListService(params *ListServiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServiceOK, error)

ListService List Service by project ID, service ID, service name.

func (*Client) ListServicePod

func (a *Client) ListServicePod(params *ListServicePodParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServicePodOK, error)

ListServicePod List Service Pod by service ID.

func (*Client) ListServiceVersion

func (a *Client) ListServiceVersion(params *ListServiceVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServiceVersionOK, error)

ListServiceVersion List Service Version by service ID.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateServiceDescription

func (a *Client) UpdateServiceDescription(params *UpdateServiceDescriptionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateServiceDescriptionOK, error)

UpdateServiceDescription Update Service Description

func (*Client) UpdateServiceVersion

func (a *Client) UpdateServiceVersion(params *UpdateServiceVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateServiceVersionOK, error)

UpdateServiceVersion Update Service Version

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateService(params *CreateServiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateServiceCreated, error)

	CreateServiceVersion(params *CreateServiceVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateServiceVersionCreated, error)

	DeleteService(params *DeleteServiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteServiceOK, error)

	GetServiceVersion(params *GetServiceVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetServiceVersionOK, error)

	ListService(params *ListServiceParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServiceOK, error)

	ListServicePod(params *ListServicePodParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServicePodOK, error)

	ListServiceVersion(params *ListServiceVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListServiceVersionOK, error)

	UpdateServiceDescription(params *UpdateServiceDescriptionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateServiceDescriptionOK, error)

	UpdateServiceVersion(params *UpdateServiceVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateServiceVersionOK, 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 API client.

type CreateServiceConflict

type CreateServiceConflict struct {
	Payload *models.Error
}
CreateServiceConflict describes a response with status code 409, with default header values.

Create Service Failed, cause service exist

func NewCreateServiceConflict

func NewCreateServiceConflict() *CreateServiceConflict

NewCreateServiceConflict creates a CreateServiceConflict with default headers values

func (*CreateServiceConflict) Error

func (o *CreateServiceConflict) Error() string

func (*CreateServiceConflict) GetPayload

func (o *CreateServiceConflict) GetPayload() *models.Error

type CreateServiceCreated

type CreateServiceCreated struct {
	Payload *models.ServiceInfo
}
CreateServiceCreated describes a response with status code 201, with default header values.

Create Service Success, return service info.

func NewCreateServiceCreated

func NewCreateServiceCreated() *CreateServiceCreated

NewCreateServiceCreated creates a CreateServiceCreated with default headers values

func (*CreateServiceCreated) Error

func (o *CreateServiceCreated) Error() string

func (*CreateServiceCreated) GetPayload

func (o *CreateServiceCreated) GetPayload() *models.ServiceInfo

type CreateServiceForbidden

type CreateServiceForbidden struct {
	Payload *models.Error
}
CreateServiceForbidden describes a response with status code 403, with default header values.

Create Service Failed, cause do not have permisssion

func NewCreateServiceForbidden

func NewCreateServiceForbidden() *CreateServiceForbidden

NewCreateServiceForbidden creates a CreateServiceForbidden with default headers values

func (*CreateServiceForbidden) Error

func (o *CreateServiceForbidden) Error() string

func (*CreateServiceForbidden) GetPayload

func (o *CreateServiceForbidden) GetPayload() *models.Error

type CreateServiceInternalServerError

type CreateServiceInternalServerError struct {
	Payload *models.Error
}
CreateServiceInternalServerError describes a response with status code 500, with default header values.

Server Error

func NewCreateServiceInternalServerError

func NewCreateServiceInternalServerError() *CreateServiceInternalServerError

NewCreateServiceInternalServerError creates a CreateServiceInternalServerError with default headers values

func (*CreateServiceInternalServerError) Error

func (*CreateServiceInternalServerError) GetPayload

type CreateServiceParams

type CreateServiceParams struct {

	// Body.
	Body *models.ServiceInfo

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

CreateServiceParams contains all the parameters to send to the API endpoint

for the create service operation.

Typically these are written to a http.Request.

func NewCreateServiceParams

func NewCreateServiceParams() *CreateServiceParams

NewCreateServiceParams creates a new CreateServiceParams 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 NewCreateServiceParamsWithContext

func NewCreateServiceParamsWithContext(ctx context.Context) *CreateServiceParams

NewCreateServiceParamsWithContext creates a new CreateServiceParams object with the ability to set a context for a request.

func NewCreateServiceParamsWithHTTPClient

func NewCreateServiceParamsWithHTTPClient(client *http.Client) *CreateServiceParams

NewCreateServiceParamsWithHTTPClient creates a new CreateServiceParams object with the ability to set a custom HTTPClient for a request.

func NewCreateServiceParamsWithTimeout

func NewCreateServiceParamsWithTimeout(timeout time.Duration) *CreateServiceParams

NewCreateServiceParamsWithTimeout creates a new CreateServiceParams object with the ability to set a timeout on a request.

func (*CreateServiceParams) SetBody

func (o *CreateServiceParams) SetBody(body *models.ServiceInfo)

SetBody adds the body to the create service params

func (*CreateServiceParams) SetContext

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

SetContext adds the context to the create service params

func (*CreateServiceParams) SetDefaults

func (o *CreateServiceParams) SetDefaults()

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

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

func (*CreateServiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create service params

func (*CreateServiceParams) SetTimeout

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

SetTimeout adds the timeout to the create service params

func (*CreateServiceParams) WithBody

WithBody adds the body to the create service params

func (*CreateServiceParams) WithContext

WithContext adds the context to the create service params

func (*CreateServiceParams) WithDefaults

func (o *CreateServiceParams) WithDefaults() *CreateServiceParams

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

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

func (*CreateServiceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create service params

func (*CreateServiceParams) WithTimeout

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

WithTimeout adds the timeout to the create service params

func (*CreateServiceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateServiceReader

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

CreateServiceReader is a Reader for the CreateService structure.

func (*CreateServiceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateServiceVersionConflict

type CreateServiceVersionConflict struct {
	Payload *models.Error
}
CreateServiceVersionConflict describes a response with status code 409, with default header values.

Create Service Version Failed, cause service version exist

func NewCreateServiceVersionConflict

func NewCreateServiceVersionConflict() *CreateServiceVersionConflict

NewCreateServiceVersionConflict creates a CreateServiceVersionConflict with default headers values

func (*CreateServiceVersionConflict) Error

func (*CreateServiceVersionConflict) GetPayload

func (o *CreateServiceVersionConflict) GetPayload() *models.Error

type CreateServiceVersionCreated

type CreateServiceVersionCreated struct {
	Payload *models.ServiceVersion
}
CreateServiceVersionCreated describes a response with status code 201, with default header values.

Create Service Version Success, return service version info.

func NewCreateServiceVersionCreated

func NewCreateServiceVersionCreated() *CreateServiceVersionCreated

NewCreateServiceVersionCreated creates a CreateServiceVersionCreated with default headers values

func (*CreateServiceVersionCreated) Error

func (*CreateServiceVersionCreated) GetPayload

type CreateServiceVersionForbidden

type CreateServiceVersionForbidden struct {
	Payload *models.Error
}
CreateServiceVersionForbidden describes a response with status code 403, with default header values.

Create Service Version Failed, cause do not have permisssion

func NewCreateServiceVersionForbidden

func NewCreateServiceVersionForbidden() *CreateServiceVersionForbidden

NewCreateServiceVersionForbidden creates a CreateServiceVersionForbidden with default headers values

func (*CreateServiceVersionForbidden) Error

func (*CreateServiceVersionForbidden) GetPayload

func (o *CreateServiceVersionForbidden) GetPayload() *models.Error

type CreateServiceVersionInternalServerError

type CreateServiceVersionInternalServerError struct {
	Payload *models.Error
}
CreateServiceVersionInternalServerError describes a response with status code 500, with default header values.

Server Error

func NewCreateServiceVersionInternalServerError

func NewCreateServiceVersionInternalServerError() *CreateServiceVersionInternalServerError

NewCreateServiceVersionInternalServerError creates a CreateServiceVersionInternalServerError with default headers values

func (*CreateServiceVersionInternalServerError) Error

func (*CreateServiceVersionInternalServerError) GetPayload

type CreateServiceVersionParams

type CreateServiceVersionParams struct {

	// Body.
	Body *models.ServiceVersion

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

CreateServiceVersionParams contains all the parameters to send to the API endpoint

for the create service version operation.

Typically these are written to a http.Request.

func NewCreateServiceVersionParams

func NewCreateServiceVersionParams() *CreateServiceVersionParams

NewCreateServiceVersionParams creates a new CreateServiceVersionParams 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 NewCreateServiceVersionParamsWithContext

func NewCreateServiceVersionParamsWithContext(ctx context.Context) *CreateServiceVersionParams

NewCreateServiceVersionParamsWithContext creates a new CreateServiceVersionParams object with the ability to set a context for a request.

func NewCreateServiceVersionParamsWithHTTPClient

func NewCreateServiceVersionParamsWithHTTPClient(client *http.Client) *CreateServiceVersionParams

NewCreateServiceVersionParamsWithHTTPClient creates a new CreateServiceVersionParams object with the ability to set a custom HTTPClient for a request.

func NewCreateServiceVersionParamsWithTimeout

func NewCreateServiceVersionParamsWithTimeout(timeout time.Duration) *CreateServiceVersionParams

NewCreateServiceVersionParamsWithTimeout creates a new CreateServiceVersionParams object with the ability to set a timeout on a request.

func (*CreateServiceVersionParams) SetBody

SetBody adds the body to the create service version params

func (*CreateServiceVersionParams) SetContext

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

SetContext adds the context to the create service version params

func (*CreateServiceVersionParams) SetDefaults

func (o *CreateServiceVersionParams) SetDefaults()

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

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

func (*CreateServiceVersionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create service version params

func (*CreateServiceVersionParams) SetTimeout

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

SetTimeout adds the timeout to the create service version params

func (*CreateServiceVersionParams) WithBody

WithBody adds the body to the create service version params

func (*CreateServiceVersionParams) WithContext

WithContext adds the context to the create service version params

func (*CreateServiceVersionParams) WithDefaults

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

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

func (*CreateServiceVersionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create service version params

func (*CreateServiceVersionParams) WithTimeout

WithTimeout adds the timeout to the create service version params

func (*CreateServiceVersionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateServiceVersionReader

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

CreateServiceVersionReader is a Reader for the CreateServiceVersion structure.

func (*CreateServiceVersionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteServiceForbidden

type DeleteServiceForbidden struct {
	Payload *models.Error
}
DeleteServiceForbidden describes a response with status code 403, with default header values.

Delete Service Failed, cause do not have permisssion

func NewDeleteServiceForbidden

func NewDeleteServiceForbidden() *DeleteServiceForbidden

NewDeleteServiceForbidden creates a DeleteServiceForbidden with default headers values

func (*DeleteServiceForbidden) Error

func (o *DeleteServiceForbidden) Error() string

func (*DeleteServiceForbidden) GetPayload

func (o *DeleteServiceForbidden) GetPayload() *models.Error

type DeleteServiceInternalServerError

type DeleteServiceInternalServerError struct {
	Payload *models.Error
}
DeleteServiceInternalServerError describes a response with status code 500, with default header values.

Server Error

func NewDeleteServiceInternalServerError

func NewDeleteServiceInternalServerError() *DeleteServiceInternalServerError

NewDeleteServiceInternalServerError creates a DeleteServiceInternalServerError with default headers values

func (*DeleteServiceInternalServerError) Error

func (*DeleteServiceInternalServerError) GetPayload

type DeleteServiceOK

type DeleteServiceOK struct {
	Payload *models.ServiceInfo
}
DeleteServiceOK describes a response with status code 200, with default header values.

Delete Service Success, return service info.

func NewDeleteServiceOK

func NewDeleteServiceOK() *DeleteServiceOK

NewDeleteServiceOK creates a DeleteServiceOK with default headers values

func (*DeleteServiceOK) Error

func (o *DeleteServiceOK) Error() string

func (*DeleteServiceOK) GetPayload

func (o *DeleteServiceOK) GetPayload() *models.ServiceInfo

type DeleteServiceParams

type DeleteServiceParams struct {

	// ID.
	ID int64

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

DeleteServiceParams contains all the parameters to send to the API endpoint

for the delete service operation.

Typically these are written to a http.Request.

func NewDeleteServiceParams

func NewDeleteServiceParams() *DeleteServiceParams

NewDeleteServiceParams creates a new DeleteServiceParams 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 NewDeleteServiceParamsWithContext

func NewDeleteServiceParamsWithContext(ctx context.Context) *DeleteServiceParams

NewDeleteServiceParamsWithContext creates a new DeleteServiceParams object with the ability to set a context for a request.

func NewDeleteServiceParamsWithHTTPClient

func NewDeleteServiceParamsWithHTTPClient(client *http.Client) *DeleteServiceParams

NewDeleteServiceParamsWithHTTPClient creates a new DeleteServiceParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteServiceParamsWithTimeout

func NewDeleteServiceParamsWithTimeout(timeout time.Duration) *DeleteServiceParams

NewDeleteServiceParamsWithTimeout creates a new DeleteServiceParams object with the ability to set a timeout on a request.

func (*DeleteServiceParams) SetContext

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

SetContext adds the context to the delete service params

func (*DeleteServiceParams) SetDefaults

func (o *DeleteServiceParams) SetDefaults()

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

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

func (*DeleteServiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete service params

func (*DeleteServiceParams) SetID

func (o *DeleteServiceParams) SetID(id int64)

SetID adds the id to the delete service params

func (*DeleteServiceParams) SetTimeout

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

SetTimeout adds the timeout to the delete service params

func (*DeleteServiceParams) WithContext

WithContext adds the context to the delete service params

func (*DeleteServiceParams) WithDefaults

func (o *DeleteServiceParams) WithDefaults() *DeleteServiceParams

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

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

func (*DeleteServiceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete service params

func (*DeleteServiceParams) WithID

WithID adds the id to the delete service params

func (*DeleteServiceParams) WithTimeout

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

WithTimeout adds the timeout to the delete service params

func (*DeleteServiceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteServiceReader

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

DeleteServiceReader is a Reader for the DeleteService structure.

func (*DeleteServiceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetServiceVersionForbidden

type GetServiceVersionForbidden struct {
	Payload *models.Error
}
GetServiceVersionForbidden describes a response with status code 403, with default header values.

List Service Version Failed, cause do not have permisssion

func NewGetServiceVersionForbidden

func NewGetServiceVersionForbidden() *GetServiceVersionForbidden

NewGetServiceVersionForbidden creates a GetServiceVersionForbidden with default headers values

func (*GetServiceVersionForbidden) Error

func (*GetServiceVersionForbidden) GetPayload

func (o *GetServiceVersionForbidden) GetPayload() *models.Error

type GetServiceVersionInternalServerError

type GetServiceVersionInternalServerError struct {
	Payload *models.Error
}
GetServiceVersionInternalServerError describes a response with status code 500, with default header values.

Server Error

func NewGetServiceVersionInternalServerError

func NewGetServiceVersionInternalServerError() *GetServiceVersionInternalServerError

NewGetServiceVersionInternalServerError creates a GetServiceVersionInternalServerError with default headers values

func (*GetServiceVersionInternalServerError) Error

func (*GetServiceVersionInternalServerError) GetPayload

type GetServiceVersionOK

type GetServiceVersionOK struct {
	Payload *models.ServiceVersion
}
GetServiceVersionOK describes a response with status code 200, with default header values.

List Service Version Success, return service version info.

func NewGetServiceVersionOK

func NewGetServiceVersionOK() *GetServiceVersionOK

NewGetServiceVersionOK creates a GetServiceVersionOK with default headers values

func (*GetServiceVersionOK) Error

func (o *GetServiceVersionOK) Error() string

func (*GetServiceVersionOK) GetPayload

func (o *GetServiceVersionOK) GetPayload() *models.ServiceVersion

type GetServiceVersionParams

type GetServiceVersionParams struct {

	// ServiceID.
	ServiceID int64

	// VersionID.
	VersionID int64

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

GetServiceVersionParams contains all the parameters to send to the API endpoint

for the get service version operation.

Typically these are written to a http.Request.

func NewGetServiceVersionParams

func NewGetServiceVersionParams() *GetServiceVersionParams

NewGetServiceVersionParams creates a new GetServiceVersionParams 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 NewGetServiceVersionParamsWithContext

func NewGetServiceVersionParamsWithContext(ctx context.Context) *GetServiceVersionParams

NewGetServiceVersionParamsWithContext creates a new GetServiceVersionParams object with the ability to set a context for a request.

func NewGetServiceVersionParamsWithHTTPClient

func NewGetServiceVersionParamsWithHTTPClient(client *http.Client) *GetServiceVersionParams

NewGetServiceVersionParamsWithHTTPClient creates a new GetServiceVersionParams object with the ability to set a custom HTTPClient for a request.

func NewGetServiceVersionParamsWithTimeout

func NewGetServiceVersionParamsWithTimeout(timeout time.Duration) *GetServiceVersionParams

NewGetServiceVersionParamsWithTimeout creates a new GetServiceVersionParams object with the ability to set a timeout on a request.

func (*GetServiceVersionParams) SetContext

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

SetContext adds the context to the get service version params

func (*GetServiceVersionParams) SetDefaults

func (o *GetServiceVersionParams) SetDefaults()

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

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

func (*GetServiceVersionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get service version params

func (*GetServiceVersionParams) SetServiceID

func (o *GetServiceVersionParams) SetServiceID(serviceID int64)

SetServiceID adds the serviceId to the get service version params

func (*GetServiceVersionParams) SetTimeout

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

SetTimeout adds the timeout to the get service version params

func (*GetServiceVersionParams) SetVersionID

func (o *GetServiceVersionParams) SetVersionID(versionID int64)

SetVersionID adds the versionId to the get service version params

func (*GetServiceVersionParams) WithContext

WithContext adds the context to the get service version params

func (*GetServiceVersionParams) WithDefaults

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

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

func (*GetServiceVersionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get service version params

func (*GetServiceVersionParams) WithServiceID

func (o *GetServiceVersionParams) WithServiceID(serviceID int64) *GetServiceVersionParams

WithServiceID adds the serviceID to the get service version params

func (*GetServiceVersionParams) WithTimeout

WithTimeout adds the timeout to the get service version params

func (*GetServiceVersionParams) WithVersionID

func (o *GetServiceVersionParams) WithVersionID(versionID int64) *GetServiceVersionParams

WithVersionID adds the versionID to the get service version params

func (*GetServiceVersionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetServiceVersionReader

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

GetServiceVersionReader is a Reader for the GetServiceVersion structure.

func (*GetServiceVersionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListServiceForbidden

type ListServiceForbidden struct {
	Payload *models.Error
}
ListServiceForbidden describes a response with status code 403, with default header values.

List Service Failed, cause do not have permisssion

func NewListServiceForbidden

func NewListServiceForbidden() *ListServiceForbidden

NewListServiceForbidden creates a ListServiceForbidden with default headers values

func (*ListServiceForbidden) Error

func (o *ListServiceForbidden) Error() string

func (*ListServiceForbidden) GetPayload

func (o *ListServiceForbidden) GetPayload() *models.Error

type ListServiceInternalServerError

type ListServiceInternalServerError struct {
	Payload *models.Error
}
ListServiceInternalServerError describes a response with status code 500, with default header values.

Server Error

func NewListServiceInternalServerError

func NewListServiceInternalServerError() *ListServiceInternalServerError

NewListServiceInternalServerError creates a ListServiceInternalServerError with default headers values

func (*ListServiceInternalServerError) Error

func (*ListServiceInternalServerError) GetPayload

func (o *ListServiceInternalServerError) GetPayload() *models.Error

type ListServiceOK

type ListServiceOK struct {
	Payload *ListServiceOKBody
}
ListServiceOK describes a response with status code 200, with default header values.

List All Services Success, return service info. (service name, service id, service description)

func NewListServiceOK

func NewListServiceOK() *ListServiceOK

NewListServiceOK creates a ListServiceOK with default headers values

func (*ListServiceOK) Error

func (o *ListServiceOK) Error() string

func (*ListServiceOK) GetPayload

func (o *ListServiceOK) GetPayload() *ListServiceOKBody

type ListServiceOKBody

type ListServiceOKBody struct {

	// services
	Services []*models.ServiceInfo `json:"services"`
}

ListServiceOKBody list service o k body swagger:model ListServiceOKBody

func (*ListServiceOKBody) ContextValidate

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

ContextValidate validate this list service o k body based on the context it is used

func (*ListServiceOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListServiceOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListServiceOKBody) Validate

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

Validate validates this list service o k body

type ListServiceParams

type ListServiceParams struct {

	// ProjectID.
	ProjectID *int64

	// ServiceID.
	ServiceID *int64

	// ServiceName.
	ServiceName *string

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

ListServiceParams contains all the parameters to send to the API endpoint

for the list service operation.

Typically these are written to a http.Request.

func NewListServiceParams

func NewListServiceParams() *ListServiceParams

NewListServiceParams creates a new ListServiceParams 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 NewListServiceParamsWithContext

func NewListServiceParamsWithContext(ctx context.Context) *ListServiceParams

NewListServiceParamsWithContext creates a new ListServiceParams object with the ability to set a context for a request.

func NewListServiceParamsWithHTTPClient

func NewListServiceParamsWithHTTPClient(client *http.Client) *ListServiceParams

NewListServiceParamsWithHTTPClient creates a new ListServiceParams object with the ability to set a custom HTTPClient for a request.

func NewListServiceParamsWithTimeout

func NewListServiceParamsWithTimeout(timeout time.Duration) *ListServiceParams

NewListServiceParamsWithTimeout creates a new ListServiceParams object with the ability to set a timeout on a request.

func (*ListServiceParams) SetContext

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

SetContext adds the context to the list service params

func (*ListServiceParams) SetDefaults

func (o *ListServiceParams) SetDefaults()

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

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

func (*ListServiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list service params

func (*ListServiceParams) SetProjectID

func (o *ListServiceParams) SetProjectID(projectID *int64)

SetProjectID adds the projectId to the list service params

func (*ListServiceParams) SetServiceID

func (o *ListServiceParams) SetServiceID(serviceID *int64)

SetServiceID adds the serviceId to the list service params

func (*ListServiceParams) SetServiceName

func (o *ListServiceParams) SetServiceName(serviceName *string)

SetServiceName adds the serviceName to the list service params

func (*ListServiceParams) SetTimeout

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

SetTimeout adds the timeout to the list service params

func (*ListServiceParams) WithContext

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

WithContext adds the context to the list service params

func (*ListServiceParams) WithDefaults

func (o *ListServiceParams) WithDefaults() *ListServiceParams

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

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

func (*ListServiceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list service params

func (*ListServiceParams) WithProjectID

func (o *ListServiceParams) WithProjectID(projectID *int64) *ListServiceParams

WithProjectID adds the projectID to the list service params

func (*ListServiceParams) WithServiceID

func (o *ListServiceParams) WithServiceID(serviceID *int64) *ListServiceParams

WithServiceID adds the serviceID to the list service params

func (*ListServiceParams) WithServiceName

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

WithServiceName adds the serviceName to the list service params

func (*ListServiceParams) WithTimeout

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

WithTimeout adds the timeout to the list service params

func (*ListServiceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListServicePodForbidden

type ListServicePodForbidden struct {
	Payload *models.Error
}
ListServicePodForbidden describes a response with status code 403, with default header values.

List Service Pod Failed, cause do not have permisssion

func NewListServicePodForbidden

func NewListServicePodForbidden() *ListServicePodForbidden

NewListServicePodForbidden creates a ListServicePodForbidden with default headers values

func (*ListServicePodForbidden) Error

func (o *ListServicePodForbidden) Error() string

func (*ListServicePodForbidden) GetPayload

func (o *ListServicePodForbidden) GetPayload() *models.Error

type ListServicePodInternalServerError

type ListServicePodInternalServerError struct {
	Payload *models.Error
}
ListServicePodInternalServerError describes a response with status code 500, with default header values.

Server Error

func NewListServicePodInternalServerError

func NewListServicePodInternalServerError() *ListServicePodInternalServerError

NewListServicePodInternalServerError creates a ListServicePodInternalServerError with default headers values

func (*ListServicePodInternalServerError) Error

func (*ListServicePodInternalServerError) GetPayload

type ListServicePodOK

type ListServicePodOK struct {
	Payload *ListServicePodOKBody
}
ListServicePodOK describes a response with status code 200, with default header values.

List Service Pod Success, return service pod info.

func NewListServicePodOK

func NewListServicePodOK() *ListServicePodOK

NewListServicePodOK creates a ListServicePodOK with default headers values

func (*ListServicePodOK) Error

func (o *ListServicePodOK) Error() string

func (*ListServicePodOK) GetPayload

func (o *ListServicePodOK) GetPayload() *ListServicePodOKBody

type ListServicePodOKBody

type ListServicePodOKBody struct {

	// pods
	Pods []*models.PodInfo `json:"pods"`
}

ListServicePodOKBody list service pod o k body swagger:model ListServicePodOKBody

func (*ListServicePodOKBody) ContextValidate

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

ContextValidate validate this list service pod o k body based on the context it is used

func (*ListServicePodOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListServicePodOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListServicePodOKBody) Validate

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

Validate validates this list service pod o k body

type ListServicePodParams

type ListServicePodParams struct {

	// ServiceID.
	ServiceID int64

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

ListServicePodParams contains all the parameters to send to the API endpoint

for the list service pod operation.

Typically these are written to a http.Request.

func NewListServicePodParams

func NewListServicePodParams() *ListServicePodParams

NewListServicePodParams creates a new ListServicePodParams 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 NewListServicePodParamsWithContext

func NewListServicePodParamsWithContext(ctx context.Context) *ListServicePodParams

NewListServicePodParamsWithContext creates a new ListServicePodParams object with the ability to set a context for a request.

func NewListServicePodParamsWithHTTPClient

func NewListServicePodParamsWithHTTPClient(client *http.Client) *ListServicePodParams

NewListServicePodParamsWithHTTPClient creates a new ListServicePodParams object with the ability to set a custom HTTPClient for a request.

func NewListServicePodParamsWithTimeout

func NewListServicePodParamsWithTimeout(timeout time.Duration) *ListServicePodParams

NewListServicePodParamsWithTimeout creates a new ListServicePodParams object with the ability to set a timeout on a request.

func (*ListServicePodParams) SetContext

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

SetContext adds the context to the list service pod params

func (*ListServicePodParams) SetDefaults

func (o *ListServicePodParams) SetDefaults()

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

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

func (*ListServicePodParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list service pod params

func (*ListServicePodParams) SetServiceID

func (o *ListServicePodParams) SetServiceID(serviceID int64)

SetServiceID adds the serviceId to the list service pod params

func (*ListServicePodParams) SetTimeout

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

SetTimeout adds the timeout to the list service pod params

func (*ListServicePodParams) WithContext

WithContext adds the context to the list service pod params

func (*ListServicePodParams) WithDefaults

func (o *ListServicePodParams) WithDefaults() *ListServicePodParams

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

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

func (*ListServicePodParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list service pod params

func (*ListServicePodParams) WithServiceID

func (o *ListServicePodParams) WithServiceID(serviceID int64) *ListServicePodParams

WithServiceID adds the serviceID to the list service pod params

func (*ListServicePodParams) WithTimeout

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

WithTimeout adds the timeout to the list service pod params

func (*ListServicePodParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListServicePodReader

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

ListServicePodReader is a Reader for the ListServicePod structure.

func (*ListServicePodReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListServiceReader

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

ListServiceReader is a Reader for the ListService structure.

func (*ListServiceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListServiceVersionForbidden

type ListServiceVersionForbidden struct {
	Payload *models.Error
}
ListServiceVersionForbidden describes a response with status code 403, with default header values.

List Service Version Failed, cause do not have permisssion

func NewListServiceVersionForbidden

func NewListServiceVersionForbidden() *ListServiceVersionForbidden

NewListServiceVersionForbidden creates a ListServiceVersionForbidden with default headers values

func (*ListServiceVersionForbidden) Error

func (*ListServiceVersionForbidden) GetPayload

func (o *ListServiceVersionForbidden) GetPayload() *models.Error

type ListServiceVersionInternalServerError

type ListServiceVersionInternalServerError struct {
	Payload *models.Error
}
ListServiceVersionInternalServerError describes a response with status code 500, with default header values.

Server Error

func NewListServiceVersionInternalServerError

func NewListServiceVersionInternalServerError() *ListServiceVersionInternalServerError

NewListServiceVersionInternalServerError creates a ListServiceVersionInternalServerError with default headers values

func (*ListServiceVersionInternalServerError) Error

func (*ListServiceVersionInternalServerError) GetPayload

type ListServiceVersionOK

type ListServiceVersionOK struct {
	Payload *ListServiceVersionOKBody
}
ListServiceVersionOK describes a response with status code 200, with default header values.

List Service Version Success, return service version info.

func NewListServiceVersionOK

func NewListServiceVersionOK() *ListServiceVersionOK

NewListServiceVersionOK creates a ListServiceVersionOK with default headers values

func (*ListServiceVersionOK) Error

func (o *ListServiceVersionOK) Error() string

func (*ListServiceVersionOK) GetPayload

type ListServiceVersionOKBody

type ListServiceVersionOKBody struct {

	// versions
	Versions []*models.ServiceVersion `json:"versions"`
}

ListServiceVersionOKBody list service version o k body swagger:model ListServiceVersionOKBody

func (*ListServiceVersionOKBody) ContextValidate

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

ContextValidate validate this list service version o k body based on the context it is used

func (*ListServiceVersionOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*ListServiceVersionOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ListServiceVersionOKBody) Validate

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

Validate validates this list service version o k body

type ListServiceVersionParams

type ListServiceVersionParams struct {

	// ServiceID.
	ServiceID int64

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

ListServiceVersionParams contains all the parameters to send to the API endpoint

for the list service version operation.

Typically these are written to a http.Request.

func NewListServiceVersionParams

func NewListServiceVersionParams() *ListServiceVersionParams

NewListServiceVersionParams creates a new ListServiceVersionParams 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 NewListServiceVersionParamsWithContext

func NewListServiceVersionParamsWithContext(ctx context.Context) *ListServiceVersionParams

NewListServiceVersionParamsWithContext creates a new ListServiceVersionParams object with the ability to set a context for a request.

func NewListServiceVersionParamsWithHTTPClient

func NewListServiceVersionParamsWithHTTPClient(client *http.Client) *ListServiceVersionParams

NewListServiceVersionParamsWithHTTPClient creates a new ListServiceVersionParams object with the ability to set a custom HTTPClient for a request.

func NewListServiceVersionParamsWithTimeout

func NewListServiceVersionParamsWithTimeout(timeout time.Duration) *ListServiceVersionParams

NewListServiceVersionParamsWithTimeout creates a new ListServiceVersionParams object with the ability to set a timeout on a request.

func (*ListServiceVersionParams) SetContext

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

SetContext adds the context to the list service version params

func (*ListServiceVersionParams) SetDefaults

func (o *ListServiceVersionParams) SetDefaults()

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

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

func (*ListServiceVersionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list service version params

func (*ListServiceVersionParams) SetServiceID

func (o *ListServiceVersionParams) SetServiceID(serviceID int64)

SetServiceID adds the serviceId to the list service version params

func (*ListServiceVersionParams) SetTimeout

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

SetTimeout adds the timeout to the list service version params

func (*ListServiceVersionParams) WithContext

WithContext adds the context to the list service version params

func (*ListServiceVersionParams) WithDefaults

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

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

func (*ListServiceVersionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list service version params

func (*ListServiceVersionParams) WithServiceID

func (o *ListServiceVersionParams) WithServiceID(serviceID int64) *ListServiceVersionParams

WithServiceID adds the serviceID to the list service version params

func (*ListServiceVersionParams) WithTimeout

WithTimeout adds the timeout to the list service version params

func (*ListServiceVersionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListServiceVersionReader

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

ListServiceVersionReader is a Reader for the ListServiceVersion structure.

func (*ListServiceVersionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateServiceDescriptionForbidden

type UpdateServiceDescriptionForbidden struct {
	Payload *models.Error
}
UpdateServiceDescriptionForbidden describes a response with status code 403, with default header values.

Update Service Description Failed, cause do not have permisssion

func NewUpdateServiceDescriptionForbidden

func NewUpdateServiceDescriptionForbidden() *UpdateServiceDescriptionForbidden

NewUpdateServiceDescriptionForbidden creates a UpdateServiceDescriptionForbidden with default headers values

func (*UpdateServiceDescriptionForbidden) Error

func (*UpdateServiceDescriptionForbidden) GetPayload

type UpdateServiceDescriptionInternalServerError

type UpdateServiceDescriptionInternalServerError struct {
	Payload *models.Error
}
UpdateServiceDescriptionInternalServerError describes a response with status code 500, with default header values.

Server Error

func NewUpdateServiceDescriptionInternalServerError

func NewUpdateServiceDescriptionInternalServerError() *UpdateServiceDescriptionInternalServerError

NewUpdateServiceDescriptionInternalServerError creates a UpdateServiceDescriptionInternalServerError with default headers values

func (*UpdateServiceDescriptionInternalServerError) Error

func (*UpdateServiceDescriptionInternalServerError) GetPayload

type UpdateServiceDescriptionOK

type UpdateServiceDescriptionOK struct {
	Payload *models.ServiceInfo
}
UpdateServiceDescriptionOK describes a response with status code 200, with default header values.

Update Service Description Success, return service info.

func NewUpdateServiceDescriptionOK

func NewUpdateServiceDescriptionOK() *UpdateServiceDescriptionOK

NewUpdateServiceDescriptionOK creates a UpdateServiceDescriptionOK with default headers values

func (*UpdateServiceDescriptionOK) Error

func (*UpdateServiceDescriptionOK) GetPayload

type UpdateServiceDescriptionParams

type UpdateServiceDescriptionParams struct {

	// Body.
	Body *models.ServiceInfo

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

UpdateServiceDescriptionParams contains all the parameters to send to the API endpoint

for the update service description operation.

Typically these are written to a http.Request.

func NewUpdateServiceDescriptionParams

func NewUpdateServiceDescriptionParams() *UpdateServiceDescriptionParams

NewUpdateServiceDescriptionParams creates a new UpdateServiceDescriptionParams 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 NewUpdateServiceDescriptionParamsWithContext

func NewUpdateServiceDescriptionParamsWithContext(ctx context.Context) *UpdateServiceDescriptionParams

NewUpdateServiceDescriptionParamsWithContext creates a new UpdateServiceDescriptionParams object with the ability to set a context for a request.

func NewUpdateServiceDescriptionParamsWithHTTPClient

func NewUpdateServiceDescriptionParamsWithHTTPClient(client *http.Client) *UpdateServiceDescriptionParams

NewUpdateServiceDescriptionParamsWithHTTPClient creates a new UpdateServiceDescriptionParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateServiceDescriptionParamsWithTimeout

func NewUpdateServiceDescriptionParamsWithTimeout(timeout time.Duration) *UpdateServiceDescriptionParams

NewUpdateServiceDescriptionParamsWithTimeout creates a new UpdateServiceDescriptionParams object with the ability to set a timeout on a request.

func (*UpdateServiceDescriptionParams) SetBody

SetBody adds the body to the update service description params

func (*UpdateServiceDescriptionParams) SetContext

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

SetContext adds the context to the update service description params

func (*UpdateServiceDescriptionParams) SetDefaults

func (o *UpdateServiceDescriptionParams) SetDefaults()

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

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

func (*UpdateServiceDescriptionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update service description params

func (*UpdateServiceDescriptionParams) SetTimeout

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

SetTimeout adds the timeout to the update service description params

func (*UpdateServiceDescriptionParams) WithBody

WithBody adds the body to the update service description params

func (*UpdateServiceDescriptionParams) WithContext

WithContext adds the context to the update service description params

func (*UpdateServiceDescriptionParams) WithDefaults

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

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

func (*UpdateServiceDescriptionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update service description params

func (*UpdateServiceDescriptionParams) WithTimeout

WithTimeout adds the timeout to the update service description params

func (*UpdateServiceDescriptionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateServiceDescriptionReader

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

UpdateServiceDescriptionReader is a Reader for the UpdateServiceDescription structure.

func (*UpdateServiceDescriptionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateServiceVersionForbidden

type UpdateServiceVersionForbidden struct {
	Payload *models.Error
}
UpdateServiceVersionForbidden describes a response with status code 403, with default header values.

Update Service Version Failed, cause do not have permisssion

func NewUpdateServiceVersionForbidden

func NewUpdateServiceVersionForbidden() *UpdateServiceVersionForbidden

NewUpdateServiceVersionForbidden creates a UpdateServiceVersionForbidden with default headers values

func (*UpdateServiceVersionForbidden) Error

func (*UpdateServiceVersionForbidden) GetPayload

func (o *UpdateServiceVersionForbidden) GetPayload() *models.Error

type UpdateServiceVersionInternalServerError

type UpdateServiceVersionInternalServerError struct {
	Payload *models.Error
}
UpdateServiceVersionInternalServerError describes a response with status code 500, with default header values.

Server Error

func NewUpdateServiceVersionInternalServerError

func NewUpdateServiceVersionInternalServerError() *UpdateServiceVersionInternalServerError

NewUpdateServiceVersionInternalServerError creates a UpdateServiceVersionInternalServerError with default headers values

func (*UpdateServiceVersionInternalServerError) Error

func (*UpdateServiceVersionInternalServerError) GetPayload

type UpdateServiceVersionOK

type UpdateServiceVersionOK struct {
	Payload *models.ServiceInfo
}
UpdateServiceVersionOK describes a response with status code 200, with default header values.

Update Service Version Success, return service info.

func NewUpdateServiceVersionOK

func NewUpdateServiceVersionOK() *UpdateServiceVersionOK

NewUpdateServiceVersionOK creates a UpdateServiceVersionOK with default headers values

func (*UpdateServiceVersionOK) Error

func (o *UpdateServiceVersionOK) Error() string

func (*UpdateServiceVersionOK) GetPayload

func (o *UpdateServiceVersionOK) GetPayload() *models.ServiceInfo

type UpdateServiceVersionParams

type UpdateServiceVersionParams struct {

	// Body.
	Body *models.ServiceInfo

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

UpdateServiceVersionParams contains all the parameters to send to the API endpoint

for the update service version operation.

Typically these are written to a http.Request.

func NewUpdateServiceVersionParams

func NewUpdateServiceVersionParams() *UpdateServiceVersionParams

NewUpdateServiceVersionParams creates a new UpdateServiceVersionParams 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 NewUpdateServiceVersionParamsWithContext

func NewUpdateServiceVersionParamsWithContext(ctx context.Context) *UpdateServiceVersionParams

NewUpdateServiceVersionParamsWithContext creates a new UpdateServiceVersionParams object with the ability to set a context for a request.

func NewUpdateServiceVersionParamsWithHTTPClient

func NewUpdateServiceVersionParamsWithHTTPClient(client *http.Client) *UpdateServiceVersionParams

NewUpdateServiceVersionParamsWithHTTPClient creates a new UpdateServiceVersionParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateServiceVersionParamsWithTimeout

func NewUpdateServiceVersionParamsWithTimeout(timeout time.Duration) *UpdateServiceVersionParams

NewUpdateServiceVersionParamsWithTimeout creates a new UpdateServiceVersionParams object with the ability to set a timeout on a request.

func (*UpdateServiceVersionParams) SetBody

func (o *UpdateServiceVersionParams) SetBody(body *models.ServiceInfo)

SetBody adds the body to the update service version params

func (*UpdateServiceVersionParams) SetContext

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

SetContext adds the context to the update service version params

func (*UpdateServiceVersionParams) SetDefaults

func (o *UpdateServiceVersionParams) SetDefaults()

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

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

func (*UpdateServiceVersionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update service version params

func (*UpdateServiceVersionParams) SetTimeout

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

SetTimeout adds the timeout to the update service version params

func (*UpdateServiceVersionParams) WithBody

WithBody adds the body to the update service version params

func (*UpdateServiceVersionParams) WithContext

WithContext adds the context to the update service version params

func (*UpdateServiceVersionParams) WithDefaults

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

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

func (*UpdateServiceVersionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update service version params

func (*UpdateServiceVersionParams) WithTimeout

WithTimeout adds the timeout to the update service version params

func (*UpdateServiceVersionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateServiceVersionReader

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

UpdateServiceVersionReader is a Reader for the UpdateServiceVersion structure.

func (*UpdateServiceVersionReader) ReadResponse

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