/
api_postgre_sql_configuration_v2_service.go
94 lines (71 loc) · 6.42 KB
/
api_postgre_sql_configuration_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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/*
* Instaclustr API Documentation
*
*
*
* API version: Current
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package openapi
import (
"context"
"errors"
"net/http"
)
// PostgreSQLConfigurationV2APIService is a service that implements the logic for the PostgreSQLConfigurationV2APIServicer
// This service should implement the business logic for every endpoint for the PostgreSQLConfigurationV2API API.
// Include any external packages or services that will be required by this service.
type PostgreSQLConfigurationV2APIService struct {
}
// NewPostgreSQLConfigurationV2APIService creates a default api service
func NewPostgreSQLConfigurationV2APIService() PostgreSQLConfigurationV2APIServicer {
return &PostgreSQLConfigurationV2APIService{}
}
// ClusterManagementV2DataSourcesPostgresqlClusterClusterIdConfigurationsGet - Get cluster configurations
func (s *PostgreSQLConfigurationV2APIService) ClusterManagementV2DataSourcesPostgresqlClusterClusterIdConfigurationsGet(ctx context.Context, clusterId string) (ImplResponse, error) {
// TODO - update ClusterManagementV2DataSourcesPostgresqlClusterClusterIdConfigurationsGet with the required logic for this service method.
// Add api_postgre_sql_configuration_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(200, []PostgresqlConfigurationPropertiesV2{}) or use other options such as http.Ok ...
// return Response(200, []PostgresqlConfigurationPropertiesV2{}), nil
return Response(http.StatusNotImplemented, nil), errors.New("ClusterManagementV2DataSourcesPostgresqlClusterClusterIdConfigurationsGet method not implemented")
}
// ClusterManagementV2ResourcesApplicationsPostgresqlConfigurationsV2ConfigurationIdDelete - Reset a configuration
func (s *PostgreSQLConfigurationV2APIService) ClusterManagementV2ResourcesApplicationsPostgresqlConfigurationsV2ConfigurationIdDelete(ctx context.Context, configurationId string) (ImplResponse, error) {
// TODO - update ClusterManagementV2ResourcesApplicationsPostgresqlConfigurationsV2ConfigurationIdDelete with the required logic for this service method.
// Add api_postgre_sql_configuration_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(204, {}) or use other options such as http.Ok ...
// return Response(204, nil),nil
// TODO: Uncomment the next line to return response Response(404, ErrorResponseV2{}) or use other options such as http.Ok ...
// return Response(404, ErrorResponseV2{}), nil
return Response(http.StatusNotImplemented, nil), errors.New("ClusterManagementV2ResourcesApplicationsPostgresqlConfigurationsV2ConfigurationIdDelete method not implemented")
}
// ClusterManagementV2ResourcesApplicationsPostgresqlConfigurationsV2ConfigurationIdGet - Get configuration
func (s *PostgreSQLConfigurationV2APIService) ClusterManagementV2ResourcesApplicationsPostgresqlConfigurationsV2ConfigurationIdGet(ctx context.Context, configurationId string) (ImplResponse, error) {
// TODO - update ClusterManagementV2ResourcesApplicationsPostgresqlConfigurationsV2ConfigurationIdGet with the required logic for this service method.
// Add api_postgre_sql_configuration_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, PostgresqlConfigurationPropertyV2{}) or use other options such as http.Ok ...
// return Response(202, PostgresqlConfigurationPropertyV2{}), nil
// TODO: Uncomment the next line to return response Response(404, ErrorResponseV2{}) or use other options such as http.Ok ...
// return Response(404, ErrorResponseV2{}), nil
return Response(http.StatusNotImplemented, nil), errors.New("ClusterManagementV2ResourcesApplicationsPostgresqlConfigurationsV2ConfigurationIdGet method not implemented")
}
// ClusterManagementV2ResourcesApplicationsPostgresqlConfigurationsV2ConfigurationIdPut - Update configuration
func (s *PostgreSQLConfigurationV2APIService) ClusterManagementV2ResourcesApplicationsPostgresqlConfigurationsV2ConfigurationIdPut(ctx context.Context, configurationId string, postgresqlConfigurationPropertyUpdateV2 PostgresqlConfigurationPropertyUpdateV2) (ImplResponse, error) {
// TODO - update ClusterManagementV2ResourcesApplicationsPostgresqlConfigurationsV2ConfigurationIdPut with the required logic for this service method.
// Add api_postgre_sql_configuration_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, PostgresqlConfigurationPropertyV2{}) or use other options such as http.Ok ...
// return Response(202, PostgresqlConfigurationPropertyV2{}), nil
// TODO: Uncomment the next line to return response Response(404, ErrorResponseV2{}) or use other options such as http.Ok ...
// return Response(404, ErrorResponseV2{}), nil
return Response(http.StatusNotImplemented, nil), errors.New("ClusterManagementV2ResourcesApplicationsPostgresqlConfigurationsV2ConfigurationIdPut method not implemented")
}
// ClusterManagementV2ResourcesApplicationsPostgresqlConfigurationsV2Post - Create configuration
func (s *PostgreSQLConfigurationV2APIService) ClusterManagementV2ResourcesApplicationsPostgresqlConfigurationsV2Post(ctx context.Context, postgresqlConfigurationPropertyV2 PostgresqlConfigurationPropertyV2) (ImplResponse, error) {
// TODO - update ClusterManagementV2ResourcesApplicationsPostgresqlConfigurationsV2Post with the required logic for this service method.
// Add api_postgre_sql_configuration_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, PostgresqlConfigurationPropertyV2{}) or use other options such as http.Ok ...
// return Response(202, PostgresqlConfigurationPropertyV2{}), nil
// TODO: Uncomment the next line to return response Response(404, ErrorResponseV2{}) or use other options such as http.Ok ...
// return Response(404, ErrorResponseV2{}), nil
return Response(http.StatusNotImplemented, nil), errors.New("ClusterManagementV2ResourcesApplicationsPostgresqlConfigurationsV2Post method not implemented")
}