From 90de0938d75fc23c806b9cd423422eddc2a07646 Mon Sep 17 00:00:00 2001 From: Alexey Palazhchenko Date: Wed, 29 Jul 2020 14:30:21 +0300 Subject: [PATCH] SAAS-243 Hide APIs until release (#558) --- .../server/platform_sign_in_parameters.go | 131 ------ .../server/platform_sign_in_responses.go | 226 ---------- .../server/platform_sign_up_parameters.go | 131 ------ .../server/platform_sign_up_responses.go | 226 ---------- .../json/client/server/server_client.go | 70 --- api/serverpb/json/serverpb.json | 156 ------- api/serverpb/server.pb.go | 415 ++++-------------- api/serverpb/server.pb.gw.go | 156 ------- api/serverpb/server.proto | 87 ++-- api/serverpb/server.validator.pb.go | 18 - api/swagger/swagger.json | 156 ------- 11 files changed, 133 insertions(+), 1639 deletions(-) delete mode 100644 api/serverpb/json/client/server/platform_sign_in_parameters.go delete mode 100644 api/serverpb/json/client/server/platform_sign_in_responses.go delete mode 100644 api/serverpb/json/client/server/platform_sign_up_parameters.go delete mode 100644 api/serverpb/json/client/server/platform_sign_up_responses.go diff --git a/api/serverpb/json/client/server/platform_sign_in_parameters.go b/api/serverpb/json/client/server/platform_sign_in_parameters.go deleted file mode 100644 index 95809ef909..0000000000 --- a/api/serverpb/json/client/server/platform_sign_in_parameters.go +++ /dev/null @@ -1,131 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package server - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewPlatformSignInParams creates a new PlatformSignInParams object -// with the default values initialized. -func NewPlatformSignInParams() *PlatformSignInParams { - var () - return &PlatformSignInParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewPlatformSignInParamsWithTimeout creates a new PlatformSignInParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewPlatformSignInParamsWithTimeout(timeout time.Duration) *PlatformSignInParams { - var () - return &PlatformSignInParams{ - - timeout: timeout, - } -} - -// NewPlatformSignInParamsWithContext creates a new PlatformSignInParams object -// with the default values initialized, and the ability to set a context for a request -func NewPlatformSignInParamsWithContext(ctx context.Context) *PlatformSignInParams { - var () - return &PlatformSignInParams{ - - Context: ctx, - } -} - -// NewPlatformSignInParamsWithHTTPClient creates a new PlatformSignInParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewPlatformSignInParamsWithHTTPClient(client *http.Client) *PlatformSignInParams { - var () - return &PlatformSignInParams{ - HTTPClient: client, - } -} - -/*PlatformSignInParams contains all the parameters to send to the API endpoint -for the platform sign in operation typically these are written to a http.Request -*/ -type PlatformSignInParams struct { - - /*Body*/ - Body PlatformSignInBody - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the platform sign in params -func (o *PlatformSignInParams) WithTimeout(timeout time.Duration) *PlatformSignInParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the platform sign in params -func (o *PlatformSignInParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the platform sign in params -func (o *PlatformSignInParams) WithContext(ctx context.Context) *PlatformSignInParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the platform sign in params -func (o *PlatformSignInParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the platform sign in params -func (o *PlatformSignInParams) WithHTTPClient(client *http.Client) *PlatformSignInParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the platform sign in params -func (o *PlatformSignInParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithBody adds the body to the platform sign in params -func (o *PlatformSignInParams) WithBody(body PlatformSignInBody) *PlatformSignInParams { - o.SetBody(body) - return o -} - -// SetBody adds the body to the platform sign in params -func (o *PlatformSignInParams) SetBody(body PlatformSignInBody) { - o.Body = body -} - -// WriteToRequest writes these params to a swagger request -func (o *PlatformSignInParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if err := r.SetBodyParam(o.Body); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/serverpb/json/client/server/platform_sign_in_responses.go b/api/serverpb/json/client/server/platform_sign_in_responses.go deleted file mode 100644 index dbb65ba735..0000000000 --- a/api/serverpb/json/client/server/platform_sign_in_responses.go +++ /dev/null @@ -1,226 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package server - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// PlatformSignInReader is a Reader for the PlatformSignIn structure. -type PlatformSignInReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *PlatformSignInReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewPlatformSignInOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewPlatformSignInDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewPlatformSignInOK creates a PlatformSignInOK with default headers values -func NewPlatformSignInOK() *PlatformSignInOK { - return &PlatformSignInOK{} -} - -/*PlatformSignInOK handles this case with default header values. - -A successful response. -*/ -type PlatformSignInOK struct { - Payload interface{} -} - -func (o *PlatformSignInOK) Error() string { - return fmt.Sprintf("[POST /v1/Platform/SignIn][%d] platformSignInOk %+v", 200, o.Payload) -} - -func (o *PlatformSignInOK) GetPayload() interface{} { - return o.Payload -} - -func (o *PlatformSignInOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPlatformSignInDefault creates a PlatformSignInDefault with default headers values -func NewPlatformSignInDefault(code int) *PlatformSignInDefault { - return &PlatformSignInDefault{ - _statusCode: code, - } -} - -/*PlatformSignInDefault handles this case with default header values. - -An unexpected error response -*/ -type PlatformSignInDefault struct { - _statusCode int - - Payload *PlatformSignInDefaultBody -} - -// Code gets the status code for the platform sign in default response -func (o *PlatformSignInDefault) Code() int { - return o._statusCode -} - -func (o *PlatformSignInDefault) Error() string { - return fmt.Sprintf("[POST /v1/Platform/SignIn][%d] PlatformSignIn default %+v", o._statusCode, o.Payload) -} - -func (o *PlatformSignInDefault) GetPayload() *PlatformSignInDefaultBody { - return o.Payload -} - -func (o *PlatformSignInDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(PlatformSignInDefaultBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -/*PlatformSignInBody platform sign in body -swagger:model PlatformSignInBody -*/ -type PlatformSignInBody struct { - - // Existing Percona Platform user's email. - Email string `json:"email,omitempty"` - - // Existing Percona Platform user's password. - Password string `json:"password,omitempty"` -} - -// Validate validates this platform sign in body -func (o *PlatformSignInBody) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *PlatformSignInBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *PlatformSignInBody) UnmarshalBinary(b []byte) error { - var res PlatformSignInBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/*PlatformSignInDefaultBody platform sign in default body -swagger:model PlatformSignInDefaultBody -*/ -type PlatformSignInDefaultBody struct { - - // error - Error string `json:"error,omitempty"` - - // code - Code int32 `json:"code,omitempty"` - - // message - Message string `json:"message,omitempty"` - - // details - Details []*DetailsItems0 `json:"details"` -} - -// Validate validates this platform sign in default body -func (o *PlatformSignInDefaultBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateDetails(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *PlatformSignInDefaultBody) validateDetails(formats strfmt.Registry) error { - - if swag.IsZero(o.Details) { // not required - return nil - } - - for i := 0; i < len(o.Details); i++ { - if swag.IsZero(o.Details[i]) { // not required - continue - } - - if o.Details[i] != nil { - if err := o.Details[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("PlatformSignIn default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (o *PlatformSignInDefaultBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *PlatformSignInDefaultBody) UnmarshalBinary(b []byte) error { - var res PlatformSignInDefaultBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} diff --git a/api/serverpb/json/client/server/platform_sign_up_parameters.go b/api/serverpb/json/client/server/platform_sign_up_parameters.go deleted file mode 100644 index 84402aef53..0000000000 --- a/api/serverpb/json/client/server/platform_sign_up_parameters.go +++ /dev/null @@ -1,131 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package server - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewPlatformSignUpParams creates a new PlatformSignUpParams object -// with the default values initialized. -func NewPlatformSignUpParams() *PlatformSignUpParams { - var () - return &PlatformSignUpParams{ - - timeout: cr.DefaultTimeout, - } -} - -// NewPlatformSignUpParamsWithTimeout creates a new PlatformSignUpParams object -// with the default values initialized, and the ability to set a timeout on a request -func NewPlatformSignUpParamsWithTimeout(timeout time.Duration) *PlatformSignUpParams { - var () - return &PlatformSignUpParams{ - - timeout: timeout, - } -} - -// NewPlatformSignUpParamsWithContext creates a new PlatformSignUpParams object -// with the default values initialized, and the ability to set a context for a request -func NewPlatformSignUpParamsWithContext(ctx context.Context) *PlatformSignUpParams { - var () - return &PlatformSignUpParams{ - - Context: ctx, - } -} - -// NewPlatformSignUpParamsWithHTTPClient creates a new PlatformSignUpParams object -// with the default values initialized, and the ability to set a custom HTTPClient for a request -func NewPlatformSignUpParamsWithHTTPClient(client *http.Client) *PlatformSignUpParams { - var () - return &PlatformSignUpParams{ - HTTPClient: client, - } -} - -/*PlatformSignUpParams contains all the parameters to send to the API endpoint -for the platform sign up operation typically these are written to a http.Request -*/ -type PlatformSignUpParams struct { - - /*Body*/ - Body PlatformSignUpBody - - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithTimeout adds the timeout to the platform sign up params -func (o *PlatformSignUpParams) WithTimeout(timeout time.Duration) *PlatformSignUpParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the platform sign up params -func (o *PlatformSignUpParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the platform sign up params -func (o *PlatformSignUpParams) WithContext(ctx context.Context) *PlatformSignUpParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the platform sign up params -func (o *PlatformSignUpParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the platform sign up params -func (o *PlatformSignUpParams) WithHTTPClient(client *http.Client) *PlatformSignUpParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the platform sign up params -func (o *PlatformSignUpParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WithBody adds the body to the platform sign up params -func (o *PlatformSignUpParams) WithBody(body PlatformSignUpBody) *PlatformSignUpParams { - o.SetBody(body) - return o -} - -// SetBody adds the body to the platform sign up params -func (o *PlatformSignUpParams) SetBody(body PlatformSignUpBody) { - o.Body = body -} - -// WriteToRequest writes these params to a swagger request -func (o *PlatformSignUpParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if err := r.SetBodyParam(o.Body); err != nil { - return err - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/api/serverpb/json/client/server/platform_sign_up_responses.go b/api/serverpb/json/client/server/platform_sign_up_responses.go deleted file mode 100644 index 1926576405..0000000000 --- a/api/serverpb/json/client/server/platform_sign_up_responses.go +++ /dev/null @@ -1,226 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -package server - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - "io" - "strconv" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - "github.com/go-openapi/swag" -) - -// PlatformSignUpReader is a Reader for the PlatformSignUp structure. -type PlatformSignUpReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *PlatformSignUpReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewPlatformSignUpOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - default: - result := NewPlatformSignUpDefault(response.Code()) - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - if response.Code()/100 == 2 { - return result, nil - } - return nil, result - } -} - -// NewPlatformSignUpOK creates a PlatformSignUpOK with default headers values -func NewPlatformSignUpOK() *PlatformSignUpOK { - return &PlatformSignUpOK{} -} - -/*PlatformSignUpOK handles this case with default header values. - -A successful response. -*/ -type PlatformSignUpOK struct { - Payload interface{} -} - -func (o *PlatformSignUpOK) Error() string { - return fmt.Sprintf("[POST /v1/Platform/SignUp][%d] platformSignUpOk %+v", 200, o.Payload) -} - -func (o *PlatformSignUpOK) GetPayload() interface{} { - return o.Payload -} - -func (o *PlatformSignUpOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewPlatformSignUpDefault creates a PlatformSignUpDefault with default headers values -func NewPlatformSignUpDefault(code int) *PlatformSignUpDefault { - return &PlatformSignUpDefault{ - _statusCode: code, - } -} - -/*PlatformSignUpDefault handles this case with default header values. - -An unexpected error response -*/ -type PlatformSignUpDefault struct { - _statusCode int - - Payload *PlatformSignUpDefaultBody -} - -// Code gets the status code for the platform sign up default response -func (o *PlatformSignUpDefault) Code() int { - return o._statusCode -} - -func (o *PlatformSignUpDefault) Error() string { - return fmt.Sprintf("[POST /v1/Platform/SignUp][%d] PlatformSignUp default %+v", o._statusCode, o.Payload) -} - -func (o *PlatformSignUpDefault) GetPayload() *PlatformSignUpDefaultBody { - return o.Payload -} - -func (o *PlatformSignUpDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(PlatformSignUpDefaultBody) - - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -/*PlatformSignUpBody platform sign up body -swagger:model PlatformSignUpBody -*/ -type PlatformSignUpBody struct { - - // New Percona Platform user's email. - Email string `json:"email,omitempty"` - - // New Percona Platform user's password. - Password string `json:"password,omitempty"` -} - -// Validate validates this platform sign up body -func (o *PlatformSignUpBody) Validate(formats strfmt.Registry) error { - return nil -} - -// MarshalBinary interface implementation -func (o *PlatformSignUpBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *PlatformSignUpBody) UnmarshalBinary(b []byte) error { - var res PlatformSignUpBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} - -/*PlatformSignUpDefaultBody platform sign up default body -swagger:model PlatformSignUpDefaultBody -*/ -type PlatformSignUpDefaultBody struct { - - // error - Error string `json:"error,omitempty"` - - // code - Code int32 `json:"code,omitempty"` - - // message - Message string `json:"message,omitempty"` - - // details - Details []*DetailsItems0 `json:"details"` -} - -// Validate validates this platform sign up default body -func (o *PlatformSignUpDefaultBody) Validate(formats strfmt.Registry) error { - var res []error - - if err := o.validateDetails(formats); err != nil { - res = append(res, err) - } - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} - -func (o *PlatformSignUpDefaultBody) validateDetails(formats strfmt.Registry) error { - - if swag.IsZero(o.Details) { // not required - return nil - } - - for i := 0; i < len(o.Details); i++ { - if swag.IsZero(o.Details[i]) { // not required - continue - } - - if o.Details[i] != nil { - if err := o.Details[i].Validate(formats); err != nil { - if ve, ok := err.(*errors.Validation); ok { - return ve.ValidateName("PlatformSignUp default" + "." + "details" + "." + strconv.Itoa(i)) - } - return err - } - } - - } - - return nil -} - -// MarshalBinary interface implementation -func (o *PlatformSignUpDefaultBody) MarshalBinary() ([]byte, error) { - if o == nil { - return nil, nil - } - return swag.WriteJSON(o) -} - -// UnmarshalBinary interface implementation -func (o *PlatformSignUpDefaultBody) UnmarshalBinary(b []byte) error { - var res PlatformSignUpDefaultBody - if err := swag.ReadJSON(b, &res); err != nil { - return err - } - *o = res - return nil -} diff --git a/api/serverpb/json/client/server/server_client.go b/api/serverpb/json/client/server/server_client.go index ac5e54e377..fd5a650ec0 100644 --- a/api/serverpb/json/client/server/server_client.go +++ b/api/serverpb/json/client/server/server_client.go @@ -37,10 +37,6 @@ type ClientService interface { Logs(params *LogsParams, writer io.Writer) (*LogsOK, error) - PlatformSignIn(params *PlatformSignInParams) (*PlatformSignInOK, error) - - PlatformSignUp(params *PlatformSignUpParams) (*PlatformSignUpOK, error) - Readiness(params *ReadinessParams) (*ReadinessOK, error) StartUpdate(params *StartUpdateParams) (*StartUpdateOK, error) @@ -217,72 +213,6 @@ func (a *Client) Logs(params *LogsParams, writer io.Writer) (*LogsOK, error) { return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } -/* - PlatformSignIn platforms sign in links that PMM instance to percona platform user -*/ -func (a *Client) PlatformSignIn(params *PlatformSignInParams) (*PlatformSignInOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewPlatformSignInParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "PlatformSignIn", - Method: "POST", - PathPattern: "/v1/Platform/SignIn", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http", "https"}, - Params: params, - Reader: &PlatformSignInReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*PlatformSignInOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*PlatformSignInDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - -/* - PlatformSignUp platforms sign up creates a new percona platform user -*/ -func (a *Client) PlatformSignUp(params *PlatformSignUpParams) (*PlatformSignUpOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewPlatformSignUpParams() - } - - result, err := a.transport.Submit(&runtime.ClientOperation{ - ID: "PlatformSignUp", - Method: "POST", - PathPattern: "/v1/Platform/SignUp", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http", "https"}, - Params: params, - Reader: &PlatformSignUpReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - }) - if err != nil { - return nil, err - } - success, ok := result.(*PlatformSignUpOK) - if ok { - return success, nil - } - // unexpected success response - unexpectedSuccess := result.(*PlatformSignUpDefault) - return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) -} - /* Readiness readinesses returns an error when some PMM server component is not ready yet or is being restarted it can be used as for docker health check or kubernetes readiness probe */ diff --git a/api/serverpb/json/serverpb.json b/api/serverpb/json/serverpb.json index f1c544bd93..3159523095 100644 --- a/api/serverpb/json/serverpb.json +++ b/api/serverpb/json/serverpb.json @@ -127,162 +127,6 @@ } } }, - "/v1/Platform/SignIn": { - "post": { - "tags": [ - "Server" - ], - "summary": "PlatformSignIn links that PMM instance to Percona Platform user.", - "operationId": "PlatformSignIn", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "email": { - "description": "Existing Percona Platform user's email.", - "type": "string", - "x-order": 0 - }, - "password": { - "description": "Existing Percona Platform user's password.", - "type": "string", - "x-order": 1 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 1 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type_url": { - "type": "string", - "x-order": 0 - }, - "value": { - "type": "string", - "format": "byte", - "x-order": 1 - } - } - }, - "x-order": 3 - }, - "error": { - "type": "string", - "x-order": 0 - }, - "message": { - "type": "string", - "x-order": 2 - } - } - } - } - } - } - }, - "/v1/Platform/SignUp": { - "post": { - "tags": [ - "Server" - ], - "summary": "PlatformSignUp creates a new Percona Platform user.", - "operationId": "PlatformSignUp", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "email": { - "description": "New Percona Platform user's email.", - "type": "string", - "x-order": 0 - }, - "password": { - "description": "New Percona Platform user's password.", - "type": "string", - "x-order": 1 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32", - "x-order": 1 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type_url": { - "type": "string", - "x-order": 0 - }, - "value": { - "type": "string", - "format": "byte", - "x-order": 1 - } - } - }, - "x-order": 3 - }, - "error": { - "type": "string", - "x-order": 0 - }, - "message": { - "type": "string", - "x-order": 2 - } - } - } - } - } - } - }, "/v1/Settings/Change": { "post": { "tags": [ diff --git a/api/serverpb/server.pb.go b/api/serverpb/server.pb.go index 67e91e8276..af7710bff8 100644 --- a/api/serverpb/server.pb.go +++ b/api/serverpb/server.pb.go @@ -1076,166 +1076,6 @@ func (m *AWSInstanceCheckResponse) XXX_DiscardUnknown() { var xxx_messageInfo_AWSInstanceCheckResponse proto.InternalMessageInfo -type PlatformSignUpRequest struct { - // New Percona Platform user's email. - Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` - // New Percona Platform user's password. - Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PlatformSignUpRequest) Reset() { *m = PlatformSignUpRequest{} } -func (m *PlatformSignUpRequest) String() string { return proto.CompactTextString(m) } -func (*PlatformSignUpRequest) ProtoMessage() {} -func (*PlatformSignUpRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9202d8f598083902, []int{19} -} - -func (m *PlatformSignUpRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PlatformSignUpRequest.Unmarshal(m, b) -} -func (m *PlatformSignUpRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PlatformSignUpRequest.Marshal(b, m, deterministic) -} -func (m *PlatformSignUpRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformSignUpRequest.Merge(m, src) -} -func (m *PlatformSignUpRequest) XXX_Size() int { - return xxx_messageInfo_PlatformSignUpRequest.Size(m) -} -func (m *PlatformSignUpRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PlatformSignUpRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_PlatformSignUpRequest proto.InternalMessageInfo - -func (m *PlatformSignUpRequest) GetEmail() string { - if m != nil { - return m.Email - } - return "" -} - -func (m *PlatformSignUpRequest) GetPassword() string { - if m != nil { - return m.Password - } - return "" -} - -type PlatformSignUpResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PlatformSignUpResponse) Reset() { *m = PlatformSignUpResponse{} } -func (m *PlatformSignUpResponse) String() string { return proto.CompactTextString(m) } -func (*PlatformSignUpResponse) ProtoMessage() {} -func (*PlatformSignUpResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9202d8f598083902, []int{20} -} - -func (m *PlatformSignUpResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PlatformSignUpResponse.Unmarshal(m, b) -} -func (m *PlatformSignUpResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PlatformSignUpResponse.Marshal(b, m, deterministic) -} -func (m *PlatformSignUpResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformSignUpResponse.Merge(m, src) -} -func (m *PlatformSignUpResponse) XXX_Size() int { - return xxx_messageInfo_PlatformSignUpResponse.Size(m) -} -func (m *PlatformSignUpResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PlatformSignUpResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_PlatformSignUpResponse proto.InternalMessageInfo - -type PlatformSignInRequest struct { - // Existing Percona Platform user's email. - Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` - // Existing Percona Platform user's password. - Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PlatformSignInRequest) Reset() { *m = PlatformSignInRequest{} } -func (m *PlatformSignInRequest) String() string { return proto.CompactTextString(m) } -func (*PlatformSignInRequest) ProtoMessage() {} -func (*PlatformSignInRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9202d8f598083902, []int{21} -} - -func (m *PlatformSignInRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PlatformSignInRequest.Unmarshal(m, b) -} -func (m *PlatformSignInRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PlatformSignInRequest.Marshal(b, m, deterministic) -} -func (m *PlatformSignInRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformSignInRequest.Merge(m, src) -} -func (m *PlatformSignInRequest) XXX_Size() int { - return xxx_messageInfo_PlatformSignInRequest.Size(m) -} -func (m *PlatformSignInRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PlatformSignInRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_PlatformSignInRequest proto.InternalMessageInfo - -func (m *PlatformSignInRequest) GetEmail() string { - if m != nil { - return m.Email - } - return "" -} - -func (m *PlatformSignInRequest) GetPassword() string { - if m != nil { - return m.Password - } - return "" -} - -type PlatformSignInResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PlatformSignInResponse) Reset() { *m = PlatformSignInResponse{} } -func (m *PlatformSignInResponse) String() string { return proto.CompactTextString(m) } -func (*PlatformSignInResponse) ProtoMessage() {} -func (*PlatformSignInResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9202d8f598083902, []int{22} -} - -func (m *PlatformSignInResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PlatformSignInResponse.Unmarshal(m, b) -} -func (m *PlatformSignInResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PlatformSignInResponse.Marshal(b, m, deterministic) -} -func (m *PlatformSignInResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PlatformSignInResponse.Merge(m, src) -} -func (m *PlatformSignInResponse) XXX_Size() int { - return xxx_messageInfo_PlatformSignInResponse.Size(m) -} -func (m *PlatformSignInResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PlatformSignInResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_PlatformSignInResponse proto.InternalMessageInfo - func init() { proto.RegisterEnum("server.DistributionMethod", DistributionMethod_name, DistributionMethod_value) proto.RegisterType((*VersionInfo)(nil), "server.VersionInfo") @@ -1257,10 +1097,6 @@ func init() { proto.RegisterType((*ChangeSettingsResponse)(nil), "server.ChangeSettingsResponse") proto.RegisterType((*AWSInstanceCheckRequest)(nil), "server.AWSInstanceCheckRequest") proto.RegisterType((*AWSInstanceCheckResponse)(nil), "server.AWSInstanceCheckResponse") - proto.RegisterType((*PlatformSignUpRequest)(nil), "server.PlatformSignUpRequest") - proto.RegisterType((*PlatformSignUpResponse)(nil), "server.PlatformSignUpResponse") - proto.RegisterType((*PlatformSignInRequest)(nil), "server.PlatformSignInRequest") - proto.RegisterType((*PlatformSignInResponse)(nil), "server.PlatformSignInResponse") } func init() { @@ -1268,96 +1104,91 @@ func init() { } var fileDescriptor_9202d8f598083902 = []byte{ - // 1422 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x57, 0x5b, 0x6f, 0x1b, 0xb7, - 0x12, 0x3e, 0x92, 0x13, 0x5b, 0x1a, 0xf9, 0x22, 0x53, 0xbe, 0x6c, 0x64, 0x3b, 0xf6, 0x59, 0x20, - 0x39, 0x8e, 0x73, 0x62, 0x21, 0x3e, 0xc0, 0x69, 0x9b, 0xbe, 0xd4, 0xb6, 0x9c, 0x54, 0x48, 0x1c, - 0xa7, 0x2b, 0x39, 0x2d, 0xfa, 0xb2, 0xa0, 0xb5, 0x94, 0xb4, 0xf0, 0x5e, 0x54, 0x92, 0x92, 0xe0, - 0x3e, 0x16, 0xf9, 0x07, 0x45, 0x81, 0xfe, 0xac, 0x02, 0x6d, 0x9f, 0x0b, 0x14, 0xfd, 0x21, 0x05, - 0x6f, 0xab, 0xdb, 0x5a, 0x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x6f, 0x0a, - 0xc3, 0x44, 0x53, 0xfb, 0xcf, 0x30, 0xd1, 0x5b, 0x7a, 0xc9, 0x58, 0xa2, 0x86, 0x53, 0x51, 0xa4, - 0x94, 0x80, 0xb5, 0x28, 0x3d, 0x60, 0xd2, 0x83, 0xd2, 0x03, 0x0e, 0xfb, 0xc9, 0x8c, 0x80, 0xb5, - 0xe8, 0x59, 0xe6, 0xe0, 0x04, 0xbe, 0xcc, 0x99, 0xbf, 0xf4, 0x57, 0xf3, 0xf2, 0x8b, 0xfb, 0xbf, - 0xdf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xcd, 0x60, 0x8f, 0x51, 0xe5, 0x0f, 0x00, 0x00, + // 1332 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x57, 0xcb, 0x6e, 0x1b, 0xc7, + 0x12, 0xbd, 0xa4, 0x6c, 0x8a, 0x53, 0xd4, 0x83, 0x6a, 0x4a, 0xd6, 0x98, 0xb2, 0x2c, 0xdd, 0x01, + 0xec, 0x2b, 0xcb, 0xd7, 0x24, 0xac, 0x00, 0x79, 0x38, 0x9b, 0x48, 0xa2, 0xec, 0x10, 0xb6, 0xac, + 0x60, 0x48, 0x3b, 0x41, 0x36, 0x83, 0x16, 0xa7, 0x49, 0x0e, 0x34, 0x0f, 0xa6, 0xbb, 0x87, 0x82, + 0xb2, 0x0c, 0xfc, 0x07, 0x41, 0x7e, 0x25, 0xdf, 0x11, 0x20, 0xc9, 0x3a, 0x40, 0x90, 0x0f, 0x09, + 0xfa, 0x35, 0x7c, 0x4a, 0x0e, 0x92, 0x65, 0x76, 0xd3, 0xa7, 0x4e, 0x57, 0x75, 0x55, 0x9f, 0x6a, + 0x16, 0x61, 0x83, 0x11, 0x3a, 0x24, 0x74, 0x70, 0x5e, 0x57, 0x1f, 0xb5, 0x01, 0x4d, 0x78, 0x82, + 0x0a, 0x6a, 0x55, 0xfd, 0xb0, 0x17, 0xf0, 0x7e, 0x7a, 0x5e, 0xeb, 0x24, 0x51, 0x3d, 0xba, 0x0c, + 0xf8, 0x45, 0x72, 0x59, 0xef, 0x25, 0x4f, 0x24, 0xe9, 0xc9, 0x10, 0x87, 0x81, 0x8f, 0x79, 0x42, + 0x59, 0x3d, 0xfb, 0x54, 0xfb, 0xab, 0xf7, 0x7a, 0x49, 0xd2, 0x0b, 0x49, 0x1d, 0x0f, 0x82, 0x3a, + 0x8e, 0xe3, 0x84, 0x63, 0x1e, 0x24, 0x31, 0xd3, 0xd6, 0xfb, 0xda, 0x2a, 0x57, 0xe7, 0x69, 0xb7, + 0xee, 0xa7, 0x54, 0x12, 0xb4, 0x7d, 0x67, 0xda, 0xce, 0x83, 0x88, 0x30, 0x8e, 0xa3, 0x81, 0x22, + 0x38, 0xef, 0x72, 0x50, 0x7a, 0x4b, 0x28, 0x0b, 0x92, 0xb8, 0x19, 0x77, 0x13, 0x64, 0xc3, 0xe2, + 0x50, 0x2d, 0xed, 0xdc, 0x6e, 0x6e, 0xcf, 0x72, 0xcd, 0x12, 0xfd, 0x17, 0x96, 0xba, 0x69, 0x18, + 0x7a, 0xc6, 0x9c, 0x97, 0xe6, 0x92, 0xc0, 0xb4, 0x03, 0xf4, 0x31, 0x58, 0x99, 0x7f, 0x7b, 0x61, + 0x37, 0xb7, 0x57, 0x3a, 0xa8, 0xd6, 0xd4, 0x09, 0x6a, 0xe6, 0x04, 0xb5, 0xb6, 0x61, 0xb8, 0x23, + 0xb2, 0xf3, 0x10, 0x56, 0xb4, 0x13, 0x97, 0x7c, 0x93, 0x12, 0xc6, 0xd1, 0x3a, 0xdc, 0xf6, 0xd3, + 0x28, 0xba, 0xd2, 0xc7, 0x50, 0x0b, 0xe7, 0x97, 0x1c, 0xac, 0x66, 0x44, 0x36, 0x48, 0x62, 0x46, + 0x6e, 0x38, 0xf2, 0x63, 0xd0, 0xd5, 0x97, 0x87, 0x2d, 0x1d, 0x54, 0x6a,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0x79, 0x63, 0x83, 0xb3, 0x2d, 0x03, 0x6d, 0x3a, 0x68, 0x2a, + 0x10, 0x4f, 0x99, 0x88, 0xd4, 0x81, 0xd2, 0xd8, 0xfb, 0x3b, 0xca, 0x67, 0xf6, 0xa9, 0x1e, 0xe5, + 0x33, 0xe7, 0xc1, 0x76, 0xb6, 0x64, 0x98, 0x0d, 0xa7, 0x2c, 0xc2, 0x18, 0x6b, 0xfd, 0x05, 0x91, + 0xe9, 0x24, 0xb0, 0x32, 0xd9, 0x4c, 0x68, 0x7b, 0x74, 0x05, 0x73, 0x9e, 0xed, 0xea, 0xfd, 0xeb, + 0xcc, 0x3a, 0xda, 0x7d, 0x19, 0xcd, 0x76, 0x2a, 0x13, 0xd1, 0x14, 0x59, 0x04, 0x1c, 0x42, 0x79, + 0xba, 0x63, 0xd0, 0x8e, 0xf1, 0x79, 0x4d, 0x3f, 0x56, 0x77, 0xaf, 0x27, 0xe8, 0xb0, 0x3b, 0x32, + 0xec, 0x5d, 0x67, 0x5d, 0x84, 0x9d, 0x66, 0x3d, 0xcb, 0xed, 0x1f, 0xc1, 0xd7, 0x45, 0xf3, 0xb7, + 0xf0, 0xbc, 0x20, 0x5f, 0xed, 0x0f, 0xfe, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x29, 0xf7, 0xa7, 0xb7, + 0x29, 0x0e, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -1389,10 +1220,6 @@ type ServerClient interface { ChangeSettings(ctx context.Context, in *ChangeSettingsRequest, opts ...grpc.CallOption) (*ChangeSettingsResponse, error) // AWSInstanceCheck checks AWS EC2 instance ID. AWSInstanceCheck(ctx context.Context, in *AWSInstanceCheckRequest, opts ...grpc.CallOption) (*AWSInstanceCheckResponse, error) - // PlatformSignUp creates a new Percona Platform user. - PlatformSignUp(ctx context.Context, in *PlatformSignUpRequest, opts ...grpc.CallOption) (*PlatformSignUpResponse, error) - // PlatformSignIn links that PMM instance to Percona Platform user. - PlatformSignIn(ctx context.Context, in *PlatformSignInRequest, opts ...grpc.CallOption) (*PlatformSignInResponse, error) } type serverClient struct { @@ -1475,24 +1302,6 @@ func (c *serverClient) AWSInstanceCheck(ctx context.Context, in *AWSInstanceChec return out, nil } -func (c *serverClient) PlatformSignUp(ctx context.Context, in *PlatformSignUpRequest, opts ...grpc.CallOption) (*PlatformSignUpResponse, error) { - out := new(PlatformSignUpResponse) - err := c.cc.Invoke(ctx, "/server.Server/PlatformSignUp", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *serverClient) PlatformSignIn(ctx context.Context, in *PlatformSignInRequest, opts ...grpc.CallOption) (*PlatformSignInResponse, error) { - out := new(PlatformSignInResponse) - err := c.cc.Invoke(ctx, "/server.Server/PlatformSignIn", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - // ServerServer is the server API for Server service. type ServerServer interface { // Version returns PMM Server versions. @@ -1512,10 +1321,6 @@ type ServerServer interface { ChangeSettings(context.Context, *ChangeSettingsRequest) (*ChangeSettingsResponse, error) // AWSInstanceCheck checks AWS EC2 instance ID. AWSInstanceCheck(context.Context, *AWSInstanceCheckRequest) (*AWSInstanceCheckResponse, error) - // PlatformSignUp creates a new Percona Platform user. - PlatformSignUp(context.Context, *PlatformSignUpRequest) (*PlatformSignUpResponse, error) - // PlatformSignIn links that PMM instance to Percona Platform user. - PlatformSignIn(context.Context, *PlatformSignInRequest) (*PlatformSignInResponse, error) } // UnimplementedServerServer can be embedded to have forward compatible implementations. @@ -1546,12 +1351,6 @@ func (*UnimplementedServerServer) ChangeSettings(ctx context.Context, req *Chang func (*UnimplementedServerServer) AWSInstanceCheck(ctx context.Context, req *AWSInstanceCheckRequest) (*AWSInstanceCheckResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method AWSInstanceCheck not implemented") } -func (*UnimplementedServerServer) PlatformSignUp(ctx context.Context, req *PlatformSignUpRequest) (*PlatformSignUpResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PlatformSignUp not implemented") -} -func (*UnimplementedServerServer) PlatformSignIn(ctx context.Context, req *PlatformSignInRequest) (*PlatformSignInResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method PlatformSignIn not implemented") -} func RegisterServerServer(s *grpc.Server, srv ServerServer) { s.RegisterService(&_Server_serviceDesc, srv) @@ -1701,42 +1500,6 @@ func _Server_AWSInstanceCheck_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } -func _Server_PlatformSignUp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PlatformSignUpRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ServerServer).PlatformSignUp(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/server.Server/PlatformSignUp", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ServerServer).PlatformSignUp(ctx, req.(*PlatformSignUpRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _Server_PlatformSignIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PlatformSignInRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ServerServer).PlatformSignIn(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/server.Server/PlatformSignIn", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ServerServer).PlatformSignIn(ctx, req.(*PlatformSignInRequest)) - } - return interceptor(ctx, in, info, handler) -} - var _Server_serviceDesc = grpc.ServiceDesc{ ServiceName: "server.Server", HandlerType: (*ServerServer)(nil), @@ -1773,14 +1536,6 @@ var _Server_serviceDesc = grpc.ServiceDesc{ MethodName: "AWSInstanceCheck", Handler: _Server_AWSInstanceCheck_Handler, }, - { - MethodName: "PlatformSignUp", - Handler: _Server_PlatformSignUp_Handler, - }, - { - MethodName: "PlatformSignIn", - Handler: _Server_PlatformSignIn_Handler, - }, }, Streams: []grpc.StreamDesc{}, Metadata: "serverpb/server.proto", diff --git a/api/serverpb/server.pb.gw.go b/api/serverpb/server.pb.gw.go index 05ca175443..03e33d3ede 100644 --- a/api/serverpb/server.pb.gw.go +++ b/api/serverpb/server.pb.gw.go @@ -286,74 +286,6 @@ func local_request_Server_AWSInstanceCheck_0(ctx context.Context, marshaler runt } -func request_Server_PlatformSignUp_0(ctx context.Context, marshaler runtime.Marshaler, client ServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PlatformSignUpRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.PlatformSignUp(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Server_PlatformSignUp_0(ctx context.Context, marshaler runtime.Marshaler, server ServerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PlatformSignUpRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.PlatformSignUp(ctx, &protoReq) - return msg, metadata, err - -} - -func request_Server_PlatformSignIn_0(ctx context.Context, marshaler runtime.Marshaler, client ServerClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PlatformSignInRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.PlatformSignIn(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func local_request_Server_PlatformSignIn_0(ctx context.Context, marshaler runtime.Marshaler, server ServerServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PlatformSignInRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := server.PlatformSignIn(ctx, &protoReq) - return msg, metadata, err - -} - // RegisterServerHandlerServer registers the http handlers for service Server to "mux". // UnaryRPC :call ServerServer directly. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. @@ -519,46 +451,6 @@ func RegisterServerHandlerServer(ctx context.Context, mux *runtime.ServeMux, ser }) - mux.Handle("POST", pattern_Server_PlatformSignUp_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Server_PlatformSignUp_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Server_PlatformSignUp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Server_PlatformSignIn_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_Server_PlatformSignIn_0(rctx, inboundMarshaler, server, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Server_PlatformSignIn_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - return nil } @@ -760,46 +652,6 @@ func RegisterServerHandlerClient(ctx context.Context, mux *runtime.ServeMux, cli }) - mux.Handle("POST", pattern_Server_PlatformSignUp_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Server_PlatformSignUp_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Server_PlatformSignUp_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_Server_PlatformSignIn_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_Server_PlatformSignIn_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_Server_PlatformSignIn_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - return nil } @@ -819,10 +671,6 @@ var ( pattern_Server_ChangeSettings_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "Settings", "Change"}, "", runtime.AssumeColonVerbOpt(true))) pattern_Server_AWSInstanceCheck_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{"v1", "AWSInstanceCheck"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Server_PlatformSignUp_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "Platform", "SignUp"}, "", runtime.AssumeColonVerbOpt(true))) - - pattern_Server_PlatformSignIn_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "Platform", "SignIn"}, "", runtime.AssumeColonVerbOpt(true))) ) var ( @@ -841,8 +689,4 @@ var ( forward_Server_ChangeSettings_0 = runtime.ForwardResponseMessage forward_Server_AWSInstanceCheck_0 = runtime.ForwardResponseMessage - - forward_Server_PlatformSignUp_0 = runtime.ForwardResponseMessage - - forward_Server_PlatformSignIn_0 = runtime.ForwardResponseMessage ) diff --git a/api/serverpb/server.proto b/api/serverpb/server.proto index 53ef795799..406f0d0d5a 100644 --- a/api/serverpb/server.proto +++ b/api/serverpb/server.proto @@ -162,31 +162,35 @@ message AWSInstanceCheckRequest { message AWSInstanceCheckResponse {} -message PlatformSignUpRequest { - // New Percona Platform user's email. - string email = 1 [ - (validator.field) = { - string_not_empty: true - } - ]; - // New Percona Platform user's password. - string password = 2; -} - -message PlatformSignUpResponse {} - -message PlatformSignInRequest { - // Existing Percona Platform user's email. - string email = 1 [ - (validator.field) = { - string_not_empty: true - } - ]; - // Existing Percona Platform user's password. - string password = 2; -} - -message PlatformSignInResponse {} +// +// TODO enable after release: https://jira.percona.com/browse/SAAS-175 +// +// message PlatformSignUpRequest { +// // New Percona Platform user's email. +// string email = 1 [ +// (validator.field) = { +// string_not_empty: true +// } +// ]; +// // New Percona Platform user's password. +// string password = 2; +// } +// +// message PlatformSignUpResponse {} +// +// message PlatformSignInRequest { +// // Existing Percona Platform user's email. +// string email = 1 [ +// (validator.field) = { +// string_not_empty: true +// } +// ]; +// // Existing Percona Platform user's password. +// string password = 2; +// } +// +// message PlatformSignInResponse {} +// // Server service provides generic PMM Server public APIs. service Server { @@ -245,18 +249,23 @@ service Server { body: "*" }; } - // PlatformSignUp creates a new Percona Platform user. - rpc PlatformSignUp(PlatformSignUpRequest) returns (PlatformSignUpResponse) { - option (google.api.http) = { - post: "/v1/Platform/SignUp" - body: "*" - }; - } - // PlatformSignIn links that PMM instance to Percona Platform user. - rpc PlatformSignIn(PlatformSignInRequest) returns (PlatformSignInResponse) { - option (google.api.http) = { - post: "/v1/Platform/SignIn" - body: "*" - }; - } + // + // TODO enable after release: https://jira.percona.com/browse/SAAS-175 + // + // // PlatformSignUp creates a new Percona Platform user. + // rpc PlatformSignUp(PlatformSignUpRequest) returns (PlatformSignUpResponse) { + // option (google.api.http) = { + // post: "/v1/Platform/SignUp" + // body: "*" + // }; + // } + // // PlatformSignIn links that PMM instance to Percona Platform user. + // rpc PlatformSignIn(PlatformSignInRequest) returns (PlatformSignInResponse) { + // option (google.api.http) = { + // post: "/v1/Platform/SignIn" + // body: "*" + // }; + // } + // + } diff --git a/api/serverpb/server.validator.pb.go b/api/serverpb/server.validator.pb.go index cee430e619..4c0f25eca1 100644 --- a/api/serverpb/server.validator.pb.go +++ b/api/serverpb/server.validator.pb.go @@ -154,21 +154,3 @@ func (this *AWSInstanceCheckRequest) Validate() error { func (this *AWSInstanceCheckResponse) Validate() error { return nil } -func (this *PlatformSignUpRequest) Validate() error { - if this.Email == "" { - return github_com_mwitkow_go_proto_validators.FieldError("Email", fmt.Errorf(`value '%v' must not be an empty string`, this.Email)) - } - return nil -} -func (this *PlatformSignUpResponse) Validate() error { - return nil -} -func (this *PlatformSignInRequest) Validate() error { - if this.Email == "" { - return github_com_mwitkow_go_proto_validators.FieldError("Email", fmt.Errorf(`value '%v' must not be an empty string`, this.Email)) - } - return nil -} -func (this *PlatformSignInResponse) Validate() error { - return nil -} diff --git a/api/swagger/swagger.json b/api/swagger/swagger.json index f7b2867efd..0a991b54c6 100644 --- a/api/swagger/swagger.json +++ b/api/swagger/swagger.json @@ -127,162 +127,6 @@ } } }, - "/v1/Platform/SignIn": { - "post": { - "tags": [ - "Server" - ], - "summary": "PlatformSignIn links that PMM instance to Percona Platform user.", - "operationId": "PlatformSignIn", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "email": { - "description": "Existing Percona Platform user's email.", - "type": "string", - "x-order": 0 - }, - "password": { - "description": "Existing Percona Platform user's password.", - "type": "string", - "x-order": 1 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "type": "object", - "properties": { - "error": { - "type": "string", - "x-order": 0 - }, - "code": { - "type": "integer", - "format": "int32", - "x-order": 1 - }, - "message": { - "type": "string", - "x-order": 2 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type_url": { - "type": "string", - "x-order": 0 - }, - "value": { - "type": "string", - "format": "byte", - "x-order": 1 - } - } - }, - "x-order": 3 - } - } - } - } - } - } - }, - "/v1/Platform/SignUp": { - "post": { - "tags": [ - "Server" - ], - "summary": "PlatformSignUp creates a new Percona Platform user.", - "operationId": "PlatformSignUp", - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "type": "object", - "properties": { - "email": { - "description": "New Percona Platform user's email.", - "type": "string", - "x-order": 0 - }, - "password": { - "description": "New Percona Platform user's password.", - "type": "string", - "x-order": 1 - } - } - } - } - ], - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "type": "object" - } - }, - "default": { - "description": "An unexpected error response", - "schema": { - "type": "object", - "properties": { - "error": { - "type": "string", - "x-order": 0 - }, - "code": { - "type": "integer", - "format": "int32", - "x-order": 1 - }, - "message": { - "type": "string", - "x-order": 2 - }, - "details": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type_url": { - "type": "string", - "x-order": 0 - }, - "value": { - "type": "string", - "format": "byte", - "x-order": 1 - } - } - }, - "x-order": 3 - } - } - } - } - } - } - }, "/v1/Settings/Change": { "post": { "tags": [