Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateAppV5(params *CreateAppV5Params, authInfo runtime.ClientAuthInfoWriter) (*CreateAppV5OK, *CreateAppV5BadRequest, *CreateAppV5Unauthorized, ...)deprecated
- func (a *Client) CreateAppV5Short(params *CreateAppV5Params, authInfo runtime.ClientAuthInfoWriter) (*CreateAppV5OK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type CreateAppV5BadRequest
- type CreateAppV5Conflict
- type CreateAppV5Forbidden
- type CreateAppV5InternalServerError
- type CreateAppV5OK
- type CreateAppV5Params
- func (o *CreateAppV5Params) SetApp(app string)
- func (o *CreateAppV5Params) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *CreateAppV5Params) SetBody(body *csmclientmodels.ApimodelCreateAppV5Request)
- func (o *CreateAppV5Params) SetContext(ctx context.Context)
- func (o *CreateAppV5Params) SetFlightId(flightId string)
- func (o *CreateAppV5Params) SetHTTPClient(client *http.Client)
- func (o *CreateAppV5Params) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *CreateAppV5Params) SetNamespace(namespace string)
- func (o *CreateAppV5Params) SetTimeout(timeout time.Duration)
- func (o *CreateAppV5Params) WithApp(app string) *CreateAppV5Params
- func (o *CreateAppV5Params) WithBody(body *csmclientmodels.ApimodelCreateAppV5Request) *CreateAppV5Params
- func (o *CreateAppV5Params) WithContext(ctx context.Context) *CreateAppV5Params
- func (o *CreateAppV5Params) WithHTTPClient(client *http.Client) *CreateAppV5Params
- func (o *CreateAppV5Params) WithNamespace(namespace string) *CreateAppV5Params
- func (o *CreateAppV5Params) WithTimeout(timeout time.Duration) *CreateAppV5Params
- func (o *CreateAppV5Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateAppV5Reader
- type CreateAppV5Unauthorized
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 app v5 API
func (*Client) CreateAppV5
deprecated
func (a *Client) CreateAppV5(params *CreateAppV5Params, authInfo runtime.ClientAuthInfoWriter) (*CreateAppV5OK, *CreateAppV5BadRequest, *CreateAppV5Unauthorized, *CreateAppV5Forbidden, *CreateAppV5Conflict, *CreateAppV5InternalServerError, error)
Deprecated: 2022-08-10 - Use CreateAppV5Short instead.
CreateAppV5 create new extend app (v5) Required permission : `ADMIN:NAMESPACE:{namespace}:EXTEND:APP [CREATE]`
Create new extend app with name provided by {app} path parameter and specified scenario type
Available scenario: - scenario 2: `service-extension` - scenario 3: `event-handler` - scenario 1: `function-override`
Available app status: - `app-creating` - `app-creation-failed` - `app-creation-timeout` - `app-undeployed` - `deployment-in-progress` - `deployment-failed` - `deployment-timeout` - `deployment-running` - `deployment-down` - `app-stopping` - `app-stop-failed` - `app-stop-timeout` - `app-stopped` - `app-removing` - `app-removed` - `app-remove-timeout`
func (*Client) CreateAppV5Short ¶
func (a *Client) CreateAppV5Short(params *CreateAppV5Params, authInfo runtime.ClientAuthInfoWriter) (*CreateAppV5OK, error)
CreateAppV5Short create new extend app (v5) Required permission : `ADMIN:NAMESPACE:{namespace}:EXTEND:APP [CREATE]`
Create new extend app with name provided by {app} path parameter and specified scenario type
Available scenario: - scenario 2: `service-extension` - scenario 3: `event-handler` - scenario 1: `function-override`
Available app status: - `app-creating` - `app-creation-failed` - `app-creation-timeout` - `app-undeployed` - `deployment-in-progress` - `deployment-failed` - `deployment-timeout` - `deployment-running` - `deployment-down` - `app-stopping` - `app-stop-failed` - `app-stop-timeout` - `app-stopped` - `app-removing` - `app-removed` - `app-remove-timeout`
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface {
CreateAppV5(params *CreateAppV5Params, authInfo runtime.ClientAuthInfoWriter) (*CreateAppV5OK, *CreateAppV5BadRequest, *CreateAppV5Unauthorized, *CreateAppV5Forbidden, *CreateAppV5Conflict, *CreateAppV5InternalServerError, error)
CreateAppV5Short(params *CreateAppV5Params, authInfo runtime.ClientAuthInfoWriter) (*CreateAppV5OK, 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 app v5 API client.
type CreateAppV5BadRequest ¶
type CreateAppV5BadRequest struct {
Payload *csmclientmodels.ResponseErrorResponse
}
CreateAppV5BadRequest handles this case with default header values.
Bad Request
func NewCreateAppV5BadRequest ¶
func NewCreateAppV5BadRequest() *CreateAppV5BadRequest
NewCreateAppV5BadRequest creates a CreateAppV5BadRequest with default headers values
func (*CreateAppV5BadRequest) Error ¶
func (o *CreateAppV5BadRequest) Error() string
func (*CreateAppV5BadRequest) GetPayload ¶
func (o *CreateAppV5BadRequest) GetPayload() *csmclientmodels.ResponseErrorResponse
func (*CreateAppV5BadRequest) ToJSONString ¶
func (o *CreateAppV5BadRequest) ToJSONString() string
type CreateAppV5Conflict ¶
type CreateAppV5Conflict struct {
Payload *csmclientmodels.ResponseErrorResponse
}
CreateAppV5Conflict handles this case with default header values.
Conflict
func NewCreateAppV5Conflict ¶
func NewCreateAppV5Conflict() *CreateAppV5Conflict
NewCreateAppV5Conflict creates a CreateAppV5Conflict with default headers values
func (*CreateAppV5Conflict) Error ¶
func (o *CreateAppV5Conflict) Error() string
func (*CreateAppV5Conflict) GetPayload ¶
func (o *CreateAppV5Conflict) GetPayload() *csmclientmodels.ResponseErrorResponse
func (*CreateAppV5Conflict) ToJSONString ¶
func (o *CreateAppV5Conflict) ToJSONString() string
type CreateAppV5Forbidden ¶
type CreateAppV5Forbidden struct {
Payload *csmclientmodels.ResponseErrorResponse
}
CreateAppV5Forbidden handles this case with default header values.
Forbidden
func NewCreateAppV5Forbidden ¶
func NewCreateAppV5Forbidden() *CreateAppV5Forbidden
NewCreateAppV5Forbidden creates a CreateAppV5Forbidden with default headers values
func (*CreateAppV5Forbidden) Error ¶
func (o *CreateAppV5Forbidden) Error() string
func (*CreateAppV5Forbidden) GetPayload ¶
func (o *CreateAppV5Forbidden) GetPayload() *csmclientmodels.ResponseErrorResponse
func (*CreateAppV5Forbidden) ToJSONString ¶
func (o *CreateAppV5Forbidden) ToJSONString() string
type CreateAppV5InternalServerError ¶
type CreateAppV5InternalServerError struct {
Payload *csmclientmodels.ResponseErrorResponse
}
CreateAppV5InternalServerError handles this case with default header values.
Internal Server Error
func NewCreateAppV5InternalServerError ¶
func NewCreateAppV5InternalServerError() *CreateAppV5InternalServerError
NewCreateAppV5InternalServerError creates a CreateAppV5InternalServerError with default headers values
func (*CreateAppV5InternalServerError) Error ¶
func (o *CreateAppV5InternalServerError) Error() string
func (*CreateAppV5InternalServerError) GetPayload ¶
func (o *CreateAppV5InternalServerError) GetPayload() *csmclientmodels.ResponseErrorResponse
func (*CreateAppV5InternalServerError) ToJSONString ¶
func (o *CreateAppV5InternalServerError) ToJSONString() string
type CreateAppV5OK ¶
type CreateAppV5OK struct {
Payload *csmclientmodels.ApimodelAppItemV5
}
CreateAppV5OK handles this case with default header values.
OK
func NewCreateAppV5OK ¶
func NewCreateAppV5OK() *CreateAppV5OK
NewCreateAppV5OK creates a CreateAppV5OK with default headers values
func (*CreateAppV5OK) Error ¶
func (o *CreateAppV5OK) Error() string
func (*CreateAppV5OK) GetPayload ¶
func (o *CreateAppV5OK) GetPayload() *csmclientmodels.ApimodelAppItemV5
func (*CreateAppV5OK) ToJSONString ¶
func (o *CreateAppV5OK) ToJSONString() string
type CreateAppV5Params ¶
type CreateAppV5Params struct {
/*RetryPolicy*/
RetryPolicy *utils.Retry
/*Body*/
Body *csmclientmodels.ApimodelCreateAppV5Request
/*App
App Name. Expected format: (^[A-Za-z](?:[A-Za-z0-9\-]*[A-Za-z0-9])?$)
*/
App string
/*Namespace
Game Namespace
*/
Namespace string
AuthInfoWriter runtime.ClientAuthInfoWriter
Context context.Context
HTTPClient *http.Client
// XFlightId is an optional parameter from this SDK
XFlightId *string
// contains filtered or unexported fields
}
CreateAppV5Params contains all the parameters to send to the API endpoint for the create app v5 operation typically these are written to a http.Request
func NewCreateAppV5Params ¶
func NewCreateAppV5Params() *CreateAppV5Params
NewCreateAppV5Params creates a new CreateAppV5Params object with the default values initialized.
func NewCreateAppV5ParamsWithContext ¶
func NewCreateAppV5ParamsWithContext(ctx context.Context) *CreateAppV5Params
NewCreateAppV5ParamsWithContext creates a new CreateAppV5Params object with the default values initialized, and the ability to set a context for a request
func NewCreateAppV5ParamsWithHTTPClient ¶
func NewCreateAppV5ParamsWithHTTPClient(client *http.Client) *CreateAppV5Params
NewCreateAppV5ParamsWithHTTPClient creates a new CreateAppV5Params object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateAppV5ParamsWithTimeout ¶
func NewCreateAppV5ParamsWithTimeout(timeout time.Duration) *CreateAppV5Params
NewCreateAppV5ParamsWithTimeout creates a new CreateAppV5Params object with the default values initialized, and the ability to set a timeout on a request
func (*CreateAppV5Params) SetApp ¶
func (o *CreateAppV5Params) SetApp(app string)
SetApp adds the app to the create app v5 params
func (*CreateAppV5Params) SetAuthInfoWriter ¶
func (o *CreateAppV5Params) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the create app v5 params
func (*CreateAppV5Params) SetBody ¶
func (o *CreateAppV5Params) SetBody(body *csmclientmodels.ApimodelCreateAppV5Request)
SetBody adds the body to the create app v5 params
func (*CreateAppV5Params) SetContext ¶
func (o *CreateAppV5Params) SetContext(ctx context.Context)
SetContext adds the context to the create app v5 params
func (*CreateAppV5Params) SetFlightId ¶
func (o *CreateAppV5Params) SetFlightId(flightId string)
SetFlightId adds the flightId as the header value for this specific endpoint
func (*CreateAppV5Params) SetHTTPClient ¶
func (o *CreateAppV5Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create app v5 params
func (*CreateAppV5Params) SetHTTPClientTransport ¶
func (o *CreateAppV5Params) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the create app v5 params
func (*CreateAppV5Params) SetNamespace ¶
func (o *CreateAppV5Params) SetNamespace(namespace string)
SetNamespace adds the namespace to the create app v5 params
func (*CreateAppV5Params) SetTimeout ¶
func (o *CreateAppV5Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create app v5 params
func (*CreateAppV5Params) WithApp ¶
func (o *CreateAppV5Params) WithApp(app string) *CreateAppV5Params
WithApp adds the app to the create app v5 params
func (*CreateAppV5Params) WithBody ¶
func (o *CreateAppV5Params) WithBody(body *csmclientmodels.ApimodelCreateAppV5Request) *CreateAppV5Params
WithBody adds the body to the create app v5 params
func (*CreateAppV5Params) WithContext ¶
func (o *CreateAppV5Params) WithContext(ctx context.Context) *CreateAppV5Params
WithContext adds the context to the create app v5 params
func (*CreateAppV5Params) WithHTTPClient ¶
func (o *CreateAppV5Params) WithHTTPClient(client *http.Client) *CreateAppV5Params
WithHTTPClient adds the HTTPClient to the create app v5 params
func (*CreateAppV5Params) WithNamespace ¶
func (o *CreateAppV5Params) WithNamespace(namespace string) *CreateAppV5Params
WithNamespace adds the namespace to the create app v5 params
func (*CreateAppV5Params) WithTimeout ¶
func (o *CreateAppV5Params) WithTimeout(timeout time.Duration) *CreateAppV5Params
WithTimeout adds the timeout to the create app v5 params
func (*CreateAppV5Params) WriteToRequest ¶
func (o *CreateAppV5Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateAppV5Reader ¶
type CreateAppV5Reader struct {
// contains filtered or unexported fields
}
CreateAppV5Reader is a Reader for the CreateAppV5 structure.
func (*CreateAppV5Reader) ReadResponse ¶
func (o *CreateAppV5Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateAppV5Unauthorized ¶
type CreateAppV5Unauthorized struct {
}
CreateAppV5Unauthorized handles this case with default header values.
Unauthorized
func NewCreateAppV5Unauthorized ¶
func NewCreateAppV5Unauthorized() *CreateAppV5Unauthorized
NewCreateAppV5Unauthorized creates a CreateAppV5Unauthorized with default headers values
func (*CreateAppV5Unauthorized) Error ¶
func (o *CreateAppV5Unauthorized) Error() string
func (*CreateAppV5Unauthorized) GetPayload ¶
func (o *CreateAppV5Unauthorized) GetPayload() *csmclientmodels.ResponseErrorResponse
func (*CreateAppV5Unauthorized) ToJSONString ¶
func (o *CreateAppV5Unauthorized) ToJSONString() string