From 4dded3ae65e51e7b9dda761fa0ff3d352fa48679 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 4 Sep 2024 09:55:16 +0300 Subject: [PATCH] chore(update): bump openapi schema (2024-09-04) (#126) Co-authored-by: GitHub --- handler/postgresql/postgresql.go | 5 ----- handler/serviceintegration/serviceintegration.go | 12 ++++++++++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/handler/postgresql/postgresql.go b/handler/postgresql/postgresql.go index 221a57b..4970cdc 100644 --- a/handler/postgresql/postgresql.go +++ b/handler/postgresql/postgresql.go @@ -145,13 +145,10 @@ type QueryOut struct { LocalBlksHit *float64 `json:"local_blks_hit,omitempty"` // Query statistic LocalBlksRead *float64 `json:"local_blks_read,omitempty"` // Query statistic LocalBlksWritten *float64 `json:"local_blks_written,omitempty"` // Query statistic - MaxExecTime *float64 `json:"max_exec_time,omitempty"` // Query statistic MaxPlanTime *float64 `json:"max_plan_time,omitempty"` // Query statistic MaxTime *float64 `json:"max_time,omitempty"` // Query statistic - MeanExecTime *float64 `json:"mean_exec_time,omitempty"` // Query statistic MeanPlanTime *float64 `json:"mean_plan_time,omitempty"` // Query statistic MeanTime *float64 `json:"mean_time,omitempty"` // Query statistic - MinExecTime *float64 `json:"min_exec_time,omitempty"` // Query statistic MinPlanTime *float64 `json:"min_plan_time,omitempty"` // Query statistic MinTime *float64 `json:"min_time,omitempty"` // Query statistic Query *string `json:"query,omitempty"` // Query statistic @@ -161,12 +158,10 @@ type QueryOut struct { SharedBlksHit *float64 `json:"shared_blks_hit,omitempty"` // Query statistic SharedBlksRead *float64 `json:"shared_blks_read,omitempty"` // Query statistic SharedBlksWritten *float64 `json:"shared_blks_written,omitempty"` // Query statistic - StddevExecTime *float64 `json:"stddev_exec_time,omitempty"` // Query statistic StddevPlanTime *float64 `json:"stddev_plan_time,omitempty"` // Query statistic StddevTime *float64 `json:"stddev_time,omitempty"` // Query statistic TempBlksRead *float64 `json:"temp_blks_read,omitempty"` // Query statistic TempBlksWritten *float64 `json:"temp_blks_written,omitempty"` // Query statistic - TotalExecTime *float64 `json:"total_exec_time,omitempty"` // Query statistic TotalPlanTime *float64 `json:"total_plan_time,omitempty"` // Query statistic TotalTime *float64 `json:"total_time,omitempty"` // Query statistic UserName *string `json:"user_name,omitempty"` // Query statistic diff --git a/handler/serviceintegration/serviceintegration.go b/handler/serviceintegration/serviceintegration.go index e3dcd5c..2ab5eaa 100644 --- a/handler/serviceintegration/serviceintegration.go +++ b/handler/serviceintegration/serviceintegration.go @@ -33,7 +33,7 @@ type Handler interface { // ServiceIntegrationEndpointGet get service integration endpoint // GET /v1/project/{project}/integration_endpoint/{integration_endpoint_id} // https://api.aiven.io/doc/#tag/Service_Integrations/operation/ServiceIntegrationEndpointGet - ServiceIntegrationEndpointGet(ctx context.Context, project string, integrationEndpointId string) (*ServiceIntegrationEndpointGetOut, error) + ServiceIntegrationEndpointGet(ctx context.Context, project string, integrationEndpointId string, query ...serviceIntegrationEndpointGetQuery) (*ServiceIntegrationEndpointGetOut, error) // ServiceIntegrationEndpointList list available integration endpoints for project // GET /v1/project/{project}/integration_endpoint @@ -120,7 +120,15 @@ func (h *ServiceIntegrationHandler) ServiceIntegrationEndpointDelete(ctx context _, err := h.doer.Do(ctx, "ServiceIntegrationEndpointDelete", "DELETE", path, nil) return err } -func (h *ServiceIntegrationHandler) ServiceIntegrationEndpointGet(ctx context.Context, project string, integrationEndpointId string) (*ServiceIntegrationEndpointGetOut, error) { + +// serviceIntegrationEndpointGetQuery http query params private type +type serviceIntegrationEndpointGetQuery [2]string + +// ServiceIntegrationEndpointGetIncludeSecrets Explicitly indicates that the client wants to read secrets that might be returned by this endpoint. +func ServiceIntegrationEndpointGetIncludeSecrets(includeSecrets bool) serviceIntegrationEndpointGetQuery { + return serviceIntegrationEndpointGetQuery{"include_secrets", fmt.Sprintf("%t", includeSecrets)} +} +func (h *ServiceIntegrationHandler) ServiceIntegrationEndpointGet(ctx context.Context, project string, integrationEndpointId string, query ...serviceIntegrationEndpointGetQuery) (*ServiceIntegrationEndpointGetOut, error) { path := fmt.Sprintf("/v1/project/%s/integration_endpoint/%s", url.PathEscape(project), url.PathEscape(integrationEndpointId)) b, err := h.doer.Do(ctx, "ServiceIntegrationEndpointGet", "GET", path, nil) if err != nil {