/
api_cluster_settings_v2_service.go
38 lines (31 loc) · 1.66 KB
/
api_cluster_settings_v2_service.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Instaclustr API Documentation
*
*
*
* API version: Current
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
import (
"context"
"errors"
"net/http"
)
// ClusterSettingsV2APIService is a service that implements the logic for the ClusterSettingsV2APIServicer
// This service should implement the business logic for every endpoint for the ClusterSettingsV2API API.
// Include any external packages or services that will be required by this service.
type ClusterSettingsV2APIService struct {
}
// NewClusterSettingsV2APIService creates a default api service
func NewClusterSettingsV2APIService() ClusterSettingsV2APIServicer {
return &ClusterSettingsV2APIService{}
}
// ClusterManagementV2OperationsClustersV2ClusterIdChangeSettingsV2Put - Update cluster's general settings
func (s *ClusterSettingsV2APIService) ClusterManagementV2OperationsClustersV2ClusterIdChangeSettingsV2Put(ctx context.Context, clusterId string, clusterSettingsUpdateV2 ClusterSettingsUpdateV2) (ImplResponse, error) {
// TODO - update ClusterManagementV2OperationsClustersV2ClusterIdChangeSettingsV2Put with the required logic for this service method.
// Add api_cluster_settings_v2_service.go to the .openapi-generator-ignore to avoid overwriting this service implementation when updating open api generation.
// TODO: Uncomment the next line to return response Response(202, ClusterSettingsUpdateV2{}) or use other options such as http.Ok ...
// return Response(202, ClusterSettingsUpdateV2{}), nil
return Response(http.StatusNotImplemented, nil), errors.New("ClusterManagementV2OperationsClustersV2ClusterIdChangeSettingsV2Put method not implemented")
}