[api] chore: update api
This commit is contained in:
+31
-31
@@ -22,23 +22,23 @@ import (
|
||||
// DoorAPIService DoorAPI service
|
||||
type DoorAPIService service
|
||||
|
||||
type ApiOpenDoorDoorClosePutRequest struct {
|
||||
type ApiOpenDoorApiV1DoorClosePutRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *DoorAPIService
|
||||
}
|
||||
|
||||
func (r ApiOpenDoorDoorClosePutRequest) Execute() (interface{}, *http.Response, error) {
|
||||
return r.ApiService.OpenDoorDoorClosePutExecute(r)
|
||||
func (r ApiOpenDoorApiV1DoorClosePutRequest) Execute() (interface{}, *http.Response, error) {
|
||||
return r.ApiService.OpenDoorApiV1DoorClosePutExecute(r)
|
||||
}
|
||||
|
||||
/*
|
||||
OpenDoorDoorClosePut Open Door
|
||||
OpenDoorApiV1DoorClosePut Open Door
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiOpenDoorDoorClosePutRequest
|
||||
@return ApiOpenDoorApiV1DoorClosePutRequest
|
||||
*/
|
||||
func (a *DoorAPIService) OpenDoorDoorClosePut(ctx context.Context) ApiOpenDoorDoorClosePutRequest {
|
||||
return ApiOpenDoorDoorClosePutRequest{
|
||||
func (a *DoorAPIService) OpenDoorApiV1DoorClosePut(ctx context.Context) ApiOpenDoorApiV1DoorClosePutRequest {
|
||||
return ApiOpenDoorApiV1DoorClosePutRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
}
|
||||
@@ -46,7 +46,7 @@ func (a *DoorAPIService) OpenDoorDoorClosePut(ctx context.Context) ApiOpenDoorDo
|
||||
|
||||
// Execute executes the request
|
||||
// @return interface{}
|
||||
func (a *DoorAPIService) OpenDoorDoorClosePutExecute(r ApiOpenDoorDoorClosePutRequest) (interface{}, *http.Response, error) {
|
||||
func (a *DoorAPIService) OpenDoorApiV1DoorClosePutExecute(r ApiOpenDoorApiV1DoorClosePutRequest) (interface{}, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodPut
|
||||
localVarPostBody interface{}
|
||||
@@ -54,12 +54,12 @@ func (a *DoorAPIService) OpenDoorDoorClosePutExecute(r ApiOpenDoorDoorClosePutRe
|
||||
localVarReturnValue interface{}
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DoorAPIService.OpenDoorDoorClosePut")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DoorAPIService.OpenDoorApiV1DoorClosePut")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
localVarPath := localBasePath + "/door/close"
|
||||
localVarPath := localBasePath + "/api/v1/door/close"
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := url.Values{}
|
||||
@@ -119,23 +119,23 @@ func (a *DoorAPIService) OpenDoorDoorClosePutExecute(r ApiOpenDoorDoorClosePutRe
|
||||
return localVarReturnValue, localVarHTTPResponse, nil
|
||||
}
|
||||
|
||||
type ApiOpenDoorDoorOpenPutRequest struct {
|
||||
type ApiOpenDoorApiV1DoorOpenPutRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *DoorAPIService
|
||||
}
|
||||
|
||||
func (r ApiOpenDoorDoorOpenPutRequest) Execute() (interface{}, *http.Response, error) {
|
||||
return r.ApiService.OpenDoorDoorOpenPutExecute(r)
|
||||
func (r ApiOpenDoorApiV1DoorOpenPutRequest) Execute() (interface{}, *http.Response, error) {
|
||||
return r.ApiService.OpenDoorApiV1DoorOpenPutExecute(r)
|
||||
}
|
||||
|
||||
/*
|
||||
OpenDoorDoorOpenPut Open Door
|
||||
OpenDoorApiV1DoorOpenPut Open Door
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiOpenDoorDoorOpenPutRequest
|
||||
@return ApiOpenDoorApiV1DoorOpenPutRequest
|
||||
*/
|
||||
func (a *DoorAPIService) OpenDoorDoorOpenPut(ctx context.Context) ApiOpenDoorDoorOpenPutRequest {
|
||||
return ApiOpenDoorDoorOpenPutRequest{
|
||||
func (a *DoorAPIService) OpenDoorApiV1DoorOpenPut(ctx context.Context) ApiOpenDoorApiV1DoorOpenPutRequest {
|
||||
return ApiOpenDoorApiV1DoorOpenPutRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
}
|
||||
@@ -143,7 +143,7 @@ func (a *DoorAPIService) OpenDoorDoorOpenPut(ctx context.Context) ApiOpenDoorDoo
|
||||
|
||||
// Execute executes the request
|
||||
// @return interface{}
|
||||
func (a *DoorAPIService) OpenDoorDoorOpenPutExecute(r ApiOpenDoorDoorOpenPutRequest) (interface{}, *http.Response, error) {
|
||||
func (a *DoorAPIService) OpenDoorApiV1DoorOpenPutExecute(r ApiOpenDoorApiV1DoorOpenPutRequest) (interface{}, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodPut
|
||||
localVarPostBody interface{}
|
||||
@@ -151,12 +151,12 @@ func (a *DoorAPIService) OpenDoorDoorOpenPutExecute(r ApiOpenDoorDoorOpenPutRequ
|
||||
localVarReturnValue interface{}
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DoorAPIService.OpenDoorDoorOpenPut")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DoorAPIService.OpenDoorApiV1DoorOpenPut")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
localVarPath := localBasePath + "/door/open"
|
||||
localVarPath := localBasePath + "/api/v1/door/open"
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := url.Values{}
|
||||
@@ -216,29 +216,29 @@ func (a *DoorAPIService) OpenDoorDoorOpenPutExecute(r ApiOpenDoorDoorOpenPutRequ
|
||||
return localVarReturnValue, localVarHTTPResponse, nil
|
||||
}
|
||||
|
||||
type ApiTestAccessDoorTestPostRequest struct {
|
||||
type ApiTestAccessApiV1DoorTestPostRequest struct {
|
||||
ctx context.Context
|
||||
ApiService *DoorAPIService
|
||||
input *string
|
||||
}
|
||||
|
||||
func (r ApiTestAccessDoorTestPostRequest) Input(input string) ApiTestAccessDoorTestPostRequest {
|
||||
func (r ApiTestAccessApiV1DoorTestPostRequest) Input(input string) ApiTestAccessApiV1DoorTestPostRequest {
|
||||
r.input = &input
|
||||
return r
|
||||
}
|
||||
|
||||
func (r ApiTestAccessDoorTestPostRequest) Execute() (interface{}, *http.Response, error) {
|
||||
return r.ApiService.TestAccessDoorTestPostExecute(r)
|
||||
func (r ApiTestAccessApiV1DoorTestPostRequest) Execute() (interface{}, *http.Response, error) {
|
||||
return r.ApiService.TestAccessApiV1DoorTestPostExecute(r)
|
||||
}
|
||||
|
||||
/*
|
||||
TestAccessDoorTestPost Test Access
|
||||
TestAccessApiV1DoorTestPost Test Access
|
||||
|
||||
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
|
||||
@return ApiTestAccessDoorTestPostRequest
|
||||
@return ApiTestAccessApiV1DoorTestPostRequest
|
||||
*/
|
||||
func (a *DoorAPIService) TestAccessDoorTestPost(ctx context.Context) ApiTestAccessDoorTestPostRequest {
|
||||
return ApiTestAccessDoorTestPostRequest{
|
||||
func (a *DoorAPIService) TestAccessApiV1DoorTestPost(ctx context.Context) ApiTestAccessApiV1DoorTestPostRequest {
|
||||
return ApiTestAccessApiV1DoorTestPostRequest{
|
||||
ApiService: a,
|
||||
ctx: ctx,
|
||||
}
|
||||
@@ -246,7 +246,7 @@ func (a *DoorAPIService) TestAccessDoorTestPost(ctx context.Context) ApiTestAcce
|
||||
|
||||
// Execute executes the request
|
||||
// @return interface{}
|
||||
func (a *DoorAPIService) TestAccessDoorTestPostExecute(r ApiTestAccessDoorTestPostRequest) (interface{}, *http.Response, error) {
|
||||
func (a *DoorAPIService) TestAccessApiV1DoorTestPostExecute(r ApiTestAccessApiV1DoorTestPostRequest) (interface{}, *http.Response, error) {
|
||||
var (
|
||||
localVarHTTPMethod = http.MethodPost
|
||||
localVarPostBody interface{}
|
||||
@@ -254,12 +254,12 @@ func (a *DoorAPIService) TestAccessDoorTestPostExecute(r ApiTestAccessDoorTestPo
|
||||
localVarReturnValue interface{}
|
||||
)
|
||||
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DoorAPIService.TestAccessDoorTestPost")
|
||||
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DoorAPIService.TestAccessApiV1DoorTestPost")
|
||||
if err != nil {
|
||||
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
|
||||
}
|
||||
|
||||
localVarPath := localBasePath + "/door/test"
|
||||
localVarPath := localBasePath + "/api/v1/door/test"
|
||||
|
||||
localVarHeaderParams := make(map[string]string)
|
||||
localVarQueryParams := url.Values{}
|
||||
|
||||
Reference in New Issue
Block a user