From 2160624cbfafcca2efd6c84b2d177275a47b34e8 Mon Sep 17 00:00:00 2001 From: Sergey Smolnikov Date: Mon, 26 Aug 2024 12:41:52 +0200 Subject: [PATCH] add-pipeline-job-option-to-control-using-build-cache (#104) * Added option * Set ref * Re-generated client * Added override use cache option --- cmd/createBuildDeployPipelineJob.go | 11 +++-- .../client/application/application_client.go | 28 ++++++++++++- .../change_registration_details_responses.go | 23 ++++++----- .../delete_application_responses.go | 16 ++++---- .../disable_application_alerting_responses.go | 27 +++++++------ .../enable_application_alerting_responses.go | 27 +++++++------ ...t_application_alerting_config_responses.go | 23 ++++++----- .../application/get_application_responses.go | 27 +++++++------ .../get_build_secrets_responses.go | 15 ++++--- .../get_deploy_key_and_secret_responses.go | 15 ++++--- .../application/get_deployments_responses.go | 15 ++++--- .../get_private_image_hubs_responses.go | 15 ++++--- .../is_deploy_key_valid_responses.go | 24 +++++------ .../application/list_pipelines_responses.go | 7 +++- .../modify_registration_details_responses.go | 23 ++++++----- .../regenerate_deploy_key_responses.go | 16 ++++---- .../restart_application_responses.go | 12 +++--- .../start_application_responses.go | 12 +++--- .../application/stop_application_responses.go | 12 +++--- ...trigger_pipeline_apply_config_responses.go | 15 ++++--- ...trigger_pipeline_build_deploy_responses.go | 15 ++++--- .../trigger_pipeline_build_responses.go | 15 ++++--- .../trigger_pipeline_deploy_responses.go | 15 ++++--- .../trigger_pipeline_promote_responses.go | 11 +++-- ...e_application_alerting_config_responses.go | 27 +++++++------ ...te_build_secrets_secret_value_responses.go | 24 +++++------ ...ivate_image_hubs_secret_value_responses.go | 24 +++++------ .../client/buildstatus/buildstatus_client.go | 28 ++++++++++++- .../buildstatus/get_build_status_responses.go | 8 ++-- .../component/change_env_var_responses.go | 28 ++++++------- .../client/component/component_client.go | 28 ++++++++++++- .../client/component/components_responses.go | 11 +++-- .../client/component/env_vars_responses.go | 11 +++-- .../component/get_o_auth_pod_log_responses.go | 23 ++++++----- .../client/component/log_responses.go | 11 +++-- .../client/component/replica_log_responses.go | 11 +++-- .../component/restart_component_responses.go | 12 +++--- ...art_o_auth_auxiliary_resource_responses.go | 24 +++++------ .../component/scale_component_responses.go | 20 +++++----- .../component/start_component_responses.go | 12 +++--- .../component/stop_component_responses.go | 12 +++--- ...te_component_external_dns_tls_responses.go | 28 ++++++------- .../client/deployment/deployment_client.go | 28 ++++++++++++- .../deployment/get_deployment_responses.go | 15 ++++--- .../change_component_secret_responses.go | 28 ++++++------- .../create_environment_responses.go | 8 ++-- .../delete_environment_responses.go | 12 +++--- .../disable_environment_alerting_responses.go | 27 +++++++------ .../enable_environment_alerting_responses.go | 27 +++++++------ .../client/environment/environment_client.go | 28 ++++++++++++- ...ation_environment_deployments_responses.go | 15 ++++--- ...ure_key_vault_secret_versions_responses.go | 31 +++++++------- ...t_environment_alerting_config_responses.go | 23 ++++++----- .../get_environment_events_responses.go | 15 ++++--- .../environment/get_environment_responses.go | 15 ++++--- .../get_environment_summary_responses.go | 15 ++++--- .../restart_environment_responses.go | 16 ++++---- .../start_environment_responses.go | 12 +++--- .../environment/stop_environment_responses.go | 12 +++--- ...e_environment_alerting_config_responses.go | 27 +++++++------ .../client/job/copy_batch_responses.go | 23 ++++++----- .../client/job/copy_job_responses.go | 23 ++++++----- .../client/job/delete_batch_responses.go | 20 +++++----- .../client/job/delete_job_responses.go | 20 +++++----- .../client/job/get_batch_responses.go | 11 +++-- .../client/job/get_batches_responses.go | 11 +++-- ...get_job_component_deployments_responses.go | 11 +++-- .../client/job/get_job_payload_responses.go | 11 +++-- .../client/job/get_job_responses.go | 11 +++-- .../client/job/get_jobs_responses.go | 11 +++-- generated-client/client/job/job_client.go | 28 ++++++++++++- .../client/job/job_log_responses.go | 11 +++-- .../client/job/restart_batch_responses.go | 20 +++++----- .../client/job/restart_job_responses.go | 20 +++++----- .../client/job/stop_batch_responses.go | 20 +++++----- .../client/job/stop_job_responses.go | 20 +++++----- .../get_application_job_responses.go | 15 ++++--- .../get_application_jobs_responses.go | 15 ++++--- .../get_pipeline_job_step_logs_responses.go | 15 ++++--- .../get_tekton_pipeline_run_responses.go | 15 ++++--- .../get_tekton_pipeline_run_task_responses.go | 15 ++++--- ...n_pipeline_run_task_step_logs_responses.go | 15 ++++--- ...ekton_pipeline_run_task_steps_responses.go | 15 ++++--- ...get_tekton_pipeline_run_tasks_responses.go | 15 ++++--- .../get_tekton_pipeline_runs_responses.go | 15 ++++--- .../pipeline_job/pipeline_job_client.go | 28 ++++++++++++- .../rerun_application_job_responses.go | 12 +++--- .../stop_application_job_responses.go | 12 +++--- .../get_search_applications_responses.go | 27 +++++++------ .../client/platform/platform_client.go | 28 ++++++++++++- .../register_application_responses.go | 19 +++++---- .../platform/search_applications_responses.go | 27 +++++++------ .../platform/show_applications_responses.go | 27 +++++++------ .../models/auxiliary_resource_deployment.go | 2 +- generated-client/models/build_secret.go | 2 +- generated-client/models/component.go | 4 +- generated-client/models/component_summary.go | 2 +- generated-client/models/deployment_summary.go | 2 +- .../deployment_summary_pipeline_job_info.go | 2 +- generated-client/models/environment.go | 2 +- .../models/environment_summary.go | 2 +- generated-client/models/image_hub_secret.go | 2 +- generated-client/models/job.go | 4 +- generated-client/models/job_summary.go | 7 +++- .../models/pipeline_parameters_build.go | 3 ++ generated-client/models/pipeline_run.go | 2 +- generated-client/models/pipeline_run_task.go | 2 +- .../models/pipeline_run_task_step.go | 2 +- generated-client/models/replica_status.go | 2 +- generated-client/models/replica_summary.go | 2 +- .../models/scheduled_batch_summary.go | 2 +- .../models/scheduled_job_summary.go | 2 +- generated-client/models/secret.go | 4 +- generated-client/models/secret_parameters.go | 2 +- generated-client/models/step.go | 2 +- generated-client/models/tls.go | 2 +- generated-client/models/tls_automation.go | 2 +- go.mod | 20 +++++----- go.sum | 40 +++++++++---------- pkg/flagnames/names.go | 1 + pkg/model/bool_ptr.go | 36 +++++++++++++++++ 121 files changed, 1138 insertions(+), 720 deletions(-) create mode 100644 pkg/model/bool_ptr.go diff --git a/cmd/createBuildDeployPipelineJob.go b/cmd/createBuildDeployPipelineJob.go index 86a36c5..c01ac4e 100644 --- a/cmd/createBuildDeployPipelineJob.go +++ b/cmd/createBuildDeployPipelineJob.go @@ -17,6 +17,7 @@ package cmd import ( "errors" + "github.com/equinor/radix-cli/pkg/model" log "github.com/sirupsen/logrus" "github.com/equinor/radix-cli/generated-client/client/application" @@ -26,6 +27,8 @@ import ( "github.com/spf13/cobra" ) +var overrideUseBuildCache model.BoolPtr + // createBuildDeployApplicationCmd represents the buildApplication command var createBuildDeployApplicationCmd = &cobra.Command{ Use: "build-deploy", @@ -44,7 +47,6 @@ var createBuildDeployApplicationCmd = &cobra.Command{ if appName == nil || *appName == "" || branch == "" { return errors.New("application name and branch are required") } - cmd.SilenceUsage = true apiClient, err := client.GetForCommand(cmd) @@ -55,8 +57,9 @@ var createBuildDeployApplicationCmd = &cobra.Command{ triggerPipelineParams := application.NewTriggerPipelineBuildDeployParams() triggerPipelineParams.SetAppName(*appName) triggerPipelineParams.SetPipelineParametersBuild(&models.PipelineParametersBuild{ - Branch: branch, - CommitID: commitID, + Branch: branch, + CommitID: commitID, + OverrideUseBuildCache: overrideUseBuildCache.Get(), }) newJob, err := apiClient.Application.TriggerPipelineBuildDeploy(triggerPipelineParams, nil) @@ -79,5 +82,7 @@ func init() { createBuildDeployApplicationCmd.Flags().StringP(flagnames.Branch, "b", "master", "Branch to build-deploy from") createBuildDeployApplicationCmd.Flags().StringP(flagnames.CommitID, "i", "", "Commit id") createBuildDeployApplicationCmd.Flags().BoolP(flagnames.Follow, "f", false, "Follow build-deploy") + createBuildDeployApplicationCmd.Flags().Var(&overrideUseBuildCache, flagnames.UseBuildCache, "Optional. Overrides configured or default useBuildCache option. It is applicable when the useBuildKit option is set as true.") + setContextSpecificPersistentFlags(createBuildDeployApplicationCmd) } diff --git a/generated-client/client/application/application_client.go b/generated-client/client/application/application_client.go index 6ac7f93..ef50bbd 100644 --- a/generated-client/client/application/application_client.go +++ b/generated-client/client/application/application_client.go @@ -9,6 +9,7 @@ import ( "fmt" "github.com/go-openapi/runtime" + httptransport "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" ) @@ -17,6 +18,31 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientServi return &Client{transport: transport, formats: formats} } +// New creates a new application API client with basic auth credentials. +// It takes the following parameters: +// - host: http host (github.com). +// - basePath: any base path for the API client ("/v1", "/v3"). +// - scheme: http scheme ("http", "https"). +// - user: user for basic authentication header. +// - password: password for basic authentication header. +func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService { + transport := httptransport.New(host, basePath, []string{scheme}) + transport.DefaultAuthentication = httptransport.BasicAuth(user, password) + return &Client{transport: transport, formats: strfmt.Default} +} + +// New creates a new application API client with a bearer token for authentication. +// It takes the following parameters: +// - host: http host (github.com). +// - basePath: any base path for the API client ("/v1", "/v3"). +// - scheme: http scheme ("http", "https"). +// - bearerToken: bearer token for Bearer authentication header. +func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService { + transport := httptransport.New(host, basePath, []string{scheme}) + transport.DefaultAuthentication = httptransport.BearerToken(bearerToken) + return &Client{transport: transport, formats: strfmt.Default} +} + /* Client for application API */ @@ -25,7 +51,7 @@ type Client struct { formats strfmt.Registry } -// ClientOption is the option for Client methods +// ClientOption may be used to customize the behavior of Client methods. type ClientOption func(*runtime.ClientOperation) // ClientService is the interface for Client methods diff --git a/generated-client/client/application/change_registration_details_responses.go b/generated-client/client/application/change_registration_details_responses.go index 0908935..ca84a98 100644 --- a/generated-client/client/application/change_registration_details_responses.go +++ b/generated-client/client/application/change_registration_details_responses.go @@ -6,6 +6,7 @@ package application // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -103,11 +104,13 @@ func (o *ChangeRegistrationDetailsOK) Code() int { } func (o *ChangeRegistrationDetailsOK) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}][%d] changeRegistrationDetailsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /applications/{appName}][%d] changeRegistrationDetailsOK %s", 200, payload) } func (o *ChangeRegistrationDetailsOK) String() string { - return fmt.Sprintf("[PUT /applications/{appName}][%d] changeRegistrationDetailsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /applications/{appName}][%d] changeRegistrationDetailsOK %s", 200, payload) } func (o *ChangeRegistrationDetailsOK) GetPayload() *models.ApplicationRegistrationUpsertResponse { @@ -170,11 +173,11 @@ func (o *ChangeRegistrationDetailsBadRequest) Code() int { } func (o *ChangeRegistrationDetailsBadRequest) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}][%d] changeRegistrationDetailsBadRequest ", 400) + return fmt.Sprintf("[PUT /applications/{appName}][%d] changeRegistrationDetailsBadRequest", 400) } func (o *ChangeRegistrationDetailsBadRequest) String() string { - return fmt.Sprintf("[PUT /applications/{appName}][%d] changeRegistrationDetailsBadRequest ", 400) + return fmt.Sprintf("[PUT /applications/{appName}][%d] changeRegistrationDetailsBadRequest", 400) } func (o *ChangeRegistrationDetailsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -226,11 +229,11 @@ func (o *ChangeRegistrationDetailsUnauthorized) Code() int { } func (o *ChangeRegistrationDetailsUnauthorized) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}][%d] changeRegistrationDetailsUnauthorized ", 401) + return fmt.Sprintf("[PUT /applications/{appName}][%d] changeRegistrationDetailsUnauthorized", 401) } func (o *ChangeRegistrationDetailsUnauthorized) String() string { - return fmt.Sprintf("[PUT /applications/{appName}][%d] changeRegistrationDetailsUnauthorized ", 401) + return fmt.Sprintf("[PUT /applications/{appName}][%d] changeRegistrationDetailsUnauthorized", 401) } func (o *ChangeRegistrationDetailsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -282,11 +285,11 @@ func (o *ChangeRegistrationDetailsNotFound) Code() int { } func (o *ChangeRegistrationDetailsNotFound) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}][%d] changeRegistrationDetailsNotFound ", 404) + return fmt.Sprintf("[PUT /applications/{appName}][%d] changeRegistrationDetailsNotFound", 404) } func (o *ChangeRegistrationDetailsNotFound) String() string { - return fmt.Sprintf("[PUT /applications/{appName}][%d] changeRegistrationDetailsNotFound ", 404) + return fmt.Sprintf("[PUT /applications/{appName}][%d] changeRegistrationDetailsNotFound", 404) } func (o *ChangeRegistrationDetailsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -338,11 +341,11 @@ func (o *ChangeRegistrationDetailsConflict) Code() int { } func (o *ChangeRegistrationDetailsConflict) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}][%d] changeRegistrationDetailsConflict ", 409) + return fmt.Sprintf("[PUT /applications/{appName}][%d] changeRegistrationDetailsConflict", 409) } func (o *ChangeRegistrationDetailsConflict) String() string { - return fmt.Sprintf("[PUT /applications/{appName}][%d] changeRegistrationDetailsConflict ", 409) + return fmt.Sprintf("[PUT /applications/{appName}][%d] changeRegistrationDetailsConflict", 409) } func (o *ChangeRegistrationDetailsConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/application/delete_application_responses.go b/generated-client/client/application/delete_application_responses.go index 1aa16f5..cf0f3fe 100644 --- a/generated-client/client/application/delete_application_responses.go +++ b/generated-client/client/application/delete_application_responses.go @@ -93,11 +93,11 @@ func (o *DeleteApplicationOK) Code() int { } func (o *DeleteApplicationOK) Error() string { - return fmt.Sprintf("[DELETE /applications/{appName}][%d] deleteApplicationOK ", 200) + return fmt.Sprintf("[DELETE /applications/{appName}][%d] deleteApplicationOK", 200) } func (o *DeleteApplicationOK) String() string { - return fmt.Sprintf("[DELETE /applications/{appName}][%d] deleteApplicationOK ", 200) + return fmt.Sprintf("[DELETE /applications/{appName}][%d] deleteApplicationOK", 200) } func (o *DeleteApplicationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -149,11 +149,11 @@ func (o *DeleteApplicationUnauthorized) Code() int { } func (o *DeleteApplicationUnauthorized) Error() string { - return fmt.Sprintf("[DELETE /applications/{appName}][%d] deleteApplicationUnauthorized ", 401) + return fmt.Sprintf("[DELETE /applications/{appName}][%d] deleteApplicationUnauthorized", 401) } func (o *DeleteApplicationUnauthorized) String() string { - return fmt.Sprintf("[DELETE /applications/{appName}][%d] deleteApplicationUnauthorized ", 401) + return fmt.Sprintf("[DELETE /applications/{appName}][%d] deleteApplicationUnauthorized", 401) } func (o *DeleteApplicationUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -205,11 +205,11 @@ func (o *DeleteApplicationForbidden) Code() int { } func (o *DeleteApplicationForbidden) Error() string { - return fmt.Sprintf("[DELETE /applications/{appName}][%d] deleteApplicationForbidden ", 403) + return fmt.Sprintf("[DELETE /applications/{appName}][%d] deleteApplicationForbidden", 403) } func (o *DeleteApplicationForbidden) String() string { - return fmt.Sprintf("[DELETE /applications/{appName}][%d] deleteApplicationForbidden ", 403) + return fmt.Sprintf("[DELETE /applications/{appName}][%d] deleteApplicationForbidden", 403) } func (o *DeleteApplicationForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -261,11 +261,11 @@ func (o *DeleteApplicationNotFound) Code() int { } func (o *DeleteApplicationNotFound) Error() string { - return fmt.Sprintf("[DELETE /applications/{appName}][%d] deleteApplicationNotFound ", 404) + return fmt.Sprintf("[DELETE /applications/{appName}][%d] deleteApplicationNotFound", 404) } func (o *DeleteApplicationNotFound) String() string { - return fmt.Sprintf("[DELETE /applications/{appName}][%d] deleteApplicationNotFound ", 404) + return fmt.Sprintf("[DELETE /applications/{appName}][%d] deleteApplicationNotFound", 404) } func (o *DeleteApplicationNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/application/disable_application_alerting_responses.go b/generated-client/client/application/disable_application_alerting_responses.go index a0d8949..678ae4d 100644 --- a/generated-client/client/application/disable_application_alerting_responses.go +++ b/generated-client/client/application/disable_application_alerting_responses.go @@ -6,6 +6,7 @@ package application // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -109,11 +110,13 @@ func (o *DisableApplicationAlertingOK) Code() int { } func (o *DisableApplicationAlertingOK) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/alerting/disable][%d] disableApplicationAlertingOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications/{appName}/alerting/disable][%d] disableApplicationAlertingOK %s", 200, payload) } func (o *DisableApplicationAlertingOK) String() string { - return fmt.Sprintf("[POST /applications/{appName}/alerting/disable][%d] disableApplicationAlertingOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications/{appName}/alerting/disable][%d] disableApplicationAlertingOK %s", 200, payload) } func (o *DisableApplicationAlertingOK) GetPayload() *models.AlertingConfig { @@ -176,11 +179,11 @@ func (o *DisableApplicationAlertingBadRequest) Code() int { } func (o *DisableApplicationAlertingBadRequest) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/alerting/disable][%d] disableApplicationAlertingBadRequest ", 400) + return fmt.Sprintf("[POST /applications/{appName}/alerting/disable][%d] disableApplicationAlertingBadRequest", 400) } func (o *DisableApplicationAlertingBadRequest) String() string { - return fmt.Sprintf("[POST /applications/{appName}/alerting/disable][%d] disableApplicationAlertingBadRequest ", 400) + return fmt.Sprintf("[POST /applications/{appName}/alerting/disable][%d] disableApplicationAlertingBadRequest", 400) } func (o *DisableApplicationAlertingBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -232,11 +235,11 @@ func (o *DisableApplicationAlertingUnauthorized) Code() int { } func (o *DisableApplicationAlertingUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/alerting/disable][%d] disableApplicationAlertingUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/alerting/disable][%d] disableApplicationAlertingUnauthorized", 401) } func (o *DisableApplicationAlertingUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/alerting/disable][%d] disableApplicationAlertingUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/alerting/disable][%d] disableApplicationAlertingUnauthorized", 401) } func (o *DisableApplicationAlertingUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -288,11 +291,11 @@ func (o *DisableApplicationAlertingForbidden) Code() int { } func (o *DisableApplicationAlertingForbidden) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/alerting/disable][%d] disableApplicationAlertingForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/alerting/disable][%d] disableApplicationAlertingForbidden", 403) } func (o *DisableApplicationAlertingForbidden) String() string { - return fmt.Sprintf("[POST /applications/{appName}/alerting/disable][%d] disableApplicationAlertingForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/alerting/disable][%d] disableApplicationAlertingForbidden", 403) } func (o *DisableApplicationAlertingForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -344,11 +347,11 @@ func (o *DisableApplicationAlertingNotFound) Code() int { } func (o *DisableApplicationAlertingNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/alerting/disable][%d] disableApplicationAlertingNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/alerting/disable][%d] disableApplicationAlertingNotFound", 404) } func (o *DisableApplicationAlertingNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/alerting/disable][%d] disableApplicationAlertingNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/alerting/disable][%d] disableApplicationAlertingNotFound", 404) } func (o *DisableApplicationAlertingNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -400,11 +403,11 @@ func (o *DisableApplicationAlertingInternalServerError) Code() int { } func (o *DisableApplicationAlertingInternalServerError) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/alerting/disable][%d] disableApplicationAlertingInternalServerError ", 500) + return fmt.Sprintf("[POST /applications/{appName}/alerting/disable][%d] disableApplicationAlertingInternalServerError", 500) } func (o *DisableApplicationAlertingInternalServerError) String() string { - return fmt.Sprintf("[POST /applications/{appName}/alerting/disable][%d] disableApplicationAlertingInternalServerError ", 500) + return fmt.Sprintf("[POST /applications/{appName}/alerting/disable][%d] disableApplicationAlertingInternalServerError", 500) } func (o *DisableApplicationAlertingInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/application/enable_application_alerting_responses.go b/generated-client/client/application/enable_application_alerting_responses.go index dc553f1..f19be67 100644 --- a/generated-client/client/application/enable_application_alerting_responses.go +++ b/generated-client/client/application/enable_application_alerting_responses.go @@ -6,6 +6,7 @@ package application // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -109,11 +110,13 @@ func (o *EnableApplicationAlertingOK) Code() int { } func (o *EnableApplicationAlertingOK) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/alerting/enable][%d] enableApplicationAlertingOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications/{appName}/alerting/enable][%d] enableApplicationAlertingOK %s", 200, payload) } func (o *EnableApplicationAlertingOK) String() string { - return fmt.Sprintf("[POST /applications/{appName}/alerting/enable][%d] enableApplicationAlertingOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications/{appName}/alerting/enable][%d] enableApplicationAlertingOK %s", 200, payload) } func (o *EnableApplicationAlertingOK) GetPayload() *models.AlertingConfig { @@ -176,11 +179,11 @@ func (o *EnableApplicationAlertingBadRequest) Code() int { } func (o *EnableApplicationAlertingBadRequest) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/alerting/enable][%d] enableApplicationAlertingBadRequest ", 400) + return fmt.Sprintf("[POST /applications/{appName}/alerting/enable][%d] enableApplicationAlertingBadRequest", 400) } func (o *EnableApplicationAlertingBadRequest) String() string { - return fmt.Sprintf("[POST /applications/{appName}/alerting/enable][%d] enableApplicationAlertingBadRequest ", 400) + return fmt.Sprintf("[POST /applications/{appName}/alerting/enable][%d] enableApplicationAlertingBadRequest", 400) } func (o *EnableApplicationAlertingBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -232,11 +235,11 @@ func (o *EnableApplicationAlertingUnauthorized) Code() int { } func (o *EnableApplicationAlertingUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/alerting/enable][%d] enableApplicationAlertingUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/alerting/enable][%d] enableApplicationAlertingUnauthorized", 401) } func (o *EnableApplicationAlertingUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/alerting/enable][%d] enableApplicationAlertingUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/alerting/enable][%d] enableApplicationAlertingUnauthorized", 401) } func (o *EnableApplicationAlertingUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -288,11 +291,11 @@ func (o *EnableApplicationAlertingForbidden) Code() int { } func (o *EnableApplicationAlertingForbidden) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/alerting/enable][%d] enableApplicationAlertingForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/alerting/enable][%d] enableApplicationAlertingForbidden", 403) } func (o *EnableApplicationAlertingForbidden) String() string { - return fmt.Sprintf("[POST /applications/{appName}/alerting/enable][%d] enableApplicationAlertingForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/alerting/enable][%d] enableApplicationAlertingForbidden", 403) } func (o *EnableApplicationAlertingForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -344,11 +347,11 @@ func (o *EnableApplicationAlertingNotFound) Code() int { } func (o *EnableApplicationAlertingNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/alerting/enable][%d] enableApplicationAlertingNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/alerting/enable][%d] enableApplicationAlertingNotFound", 404) } func (o *EnableApplicationAlertingNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/alerting/enable][%d] enableApplicationAlertingNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/alerting/enable][%d] enableApplicationAlertingNotFound", 404) } func (o *EnableApplicationAlertingNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -400,11 +403,11 @@ func (o *EnableApplicationAlertingInternalServerError) Code() int { } func (o *EnableApplicationAlertingInternalServerError) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/alerting/enable][%d] enableApplicationAlertingInternalServerError ", 500) + return fmt.Sprintf("[POST /applications/{appName}/alerting/enable][%d] enableApplicationAlertingInternalServerError", 500) } func (o *EnableApplicationAlertingInternalServerError) String() string { - return fmt.Sprintf("[POST /applications/{appName}/alerting/enable][%d] enableApplicationAlertingInternalServerError ", 500) + return fmt.Sprintf("[POST /applications/{appName}/alerting/enable][%d] enableApplicationAlertingInternalServerError", 500) } func (o *EnableApplicationAlertingInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/application/get_application_alerting_config_responses.go b/generated-client/client/application/get_application_alerting_config_responses.go index aea8f0a..d61d6e6 100644 --- a/generated-client/client/application/get_application_alerting_config_responses.go +++ b/generated-client/client/application/get_application_alerting_config_responses.go @@ -6,6 +6,7 @@ package application // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -103,11 +104,13 @@ func (o *GetApplicationAlertingConfigOK) Code() int { } func (o *GetApplicationAlertingConfigOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/alerting][%d] getApplicationAlertingConfigOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/alerting][%d] getApplicationAlertingConfigOK %s", 200, payload) } func (o *GetApplicationAlertingConfigOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/alerting][%d] getApplicationAlertingConfigOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/alerting][%d] getApplicationAlertingConfigOK %s", 200, payload) } func (o *GetApplicationAlertingConfigOK) GetPayload() *models.AlertingConfig { @@ -170,11 +173,11 @@ func (o *GetApplicationAlertingConfigUnauthorized) Code() int { } func (o *GetApplicationAlertingConfigUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/alerting][%d] getApplicationAlertingConfigUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/alerting][%d] getApplicationAlertingConfigUnauthorized", 401) } func (o *GetApplicationAlertingConfigUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/{appName}/alerting][%d] getApplicationAlertingConfigUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/alerting][%d] getApplicationAlertingConfigUnauthorized", 401) } func (o *GetApplicationAlertingConfigUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -226,11 +229,11 @@ func (o *GetApplicationAlertingConfigForbidden) Code() int { } func (o *GetApplicationAlertingConfigForbidden) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/alerting][%d] getApplicationAlertingConfigForbidden ", 403) + return fmt.Sprintf("[GET /applications/{appName}/alerting][%d] getApplicationAlertingConfigForbidden", 403) } func (o *GetApplicationAlertingConfigForbidden) String() string { - return fmt.Sprintf("[GET /applications/{appName}/alerting][%d] getApplicationAlertingConfigForbidden ", 403) + return fmt.Sprintf("[GET /applications/{appName}/alerting][%d] getApplicationAlertingConfigForbidden", 403) } func (o *GetApplicationAlertingConfigForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -282,11 +285,11 @@ func (o *GetApplicationAlertingConfigNotFound) Code() int { } func (o *GetApplicationAlertingConfigNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/alerting][%d] getApplicationAlertingConfigNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/alerting][%d] getApplicationAlertingConfigNotFound", 404) } func (o *GetApplicationAlertingConfigNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/alerting][%d] getApplicationAlertingConfigNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/alerting][%d] getApplicationAlertingConfigNotFound", 404) } func (o *GetApplicationAlertingConfigNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -338,11 +341,11 @@ func (o *GetApplicationAlertingConfigInternalServerError) Code() int { } func (o *GetApplicationAlertingConfigInternalServerError) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/alerting][%d] getApplicationAlertingConfigInternalServerError ", 500) + return fmt.Sprintf("[GET /applications/{appName}/alerting][%d] getApplicationAlertingConfigInternalServerError", 500) } func (o *GetApplicationAlertingConfigInternalServerError) String() string { - return fmt.Sprintf("[GET /applications/{appName}/alerting][%d] getApplicationAlertingConfigInternalServerError ", 500) + return fmt.Sprintf("[GET /applications/{appName}/alerting][%d] getApplicationAlertingConfigInternalServerError", 500) } func (o *GetApplicationAlertingConfigInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/application/get_application_responses.go b/generated-client/client/application/get_application_responses.go index 6fa1bf7..67314ff 100644 --- a/generated-client/client/application/get_application_responses.go +++ b/generated-client/client/application/get_application_responses.go @@ -6,6 +6,7 @@ package application // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -109,11 +110,13 @@ func (o *GetApplicationOK) Code() int { } func (o *GetApplicationOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}][%d] getApplicationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}][%d] getApplicationOK %s", 200, payload) } func (o *GetApplicationOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}][%d] getApplicationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}][%d] getApplicationOK %s", 200, payload) } func (o *GetApplicationOK) GetPayload() *models.Application { @@ -176,11 +179,11 @@ func (o *GetApplicationUnauthorized) Code() int { } func (o *GetApplicationUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/{appName}][%d] getApplicationUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}][%d] getApplicationUnauthorized", 401) } func (o *GetApplicationUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/{appName}][%d] getApplicationUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}][%d] getApplicationUnauthorized", 401) } func (o *GetApplicationUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -232,11 +235,11 @@ func (o *GetApplicationForbidden) Code() int { } func (o *GetApplicationForbidden) Error() string { - return fmt.Sprintf("[GET /applications/{appName}][%d] getApplicationForbidden ", 403) + return fmt.Sprintf("[GET /applications/{appName}][%d] getApplicationForbidden", 403) } func (o *GetApplicationForbidden) String() string { - return fmt.Sprintf("[GET /applications/{appName}][%d] getApplicationForbidden ", 403) + return fmt.Sprintf("[GET /applications/{appName}][%d] getApplicationForbidden", 403) } func (o *GetApplicationForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -288,11 +291,11 @@ func (o *GetApplicationNotFound) Code() int { } func (o *GetApplicationNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}][%d] getApplicationNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}][%d] getApplicationNotFound", 404) } func (o *GetApplicationNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}][%d] getApplicationNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}][%d] getApplicationNotFound", 404) } func (o *GetApplicationNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -344,11 +347,11 @@ func (o *GetApplicationConflict) Code() int { } func (o *GetApplicationConflict) Error() string { - return fmt.Sprintf("[GET /applications/{appName}][%d] getApplicationConflict ", 409) + return fmt.Sprintf("[GET /applications/{appName}][%d] getApplicationConflict", 409) } func (o *GetApplicationConflict) String() string { - return fmt.Sprintf("[GET /applications/{appName}][%d] getApplicationConflict ", 409) + return fmt.Sprintf("[GET /applications/{appName}][%d] getApplicationConflict", 409) } func (o *GetApplicationConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -400,11 +403,11 @@ func (o *GetApplicationInternalServerError) Code() int { } func (o *GetApplicationInternalServerError) Error() string { - return fmt.Sprintf("[GET /applications/{appName}][%d] getApplicationInternalServerError ", 500) + return fmt.Sprintf("[GET /applications/{appName}][%d] getApplicationInternalServerError", 500) } func (o *GetApplicationInternalServerError) String() string { - return fmt.Sprintf("[GET /applications/{appName}][%d] getApplicationInternalServerError ", 500) + return fmt.Sprintf("[GET /applications/{appName}][%d] getApplicationInternalServerError", 500) } func (o *GetApplicationInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/application/get_build_secrets_responses.go b/generated-client/client/application/get_build_secrets_responses.go index 2ed1ed8..6a0959c 100644 --- a/generated-client/client/application/get_build_secrets_responses.go +++ b/generated-client/client/application/get_build_secrets_responses.go @@ -6,6 +6,7 @@ package application // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -91,11 +92,13 @@ func (o *GetBuildSecretsOK) Code() int { } func (o *GetBuildSecretsOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/buildsecrets][%d] getBuildSecretsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/buildsecrets][%d] getBuildSecretsOK %s", 200, payload) } func (o *GetBuildSecretsOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/buildsecrets][%d] getBuildSecretsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/buildsecrets][%d] getBuildSecretsOK %s", 200, payload) } func (o *GetBuildSecretsOK) GetPayload() []*models.BuildSecret { @@ -156,11 +159,11 @@ func (o *GetBuildSecretsUnauthorized) Code() int { } func (o *GetBuildSecretsUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/buildsecrets][%d] getBuildSecretsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/buildsecrets][%d] getBuildSecretsUnauthorized", 401) } func (o *GetBuildSecretsUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/{appName}/buildsecrets][%d] getBuildSecretsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/buildsecrets][%d] getBuildSecretsUnauthorized", 401) } func (o *GetBuildSecretsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -212,11 +215,11 @@ func (o *GetBuildSecretsNotFound) Code() int { } func (o *GetBuildSecretsNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/buildsecrets][%d] getBuildSecretsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/buildsecrets][%d] getBuildSecretsNotFound", 404) } func (o *GetBuildSecretsNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/buildsecrets][%d] getBuildSecretsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/buildsecrets][%d] getBuildSecretsNotFound", 404) } func (o *GetBuildSecretsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/application/get_deploy_key_and_secret_responses.go b/generated-client/client/application/get_deploy_key_and_secret_responses.go index 2558a02..2559c4b 100644 --- a/generated-client/client/application/get_deploy_key_and_secret_responses.go +++ b/generated-client/client/application/get_deploy_key_and_secret_responses.go @@ -6,6 +6,7 @@ package application // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -91,11 +92,13 @@ func (o *GetDeployKeyAndSecretOK) Code() int { } func (o *GetDeployKeyAndSecretOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/deploy-key-and-secret][%d] getDeployKeyAndSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/deploy-key-and-secret][%d] getDeployKeyAndSecretOK %s", 200, payload) } func (o *GetDeployKeyAndSecretOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/deploy-key-and-secret][%d] getDeployKeyAndSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/deploy-key-and-secret][%d] getDeployKeyAndSecretOK %s", 200, payload) } func (o *GetDeployKeyAndSecretOK) GetPayload() *models.DeployKeyAndSecret { @@ -158,11 +161,11 @@ func (o *GetDeployKeyAndSecretUnauthorized) Code() int { } func (o *GetDeployKeyAndSecretUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/deploy-key-and-secret][%d] getDeployKeyAndSecretUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/deploy-key-and-secret][%d] getDeployKeyAndSecretUnauthorized", 401) } func (o *GetDeployKeyAndSecretUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/{appName}/deploy-key-and-secret][%d] getDeployKeyAndSecretUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/deploy-key-and-secret][%d] getDeployKeyAndSecretUnauthorized", 401) } func (o *GetDeployKeyAndSecretUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -214,11 +217,11 @@ func (o *GetDeployKeyAndSecretNotFound) Code() int { } func (o *GetDeployKeyAndSecretNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/deploy-key-and-secret][%d] getDeployKeyAndSecretNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/deploy-key-and-secret][%d] getDeployKeyAndSecretNotFound", 404) } func (o *GetDeployKeyAndSecretNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/deploy-key-and-secret][%d] getDeployKeyAndSecretNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/deploy-key-and-secret][%d] getDeployKeyAndSecretNotFound", 404) } func (o *GetDeployKeyAndSecretNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/application/get_deployments_responses.go b/generated-client/client/application/get_deployments_responses.go index 4aef7cd..8d93dad 100644 --- a/generated-client/client/application/get_deployments_responses.go +++ b/generated-client/client/application/get_deployments_responses.go @@ -6,6 +6,7 @@ package application // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -91,11 +92,13 @@ func (o *GetDeploymentsOK) Code() int { } func (o *GetDeploymentsOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/deployments][%d] getDeploymentsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/deployments][%d] getDeploymentsOK %s", 200, payload) } func (o *GetDeploymentsOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/deployments][%d] getDeploymentsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/deployments][%d] getDeploymentsOK %s", 200, payload) } func (o *GetDeploymentsOK) GetPayload() []*models.DeploymentSummary { @@ -156,11 +159,11 @@ func (o *GetDeploymentsUnauthorized) Code() int { } func (o *GetDeploymentsUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/deployments][%d] getDeploymentsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/deployments][%d] getDeploymentsUnauthorized", 401) } func (o *GetDeploymentsUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/{appName}/deployments][%d] getDeploymentsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/deployments][%d] getDeploymentsUnauthorized", 401) } func (o *GetDeploymentsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -212,11 +215,11 @@ func (o *GetDeploymentsNotFound) Code() int { } func (o *GetDeploymentsNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/deployments][%d] getDeploymentsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/deployments][%d] getDeploymentsNotFound", 404) } func (o *GetDeploymentsNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/deployments][%d] getDeploymentsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/deployments][%d] getDeploymentsNotFound", 404) } func (o *GetDeploymentsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/application/get_private_image_hubs_responses.go b/generated-client/client/application/get_private_image_hubs_responses.go index 3ae219f..6fb5300 100644 --- a/generated-client/client/application/get_private_image_hubs_responses.go +++ b/generated-client/client/application/get_private_image_hubs_responses.go @@ -6,6 +6,7 @@ package application // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -91,11 +92,13 @@ func (o *GetPrivateImageHubsOK) Code() int { } func (o *GetPrivateImageHubsOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/privateimagehubs][%d] getPrivateImageHubsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/privateimagehubs][%d] getPrivateImageHubsOK %s", 200, payload) } func (o *GetPrivateImageHubsOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/privateimagehubs][%d] getPrivateImageHubsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/privateimagehubs][%d] getPrivateImageHubsOK %s", 200, payload) } func (o *GetPrivateImageHubsOK) GetPayload() []*models.ImageHubSecret { @@ -156,11 +159,11 @@ func (o *GetPrivateImageHubsUnauthorized) Code() int { } func (o *GetPrivateImageHubsUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/privateimagehubs][%d] getPrivateImageHubsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/privateimagehubs][%d] getPrivateImageHubsUnauthorized", 401) } func (o *GetPrivateImageHubsUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/{appName}/privateimagehubs][%d] getPrivateImageHubsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/privateimagehubs][%d] getPrivateImageHubsUnauthorized", 401) } func (o *GetPrivateImageHubsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -212,11 +215,11 @@ func (o *GetPrivateImageHubsNotFound) Code() int { } func (o *GetPrivateImageHubsNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/privateimagehubs][%d] getPrivateImageHubsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/privateimagehubs][%d] getPrivateImageHubsNotFound", 404) } func (o *GetPrivateImageHubsNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/privateimagehubs][%d] getPrivateImageHubsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/privateimagehubs][%d] getPrivateImageHubsNotFound", 404) } func (o *GetPrivateImageHubsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/application/is_deploy_key_valid_responses.go b/generated-client/client/application/is_deploy_key_valid_responses.go index c7c140c..22881dd 100644 --- a/generated-client/client/application/is_deploy_key_valid_responses.go +++ b/generated-client/client/application/is_deploy_key_valid_responses.go @@ -105,11 +105,11 @@ func (o *IsDeployKeyValidOK) Code() int { } func (o *IsDeployKeyValidOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/deploykey-valid][%d] isDeployKeyValidOK ", 200) + return fmt.Sprintf("[GET /applications/{appName}/deploykey-valid][%d] isDeployKeyValidOK", 200) } func (o *IsDeployKeyValidOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/deploykey-valid][%d] isDeployKeyValidOK ", 200) + return fmt.Sprintf("[GET /applications/{appName}/deploykey-valid][%d] isDeployKeyValidOK", 200) } func (o *IsDeployKeyValidOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -161,11 +161,11 @@ func (o *IsDeployKeyValidUnauthorized) Code() int { } func (o *IsDeployKeyValidUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/deploykey-valid][%d] isDeployKeyValidUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/deploykey-valid][%d] isDeployKeyValidUnauthorized", 401) } func (o *IsDeployKeyValidUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/{appName}/deploykey-valid][%d] isDeployKeyValidUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/deploykey-valid][%d] isDeployKeyValidUnauthorized", 401) } func (o *IsDeployKeyValidUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -217,11 +217,11 @@ func (o *IsDeployKeyValidForbidden) Code() int { } func (o *IsDeployKeyValidForbidden) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/deploykey-valid][%d] isDeployKeyValidForbidden ", 403) + return fmt.Sprintf("[GET /applications/{appName}/deploykey-valid][%d] isDeployKeyValidForbidden", 403) } func (o *IsDeployKeyValidForbidden) String() string { - return fmt.Sprintf("[GET /applications/{appName}/deploykey-valid][%d] isDeployKeyValidForbidden ", 403) + return fmt.Sprintf("[GET /applications/{appName}/deploykey-valid][%d] isDeployKeyValidForbidden", 403) } func (o *IsDeployKeyValidForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -273,11 +273,11 @@ func (o *IsDeployKeyValidNotFound) Code() int { } func (o *IsDeployKeyValidNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/deploykey-valid][%d] isDeployKeyValidNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/deploykey-valid][%d] isDeployKeyValidNotFound", 404) } func (o *IsDeployKeyValidNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/deploykey-valid][%d] isDeployKeyValidNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/deploykey-valid][%d] isDeployKeyValidNotFound", 404) } func (o *IsDeployKeyValidNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -329,11 +329,11 @@ func (o *IsDeployKeyValidConflict) Code() int { } func (o *IsDeployKeyValidConflict) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/deploykey-valid][%d] isDeployKeyValidConflict ", 409) + return fmt.Sprintf("[GET /applications/{appName}/deploykey-valid][%d] isDeployKeyValidConflict", 409) } func (o *IsDeployKeyValidConflict) String() string { - return fmt.Sprintf("[GET /applications/{appName}/deploykey-valid][%d] isDeployKeyValidConflict ", 409) + return fmt.Sprintf("[GET /applications/{appName}/deploykey-valid][%d] isDeployKeyValidConflict", 409) } func (o *IsDeployKeyValidConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -385,11 +385,11 @@ func (o *IsDeployKeyValidInternalServerError) Code() int { } func (o *IsDeployKeyValidInternalServerError) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/deploykey-valid][%d] isDeployKeyValidInternalServerError ", 500) + return fmt.Sprintf("[GET /applications/{appName}/deploykey-valid][%d] isDeployKeyValidInternalServerError", 500) } func (o *IsDeployKeyValidInternalServerError) String() string { - return fmt.Sprintf("[GET /applications/{appName}/deploykey-valid][%d] isDeployKeyValidInternalServerError ", 500) + return fmt.Sprintf("[GET /applications/{appName}/deploykey-valid][%d] isDeployKeyValidInternalServerError", 500) } func (o *IsDeployKeyValidInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/application/list_pipelines_responses.go b/generated-client/client/application/list_pipelines_responses.go index 224a009..9b25dd8 100644 --- a/generated-client/client/application/list_pipelines_responses.go +++ b/generated-client/client/application/list_pipelines_responses.go @@ -6,6 +6,7 @@ package application // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -77,11 +78,13 @@ func (o *ListPipelinesOK) Code() int { } func (o *ListPipelinesOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/pipelines][%d] listPipelinesOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/pipelines][%d] listPipelinesOK %s", 200, payload) } func (o *ListPipelinesOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/pipelines][%d] listPipelinesOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/pipelines][%d] listPipelinesOK %s", 200, payload) } func (o *ListPipelinesOK) GetPayload() []string { diff --git a/generated-client/client/application/modify_registration_details_responses.go b/generated-client/client/application/modify_registration_details_responses.go index 8272185..0a6ab5b 100644 --- a/generated-client/client/application/modify_registration_details_responses.go +++ b/generated-client/client/application/modify_registration_details_responses.go @@ -6,6 +6,7 @@ package application // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -103,11 +104,13 @@ func (o *ModifyRegistrationDetailsOK) Code() int { } func (o *ModifyRegistrationDetailsOK) Error() string { - return fmt.Sprintf("[PATCH /applications/{appName}][%d] modifyRegistrationDetailsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PATCH /applications/{appName}][%d] modifyRegistrationDetailsOK %s", 200, payload) } func (o *ModifyRegistrationDetailsOK) String() string { - return fmt.Sprintf("[PATCH /applications/{appName}][%d] modifyRegistrationDetailsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PATCH /applications/{appName}][%d] modifyRegistrationDetailsOK %s", 200, payload) } func (o *ModifyRegistrationDetailsOK) GetPayload() *models.ApplicationRegistrationUpsertResponse { @@ -170,11 +173,11 @@ func (o *ModifyRegistrationDetailsBadRequest) Code() int { } func (o *ModifyRegistrationDetailsBadRequest) Error() string { - return fmt.Sprintf("[PATCH /applications/{appName}][%d] modifyRegistrationDetailsBadRequest ", 400) + return fmt.Sprintf("[PATCH /applications/{appName}][%d] modifyRegistrationDetailsBadRequest", 400) } func (o *ModifyRegistrationDetailsBadRequest) String() string { - return fmt.Sprintf("[PATCH /applications/{appName}][%d] modifyRegistrationDetailsBadRequest ", 400) + return fmt.Sprintf("[PATCH /applications/{appName}][%d] modifyRegistrationDetailsBadRequest", 400) } func (o *ModifyRegistrationDetailsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -226,11 +229,11 @@ func (o *ModifyRegistrationDetailsUnauthorized) Code() int { } func (o *ModifyRegistrationDetailsUnauthorized) Error() string { - return fmt.Sprintf("[PATCH /applications/{appName}][%d] modifyRegistrationDetailsUnauthorized ", 401) + return fmt.Sprintf("[PATCH /applications/{appName}][%d] modifyRegistrationDetailsUnauthorized", 401) } func (o *ModifyRegistrationDetailsUnauthorized) String() string { - return fmt.Sprintf("[PATCH /applications/{appName}][%d] modifyRegistrationDetailsUnauthorized ", 401) + return fmt.Sprintf("[PATCH /applications/{appName}][%d] modifyRegistrationDetailsUnauthorized", 401) } func (o *ModifyRegistrationDetailsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -282,11 +285,11 @@ func (o *ModifyRegistrationDetailsNotFound) Code() int { } func (o *ModifyRegistrationDetailsNotFound) Error() string { - return fmt.Sprintf("[PATCH /applications/{appName}][%d] modifyRegistrationDetailsNotFound ", 404) + return fmt.Sprintf("[PATCH /applications/{appName}][%d] modifyRegistrationDetailsNotFound", 404) } func (o *ModifyRegistrationDetailsNotFound) String() string { - return fmt.Sprintf("[PATCH /applications/{appName}][%d] modifyRegistrationDetailsNotFound ", 404) + return fmt.Sprintf("[PATCH /applications/{appName}][%d] modifyRegistrationDetailsNotFound", 404) } func (o *ModifyRegistrationDetailsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -338,11 +341,11 @@ func (o *ModifyRegistrationDetailsConflict) Code() int { } func (o *ModifyRegistrationDetailsConflict) Error() string { - return fmt.Sprintf("[PATCH /applications/{appName}][%d] modifyRegistrationDetailsConflict ", 409) + return fmt.Sprintf("[PATCH /applications/{appName}][%d] modifyRegistrationDetailsConflict", 409) } func (o *ModifyRegistrationDetailsConflict) String() string { - return fmt.Sprintf("[PATCH /applications/{appName}][%d] modifyRegistrationDetailsConflict ", 409) + return fmt.Sprintf("[PATCH /applications/{appName}][%d] modifyRegistrationDetailsConflict", 409) } func (o *ModifyRegistrationDetailsConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/application/regenerate_deploy_key_responses.go b/generated-client/client/application/regenerate_deploy_key_responses.go index 64dbb88..5cc7362 100644 --- a/generated-client/client/application/regenerate_deploy_key_responses.go +++ b/generated-client/client/application/regenerate_deploy_key_responses.go @@ -93,11 +93,11 @@ func (o *RegenerateDeployKeyNoContent) Code() int { } func (o *RegenerateDeployKeyNoContent) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/regenerate-deploy-key][%d] regenerateDeployKeyNoContent ", 204) + return fmt.Sprintf("[POST /applications/{appName}/regenerate-deploy-key][%d] regenerateDeployKeyNoContent", 204) } func (o *RegenerateDeployKeyNoContent) String() string { - return fmt.Sprintf("[POST /applications/{appName}/regenerate-deploy-key][%d] regenerateDeployKeyNoContent ", 204) + return fmt.Sprintf("[POST /applications/{appName}/regenerate-deploy-key][%d] regenerateDeployKeyNoContent", 204) } func (o *RegenerateDeployKeyNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -149,11 +149,11 @@ func (o *RegenerateDeployKeyUnauthorized) Code() int { } func (o *RegenerateDeployKeyUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/regenerate-deploy-key][%d] regenerateDeployKeyUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/regenerate-deploy-key][%d] regenerateDeployKeyUnauthorized", 401) } func (o *RegenerateDeployKeyUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/regenerate-deploy-key][%d] regenerateDeployKeyUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/regenerate-deploy-key][%d] regenerateDeployKeyUnauthorized", 401) } func (o *RegenerateDeployKeyUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -205,11 +205,11 @@ func (o *RegenerateDeployKeyNotFound) Code() int { } func (o *RegenerateDeployKeyNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/regenerate-deploy-key][%d] regenerateDeployKeyNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/regenerate-deploy-key][%d] regenerateDeployKeyNotFound", 404) } func (o *RegenerateDeployKeyNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/regenerate-deploy-key][%d] regenerateDeployKeyNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/regenerate-deploy-key][%d] regenerateDeployKeyNotFound", 404) } func (o *RegenerateDeployKeyNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -261,11 +261,11 @@ func (o *RegenerateDeployKeyConflict) Code() int { } func (o *RegenerateDeployKeyConflict) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/regenerate-deploy-key][%d] regenerateDeployKeyConflict ", 409) + return fmt.Sprintf("[POST /applications/{appName}/regenerate-deploy-key][%d] regenerateDeployKeyConflict", 409) } func (o *RegenerateDeployKeyConflict) String() string { - return fmt.Sprintf("[POST /applications/{appName}/regenerate-deploy-key][%d] regenerateDeployKeyConflict ", 409) + return fmt.Sprintf("[POST /applications/{appName}/regenerate-deploy-key][%d] regenerateDeployKeyConflict", 409) } func (o *RegenerateDeployKeyConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/application/restart_application_responses.go b/generated-client/client/application/restart_application_responses.go index 20ec381..1a00d86 100644 --- a/generated-client/client/application/restart_application_responses.go +++ b/generated-client/client/application/restart_application_responses.go @@ -87,11 +87,11 @@ func (o *RestartApplicationOK) Code() int { } func (o *RestartApplicationOK) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/restart][%d] restartApplicationOK ", 200) + return fmt.Sprintf("[POST /applications/{appName}/restart][%d] restartApplicationOK", 200) } func (o *RestartApplicationOK) String() string { - return fmt.Sprintf("[POST /applications/{appName}/restart][%d] restartApplicationOK ", 200) + return fmt.Sprintf("[POST /applications/{appName}/restart][%d] restartApplicationOK", 200) } func (o *RestartApplicationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -143,11 +143,11 @@ func (o *RestartApplicationUnauthorized) Code() int { } func (o *RestartApplicationUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/restart][%d] restartApplicationUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/restart][%d] restartApplicationUnauthorized", 401) } func (o *RestartApplicationUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/restart][%d] restartApplicationUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/restart][%d] restartApplicationUnauthorized", 401) } func (o *RestartApplicationUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -199,11 +199,11 @@ func (o *RestartApplicationNotFound) Code() int { } func (o *RestartApplicationNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/restart][%d] restartApplicationNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/restart][%d] restartApplicationNotFound", 404) } func (o *RestartApplicationNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/restart][%d] restartApplicationNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/restart][%d] restartApplicationNotFound", 404) } func (o *RestartApplicationNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/application/start_application_responses.go b/generated-client/client/application/start_application_responses.go index 9966269..7edfd44 100644 --- a/generated-client/client/application/start_application_responses.go +++ b/generated-client/client/application/start_application_responses.go @@ -87,11 +87,11 @@ func (o *StartApplicationOK) Code() int { } func (o *StartApplicationOK) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/start][%d] startApplicationOK ", 200) + return fmt.Sprintf("[POST /applications/{appName}/start][%d] startApplicationOK", 200) } func (o *StartApplicationOK) String() string { - return fmt.Sprintf("[POST /applications/{appName}/start][%d] startApplicationOK ", 200) + return fmt.Sprintf("[POST /applications/{appName}/start][%d] startApplicationOK", 200) } func (o *StartApplicationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -143,11 +143,11 @@ func (o *StartApplicationUnauthorized) Code() int { } func (o *StartApplicationUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/start][%d] startApplicationUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/start][%d] startApplicationUnauthorized", 401) } func (o *StartApplicationUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/start][%d] startApplicationUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/start][%d] startApplicationUnauthorized", 401) } func (o *StartApplicationUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -199,11 +199,11 @@ func (o *StartApplicationNotFound) Code() int { } func (o *StartApplicationNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/start][%d] startApplicationNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/start][%d] startApplicationNotFound", 404) } func (o *StartApplicationNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/start][%d] startApplicationNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/start][%d] startApplicationNotFound", 404) } func (o *StartApplicationNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/application/stop_application_responses.go b/generated-client/client/application/stop_application_responses.go index 3ef60b8..22f1b9a 100644 --- a/generated-client/client/application/stop_application_responses.go +++ b/generated-client/client/application/stop_application_responses.go @@ -87,11 +87,11 @@ func (o *StopApplicationOK) Code() int { } func (o *StopApplicationOK) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/stop][%d] stopApplicationOK ", 200) + return fmt.Sprintf("[POST /applications/{appName}/stop][%d] stopApplicationOK", 200) } func (o *StopApplicationOK) String() string { - return fmt.Sprintf("[POST /applications/{appName}/stop][%d] stopApplicationOK ", 200) + return fmt.Sprintf("[POST /applications/{appName}/stop][%d] stopApplicationOK", 200) } func (o *StopApplicationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -143,11 +143,11 @@ func (o *StopApplicationUnauthorized) Code() int { } func (o *StopApplicationUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/stop][%d] stopApplicationUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/stop][%d] stopApplicationUnauthorized", 401) } func (o *StopApplicationUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/stop][%d] stopApplicationUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/stop][%d] stopApplicationUnauthorized", 401) } func (o *StopApplicationUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -199,11 +199,11 @@ func (o *StopApplicationNotFound) Code() int { } func (o *StopApplicationNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/stop][%d] stopApplicationNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/stop][%d] stopApplicationNotFound", 404) } func (o *StopApplicationNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/stop][%d] stopApplicationNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/stop][%d] stopApplicationNotFound", 404) } func (o *StopApplicationNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/application/trigger_pipeline_apply_config_responses.go b/generated-client/client/application/trigger_pipeline_apply_config_responses.go index 7587344..32ff9c7 100644 --- a/generated-client/client/application/trigger_pipeline_apply_config_responses.go +++ b/generated-client/client/application/trigger_pipeline_apply_config_responses.go @@ -6,6 +6,7 @@ package application // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -91,11 +92,13 @@ func (o *TriggerPipelineApplyConfigOK) Code() int { } func (o *TriggerPipelineApplyConfigOK) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/apply-config][%d] triggerPipelineApplyConfigOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/apply-config][%d] triggerPipelineApplyConfigOK %s", 200, payload) } func (o *TriggerPipelineApplyConfigOK) String() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/apply-config][%d] triggerPipelineApplyConfigOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/apply-config][%d] triggerPipelineApplyConfigOK %s", 200, payload) } func (o *TriggerPipelineApplyConfigOK) GetPayload() *models.JobSummary { @@ -158,11 +161,11 @@ func (o *TriggerPipelineApplyConfigForbidden) Code() int { } func (o *TriggerPipelineApplyConfigForbidden) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/apply-config][%d] triggerPipelineApplyConfigForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/apply-config][%d] triggerPipelineApplyConfigForbidden", 403) } func (o *TriggerPipelineApplyConfigForbidden) String() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/apply-config][%d] triggerPipelineApplyConfigForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/apply-config][%d] triggerPipelineApplyConfigForbidden", 403) } func (o *TriggerPipelineApplyConfigForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -214,11 +217,11 @@ func (o *TriggerPipelineApplyConfigNotFound) Code() int { } func (o *TriggerPipelineApplyConfigNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/apply-config][%d] triggerPipelineApplyConfigNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/apply-config][%d] triggerPipelineApplyConfigNotFound", 404) } func (o *TriggerPipelineApplyConfigNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/apply-config][%d] triggerPipelineApplyConfigNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/apply-config][%d] triggerPipelineApplyConfigNotFound", 404) } func (o *TriggerPipelineApplyConfigNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/application/trigger_pipeline_build_deploy_responses.go b/generated-client/client/application/trigger_pipeline_build_deploy_responses.go index 87b68ab..4fd81a8 100644 --- a/generated-client/client/application/trigger_pipeline_build_deploy_responses.go +++ b/generated-client/client/application/trigger_pipeline_build_deploy_responses.go @@ -6,6 +6,7 @@ package application // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -91,11 +92,13 @@ func (o *TriggerPipelineBuildDeployOK) Code() int { } func (o *TriggerPipelineBuildDeployOK) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/build-deploy][%d] triggerPipelineBuildDeployOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/build-deploy][%d] triggerPipelineBuildDeployOK %s", 200, payload) } func (o *TriggerPipelineBuildDeployOK) String() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/build-deploy][%d] triggerPipelineBuildDeployOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/build-deploy][%d] triggerPipelineBuildDeployOK %s", 200, payload) } func (o *TriggerPipelineBuildDeployOK) GetPayload() *models.JobSummary { @@ -158,11 +161,11 @@ func (o *TriggerPipelineBuildDeployForbidden) Code() int { } func (o *TriggerPipelineBuildDeployForbidden) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/build-deploy][%d] triggerPipelineBuildDeployForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/build-deploy][%d] triggerPipelineBuildDeployForbidden", 403) } func (o *TriggerPipelineBuildDeployForbidden) String() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/build-deploy][%d] triggerPipelineBuildDeployForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/build-deploy][%d] triggerPipelineBuildDeployForbidden", 403) } func (o *TriggerPipelineBuildDeployForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -214,11 +217,11 @@ func (o *TriggerPipelineBuildDeployNotFound) Code() int { } func (o *TriggerPipelineBuildDeployNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/build-deploy][%d] triggerPipelineBuildDeployNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/build-deploy][%d] triggerPipelineBuildDeployNotFound", 404) } func (o *TriggerPipelineBuildDeployNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/build-deploy][%d] triggerPipelineBuildDeployNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/build-deploy][%d] triggerPipelineBuildDeployNotFound", 404) } func (o *TriggerPipelineBuildDeployNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/application/trigger_pipeline_build_responses.go b/generated-client/client/application/trigger_pipeline_build_responses.go index 62e319a..72f61ac 100644 --- a/generated-client/client/application/trigger_pipeline_build_responses.go +++ b/generated-client/client/application/trigger_pipeline_build_responses.go @@ -6,6 +6,7 @@ package application // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -91,11 +92,13 @@ func (o *TriggerPipelineBuildOK) Code() int { } func (o *TriggerPipelineBuildOK) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/build][%d] triggerPipelineBuildOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/build][%d] triggerPipelineBuildOK %s", 200, payload) } func (o *TriggerPipelineBuildOK) String() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/build][%d] triggerPipelineBuildOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/build][%d] triggerPipelineBuildOK %s", 200, payload) } func (o *TriggerPipelineBuildOK) GetPayload() *models.JobSummary { @@ -158,11 +161,11 @@ func (o *TriggerPipelineBuildForbidden) Code() int { } func (o *TriggerPipelineBuildForbidden) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/build][%d] triggerPipelineBuildForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/build][%d] triggerPipelineBuildForbidden", 403) } func (o *TriggerPipelineBuildForbidden) String() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/build][%d] triggerPipelineBuildForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/build][%d] triggerPipelineBuildForbidden", 403) } func (o *TriggerPipelineBuildForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -214,11 +217,11 @@ func (o *TriggerPipelineBuildNotFound) Code() int { } func (o *TriggerPipelineBuildNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/build][%d] triggerPipelineBuildNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/build][%d] triggerPipelineBuildNotFound", 404) } func (o *TriggerPipelineBuildNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/build][%d] triggerPipelineBuildNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/build][%d] triggerPipelineBuildNotFound", 404) } func (o *TriggerPipelineBuildNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/application/trigger_pipeline_deploy_responses.go b/generated-client/client/application/trigger_pipeline_deploy_responses.go index 0723113..74aa346 100644 --- a/generated-client/client/application/trigger_pipeline_deploy_responses.go +++ b/generated-client/client/application/trigger_pipeline_deploy_responses.go @@ -6,6 +6,7 @@ package application // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -91,11 +92,13 @@ func (o *TriggerPipelineDeployOK) Code() int { } func (o *TriggerPipelineDeployOK) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/deploy][%d] triggerPipelineDeployOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/deploy][%d] triggerPipelineDeployOK %s", 200, payload) } func (o *TriggerPipelineDeployOK) String() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/deploy][%d] triggerPipelineDeployOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/deploy][%d] triggerPipelineDeployOK %s", 200, payload) } func (o *TriggerPipelineDeployOK) GetPayload() *models.JobSummary { @@ -158,11 +161,11 @@ func (o *TriggerPipelineDeployForbidden) Code() int { } func (o *TriggerPipelineDeployForbidden) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/deploy][%d] triggerPipelineDeployForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/deploy][%d] triggerPipelineDeployForbidden", 403) } func (o *TriggerPipelineDeployForbidden) String() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/deploy][%d] triggerPipelineDeployForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/deploy][%d] triggerPipelineDeployForbidden", 403) } func (o *TriggerPipelineDeployForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -214,11 +217,11 @@ func (o *TriggerPipelineDeployNotFound) Code() int { } func (o *TriggerPipelineDeployNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/deploy][%d] triggerPipelineDeployNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/deploy][%d] triggerPipelineDeployNotFound", 404) } func (o *TriggerPipelineDeployNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/deploy][%d] triggerPipelineDeployNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/deploy][%d] triggerPipelineDeployNotFound", 404) } func (o *TriggerPipelineDeployNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/application/trigger_pipeline_promote_responses.go b/generated-client/client/application/trigger_pipeline_promote_responses.go index c40e343..29abc7e 100644 --- a/generated-client/client/application/trigger_pipeline_promote_responses.go +++ b/generated-client/client/application/trigger_pipeline_promote_responses.go @@ -6,6 +6,7 @@ package application // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -85,11 +86,13 @@ func (o *TriggerPipelinePromoteOK) Code() int { } func (o *TriggerPipelinePromoteOK) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/promote][%d] triggerPipelinePromoteOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/promote][%d] triggerPipelinePromoteOK %s", 200, payload) } func (o *TriggerPipelinePromoteOK) String() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/promote][%d] triggerPipelinePromoteOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/promote][%d] triggerPipelinePromoteOK %s", 200, payload) } func (o *TriggerPipelinePromoteOK) GetPayload() *models.JobSummary { @@ -152,11 +155,11 @@ func (o *TriggerPipelinePromoteNotFound) Code() int { } func (o *TriggerPipelinePromoteNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/promote][%d] triggerPipelinePromoteNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/promote][%d] triggerPipelinePromoteNotFound", 404) } func (o *TriggerPipelinePromoteNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/pipelines/promote][%d] triggerPipelinePromoteNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/pipelines/promote][%d] triggerPipelinePromoteNotFound", 404) } func (o *TriggerPipelinePromoteNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/application/update_application_alerting_config_responses.go b/generated-client/client/application/update_application_alerting_config_responses.go index 2139e63..81a5a5e 100644 --- a/generated-client/client/application/update_application_alerting_config_responses.go +++ b/generated-client/client/application/update_application_alerting_config_responses.go @@ -6,6 +6,7 @@ package application // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -109,11 +110,13 @@ func (o *UpdateApplicationAlertingConfigOK) Code() int { } func (o *UpdateApplicationAlertingConfigOK) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/alerting][%d] updateApplicationAlertingConfigOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /applications/{appName}/alerting][%d] updateApplicationAlertingConfigOK %s", 200, payload) } func (o *UpdateApplicationAlertingConfigOK) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/alerting][%d] updateApplicationAlertingConfigOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /applications/{appName}/alerting][%d] updateApplicationAlertingConfigOK %s", 200, payload) } func (o *UpdateApplicationAlertingConfigOK) GetPayload() *models.AlertingConfig { @@ -176,11 +179,11 @@ func (o *UpdateApplicationAlertingConfigBadRequest) Code() int { } func (o *UpdateApplicationAlertingConfigBadRequest) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/alerting][%d] updateApplicationAlertingConfigBadRequest ", 400) + return fmt.Sprintf("[PUT /applications/{appName}/alerting][%d] updateApplicationAlertingConfigBadRequest", 400) } func (o *UpdateApplicationAlertingConfigBadRequest) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/alerting][%d] updateApplicationAlertingConfigBadRequest ", 400) + return fmt.Sprintf("[PUT /applications/{appName}/alerting][%d] updateApplicationAlertingConfigBadRequest", 400) } func (o *UpdateApplicationAlertingConfigBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -232,11 +235,11 @@ func (o *UpdateApplicationAlertingConfigUnauthorized) Code() int { } func (o *UpdateApplicationAlertingConfigUnauthorized) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/alerting][%d] updateApplicationAlertingConfigUnauthorized ", 401) + return fmt.Sprintf("[PUT /applications/{appName}/alerting][%d] updateApplicationAlertingConfigUnauthorized", 401) } func (o *UpdateApplicationAlertingConfigUnauthorized) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/alerting][%d] updateApplicationAlertingConfigUnauthorized ", 401) + return fmt.Sprintf("[PUT /applications/{appName}/alerting][%d] updateApplicationAlertingConfigUnauthorized", 401) } func (o *UpdateApplicationAlertingConfigUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -288,11 +291,11 @@ func (o *UpdateApplicationAlertingConfigForbidden) Code() int { } func (o *UpdateApplicationAlertingConfigForbidden) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/alerting][%d] updateApplicationAlertingConfigForbidden ", 403) + return fmt.Sprintf("[PUT /applications/{appName}/alerting][%d] updateApplicationAlertingConfigForbidden", 403) } func (o *UpdateApplicationAlertingConfigForbidden) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/alerting][%d] updateApplicationAlertingConfigForbidden ", 403) + return fmt.Sprintf("[PUT /applications/{appName}/alerting][%d] updateApplicationAlertingConfigForbidden", 403) } func (o *UpdateApplicationAlertingConfigForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -344,11 +347,11 @@ func (o *UpdateApplicationAlertingConfigNotFound) Code() int { } func (o *UpdateApplicationAlertingConfigNotFound) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/alerting][%d] updateApplicationAlertingConfigNotFound ", 404) + return fmt.Sprintf("[PUT /applications/{appName}/alerting][%d] updateApplicationAlertingConfigNotFound", 404) } func (o *UpdateApplicationAlertingConfigNotFound) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/alerting][%d] updateApplicationAlertingConfigNotFound ", 404) + return fmt.Sprintf("[PUT /applications/{appName}/alerting][%d] updateApplicationAlertingConfigNotFound", 404) } func (o *UpdateApplicationAlertingConfigNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -400,11 +403,11 @@ func (o *UpdateApplicationAlertingConfigInternalServerError) Code() int { } func (o *UpdateApplicationAlertingConfigInternalServerError) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/alerting][%d] updateApplicationAlertingConfigInternalServerError ", 500) + return fmt.Sprintf("[PUT /applications/{appName}/alerting][%d] updateApplicationAlertingConfigInternalServerError", 500) } func (o *UpdateApplicationAlertingConfigInternalServerError) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/alerting][%d] updateApplicationAlertingConfigInternalServerError ", 500) + return fmt.Sprintf("[PUT /applications/{appName}/alerting][%d] updateApplicationAlertingConfigInternalServerError", 500) } func (o *UpdateApplicationAlertingConfigInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/application/update_build_secrets_secret_value_responses.go b/generated-client/client/application/update_build_secrets_secret_value_responses.go index f71c434..932c360 100644 --- a/generated-client/client/application/update_build_secrets_secret_value_responses.go +++ b/generated-client/client/application/update_build_secrets_secret_value_responses.go @@ -105,11 +105,11 @@ func (o *UpdateBuildSecretsSecretValueOK) Code() int { } func (o *UpdateBuildSecretsSecretValueOK) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/buildsecrets/{secretName}][%d] updateBuildSecretsSecretValueOK ", 200) + return fmt.Sprintf("[PUT /applications/{appName}/buildsecrets/{secretName}][%d] updateBuildSecretsSecretValueOK", 200) } func (o *UpdateBuildSecretsSecretValueOK) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/buildsecrets/{secretName}][%d] updateBuildSecretsSecretValueOK ", 200) + return fmt.Sprintf("[PUT /applications/{appName}/buildsecrets/{secretName}][%d] updateBuildSecretsSecretValueOK", 200) } func (o *UpdateBuildSecretsSecretValueOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -161,11 +161,11 @@ func (o *UpdateBuildSecretsSecretValueBadRequest) Code() int { } func (o *UpdateBuildSecretsSecretValueBadRequest) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/buildsecrets/{secretName}][%d] updateBuildSecretsSecretValueBadRequest ", 400) + return fmt.Sprintf("[PUT /applications/{appName}/buildsecrets/{secretName}][%d] updateBuildSecretsSecretValueBadRequest", 400) } func (o *UpdateBuildSecretsSecretValueBadRequest) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/buildsecrets/{secretName}][%d] updateBuildSecretsSecretValueBadRequest ", 400) + return fmt.Sprintf("[PUT /applications/{appName}/buildsecrets/{secretName}][%d] updateBuildSecretsSecretValueBadRequest", 400) } func (o *UpdateBuildSecretsSecretValueBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -217,11 +217,11 @@ func (o *UpdateBuildSecretsSecretValueUnauthorized) Code() int { } func (o *UpdateBuildSecretsSecretValueUnauthorized) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/buildsecrets/{secretName}][%d] updateBuildSecretsSecretValueUnauthorized ", 401) + return fmt.Sprintf("[PUT /applications/{appName}/buildsecrets/{secretName}][%d] updateBuildSecretsSecretValueUnauthorized", 401) } func (o *UpdateBuildSecretsSecretValueUnauthorized) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/buildsecrets/{secretName}][%d] updateBuildSecretsSecretValueUnauthorized ", 401) + return fmt.Sprintf("[PUT /applications/{appName}/buildsecrets/{secretName}][%d] updateBuildSecretsSecretValueUnauthorized", 401) } func (o *UpdateBuildSecretsSecretValueUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -273,11 +273,11 @@ func (o *UpdateBuildSecretsSecretValueForbidden) Code() int { } func (o *UpdateBuildSecretsSecretValueForbidden) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/buildsecrets/{secretName}][%d] updateBuildSecretsSecretValueForbidden ", 403) + return fmt.Sprintf("[PUT /applications/{appName}/buildsecrets/{secretName}][%d] updateBuildSecretsSecretValueForbidden", 403) } func (o *UpdateBuildSecretsSecretValueForbidden) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/buildsecrets/{secretName}][%d] updateBuildSecretsSecretValueForbidden ", 403) + return fmt.Sprintf("[PUT /applications/{appName}/buildsecrets/{secretName}][%d] updateBuildSecretsSecretValueForbidden", 403) } func (o *UpdateBuildSecretsSecretValueForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -329,11 +329,11 @@ func (o *UpdateBuildSecretsSecretValueNotFound) Code() int { } func (o *UpdateBuildSecretsSecretValueNotFound) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/buildsecrets/{secretName}][%d] updateBuildSecretsSecretValueNotFound ", 404) + return fmt.Sprintf("[PUT /applications/{appName}/buildsecrets/{secretName}][%d] updateBuildSecretsSecretValueNotFound", 404) } func (o *UpdateBuildSecretsSecretValueNotFound) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/buildsecrets/{secretName}][%d] updateBuildSecretsSecretValueNotFound ", 404) + return fmt.Sprintf("[PUT /applications/{appName}/buildsecrets/{secretName}][%d] updateBuildSecretsSecretValueNotFound", 404) } func (o *UpdateBuildSecretsSecretValueNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -385,11 +385,11 @@ func (o *UpdateBuildSecretsSecretValueConflict) Code() int { } func (o *UpdateBuildSecretsSecretValueConflict) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/buildsecrets/{secretName}][%d] updateBuildSecretsSecretValueConflict ", 409) + return fmt.Sprintf("[PUT /applications/{appName}/buildsecrets/{secretName}][%d] updateBuildSecretsSecretValueConflict", 409) } func (o *UpdateBuildSecretsSecretValueConflict) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/buildsecrets/{secretName}][%d] updateBuildSecretsSecretValueConflict ", 409) + return fmt.Sprintf("[PUT /applications/{appName}/buildsecrets/{secretName}][%d] updateBuildSecretsSecretValueConflict", 409) } func (o *UpdateBuildSecretsSecretValueConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/application/update_private_image_hubs_secret_value_responses.go b/generated-client/client/application/update_private_image_hubs_secret_value_responses.go index fcdf4b0..c80d43a 100644 --- a/generated-client/client/application/update_private_image_hubs_secret_value_responses.go +++ b/generated-client/client/application/update_private_image_hubs_secret_value_responses.go @@ -105,11 +105,11 @@ func (o *UpdatePrivateImageHubsSecretValueOK) Code() int { } func (o *UpdatePrivateImageHubsSecretValueOK) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/privateimagehubs/{serverName}][%d] updatePrivateImageHubsSecretValueOK ", 200) + return fmt.Sprintf("[PUT /applications/{appName}/privateimagehubs/{serverName}][%d] updatePrivateImageHubsSecretValueOK", 200) } func (o *UpdatePrivateImageHubsSecretValueOK) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/privateimagehubs/{serverName}][%d] updatePrivateImageHubsSecretValueOK ", 200) + return fmt.Sprintf("[PUT /applications/{appName}/privateimagehubs/{serverName}][%d] updatePrivateImageHubsSecretValueOK", 200) } func (o *UpdatePrivateImageHubsSecretValueOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -161,11 +161,11 @@ func (o *UpdatePrivateImageHubsSecretValueBadRequest) Code() int { } func (o *UpdatePrivateImageHubsSecretValueBadRequest) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/privateimagehubs/{serverName}][%d] updatePrivateImageHubsSecretValueBadRequest ", 400) + return fmt.Sprintf("[PUT /applications/{appName}/privateimagehubs/{serverName}][%d] updatePrivateImageHubsSecretValueBadRequest", 400) } func (o *UpdatePrivateImageHubsSecretValueBadRequest) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/privateimagehubs/{serverName}][%d] updatePrivateImageHubsSecretValueBadRequest ", 400) + return fmt.Sprintf("[PUT /applications/{appName}/privateimagehubs/{serverName}][%d] updatePrivateImageHubsSecretValueBadRequest", 400) } func (o *UpdatePrivateImageHubsSecretValueBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -217,11 +217,11 @@ func (o *UpdatePrivateImageHubsSecretValueUnauthorized) Code() int { } func (o *UpdatePrivateImageHubsSecretValueUnauthorized) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/privateimagehubs/{serverName}][%d] updatePrivateImageHubsSecretValueUnauthorized ", 401) + return fmt.Sprintf("[PUT /applications/{appName}/privateimagehubs/{serverName}][%d] updatePrivateImageHubsSecretValueUnauthorized", 401) } func (o *UpdatePrivateImageHubsSecretValueUnauthorized) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/privateimagehubs/{serverName}][%d] updatePrivateImageHubsSecretValueUnauthorized ", 401) + return fmt.Sprintf("[PUT /applications/{appName}/privateimagehubs/{serverName}][%d] updatePrivateImageHubsSecretValueUnauthorized", 401) } func (o *UpdatePrivateImageHubsSecretValueUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -273,11 +273,11 @@ func (o *UpdatePrivateImageHubsSecretValueForbidden) Code() int { } func (o *UpdatePrivateImageHubsSecretValueForbidden) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/privateimagehubs/{serverName}][%d] updatePrivateImageHubsSecretValueForbidden ", 403) + return fmt.Sprintf("[PUT /applications/{appName}/privateimagehubs/{serverName}][%d] updatePrivateImageHubsSecretValueForbidden", 403) } func (o *UpdatePrivateImageHubsSecretValueForbidden) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/privateimagehubs/{serverName}][%d] updatePrivateImageHubsSecretValueForbidden ", 403) + return fmt.Sprintf("[PUT /applications/{appName}/privateimagehubs/{serverName}][%d] updatePrivateImageHubsSecretValueForbidden", 403) } func (o *UpdatePrivateImageHubsSecretValueForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -329,11 +329,11 @@ func (o *UpdatePrivateImageHubsSecretValueNotFound) Code() int { } func (o *UpdatePrivateImageHubsSecretValueNotFound) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/privateimagehubs/{serverName}][%d] updatePrivateImageHubsSecretValueNotFound ", 404) + return fmt.Sprintf("[PUT /applications/{appName}/privateimagehubs/{serverName}][%d] updatePrivateImageHubsSecretValueNotFound", 404) } func (o *UpdatePrivateImageHubsSecretValueNotFound) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/privateimagehubs/{serverName}][%d] updatePrivateImageHubsSecretValueNotFound ", 404) + return fmt.Sprintf("[PUT /applications/{appName}/privateimagehubs/{serverName}][%d] updatePrivateImageHubsSecretValueNotFound", 404) } func (o *UpdatePrivateImageHubsSecretValueNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -385,11 +385,11 @@ func (o *UpdatePrivateImageHubsSecretValueConflict) Code() int { } func (o *UpdatePrivateImageHubsSecretValueConflict) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/privateimagehubs/{serverName}][%d] updatePrivateImageHubsSecretValueConflict ", 409) + return fmt.Sprintf("[PUT /applications/{appName}/privateimagehubs/{serverName}][%d] updatePrivateImageHubsSecretValueConflict", 409) } func (o *UpdatePrivateImageHubsSecretValueConflict) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/privateimagehubs/{serverName}][%d] updatePrivateImageHubsSecretValueConflict ", 409) + return fmt.Sprintf("[PUT /applications/{appName}/privateimagehubs/{serverName}][%d] updatePrivateImageHubsSecretValueConflict", 409) } func (o *UpdatePrivateImageHubsSecretValueConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/buildstatus/buildstatus_client.go b/generated-client/client/buildstatus/buildstatus_client.go index 375fe05..dc20240 100644 --- a/generated-client/client/buildstatus/buildstatus_client.go +++ b/generated-client/client/buildstatus/buildstatus_client.go @@ -9,6 +9,7 @@ import ( "fmt" "github.com/go-openapi/runtime" + httptransport "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" ) @@ -17,6 +18,31 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientServi return &Client{transport: transport, formats: formats} } +// New creates a new buildstatus API client with basic auth credentials. +// It takes the following parameters: +// - host: http host (github.com). +// - basePath: any base path for the API client ("/v1", "/v3"). +// - scheme: http scheme ("http", "https"). +// - user: user for basic authentication header. +// - password: password for basic authentication header. +func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService { + transport := httptransport.New(host, basePath, []string{scheme}) + transport.DefaultAuthentication = httptransport.BasicAuth(user, password) + return &Client{transport: transport, formats: strfmt.Default} +} + +// New creates a new buildstatus API client with a bearer token for authentication. +// It takes the following parameters: +// - host: http host (github.com). +// - basePath: any base path for the API client ("/v1", "/v3"). +// - scheme: http scheme ("http", "https"). +// - bearerToken: bearer token for Bearer authentication header. +func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService { + transport := httptransport.New(host, basePath, []string{scheme}) + transport.DefaultAuthentication = httptransport.BearerToken(bearerToken) + return &Client{transport: transport, formats: strfmt.Default} +} + /* Client for buildstatus API */ @@ -25,7 +51,7 @@ type Client struct { formats strfmt.Registry } -// ClientOption is the option for Client methods +// ClientOption may be used to customize the behavior of Client methods. type ClientOption func(*runtime.ClientOperation) // ClientService is the interface for Client methods diff --git a/generated-client/client/buildstatus/get_build_status_responses.go b/generated-client/client/buildstatus/get_build_status_responses.go index 09432ac..c2c6bcc 100644 --- a/generated-client/client/buildstatus/get_build_status_responses.go +++ b/generated-client/client/buildstatus/get_build_status_responses.go @@ -81,11 +81,11 @@ func (o *GetBuildStatusOK) Code() int { } func (o *GetBuildStatusOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/buildstatus][%d] getBuildStatusOK ", 200) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/buildstatus][%d] getBuildStatusOK", 200) } func (o *GetBuildStatusOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/buildstatus][%d] getBuildStatusOK ", 200) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/buildstatus][%d] getBuildStatusOK", 200) } func (o *GetBuildStatusOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -137,11 +137,11 @@ func (o *GetBuildStatusInternalServerError) Code() int { } func (o *GetBuildStatusInternalServerError) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/buildstatus][%d] getBuildStatusInternalServerError ", 500) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/buildstatus][%d] getBuildStatusInternalServerError", 500) } func (o *GetBuildStatusInternalServerError) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/buildstatus][%d] getBuildStatusInternalServerError ", 500) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/buildstatus][%d] getBuildStatusInternalServerError", 500) } func (o *GetBuildStatusInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/component/change_env_var_responses.go b/generated-client/client/component/change_env_var_responses.go index 6a44940..34b06dd 100644 --- a/generated-client/client/component/change_env_var_responses.go +++ b/generated-client/client/component/change_env_var_responses.go @@ -111,11 +111,11 @@ func (o *ChangeEnvVarOK) Code() int { } func (o *ChangeEnvVarOK) Error() string { - return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarOK ", 200) + return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarOK", 200) } func (o *ChangeEnvVarOK) String() string { - return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarOK ", 200) + return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarOK", 200) } func (o *ChangeEnvVarOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -167,11 +167,11 @@ func (o *ChangeEnvVarBadRequest) Code() int { } func (o *ChangeEnvVarBadRequest) Error() string { - return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarBadRequest ", 400) + return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarBadRequest", 400) } func (o *ChangeEnvVarBadRequest) String() string { - return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarBadRequest ", 400) + return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarBadRequest", 400) } func (o *ChangeEnvVarBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -223,11 +223,11 @@ func (o *ChangeEnvVarUnauthorized) Code() int { } func (o *ChangeEnvVarUnauthorized) Error() string { - return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarUnauthorized ", 401) + return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarUnauthorized", 401) } func (o *ChangeEnvVarUnauthorized) String() string { - return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarUnauthorized ", 401) + return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarUnauthorized", 401) } func (o *ChangeEnvVarUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -279,11 +279,11 @@ func (o *ChangeEnvVarForbidden) Code() int { } func (o *ChangeEnvVarForbidden) Error() string { - return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarForbidden ", 403) + return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarForbidden", 403) } func (o *ChangeEnvVarForbidden) String() string { - return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarForbidden ", 403) + return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarForbidden", 403) } func (o *ChangeEnvVarForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -335,11 +335,11 @@ func (o *ChangeEnvVarNotFound) Code() int { } func (o *ChangeEnvVarNotFound) Error() string { - return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarNotFound ", 404) + return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarNotFound", 404) } func (o *ChangeEnvVarNotFound) String() string { - return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarNotFound ", 404) + return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarNotFound", 404) } func (o *ChangeEnvVarNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -391,11 +391,11 @@ func (o *ChangeEnvVarConflict) Code() int { } func (o *ChangeEnvVarConflict) Error() string { - return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarConflict ", 409) + return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarConflict", 409) } func (o *ChangeEnvVarConflict) String() string { - return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarConflict ", 409) + return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarConflict", 409) } func (o *ChangeEnvVarConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -447,11 +447,11 @@ func (o *ChangeEnvVarInternalServerError) Code() int { } func (o *ChangeEnvVarInternalServerError) Error() string { - return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarInternalServerError ", 500) + return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarInternalServerError", 500) } func (o *ChangeEnvVarInternalServerError) String() string { - return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarInternalServerError ", 500) + return fmt.Sprintf("[PATCH /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] changeEnvVarInternalServerError", 500) } func (o *ChangeEnvVarInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/component/component_client.go b/generated-client/client/component/component_client.go index 1587575..8b4a79e 100644 --- a/generated-client/client/component/component_client.go +++ b/generated-client/client/component/component_client.go @@ -9,6 +9,7 @@ import ( "fmt" "github.com/go-openapi/runtime" + httptransport "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" ) @@ -17,6 +18,31 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientServi return &Client{transport: transport, formats: formats} } +// New creates a new component API client with basic auth credentials. +// It takes the following parameters: +// - host: http host (github.com). +// - basePath: any base path for the API client ("/v1", "/v3"). +// - scheme: http scheme ("http", "https"). +// - user: user for basic authentication header. +// - password: password for basic authentication header. +func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService { + transport := httptransport.New(host, basePath, []string{scheme}) + transport.DefaultAuthentication = httptransport.BasicAuth(user, password) + return &Client{transport: transport, formats: strfmt.Default} +} + +// New creates a new component API client with a bearer token for authentication. +// It takes the following parameters: +// - host: http host (github.com). +// - basePath: any base path for the API client ("/v1", "/v3"). +// - scheme: http scheme ("http", "https"). +// - bearerToken: bearer token for Bearer authentication header. +func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService { + transport := httptransport.New(host, basePath, []string{scheme}) + transport.DefaultAuthentication = httptransport.BearerToken(bearerToken) + return &Client{transport: transport, formats: strfmt.Default} +} + /* Client for component API */ @@ -25,7 +51,7 @@ type Client struct { formats strfmt.Registry } -// ClientOption is the option for Client methods +// ClientOption may be used to customize the behavior of Client methods. type ClientOption func(*runtime.ClientOperation) // ClientService is the interface for Client methods diff --git a/generated-client/client/component/components_responses.go b/generated-client/client/component/components_responses.go index c0e53bf..ce5df19 100644 --- a/generated-client/client/component/components_responses.go +++ b/generated-client/client/component/components_responses.go @@ -6,6 +6,7 @@ package component // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -85,11 +86,13 @@ func (o *ComponentsOK) Code() int { } func (o *ComponentsOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}/components][%d] componentsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}/components][%d] componentsOK %s", 200, payload) } func (o *ComponentsOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}/components][%d] componentsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}/components][%d] componentsOK %s", 200, payload) } func (o *ComponentsOK) GetPayload() []*models.Component { @@ -150,11 +153,11 @@ func (o *ComponentsNotFound) Code() int { } func (o *ComponentsNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}/components][%d] componentsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}/components][%d] componentsNotFound", 404) } func (o *ComponentsNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}/components][%d] componentsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}/components][%d] componentsNotFound", 404) } func (o *ComponentsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/component/env_vars_responses.go b/generated-client/client/component/env_vars_responses.go index b50a7e9..2562746 100644 --- a/generated-client/client/component/env_vars_responses.go +++ b/generated-client/client/component/env_vars_responses.go @@ -6,6 +6,7 @@ package component // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -85,11 +86,13 @@ func (o *EnvVarsOK) Code() int { } func (o *EnvVarsOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] envVarsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] envVarsOK %s", 200, payload) } func (o *EnvVarsOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] envVarsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] envVarsOK %s", 200, payload) } func (o *EnvVarsOK) GetPayload() []*models.EnvVar { @@ -150,11 +153,11 @@ func (o *EnvVarsNotFound) Code() int { } func (o *EnvVarsNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] envVarsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] envVarsNotFound", 404) } func (o *EnvVarsNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] envVarsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/envvars][%d] envVarsNotFound", 404) } func (o *EnvVarsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/component/get_o_auth_pod_log_responses.go b/generated-client/client/component/get_o_auth_pod_log_responses.go index a710251..89c0071 100644 --- a/generated-client/client/component/get_o_auth_pod_log_responses.go +++ b/generated-client/client/component/get_o_auth_pod_log_responses.go @@ -6,6 +6,7 @@ package component // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -101,11 +102,13 @@ func (o *GetOAuthPodLogOK) Code() int { } func (o *GetOAuthPodLogOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/replicas/{podName}/logs][%d] getOAuthPodLogOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/replicas/{podName}/logs][%d] getOAuthPodLogOK %s", 200, payload) } func (o *GetOAuthPodLogOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/replicas/{podName}/logs][%d] getOAuthPodLogOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/replicas/{podName}/logs][%d] getOAuthPodLogOK %s", 200, payload) } func (o *GetOAuthPodLogOK) GetPayload() string { @@ -166,11 +169,11 @@ func (o *GetOAuthPodLogUnauthorized) Code() int { } func (o *GetOAuthPodLogUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/replicas/{podName}/logs][%d] getOAuthPodLogUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/replicas/{podName}/logs][%d] getOAuthPodLogUnauthorized", 401) } func (o *GetOAuthPodLogUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/replicas/{podName}/logs][%d] getOAuthPodLogUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/replicas/{podName}/logs][%d] getOAuthPodLogUnauthorized", 401) } func (o *GetOAuthPodLogUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -222,11 +225,11 @@ func (o *GetOAuthPodLogForbidden) Code() int { } func (o *GetOAuthPodLogForbidden) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/replicas/{podName}/logs][%d] getOAuthPodLogForbidden ", 403) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/replicas/{podName}/logs][%d] getOAuthPodLogForbidden", 403) } func (o *GetOAuthPodLogForbidden) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/replicas/{podName}/logs][%d] getOAuthPodLogForbidden ", 403) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/replicas/{podName}/logs][%d] getOAuthPodLogForbidden", 403) } func (o *GetOAuthPodLogForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -278,11 +281,11 @@ func (o *GetOAuthPodLogNotFound) Code() int { } func (o *GetOAuthPodLogNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/replicas/{podName}/logs][%d] getOAuthPodLogNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/replicas/{podName}/logs][%d] getOAuthPodLogNotFound", 404) } func (o *GetOAuthPodLogNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/replicas/{podName}/logs][%d] getOAuthPodLogNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/replicas/{podName}/logs][%d] getOAuthPodLogNotFound", 404) } func (o *GetOAuthPodLogNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -334,11 +337,11 @@ func (o *GetOAuthPodLogInternalServerError) Code() int { } func (o *GetOAuthPodLogInternalServerError) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/replicas/{podName}/logs][%d] getOAuthPodLogInternalServerError ", 500) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/replicas/{podName}/logs][%d] getOAuthPodLogInternalServerError", 500) } func (o *GetOAuthPodLogInternalServerError) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/replicas/{podName}/logs][%d] getOAuthPodLogInternalServerError ", 500) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/replicas/{podName}/logs][%d] getOAuthPodLogInternalServerError", 500) } func (o *GetOAuthPodLogInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/component/log_responses.go b/generated-client/client/component/log_responses.go index cab50f7..dca2635 100644 --- a/generated-client/client/component/log_responses.go +++ b/generated-client/client/component/log_responses.go @@ -6,6 +6,7 @@ package component // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -83,11 +84,13 @@ func (o *LogOK) Code() int { } func (o *LogOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}/components/{componentName}/replicas/{podName}/logs][%d] logOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}/components/{componentName}/replicas/{podName}/logs][%d] logOK %s", 200, payload) } func (o *LogOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}/components/{componentName}/replicas/{podName}/logs][%d] logOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}/components/{componentName}/replicas/{podName}/logs][%d] logOK %s", 200, payload) } func (o *LogOK) GetPayload() string { @@ -148,11 +151,11 @@ func (o *LogNotFound) Code() int { } func (o *LogNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}/components/{componentName}/replicas/{podName}/logs][%d] logNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}/components/{componentName}/replicas/{podName}/logs][%d] logNotFound", 404) } func (o *LogNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}/components/{componentName}/replicas/{podName}/logs][%d] logNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}/components/{componentName}/replicas/{podName}/logs][%d] logNotFound", 404) } func (o *LogNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/component/replica_log_responses.go b/generated-client/client/component/replica_log_responses.go index fa62f60..3cbe8f7 100644 --- a/generated-client/client/component/replica_log_responses.go +++ b/generated-client/client/component/replica_log_responses.go @@ -6,6 +6,7 @@ package component // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -83,11 +84,13 @@ func (o *ReplicaLogOK) Code() int { } func (o *ReplicaLogOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/replicas/{podName}/logs][%d] replicaLogOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/replicas/{podName}/logs][%d] replicaLogOK %s", 200, payload) } func (o *ReplicaLogOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/replicas/{podName}/logs][%d] replicaLogOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/replicas/{podName}/logs][%d] replicaLogOK %s", 200, payload) } func (o *ReplicaLogOK) GetPayload() string { @@ -148,11 +151,11 @@ func (o *ReplicaLogNotFound) Code() int { } func (o *ReplicaLogNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/replicas/{podName}/logs][%d] replicaLogNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/replicas/{podName}/logs][%d] replicaLogNotFound", 404) } func (o *ReplicaLogNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/replicas/{podName}/logs][%d] replicaLogNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/replicas/{podName}/logs][%d] replicaLogNotFound", 404) } func (o *ReplicaLogNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/component/restart_component_responses.go b/generated-client/client/component/restart_component_responses.go index 78f75bd..5343284 100644 --- a/generated-client/client/component/restart_component_responses.go +++ b/generated-client/client/component/restart_component_responses.go @@ -87,11 +87,11 @@ func (o *RestartComponentOK) Code() int { } func (o *RestartComponentOK) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/restart][%d] restartComponentOK ", 200) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/restart][%d] restartComponentOK", 200) } func (o *RestartComponentOK) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/restart][%d] restartComponentOK ", 200) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/restart][%d] restartComponentOK", 200) } func (o *RestartComponentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -143,11 +143,11 @@ func (o *RestartComponentUnauthorized) Code() int { } func (o *RestartComponentUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/restart][%d] restartComponentUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/restart][%d] restartComponentUnauthorized", 401) } func (o *RestartComponentUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/restart][%d] restartComponentUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/restart][%d] restartComponentUnauthorized", 401) } func (o *RestartComponentUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -199,11 +199,11 @@ func (o *RestartComponentNotFound) Code() int { } func (o *RestartComponentNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/restart][%d] restartComponentNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/restart][%d] restartComponentNotFound", 404) } func (o *RestartComponentNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/restart][%d] restartComponentNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/restart][%d] restartComponentNotFound", 404) } func (o *RestartComponentNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/component/restart_o_auth_auxiliary_resource_responses.go b/generated-client/client/component/restart_o_auth_auxiliary_resource_responses.go index c1862cb..f345753 100644 --- a/generated-client/client/component/restart_o_auth_auxiliary_resource_responses.go +++ b/generated-client/client/component/restart_o_auth_auxiliary_resource_responses.go @@ -105,11 +105,11 @@ func (o *RestartOAuthAuxiliaryResourceOK) Code() int { } func (o *RestartOAuthAuxiliaryResourceOK) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/restart][%d] restartOAuthAuxiliaryResourceOK ", 200) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/restart][%d] restartOAuthAuxiliaryResourceOK", 200) } func (o *RestartOAuthAuxiliaryResourceOK) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/restart][%d] restartOAuthAuxiliaryResourceOK ", 200) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/restart][%d] restartOAuthAuxiliaryResourceOK", 200) } func (o *RestartOAuthAuxiliaryResourceOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -161,11 +161,11 @@ func (o *RestartOAuthAuxiliaryResourceUnauthorized) Code() int { } func (o *RestartOAuthAuxiliaryResourceUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/restart][%d] restartOAuthAuxiliaryResourceUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/restart][%d] restartOAuthAuxiliaryResourceUnauthorized", 401) } func (o *RestartOAuthAuxiliaryResourceUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/restart][%d] restartOAuthAuxiliaryResourceUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/restart][%d] restartOAuthAuxiliaryResourceUnauthorized", 401) } func (o *RestartOAuthAuxiliaryResourceUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -217,11 +217,11 @@ func (o *RestartOAuthAuxiliaryResourceForbidden) Code() int { } func (o *RestartOAuthAuxiliaryResourceForbidden) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/restart][%d] restartOAuthAuxiliaryResourceForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/restart][%d] restartOAuthAuxiliaryResourceForbidden", 403) } func (o *RestartOAuthAuxiliaryResourceForbidden) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/restart][%d] restartOAuthAuxiliaryResourceForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/restart][%d] restartOAuthAuxiliaryResourceForbidden", 403) } func (o *RestartOAuthAuxiliaryResourceForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -273,11 +273,11 @@ func (o *RestartOAuthAuxiliaryResourceNotFound) Code() int { } func (o *RestartOAuthAuxiliaryResourceNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/restart][%d] restartOAuthAuxiliaryResourceNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/restart][%d] restartOAuthAuxiliaryResourceNotFound", 404) } func (o *RestartOAuthAuxiliaryResourceNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/restart][%d] restartOAuthAuxiliaryResourceNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/restart][%d] restartOAuthAuxiliaryResourceNotFound", 404) } func (o *RestartOAuthAuxiliaryResourceNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -329,11 +329,11 @@ func (o *RestartOAuthAuxiliaryResourceConflict) Code() int { } func (o *RestartOAuthAuxiliaryResourceConflict) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/restart][%d] restartOAuthAuxiliaryResourceConflict ", 409) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/restart][%d] restartOAuthAuxiliaryResourceConflict", 409) } func (o *RestartOAuthAuxiliaryResourceConflict) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/restart][%d] restartOAuthAuxiliaryResourceConflict ", 409) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/restart][%d] restartOAuthAuxiliaryResourceConflict", 409) } func (o *RestartOAuthAuxiliaryResourceConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -385,11 +385,11 @@ func (o *RestartOAuthAuxiliaryResourceInternalServerError) Code() int { } func (o *RestartOAuthAuxiliaryResourceInternalServerError) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/restart][%d] restartOAuthAuxiliaryResourceInternalServerError ", 500) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/restart][%d] restartOAuthAuxiliaryResourceInternalServerError", 500) } func (o *RestartOAuthAuxiliaryResourceInternalServerError) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/restart][%d] restartOAuthAuxiliaryResourceInternalServerError ", 500) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/aux/oauth/restart][%d] restartOAuthAuxiliaryResourceInternalServerError", 500) } func (o *RestartOAuthAuxiliaryResourceInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/component/scale_component_responses.go b/generated-client/client/component/scale_component_responses.go index a62e438..0555baa 100644 --- a/generated-client/client/component/scale_component_responses.go +++ b/generated-client/client/component/scale_component_responses.go @@ -99,11 +99,11 @@ func (o *ScaleComponentNoContent) Code() int { } func (o *ScaleComponentNoContent) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/scale/{replicas}][%d] scaleComponentNoContent ", 204) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/scale/{replicas}][%d] scaleComponentNoContent", 204) } func (o *ScaleComponentNoContent) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/scale/{replicas}][%d] scaleComponentNoContent ", 204) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/scale/{replicas}][%d] scaleComponentNoContent", 204) } func (o *ScaleComponentNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -155,11 +155,11 @@ func (o *ScaleComponentBadRequest) Code() int { } func (o *ScaleComponentBadRequest) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/scale/{replicas}][%d] scaleComponentBadRequest ", 400) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/scale/{replicas}][%d] scaleComponentBadRequest", 400) } func (o *ScaleComponentBadRequest) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/scale/{replicas}][%d] scaleComponentBadRequest ", 400) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/scale/{replicas}][%d] scaleComponentBadRequest", 400) } func (o *ScaleComponentBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -211,11 +211,11 @@ func (o *ScaleComponentUnauthorized) Code() int { } func (o *ScaleComponentUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/scale/{replicas}][%d] scaleComponentUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/scale/{replicas}][%d] scaleComponentUnauthorized", 401) } func (o *ScaleComponentUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/scale/{replicas}][%d] scaleComponentUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/scale/{replicas}][%d] scaleComponentUnauthorized", 401) } func (o *ScaleComponentUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -267,11 +267,11 @@ func (o *ScaleComponentForbidden) Code() int { } func (o *ScaleComponentForbidden) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/scale/{replicas}][%d] scaleComponentForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/scale/{replicas}][%d] scaleComponentForbidden", 403) } func (o *ScaleComponentForbidden) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/scale/{replicas}][%d] scaleComponentForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/scale/{replicas}][%d] scaleComponentForbidden", 403) } func (o *ScaleComponentForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -323,11 +323,11 @@ func (o *ScaleComponentNotFound) Code() int { } func (o *ScaleComponentNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/scale/{replicas}][%d] scaleComponentNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/scale/{replicas}][%d] scaleComponentNotFound", 404) } func (o *ScaleComponentNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/scale/{replicas}][%d] scaleComponentNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/scale/{replicas}][%d] scaleComponentNotFound", 404) } func (o *ScaleComponentNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/component/start_component_responses.go b/generated-client/client/component/start_component_responses.go index 204dba0..6ce396b 100644 --- a/generated-client/client/component/start_component_responses.go +++ b/generated-client/client/component/start_component_responses.go @@ -87,11 +87,11 @@ func (o *StartComponentOK) Code() int { } func (o *StartComponentOK) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/start][%d] startComponentOK ", 200) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/start][%d] startComponentOK", 200) } func (o *StartComponentOK) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/start][%d] startComponentOK ", 200) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/start][%d] startComponentOK", 200) } func (o *StartComponentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -143,11 +143,11 @@ func (o *StartComponentUnauthorized) Code() int { } func (o *StartComponentUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/start][%d] startComponentUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/start][%d] startComponentUnauthorized", 401) } func (o *StartComponentUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/start][%d] startComponentUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/start][%d] startComponentUnauthorized", 401) } func (o *StartComponentUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -199,11 +199,11 @@ func (o *StartComponentNotFound) Code() int { } func (o *StartComponentNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/start][%d] startComponentNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/start][%d] startComponentNotFound", 404) } func (o *StartComponentNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/start][%d] startComponentNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/start][%d] startComponentNotFound", 404) } func (o *StartComponentNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/component/stop_component_responses.go b/generated-client/client/component/stop_component_responses.go index 3285259..9eec221 100644 --- a/generated-client/client/component/stop_component_responses.go +++ b/generated-client/client/component/stop_component_responses.go @@ -87,11 +87,11 @@ func (o *StopComponentOK) Code() int { } func (o *StopComponentOK) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/stop][%d] stopComponentOK ", 200) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/stop][%d] stopComponentOK", 200) } func (o *StopComponentOK) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/stop][%d] stopComponentOK ", 200) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/stop][%d] stopComponentOK", 200) } func (o *StopComponentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -143,11 +143,11 @@ func (o *StopComponentUnauthorized) Code() int { } func (o *StopComponentUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/stop][%d] stopComponentUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/stop][%d] stopComponentUnauthorized", 401) } func (o *StopComponentUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/stop][%d] stopComponentUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/stop][%d] stopComponentUnauthorized", 401) } func (o *StopComponentUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -199,11 +199,11 @@ func (o *StopComponentNotFound) Code() int { } func (o *StopComponentNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/stop][%d] stopComponentNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/stop][%d] stopComponentNotFound", 404) } func (o *StopComponentNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/stop][%d] stopComponentNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/components/{componentName}/stop][%d] stopComponentNotFound", 404) } func (o *StopComponentNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/component/update_component_external_dns_tls_responses.go b/generated-client/client/component/update_component_external_dns_tls_responses.go index 8b4ed00..b876fab 100644 --- a/generated-client/client/component/update_component_external_dns_tls_responses.go +++ b/generated-client/client/component/update_component_external_dns_tls_responses.go @@ -111,11 +111,11 @@ func (o *UpdateComponentExternalDNSTLSOK) Code() int { } func (o *UpdateComponentExternalDNSTLSOK) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsOK ", 200) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsOK", 200) } func (o *UpdateComponentExternalDNSTLSOK) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsOK ", 200) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsOK", 200) } func (o *UpdateComponentExternalDNSTLSOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -167,11 +167,11 @@ func (o *UpdateComponentExternalDNSTLSBadRequest) Code() int { } func (o *UpdateComponentExternalDNSTLSBadRequest) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsBadRequest ", 400) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsBadRequest", 400) } func (o *UpdateComponentExternalDNSTLSBadRequest) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsBadRequest ", 400) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsBadRequest", 400) } func (o *UpdateComponentExternalDNSTLSBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -223,11 +223,11 @@ func (o *UpdateComponentExternalDNSTLSUnauthorized) Code() int { } func (o *UpdateComponentExternalDNSTLSUnauthorized) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsUnauthorized ", 401) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsUnauthorized", 401) } func (o *UpdateComponentExternalDNSTLSUnauthorized) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsUnauthorized ", 401) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsUnauthorized", 401) } func (o *UpdateComponentExternalDNSTLSUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -279,11 +279,11 @@ func (o *UpdateComponentExternalDNSTLSForbidden) Code() int { } func (o *UpdateComponentExternalDNSTLSForbidden) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsForbidden ", 403) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsForbidden", 403) } func (o *UpdateComponentExternalDNSTLSForbidden) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsForbidden ", 403) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsForbidden", 403) } func (o *UpdateComponentExternalDNSTLSForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -335,11 +335,11 @@ func (o *UpdateComponentExternalDNSTLSNotFound) Code() int { } func (o *UpdateComponentExternalDNSTLSNotFound) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsNotFound ", 404) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsNotFound", 404) } func (o *UpdateComponentExternalDNSTLSNotFound) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsNotFound ", 404) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsNotFound", 404) } func (o *UpdateComponentExternalDNSTLSNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -391,11 +391,11 @@ func (o *UpdateComponentExternalDNSTLSConflict) Code() int { } func (o *UpdateComponentExternalDNSTLSConflict) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsConflict ", 409) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsConflict", 409) } func (o *UpdateComponentExternalDNSTLSConflict) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsConflict ", 409) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsConflict", 409) } func (o *UpdateComponentExternalDNSTLSConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -447,11 +447,11 @@ func (o *UpdateComponentExternalDNSTLSInternalServerError) Code() int { } func (o *UpdateComponentExternalDNSTLSInternalServerError) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsInternalServerError ", 500) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsInternalServerError", 500) } func (o *UpdateComponentExternalDNSTLSInternalServerError) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsInternalServerError ", 500) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/externaldns/{fqdn}/tls][%d] updateComponentExternalDnsTlsInternalServerError", 500) } func (o *UpdateComponentExternalDNSTLSInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/deployment/deployment_client.go b/generated-client/client/deployment/deployment_client.go index 12748c2..a61781c 100644 --- a/generated-client/client/deployment/deployment_client.go +++ b/generated-client/client/deployment/deployment_client.go @@ -9,6 +9,7 @@ import ( "fmt" "github.com/go-openapi/runtime" + httptransport "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" ) @@ -17,6 +18,31 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientServi return &Client{transport: transport, formats: formats} } +// New creates a new deployment API client with basic auth credentials. +// It takes the following parameters: +// - host: http host (github.com). +// - basePath: any base path for the API client ("/v1", "/v3"). +// - scheme: http scheme ("http", "https"). +// - user: user for basic authentication header. +// - password: password for basic authentication header. +func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService { + transport := httptransport.New(host, basePath, []string{scheme}) + transport.DefaultAuthentication = httptransport.BasicAuth(user, password) + return &Client{transport: transport, formats: strfmt.Default} +} + +// New creates a new deployment API client with a bearer token for authentication. +// It takes the following parameters: +// - host: http host (github.com). +// - basePath: any base path for the API client ("/v1", "/v3"). +// - scheme: http scheme ("http", "https"). +// - bearerToken: bearer token for Bearer authentication header. +func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService { + transport := httptransport.New(host, basePath, []string{scheme}) + transport.DefaultAuthentication = httptransport.BearerToken(bearerToken) + return &Client{transport: transport, formats: strfmt.Default} +} + /* Client for deployment API */ @@ -25,7 +51,7 @@ type Client struct { formats strfmt.Registry } -// ClientOption is the option for Client methods +// ClientOption may be used to customize the behavior of Client methods. type ClientOption func(*runtime.ClientOperation) // ClientService is the interface for Client methods diff --git a/generated-client/client/deployment/get_deployment_responses.go b/generated-client/client/deployment/get_deployment_responses.go index f3b1ade..6821dce 100644 --- a/generated-client/client/deployment/get_deployment_responses.go +++ b/generated-client/client/deployment/get_deployment_responses.go @@ -6,6 +6,7 @@ package deployment // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -91,11 +92,13 @@ func (o *GetDeploymentOK) Code() int { } func (o *GetDeploymentOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}][%d] getDeploymentOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}][%d] getDeploymentOK %s", 200, payload) } func (o *GetDeploymentOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}][%d] getDeploymentOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}][%d] getDeploymentOK %s", 200, payload) } func (o *GetDeploymentOK) GetPayload() *models.Deployment { @@ -158,11 +161,11 @@ func (o *GetDeploymentUnauthorized) Code() int { } func (o *GetDeploymentUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}][%d] getDeploymentUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}][%d] getDeploymentUnauthorized", 401) } func (o *GetDeploymentUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}][%d] getDeploymentUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}][%d] getDeploymentUnauthorized", 401) } func (o *GetDeploymentUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -214,11 +217,11 @@ func (o *GetDeploymentNotFound) Code() int { } func (o *GetDeploymentNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}][%d] getDeploymentNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}][%d] getDeploymentNotFound", 404) } func (o *GetDeploymentNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}][%d] getDeploymentNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/deployments/{deploymentName}][%d] getDeploymentNotFound", 404) } func (o *GetDeploymentNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/environment/change_component_secret_responses.go b/generated-client/client/environment/change_component_secret_responses.go index 406c66a..d735d90 100644 --- a/generated-client/client/environment/change_component_secret_responses.go +++ b/generated-client/client/environment/change_component_secret_responses.go @@ -111,11 +111,11 @@ func (o *ChangeComponentSecretOK) Code() int { } func (o *ChangeComponentSecretOK) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretOK ", 200) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretOK", 200) } func (o *ChangeComponentSecretOK) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretOK ", 200) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretOK", 200) } func (o *ChangeComponentSecretOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -167,11 +167,11 @@ func (o *ChangeComponentSecretBadRequest) Code() int { } func (o *ChangeComponentSecretBadRequest) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretBadRequest ", 400) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretBadRequest", 400) } func (o *ChangeComponentSecretBadRequest) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretBadRequest ", 400) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretBadRequest", 400) } func (o *ChangeComponentSecretBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -223,11 +223,11 @@ func (o *ChangeComponentSecretUnauthorized) Code() int { } func (o *ChangeComponentSecretUnauthorized) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretUnauthorized ", 401) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretUnauthorized", 401) } func (o *ChangeComponentSecretUnauthorized) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretUnauthorized ", 401) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretUnauthorized", 401) } func (o *ChangeComponentSecretUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -279,11 +279,11 @@ func (o *ChangeComponentSecretForbidden) Code() int { } func (o *ChangeComponentSecretForbidden) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretForbidden ", 403) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretForbidden", 403) } func (o *ChangeComponentSecretForbidden) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretForbidden ", 403) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretForbidden", 403) } func (o *ChangeComponentSecretForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -335,11 +335,11 @@ func (o *ChangeComponentSecretNotFound) Code() int { } func (o *ChangeComponentSecretNotFound) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretNotFound ", 404) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretNotFound", 404) } func (o *ChangeComponentSecretNotFound) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretNotFound ", 404) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretNotFound", 404) } func (o *ChangeComponentSecretNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -391,11 +391,11 @@ func (o *ChangeComponentSecretConflict) Code() int { } func (o *ChangeComponentSecretConflict) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretConflict ", 409) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretConflict", 409) } func (o *ChangeComponentSecretConflict) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretConflict ", 409) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretConflict", 409) } func (o *ChangeComponentSecretConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -447,11 +447,11 @@ func (o *ChangeComponentSecretInternalServerError) Code() int { } func (o *ChangeComponentSecretInternalServerError) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretInternalServerError ", 500) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretInternalServerError", 500) } func (o *ChangeComponentSecretInternalServerError) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretInternalServerError ", 500) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/components/{componentName}/secrets/{secretName}][%d] changeComponentSecretInternalServerError", 500) } func (o *ChangeComponentSecretInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/environment/create_environment_responses.go b/generated-client/client/environment/create_environment_responses.go index 05f0cc0..ad86e1b 100644 --- a/generated-client/client/environment/create_environment_responses.go +++ b/generated-client/client/environment/create_environment_responses.go @@ -81,11 +81,11 @@ func (o *CreateEnvironmentOK) Code() int { } func (o *CreateEnvironmentOK) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}][%d] createEnvironmentOK ", 200) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}][%d] createEnvironmentOK", 200) } func (o *CreateEnvironmentOK) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}][%d] createEnvironmentOK ", 200) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}][%d] createEnvironmentOK", 200) } func (o *CreateEnvironmentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -137,11 +137,11 @@ func (o *CreateEnvironmentUnauthorized) Code() int { } func (o *CreateEnvironmentUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}][%d] createEnvironmentUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}][%d] createEnvironmentUnauthorized", 401) } func (o *CreateEnvironmentUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}][%d] createEnvironmentUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}][%d] createEnvironmentUnauthorized", 401) } func (o *CreateEnvironmentUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/environment/delete_environment_responses.go b/generated-client/client/environment/delete_environment_responses.go index 1b3eb84..9f7fea1 100644 --- a/generated-client/client/environment/delete_environment_responses.go +++ b/generated-client/client/environment/delete_environment_responses.go @@ -87,11 +87,11 @@ func (o *DeleteEnvironmentOK) Code() int { } func (o *DeleteEnvironmentOK) Error() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}][%d] deleteEnvironmentOK ", 200) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}][%d] deleteEnvironmentOK", 200) } func (o *DeleteEnvironmentOK) String() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}][%d] deleteEnvironmentOK ", 200) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}][%d] deleteEnvironmentOK", 200) } func (o *DeleteEnvironmentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -143,11 +143,11 @@ func (o *DeleteEnvironmentUnauthorized) Code() int { } func (o *DeleteEnvironmentUnauthorized) Error() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}][%d] deleteEnvironmentUnauthorized ", 401) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}][%d] deleteEnvironmentUnauthorized", 401) } func (o *DeleteEnvironmentUnauthorized) String() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}][%d] deleteEnvironmentUnauthorized ", 401) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}][%d] deleteEnvironmentUnauthorized", 401) } func (o *DeleteEnvironmentUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -199,11 +199,11 @@ func (o *DeleteEnvironmentNotFound) Code() int { } func (o *DeleteEnvironmentNotFound) Error() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}][%d] deleteEnvironmentNotFound ", 404) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}][%d] deleteEnvironmentNotFound", 404) } func (o *DeleteEnvironmentNotFound) String() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}][%d] deleteEnvironmentNotFound ", 404) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}][%d] deleteEnvironmentNotFound", 404) } func (o *DeleteEnvironmentNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/environment/disable_environment_alerting_responses.go b/generated-client/client/environment/disable_environment_alerting_responses.go index dd5828f..974bee4 100644 --- a/generated-client/client/environment/disable_environment_alerting_responses.go +++ b/generated-client/client/environment/disable_environment_alerting_responses.go @@ -6,6 +6,7 @@ package environment // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -109,11 +110,13 @@ func (o *DisableEnvironmentAlertingOK) Code() int { } func (o *DisableEnvironmentAlertingOK) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/disable][%d] disableEnvironmentAlertingOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/disable][%d] disableEnvironmentAlertingOK %s", 200, payload) } func (o *DisableEnvironmentAlertingOK) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/disable][%d] disableEnvironmentAlertingOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/disable][%d] disableEnvironmentAlertingOK %s", 200, payload) } func (o *DisableEnvironmentAlertingOK) GetPayload() *models.AlertingConfig { @@ -176,11 +179,11 @@ func (o *DisableEnvironmentAlertingBadRequest) Code() int { } func (o *DisableEnvironmentAlertingBadRequest) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/disable][%d] disableEnvironmentAlertingBadRequest ", 400) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/disable][%d] disableEnvironmentAlertingBadRequest", 400) } func (o *DisableEnvironmentAlertingBadRequest) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/disable][%d] disableEnvironmentAlertingBadRequest ", 400) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/disable][%d] disableEnvironmentAlertingBadRequest", 400) } func (o *DisableEnvironmentAlertingBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -232,11 +235,11 @@ func (o *DisableEnvironmentAlertingUnauthorized) Code() int { } func (o *DisableEnvironmentAlertingUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/disable][%d] disableEnvironmentAlertingUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/disable][%d] disableEnvironmentAlertingUnauthorized", 401) } func (o *DisableEnvironmentAlertingUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/disable][%d] disableEnvironmentAlertingUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/disable][%d] disableEnvironmentAlertingUnauthorized", 401) } func (o *DisableEnvironmentAlertingUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -288,11 +291,11 @@ func (o *DisableEnvironmentAlertingForbidden) Code() int { } func (o *DisableEnvironmentAlertingForbidden) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/disable][%d] disableEnvironmentAlertingForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/disable][%d] disableEnvironmentAlertingForbidden", 403) } func (o *DisableEnvironmentAlertingForbidden) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/disable][%d] disableEnvironmentAlertingForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/disable][%d] disableEnvironmentAlertingForbidden", 403) } func (o *DisableEnvironmentAlertingForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -344,11 +347,11 @@ func (o *DisableEnvironmentAlertingNotFound) Code() int { } func (o *DisableEnvironmentAlertingNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/disable][%d] disableEnvironmentAlertingNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/disable][%d] disableEnvironmentAlertingNotFound", 404) } func (o *DisableEnvironmentAlertingNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/disable][%d] disableEnvironmentAlertingNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/disable][%d] disableEnvironmentAlertingNotFound", 404) } func (o *DisableEnvironmentAlertingNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -400,11 +403,11 @@ func (o *DisableEnvironmentAlertingInternalServerError) Code() int { } func (o *DisableEnvironmentAlertingInternalServerError) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/disable][%d] disableEnvironmentAlertingInternalServerError ", 500) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/disable][%d] disableEnvironmentAlertingInternalServerError", 500) } func (o *DisableEnvironmentAlertingInternalServerError) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/disable][%d] disableEnvironmentAlertingInternalServerError ", 500) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/disable][%d] disableEnvironmentAlertingInternalServerError", 500) } func (o *DisableEnvironmentAlertingInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/environment/enable_environment_alerting_responses.go b/generated-client/client/environment/enable_environment_alerting_responses.go index bca9f3a..160741f 100644 --- a/generated-client/client/environment/enable_environment_alerting_responses.go +++ b/generated-client/client/environment/enable_environment_alerting_responses.go @@ -6,6 +6,7 @@ package environment // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -109,11 +110,13 @@ func (o *EnableEnvironmentAlertingOK) Code() int { } func (o *EnableEnvironmentAlertingOK) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/enable][%d] enableEnvironmentAlertingOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/enable][%d] enableEnvironmentAlertingOK %s", 200, payload) } func (o *EnableEnvironmentAlertingOK) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/enable][%d] enableEnvironmentAlertingOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/enable][%d] enableEnvironmentAlertingOK %s", 200, payload) } func (o *EnableEnvironmentAlertingOK) GetPayload() *models.AlertingConfig { @@ -176,11 +179,11 @@ func (o *EnableEnvironmentAlertingBadRequest) Code() int { } func (o *EnableEnvironmentAlertingBadRequest) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/enable][%d] enableEnvironmentAlertingBadRequest ", 400) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/enable][%d] enableEnvironmentAlertingBadRequest", 400) } func (o *EnableEnvironmentAlertingBadRequest) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/enable][%d] enableEnvironmentAlertingBadRequest ", 400) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/enable][%d] enableEnvironmentAlertingBadRequest", 400) } func (o *EnableEnvironmentAlertingBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -232,11 +235,11 @@ func (o *EnableEnvironmentAlertingUnauthorized) Code() int { } func (o *EnableEnvironmentAlertingUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/enable][%d] enableEnvironmentAlertingUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/enable][%d] enableEnvironmentAlertingUnauthorized", 401) } func (o *EnableEnvironmentAlertingUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/enable][%d] enableEnvironmentAlertingUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/enable][%d] enableEnvironmentAlertingUnauthorized", 401) } func (o *EnableEnvironmentAlertingUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -288,11 +291,11 @@ func (o *EnableEnvironmentAlertingForbidden) Code() int { } func (o *EnableEnvironmentAlertingForbidden) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/enable][%d] enableEnvironmentAlertingForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/enable][%d] enableEnvironmentAlertingForbidden", 403) } func (o *EnableEnvironmentAlertingForbidden) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/enable][%d] enableEnvironmentAlertingForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/enable][%d] enableEnvironmentAlertingForbidden", 403) } func (o *EnableEnvironmentAlertingForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -344,11 +347,11 @@ func (o *EnableEnvironmentAlertingNotFound) Code() int { } func (o *EnableEnvironmentAlertingNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/enable][%d] enableEnvironmentAlertingNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/enable][%d] enableEnvironmentAlertingNotFound", 404) } func (o *EnableEnvironmentAlertingNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/enable][%d] enableEnvironmentAlertingNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/enable][%d] enableEnvironmentAlertingNotFound", 404) } func (o *EnableEnvironmentAlertingNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -400,11 +403,11 @@ func (o *EnableEnvironmentAlertingInternalServerError) Code() int { } func (o *EnableEnvironmentAlertingInternalServerError) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/enable][%d] enableEnvironmentAlertingInternalServerError ", 500) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/enable][%d] enableEnvironmentAlertingInternalServerError", 500) } func (o *EnableEnvironmentAlertingInternalServerError) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/enable][%d] enableEnvironmentAlertingInternalServerError ", 500) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/alerting/enable][%d] enableEnvironmentAlertingInternalServerError", 500) } func (o *EnableEnvironmentAlertingInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/environment/environment_client.go b/generated-client/client/environment/environment_client.go index 326ee8b..dac5517 100644 --- a/generated-client/client/environment/environment_client.go +++ b/generated-client/client/environment/environment_client.go @@ -9,6 +9,7 @@ import ( "fmt" "github.com/go-openapi/runtime" + httptransport "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" ) @@ -17,6 +18,31 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientServi return &Client{transport: transport, formats: formats} } +// New creates a new environment API client with basic auth credentials. +// It takes the following parameters: +// - host: http host (github.com). +// - basePath: any base path for the API client ("/v1", "/v3"). +// - scheme: http scheme ("http", "https"). +// - user: user for basic authentication header. +// - password: password for basic authentication header. +func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService { + transport := httptransport.New(host, basePath, []string{scheme}) + transport.DefaultAuthentication = httptransport.BasicAuth(user, password) + return &Client{transport: transport, formats: strfmt.Default} +} + +// New creates a new environment API client with a bearer token for authentication. +// It takes the following parameters: +// - host: http host (github.com). +// - basePath: any base path for the API client ("/v1", "/v3"). +// - scheme: http scheme ("http", "https"). +// - bearerToken: bearer token for Bearer authentication header. +func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService { + transport := httptransport.New(host, basePath, []string{scheme}) + transport.DefaultAuthentication = httptransport.BearerToken(bearerToken) + return &Client{transport: transport, formats: strfmt.Default} +} + /* Client for environment API */ @@ -25,7 +51,7 @@ type Client struct { formats strfmt.Registry } -// ClientOption is the option for Client methods +// ClientOption may be used to customize the behavior of Client methods. type ClientOption func(*runtime.ClientOperation) // ClientService is the interface for Client methods diff --git a/generated-client/client/environment/get_application_environment_deployments_responses.go b/generated-client/client/environment/get_application_environment_deployments_responses.go index 38861d4..fbdfcda 100644 --- a/generated-client/client/environment/get_application_environment_deployments_responses.go +++ b/generated-client/client/environment/get_application_environment_deployments_responses.go @@ -6,6 +6,7 @@ package environment // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -91,11 +92,13 @@ func (o *GetApplicationEnvironmentDeploymentsOK) Code() int { } func (o *GetApplicationEnvironmentDeploymentsOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/deployments][%d] getApplicationEnvironmentDeploymentsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/deployments][%d] getApplicationEnvironmentDeploymentsOK %s", 200, payload) } func (o *GetApplicationEnvironmentDeploymentsOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/deployments][%d] getApplicationEnvironmentDeploymentsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/deployments][%d] getApplicationEnvironmentDeploymentsOK %s", 200, payload) } func (o *GetApplicationEnvironmentDeploymentsOK) GetPayload() []*models.DeploymentSummary { @@ -156,11 +159,11 @@ func (o *GetApplicationEnvironmentDeploymentsUnauthorized) Code() int { } func (o *GetApplicationEnvironmentDeploymentsUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/deployments][%d] getApplicationEnvironmentDeploymentsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/deployments][%d] getApplicationEnvironmentDeploymentsUnauthorized", 401) } func (o *GetApplicationEnvironmentDeploymentsUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/deployments][%d] getApplicationEnvironmentDeploymentsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/deployments][%d] getApplicationEnvironmentDeploymentsUnauthorized", 401) } func (o *GetApplicationEnvironmentDeploymentsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -212,11 +215,11 @@ func (o *GetApplicationEnvironmentDeploymentsNotFound) Code() int { } func (o *GetApplicationEnvironmentDeploymentsNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/deployments][%d] getApplicationEnvironmentDeploymentsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/deployments][%d] getApplicationEnvironmentDeploymentsNotFound", 404) } func (o *GetApplicationEnvironmentDeploymentsNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/deployments][%d] getApplicationEnvironmentDeploymentsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/deployments][%d] getApplicationEnvironmentDeploymentsNotFound", 404) } func (o *GetApplicationEnvironmentDeploymentsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/environment/get_azure_key_vault_secret_versions_responses.go b/generated-client/client/environment/get_azure_key_vault_secret_versions_responses.go index 32259bf..928adaf 100644 --- a/generated-client/client/environment/get_azure_key_vault_secret_versions_responses.go +++ b/generated-client/client/environment/get_azure_key_vault_secret_versions_responses.go @@ -6,6 +6,7 @@ package environment // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -115,11 +116,13 @@ func (o *GetAzureKeyVaultSecretVersionsOK) Code() int { } func (o *GetAzureKeyVaultSecretVersionsOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsOK %s", 200, payload) } func (o *GetAzureKeyVaultSecretVersionsOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsOK %s", 200, payload) } func (o *GetAzureKeyVaultSecretVersionsOK) GetPayload() []*models.AzureKeyVaultSecretVersion { @@ -180,11 +183,11 @@ func (o *GetAzureKeyVaultSecretVersionsBadRequest) Code() int { } func (o *GetAzureKeyVaultSecretVersionsBadRequest) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsBadRequest ", 400) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsBadRequest", 400) } func (o *GetAzureKeyVaultSecretVersionsBadRequest) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsBadRequest ", 400) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsBadRequest", 400) } func (o *GetAzureKeyVaultSecretVersionsBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -236,11 +239,11 @@ func (o *GetAzureKeyVaultSecretVersionsUnauthorized) Code() int { } func (o *GetAzureKeyVaultSecretVersionsUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsUnauthorized", 401) } func (o *GetAzureKeyVaultSecretVersionsUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsUnauthorized", 401) } func (o *GetAzureKeyVaultSecretVersionsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -292,11 +295,11 @@ func (o *GetAzureKeyVaultSecretVersionsForbidden) Code() int { } func (o *GetAzureKeyVaultSecretVersionsForbidden) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsForbidden ", 403) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsForbidden", 403) } func (o *GetAzureKeyVaultSecretVersionsForbidden) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsForbidden ", 403) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsForbidden", 403) } func (o *GetAzureKeyVaultSecretVersionsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -348,11 +351,11 @@ func (o *GetAzureKeyVaultSecretVersionsNotFound) Code() int { } func (o *GetAzureKeyVaultSecretVersionsNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsNotFound", 404) } func (o *GetAzureKeyVaultSecretVersionsNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsNotFound", 404) } func (o *GetAzureKeyVaultSecretVersionsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -404,11 +407,11 @@ func (o *GetAzureKeyVaultSecretVersionsConflict) Code() int { } func (o *GetAzureKeyVaultSecretVersionsConflict) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsConflict ", 409) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsConflict", 409) } func (o *GetAzureKeyVaultSecretVersionsConflict) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsConflict ", 409) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsConflict", 409) } func (o *GetAzureKeyVaultSecretVersionsConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -460,11 +463,11 @@ func (o *GetAzureKeyVaultSecretVersionsInternalServerError) Code() int { } func (o *GetAzureKeyVaultSecretVersionsInternalServerError) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsInternalServerError ", 500) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsInternalServerError", 500) } func (o *GetAzureKeyVaultSecretVersionsInternalServerError) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsInternalServerError ", 500) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/components/{componentName}/secrets/azure/keyvault/{azureKeyVaultName}][%d] getAzureKeyVaultSecretVersionsInternalServerError", 500) } func (o *GetAzureKeyVaultSecretVersionsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/environment/get_environment_alerting_config_responses.go b/generated-client/client/environment/get_environment_alerting_config_responses.go index 7b7cf9a..ee23128 100644 --- a/generated-client/client/environment/get_environment_alerting_config_responses.go +++ b/generated-client/client/environment/get_environment_alerting_config_responses.go @@ -6,6 +6,7 @@ package environment // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -103,11 +104,13 @@ func (o *GetEnvironmentAlertingConfigOK) Code() int { } func (o *GetEnvironmentAlertingConfigOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/alerting][%d] getEnvironmentAlertingConfigOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/alerting][%d] getEnvironmentAlertingConfigOK %s", 200, payload) } func (o *GetEnvironmentAlertingConfigOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/alerting][%d] getEnvironmentAlertingConfigOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/alerting][%d] getEnvironmentAlertingConfigOK %s", 200, payload) } func (o *GetEnvironmentAlertingConfigOK) GetPayload() *models.AlertingConfig { @@ -170,11 +173,11 @@ func (o *GetEnvironmentAlertingConfigUnauthorized) Code() int { } func (o *GetEnvironmentAlertingConfigUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/alerting][%d] getEnvironmentAlertingConfigUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/alerting][%d] getEnvironmentAlertingConfigUnauthorized", 401) } func (o *GetEnvironmentAlertingConfigUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/alerting][%d] getEnvironmentAlertingConfigUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/alerting][%d] getEnvironmentAlertingConfigUnauthorized", 401) } func (o *GetEnvironmentAlertingConfigUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -226,11 +229,11 @@ func (o *GetEnvironmentAlertingConfigForbidden) Code() int { } func (o *GetEnvironmentAlertingConfigForbidden) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/alerting][%d] getEnvironmentAlertingConfigForbidden ", 403) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/alerting][%d] getEnvironmentAlertingConfigForbidden", 403) } func (o *GetEnvironmentAlertingConfigForbidden) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/alerting][%d] getEnvironmentAlertingConfigForbidden ", 403) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/alerting][%d] getEnvironmentAlertingConfigForbidden", 403) } func (o *GetEnvironmentAlertingConfigForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -282,11 +285,11 @@ func (o *GetEnvironmentAlertingConfigNotFound) Code() int { } func (o *GetEnvironmentAlertingConfigNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/alerting][%d] getEnvironmentAlertingConfigNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/alerting][%d] getEnvironmentAlertingConfigNotFound", 404) } func (o *GetEnvironmentAlertingConfigNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/alerting][%d] getEnvironmentAlertingConfigNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/alerting][%d] getEnvironmentAlertingConfigNotFound", 404) } func (o *GetEnvironmentAlertingConfigNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -338,11 +341,11 @@ func (o *GetEnvironmentAlertingConfigInternalServerError) Code() int { } func (o *GetEnvironmentAlertingConfigInternalServerError) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/alerting][%d] getEnvironmentAlertingConfigInternalServerError ", 500) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/alerting][%d] getEnvironmentAlertingConfigInternalServerError", 500) } func (o *GetEnvironmentAlertingConfigInternalServerError) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/alerting][%d] getEnvironmentAlertingConfigInternalServerError ", 500) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/alerting][%d] getEnvironmentAlertingConfigInternalServerError", 500) } func (o *GetEnvironmentAlertingConfigInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/environment/get_environment_events_responses.go b/generated-client/client/environment/get_environment_events_responses.go index 11ebed7..d058d58 100644 --- a/generated-client/client/environment/get_environment_events_responses.go +++ b/generated-client/client/environment/get_environment_events_responses.go @@ -6,6 +6,7 @@ package environment // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -91,11 +92,13 @@ func (o *GetEnvironmentEventsOK) Code() int { } func (o *GetEnvironmentEventsOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/events][%d] getEnvironmentEventsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/events][%d] getEnvironmentEventsOK %s", 200, payload) } func (o *GetEnvironmentEventsOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/events][%d] getEnvironmentEventsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/events][%d] getEnvironmentEventsOK %s", 200, payload) } func (o *GetEnvironmentEventsOK) GetPayload() []*models.Event { @@ -156,11 +159,11 @@ func (o *GetEnvironmentEventsUnauthorized) Code() int { } func (o *GetEnvironmentEventsUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/events][%d] getEnvironmentEventsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/events][%d] getEnvironmentEventsUnauthorized", 401) } func (o *GetEnvironmentEventsUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/events][%d] getEnvironmentEventsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/events][%d] getEnvironmentEventsUnauthorized", 401) } func (o *GetEnvironmentEventsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -212,11 +215,11 @@ func (o *GetEnvironmentEventsNotFound) Code() int { } func (o *GetEnvironmentEventsNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/events][%d] getEnvironmentEventsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/events][%d] getEnvironmentEventsNotFound", 404) } func (o *GetEnvironmentEventsNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/events][%d] getEnvironmentEventsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/events][%d] getEnvironmentEventsNotFound", 404) } func (o *GetEnvironmentEventsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/environment/get_environment_responses.go b/generated-client/client/environment/get_environment_responses.go index 22c4402..af78616 100644 --- a/generated-client/client/environment/get_environment_responses.go +++ b/generated-client/client/environment/get_environment_responses.go @@ -6,6 +6,7 @@ package environment // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -91,11 +92,13 @@ func (o *GetEnvironmentOK) Code() int { } func (o *GetEnvironmentOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}][%d] getEnvironmentOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}][%d] getEnvironmentOK %s", 200, payload) } func (o *GetEnvironmentOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}][%d] getEnvironmentOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}][%d] getEnvironmentOK %s", 200, payload) } func (o *GetEnvironmentOK) GetPayload() *models.Environment { @@ -158,11 +161,11 @@ func (o *GetEnvironmentUnauthorized) Code() int { } func (o *GetEnvironmentUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}][%d] getEnvironmentUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}][%d] getEnvironmentUnauthorized", 401) } func (o *GetEnvironmentUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}][%d] getEnvironmentUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}][%d] getEnvironmentUnauthorized", 401) } func (o *GetEnvironmentUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -214,11 +217,11 @@ func (o *GetEnvironmentNotFound) Code() int { } func (o *GetEnvironmentNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}][%d] getEnvironmentNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}][%d] getEnvironmentNotFound", 404) } func (o *GetEnvironmentNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}][%d] getEnvironmentNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}][%d] getEnvironmentNotFound", 404) } func (o *GetEnvironmentNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/environment/get_environment_summary_responses.go b/generated-client/client/environment/get_environment_summary_responses.go index 0eb006c..46f9691 100644 --- a/generated-client/client/environment/get_environment_summary_responses.go +++ b/generated-client/client/environment/get_environment_summary_responses.go @@ -6,6 +6,7 @@ package environment // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -91,11 +92,13 @@ func (o *GetEnvironmentSummaryOK) Code() int { } func (o *GetEnvironmentSummaryOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments][%d] getEnvironmentSummaryOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments][%d] getEnvironmentSummaryOK %s", 200, payload) } func (o *GetEnvironmentSummaryOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments][%d] getEnvironmentSummaryOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments][%d] getEnvironmentSummaryOK %s", 200, payload) } func (o *GetEnvironmentSummaryOK) GetPayload() []*models.EnvironmentSummary { @@ -156,11 +159,11 @@ func (o *GetEnvironmentSummaryUnauthorized) Code() int { } func (o *GetEnvironmentSummaryUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments][%d] getEnvironmentSummaryUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/environments][%d] getEnvironmentSummaryUnauthorized", 401) } func (o *GetEnvironmentSummaryUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments][%d] getEnvironmentSummaryUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/environments][%d] getEnvironmentSummaryUnauthorized", 401) } func (o *GetEnvironmentSummaryUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -212,11 +215,11 @@ func (o *GetEnvironmentSummaryNotFound) Code() int { } func (o *GetEnvironmentSummaryNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments][%d] getEnvironmentSummaryNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments][%d] getEnvironmentSummaryNotFound", 404) } func (o *GetEnvironmentSummaryNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments][%d] getEnvironmentSummaryNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments][%d] getEnvironmentSummaryNotFound", 404) } func (o *GetEnvironmentSummaryNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/environment/restart_environment_responses.go b/generated-client/client/environment/restart_environment_responses.go index 451e218..15984e6 100644 --- a/generated-client/client/environment/restart_environment_responses.go +++ b/generated-client/client/environment/restart_environment_responses.go @@ -93,11 +93,11 @@ func (o *RestartEnvironmentOK) Code() int { } func (o *RestartEnvironmentOK) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/restart][%d] restartEnvironmentOK ", 200) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/restart][%d] restartEnvironmentOK", 200) } func (o *RestartEnvironmentOK) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/restart][%d] restartEnvironmentOK ", 200) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/restart][%d] restartEnvironmentOK", 200) } func (o *RestartEnvironmentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -149,11 +149,11 @@ func (o *RestartEnvironmentUnauthorized) Code() int { } func (o *RestartEnvironmentUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/restart][%d] restartEnvironmentUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/restart][%d] restartEnvironmentUnauthorized", 401) } func (o *RestartEnvironmentUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/restart][%d] restartEnvironmentUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/restart][%d] restartEnvironmentUnauthorized", 401) } func (o *RestartEnvironmentUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -205,11 +205,11 @@ func (o *RestartEnvironmentForbidden) Code() int { } func (o *RestartEnvironmentForbidden) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/restart][%d] restartEnvironmentForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/restart][%d] restartEnvironmentForbidden", 403) } func (o *RestartEnvironmentForbidden) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/restart][%d] restartEnvironmentForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/restart][%d] restartEnvironmentForbidden", 403) } func (o *RestartEnvironmentForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -261,11 +261,11 @@ func (o *RestartEnvironmentNotFound) Code() int { } func (o *RestartEnvironmentNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/restart][%d] restartEnvironmentNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/restart][%d] restartEnvironmentNotFound", 404) } func (o *RestartEnvironmentNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/restart][%d] restartEnvironmentNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/restart][%d] restartEnvironmentNotFound", 404) } func (o *RestartEnvironmentNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/environment/start_environment_responses.go b/generated-client/client/environment/start_environment_responses.go index a44a6bb..6ad368e 100644 --- a/generated-client/client/environment/start_environment_responses.go +++ b/generated-client/client/environment/start_environment_responses.go @@ -87,11 +87,11 @@ func (o *StartEnvironmentOK) Code() int { } func (o *StartEnvironmentOK) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/start][%d] startEnvironmentOK ", 200) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/start][%d] startEnvironmentOK", 200) } func (o *StartEnvironmentOK) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/start][%d] startEnvironmentOK ", 200) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/start][%d] startEnvironmentOK", 200) } func (o *StartEnvironmentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -143,11 +143,11 @@ func (o *StartEnvironmentUnauthorized) Code() int { } func (o *StartEnvironmentUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/start][%d] startEnvironmentUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/start][%d] startEnvironmentUnauthorized", 401) } func (o *StartEnvironmentUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/start][%d] startEnvironmentUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/start][%d] startEnvironmentUnauthorized", 401) } func (o *StartEnvironmentUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -199,11 +199,11 @@ func (o *StartEnvironmentNotFound) Code() int { } func (o *StartEnvironmentNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/start][%d] startEnvironmentNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/start][%d] startEnvironmentNotFound", 404) } func (o *StartEnvironmentNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/start][%d] startEnvironmentNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/start][%d] startEnvironmentNotFound", 404) } func (o *StartEnvironmentNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/environment/stop_environment_responses.go b/generated-client/client/environment/stop_environment_responses.go index 312dc8a..915fd7a 100644 --- a/generated-client/client/environment/stop_environment_responses.go +++ b/generated-client/client/environment/stop_environment_responses.go @@ -87,11 +87,11 @@ func (o *StopEnvironmentOK) Code() int { } func (o *StopEnvironmentOK) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/stop][%d] stopEnvironmentOK ", 200) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/stop][%d] stopEnvironmentOK", 200) } func (o *StopEnvironmentOK) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/stop][%d] stopEnvironmentOK ", 200) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/stop][%d] stopEnvironmentOK", 200) } func (o *StopEnvironmentOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -143,11 +143,11 @@ func (o *StopEnvironmentUnauthorized) Code() int { } func (o *StopEnvironmentUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/stop][%d] stopEnvironmentUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/stop][%d] stopEnvironmentUnauthorized", 401) } func (o *StopEnvironmentUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/stop][%d] stopEnvironmentUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/stop][%d] stopEnvironmentUnauthorized", 401) } func (o *StopEnvironmentUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -199,11 +199,11 @@ func (o *StopEnvironmentNotFound) Code() int { } func (o *StopEnvironmentNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/stop][%d] stopEnvironmentNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/stop][%d] stopEnvironmentNotFound", 404) } func (o *StopEnvironmentNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/stop][%d] stopEnvironmentNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/stop][%d] stopEnvironmentNotFound", 404) } func (o *StopEnvironmentNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/environment/update_environment_alerting_config_responses.go b/generated-client/client/environment/update_environment_alerting_config_responses.go index 6a0c04c..9f7a87a 100644 --- a/generated-client/client/environment/update_environment_alerting_config_responses.go +++ b/generated-client/client/environment/update_environment_alerting_config_responses.go @@ -6,6 +6,7 @@ package environment // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -109,11 +110,13 @@ func (o *UpdateEnvironmentAlertingConfigOK) Code() int { } func (o *UpdateEnvironmentAlertingConfigOK) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/alerting][%d] updateEnvironmentAlertingConfigOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/alerting][%d] updateEnvironmentAlertingConfigOK %s", 200, payload) } func (o *UpdateEnvironmentAlertingConfigOK) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/alerting][%d] updateEnvironmentAlertingConfigOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/alerting][%d] updateEnvironmentAlertingConfigOK %s", 200, payload) } func (o *UpdateEnvironmentAlertingConfigOK) GetPayload() *models.AlertingConfig { @@ -176,11 +179,11 @@ func (o *UpdateEnvironmentAlertingConfigBadRequest) Code() int { } func (o *UpdateEnvironmentAlertingConfigBadRequest) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/alerting][%d] updateEnvironmentAlertingConfigBadRequest ", 400) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/alerting][%d] updateEnvironmentAlertingConfigBadRequest", 400) } func (o *UpdateEnvironmentAlertingConfigBadRequest) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/alerting][%d] updateEnvironmentAlertingConfigBadRequest ", 400) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/alerting][%d] updateEnvironmentAlertingConfigBadRequest", 400) } func (o *UpdateEnvironmentAlertingConfigBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -232,11 +235,11 @@ func (o *UpdateEnvironmentAlertingConfigUnauthorized) Code() int { } func (o *UpdateEnvironmentAlertingConfigUnauthorized) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/alerting][%d] updateEnvironmentAlertingConfigUnauthorized ", 401) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/alerting][%d] updateEnvironmentAlertingConfigUnauthorized", 401) } func (o *UpdateEnvironmentAlertingConfigUnauthorized) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/alerting][%d] updateEnvironmentAlertingConfigUnauthorized ", 401) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/alerting][%d] updateEnvironmentAlertingConfigUnauthorized", 401) } func (o *UpdateEnvironmentAlertingConfigUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -288,11 +291,11 @@ func (o *UpdateEnvironmentAlertingConfigForbidden) Code() int { } func (o *UpdateEnvironmentAlertingConfigForbidden) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/alerting][%d] updateEnvironmentAlertingConfigForbidden ", 403) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/alerting][%d] updateEnvironmentAlertingConfigForbidden", 403) } func (o *UpdateEnvironmentAlertingConfigForbidden) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/alerting][%d] updateEnvironmentAlertingConfigForbidden ", 403) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/alerting][%d] updateEnvironmentAlertingConfigForbidden", 403) } func (o *UpdateEnvironmentAlertingConfigForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -344,11 +347,11 @@ func (o *UpdateEnvironmentAlertingConfigNotFound) Code() int { } func (o *UpdateEnvironmentAlertingConfigNotFound) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/alerting][%d] updateEnvironmentAlertingConfigNotFound ", 404) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/alerting][%d] updateEnvironmentAlertingConfigNotFound", 404) } func (o *UpdateEnvironmentAlertingConfigNotFound) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/alerting][%d] updateEnvironmentAlertingConfigNotFound ", 404) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/alerting][%d] updateEnvironmentAlertingConfigNotFound", 404) } func (o *UpdateEnvironmentAlertingConfigNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -400,11 +403,11 @@ func (o *UpdateEnvironmentAlertingConfigInternalServerError) Code() int { } func (o *UpdateEnvironmentAlertingConfigInternalServerError) Error() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/alerting][%d] updateEnvironmentAlertingConfigInternalServerError ", 500) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/alerting][%d] updateEnvironmentAlertingConfigInternalServerError", 500) } func (o *UpdateEnvironmentAlertingConfigInternalServerError) String() string { - return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/alerting][%d] updateEnvironmentAlertingConfigInternalServerError ", 500) + return fmt.Sprintf("[PUT /applications/{appName}/environments/{envName}/alerting][%d] updateEnvironmentAlertingConfigInternalServerError", 500) } func (o *UpdateEnvironmentAlertingConfigInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/job/copy_batch_responses.go b/generated-client/client/job/copy_batch_responses.go index 4cc4eb6..33122bf 100644 --- a/generated-client/client/job/copy_batch_responses.go +++ b/generated-client/client/job/copy_batch_responses.go @@ -6,6 +6,7 @@ package job // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -103,11 +104,13 @@ func (o *CopyBatchOK) Code() int { } func (o *CopyBatchOK) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/copy][%d] copyBatchOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/copy][%d] copyBatchOK %s", 200, payload) } func (o *CopyBatchOK) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/copy][%d] copyBatchOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/copy][%d] copyBatchOK %s", 200, payload) } func (o *CopyBatchOK) GetPayload() *models.ScheduledBatchSummary { @@ -170,11 +173,11 @@ func (o *CopyBatchBadRequest) Code() int { } func (o *CopyBatchBadRequest) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/copy][%d] copyBatchBadRequest ", 400) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/copy][%d] copyBatchBadRequest", 400) } func (o *CopyBatchBadRequest) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/copy][%d] copyBatchBadRequest ", 400) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/copy][%d] copyBatchBadRequest", 400) } func (o *CopyBatchBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -226,11 +229,11 @@ func (o *CopyBatchUnauthorized) Code() int { } func (o *CopyBatchUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/copy][%d] copyBatchUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/copy][%d] copyBatchUnauthorized", 401) } func (o *CopyBatchUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/copy][%d] copyBatchUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/copy][%d] copyBatchUnauthorized", 401) } func (o *CopyBatchUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -282,11 +285,11 @@ func (o *CopyBatchForbidden) Code() int { } func (o *CopyBatchForbidden) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/copy][%d] copyBatchForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/copy][%d] copyBatchForbidden", 403) } func (o *CopyBatchForbidden) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/copy][%d] copyBatchForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/copy][%d] copyBatchForbidden", 403) } func (o *CopyBatchForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -338,11 +341,11 @@ func (o *CopyBatchNotFound) Code() int { } func (o *CopyBatchNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/copy][%d] copyBatchNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/copy][%d] copyBatchNotFound", 404) } func (o *CopyBatchNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/copy][%d] copyBatchNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/copy][%d] copyBatchNotFound", 404) } func (o *CopyBatchNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/job/copy_job_responses.go b/generated-client/client/job/copy_job_responses.go index 8d30a9f..c62b383 100644 --- a/generated-client/client/job/copy_job_responses.go +++ b/generated-client/client/job/copy_job_responses.go @@ -6,6 +6,7 @@ package job // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -103,11 +104,13 @@ func (o *CopyJobOK) Code() int { } func (o *CopyJobOK) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/copy][%d] copyJobOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/copy][%d] copyJobOK %s", 200, payload) } func (o *CopyJobOK) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/copy][%d] copyJobOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/copy][%d] copyJobOK %s", 200, payload) } func (o *CopyJobOK) GetPayload() *models.ScheduledJobSummary { @@ -170,11 +173,11 @@ func (o *CopyJobBadRequest) Code() int { } func (o *CopyJobBadRequest) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/copy][%d] copyJobBadRequest ", 400) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/copy][%d] copyJobBadRequest", 400) } func (o *CopyJobBadRequest) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/copy][%d] copyJobBadRequest ", 400) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/copy][%d] copyJobBadRequest", 400) } func (o *CopyJobBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -226,11 +229,11 @@ func (o *CopyJobUnauthorized) Code() int { } func (o *CopyJobUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/copy][%d] copyJobUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/copy][%d] copyJobUnauthorized", 401) } func (o *CopyJobUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/copy][%d] copyJobUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/copy][%d] copyJobUnauthorized", 401) } func (o *CopyJobUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -282,11 +285,11 @@ func (o *CopyJobForbidden) Code() int { } func (o *CopyJobForbidden) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/copy][%d] copyJobForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/copy][%d] copyJobForbidden", 403) } func (o *CopyJobForbidden) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/copy][%d] copyJobForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/copy][%d] copyJobForbidden", 403) } func (o *CopyJobForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -338,11 +341,11 @@ func (o *CopyJobNotFound) Code() int { } func (o *CopyJobNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/copy][%d] copyJobNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/copy][%d] copyJobNotFound", 404) } func (o *CopyJobNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/copy][%d] copyJobNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/copy][%d] copyJobNotFound", 404) } func (o *CopyJobNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/job/delete_batch_responses.go b/generated-client/client/job/delete_batch_responses.go index 47ca803..9b67789 100644 --- a/generated-client/client/job/delete_batch_responses.go +++ b/generated-client/client/job/delete_batch_responses.go @@ -99,11 +99,11 @@ func (o *DeleteBatchNoContent) Code() int { } func (o *DeleteBatchNoContent) Error() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] deleteBatchNoContent ", 204) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] deleteBatchNoContent", 204) } func (o *DeleteBatchNoContent) String() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] deleteBatchNoContent ", 204) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] deleteBatchNoContent", 204) } func (o *DeleteBatchNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -155,11 +155,11 @@ func (o *DeleteBatchBadRequest) Code() int { } func (o *DeleteBatchBadRequest) Error() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] deleteBatchBadRequest ", 400) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] deleteBatchBadRequest", 400) } func (o *DeleteBatchBadRequest) String() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] deleteBatchBadRequest ", 400) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] deleteBatchBadRequest", 400) } func (o *DeleteBatchBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -211,11 +211,11 @@ func (o *DeleteBatchUnauthorized) Code() int { } func (o *DeleteBatchUnauthorized) Error() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] deleteBatchUnauthorized ", 401) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] deleteBatchUnauthorized", 401) } func (o *DeleteBatchUnauthorized) String() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] deleteBatchUnauthorized ", 401) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] deleteBatchUnauthorized", 401) } func (o *DeleteBatchUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -267,11 +267,11 @@ func (o *DeleteBatchForbidden) Code() int { } func (o *DeleteBatchForbidden) Error() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] deleteBatchForbidden ", 403) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] deleteBatchForbidden", 403) } func (o *DeleteBatchForbidden) String() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] deleteBatchForbidden ", 403) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] deleteBatchForbidden", 403) } func (o *DeleteBatchForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -323,11 +323,11 @@ func (o *DeleteBatchNotFound) Code() int { } func (o *DeleteBatchNotFound) Error() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] deleteBatchNotFound ", 404) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] deleteBatchNotFound", 404) } func (o *DeleteBatchNotFound) String() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] deleteBatchNotFound ", 404) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] deleteBatchNotFound", 404) } func (o *DeleteBatchNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/job/delete_job_responses.go b/generated-client/client/job/delete_job_responses.go index 99ef435..6f5fe9d 100644 --- a/generated-client/client/job/delete_job_responses.go +++ b/generated-client/client/job/delete_job_responses.go @@ -99,11 +99,11 @@ func (o *DeleteJobNoContent) Code() int { } func (o *DeleteJobNoContent) Error() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] deleteJobNoContent ", 204) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] deleteJobNoContent", 204) } func (o *DeleteJobNoContent) String() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] deleteJobNoContent ", 204) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] deleteJobNoContent", 204) } func (o *DeleteJobNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -155,11 +155,11 @@ func (o *DeleteJobBadRequest) Code() int { } func (o *DeleteJobBadRequest) Error() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] deleteJobBadRequest ", 400) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] deleteJobBadRequest", 400) } func (o *DeleteJobBadRequest) String() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] deleteJobBadRequest ", 400) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] deleteJobBadRequest", 400) } func (o *DeleteJobBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -211,11 +211,11 @@ func (o *DeleteJobUnauthorized) Code() int { } func (o *DeleteJobUnauthorized) Error() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] deleteJobUnauthorized ", 401) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] deleteJobUnauthorized", 401) } func (o *DeleteJobUnauthorized) String() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] deleteJobUnauthorized ", 401) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] deleteJobUnauthorized", 401) } func (o *DeleteJobUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -267,11 +267,11 @@ func (o *DeleteJobForbidden) Code() int { } func (o *DeleteJobForbidden) Error() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] deleteJobForbidden ", 403) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] deleteJobForbidden", 403) } func (o *DeleteJobForbidden) String() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] deleteJobForbidden ", 403) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] deleteJobForbidden", 403) } func (o *DeleteJobForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -323,11 +323,11 @@ func (o *DeleteJobNotFound) Code() int { } func (o *DeleteJobNotFound) Error() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] deleteJobNotFound ", 404) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] deleteJobNotFound", 404) } func (o *DeleteJobNotFound) String() string { - return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] deleteJobNotFound ", 404) + return fmt.Sprintf("[DELETE /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] deleteJobNotFound", 404) } func (o *DeleteJobNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/job/get_batch_responses.go b/generated-client/client/job/get_batch_responses.go index 4a2ef8b..9afca81 100644 --- a/generated-client/client/job/get_batch_responses.go +++ b/generated-client/client/job/get_batch_responses.go @@ -6,6 +6,7 @@ package job // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -85,11 +86,13 @@ func (o *GetBatchOK) Code() int { } func (o *GetBatchOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] getBatchOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] getBatchOK %s", 200, payload) } func (o *GetBatchOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] getBatchOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] getBatchOK %s", 200, payload) } func (o *GetBatchOK) GetPayload() *models.ScheduledBatchSummary { @@ -152,11 +155,11 @@ func (o *GetBatchNotFound) Code() int { } func (o *GetBatchNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] getBatchNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] getBatchNotFound", 404) } func (o *GetBatchNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] getBatchNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}][%d] getBatchNotFound", 404) } func (o *GetBatchNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/job/get_batches_responses.go b/generated-client/client/job/get_batches_responses.go index 5478aa6..d9227ba 100644 --- a/generated-client/client/job/get_batches_responses.go +++ b/generated-client/client/job/get_batches_responses.go @@ -6,6 +6,7 @@ package job // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -85,11 +86,13 @@ func (o *GetBatchesOK) Code() int { } func (o *GetBatchesOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches][%d] getBatchesOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches][%d] getBatchesOK %s", 200, payload) } func (o *GetBatchesOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches][%d] getBatchesOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches][%d] getBatchesOK %s", 200, payload) } func (o *GetBatchesOK) GetPayload() []*models.ScheduledBatchSummary { @@ -150,11 +153,11 @@ func (o *GetBatchesNotFound) Code() int { } func (o *GetBatchesNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches][%d] getBatchesNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches][%d] getBatchesNotFound", 404) } func (o *GetBatchesNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches][%d] getBatchesNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches][%d] getBatchesNotFound", 404) } func (o *GetBatchesNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/job/get_job_component_deployments_responses.go b/generated-client/client/job/get_job_component_deployments_responses.go index 0e5856d..1f6d627 100644 --- a/generated-client/client/job/get_job_component_deployments_responses.go +++ b/generated-client/client/job/get_job_component_deployments_responses.go @@ -6,6 +6,7 @@ package job // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -85,11 +86,13 @@ func (o *GetJobComponentDeploymentsOK) Code() int { } func (o *GetJobComponentDeploymentsOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/deployments][%d] getJobComponentDeploymentsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/deployments][%d] getJobComponentDeploymentsOK %s", 200, payload) } func (o *GetJobComponentDeploymentsOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/deployments][%d] getJobComponentDeploymentsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/deployments][%d] getJobComponentDeploymentsOK %s", 200, payload) } func (o *GetJobComponentDeploymentsOK) GetPayload() []*models.DeploymentItem { @@ -150,11 +153,11 @@ func (o *GetJobComponentDeploymentsNotFound) Code() int { } func (o *GetJobComponentDeploymentsNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/deployments][%d] getJobComponentDeploymentsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/deployments][%d] getJobComponentDeploymentsNotFound", 404) } func (o *GetJobComponentDeploymentsNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/deployments][%d] getJobComponentDeploymentsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/deployments][%d] getJobComponentDeploymentsNotFound", 404) } func (o *GetJobComponentDeploymentsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/job/get_job_payload_responses.go b/generated-client/client/job/get_job_payload_responses.go index ad289a4..d0d5135 100644 --- a/generated-client/client/job/get_job_payload_responses.go +++ b/generated-client/client/job/get_job_payload_responses.go @@ -6,6 +6,7 @@ package job // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -83,11 +84,13 @@ func (o *GetJobPayloadOK) Code() int { } func (o *GetJobPayloadOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/payload][%d] getJobPayloadOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/payload][%d] getJobPayloadOK %s", 200, payload) } func (o *GetJobPayloadOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/payload][%d] getJobPayloadOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/payload][%d] getJobPayloadOK %s", 200, payload) } func (o *GetJobPayloadOK) GetPayload() string { @@ -148,11 +151,11 @@ func (o *GetJobPayloadNotFound) Code() int { } func (o *GetJobPayloadNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/payload][%d] getJobPayloadNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/payload][%d] getJobPayloadNotFound", 404) } func (o *GetJobPayloadNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/payload][%d] getJobPayloadNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/payload][%d] getJobPayloadNotFound", 404) } func (o *GetJobPayloadNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/job/get_job_responses.go b/generated-client/client/job/get_job_responses.go index e5cb5b8..91babd3 100644 --- a/generated-client/client/job/get_job_responses.go +++ b/generated-client/client/job/get_job_responses.go @@ -6,6 +6,7 @@ package job // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -85,11 +86,13 @@ func (o *GetJobOK) Code() int { } func (o *GetJobOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] getJobOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] getJobOK %s", 200, payload) } func (o *GetJobOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] getJobOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] getJobOK %s", 200, payload) } func (o *GetJobOK) GetPayload() *models.ScheduledJobSummary { @@ -152,11 +155,11 @@ func (o *GetJobNotFound) Code() int { } func (o *GetJobNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] getJobNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] getJobNotFound", 404) } func (o *GetJobNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] getJobNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}][%d] getJobNotFound", 404) } func (o *GetJobNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/job/get_jobs_responses.go b/generated-client/client/job/get_jobs_responses.go index d9bdd34..e1ec794 100644 --- a/generated-client/client/job/get_jobs_responses.go +++ b/generated-client/client/job/get_jobs_responses.go @@ -6,6 +6,7 @@ package job // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -85,11 +86,13 @@ func (o *GetJobsOK) Code() int { } func (o *GetJobsOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs][%d] getJobsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs][%d] getJobsOK %s", 200, payload) } func (o *GetJobsOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs][%d] getJobsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs][%d] getJobsOK %s", 200, payload) } func (o *GetJobsOK) GetPayload() []*models.ScheduledJobSummary { @@ -150,11 +153,11 @@ func (o *GetJobsNotFound) Code() int { } func (o *GetJobsNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs][%d] getJobsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs][%d] getJobsNotFound", 404) } func (o *GetJobsNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs][%d] getJobsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs][%d] getJobsNotFound", 404) } func (o *GetJobsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/job/job_client.go b/generated-client/client/job/job_client.go index d3b7778..07e0865 100644 --- a/generated-client/client/job/job_client.go +++ b/generated-client/client/job/job_client.go @@ -9,6 +9,7 @@ import ( "fmt" "github.com/go-openapi/runtime" + httptransport "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" ) @@ -17,6 +18,31 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientServi return &Client{transport: transport, formats: formats} } +// New creates a new job API client with basic auth credentials. +// It takes the following parameters: +// - host: http host (github.com). +// - basePath: any base path for the API client ("/v1", "/v3"). +// - scheme: http scheme ("http", "https"). +// - user: user for basic authentication header. +// - password: password for basic authentication header. +func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService { + transport := httptransport.New(host, basePath, []string{scheme}) + transport.DefaultAuthentication = httptransport.BasicAuth(user, password) + return &Client{transport: transport, formats: strfmt.Default} +} + +// New creates a new job API client with a bearer token for authentication. +// It takes the following parameters: +// - host: http host (github.com). +// - basePath: any base path for the API client ("/v1", "/v3"). +// - scheme: http scheme ("http", "https"). +// - bearerToken: bearer token for Bearer authentication header. +func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService { + transport := httptransport.New(host, basePath, []string{scheme}) + transport.DefaultAuthentication = httptransport.BearerToken(bearerToken) + return &Client{transport: transport, formats: strfmt.Default} +} + /* Client for job API */ @@ -25,7 +51,7 @@ type Client struct { formats strfmt.Registry } -// ClientOption is the option for Client methods +// ClientOption may be used to customize the behavior of Client methods. type ClientOption func(*runtime.ClientOperation) // ClientService is the interface for Client methods diff --git a/generated-client/client/job/job_log_responses.go b/generated-client/client/job/job_log_responses.go index 21df6c5..f683f02 100644 --- a/generated-client/client/job/job_log_responses.go +++ b/generated-client/client/job/job_log_responses.go @@ -6,6 +6,7 @@ package job // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -83,11 +84,13 @@ func (o *JobLogOK) Code() int { } func (o *JobLogOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/scheduledjobs/{scheduledJobName}/logs][%d] jobLogOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/scheduledjobs/{scheduledJobName}/logs][%d] jobLogOK %s", 200, payload) } func (o *JobLogOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/scheduledjobs/{scheduledJobName}/logs][%d] jobLogOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/scheduledjobs/{scheduledJobName}/logs][%d] jobLogOK %s", 200, payload) } func (o *JobLogOK) GetPayload() string { @@ -148,11 +151,11 @@ func (o *JobLogNotFound) Code() int { } func (o *JobLogNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/scheduledjobs/{scheduledJobName}/logs][%d] jobLogNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/scheduledjobs/{scheduledJobName}/logs][%d] jobLogNotFound", 404) } func (o *JobLogNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/scheduledjobs/{scheduledJobName}/logs][%d] jobLogNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/scheduledjobs/{scheduledJobName}/logs][%d] jobLogNotFound", 404) } func (o *JobLogNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/job/restart_batch_responses.go b/generated-client/client/job/restart_batch_responses.go index 16680d3..514c438 100644 --- a/generated-client/client/job/restart_batch_responses.go +++ b/generated-client/client/job/restart_batch_responses.go @@ -99,11 +99,11 @@ func (o *RestartBatchNoContent) Code() int { } func (o *RestartBatchNoContent) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/restart][%d] restartBatchNoContent ", 204) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/restart][%d] restartBatchNoContent", 204) } func (o *RestartBatchNoContent) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/restart][%d] restartBatchNoContent ", 204) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/restart][%d] restartBatchNoContent", 204) } func (o *RestartBatchNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -155,11 +155,11 @@ func (o *RestartBatchBadRequest) Code() int { } func (o *RestartBatchBadRequest) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/restart][%d] restartBatchBadRequest ", 400) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/restart][%d] restartBatchBadRequest", 400) } func (o *RestartBatchBadRequest) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/restart][%d] restartBatchBadRequest ", 400) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/restart][%d] restartBatchBadRequest", 400) } func (o *RestartBatchBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -211,11 +211,11 @@ func (o *RestartBatchUnauthorized) Code() int { } func (o *RestartBatchUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/restart][%d] restartBatchUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/restart][%d] restartBatchUnauthorized", 401) } func (o *RestartBatchUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/restart][%d] restartBatchUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/restart][%d] restartBatchUnauthorized", 401) } func (o *RestartBatchUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -267,11 +267,11 @@ func (o *RestartBatchForbidden) Code() int { } func (o *RestartBatchForbidden) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/restart][%d] restartBatchForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/restart][%d] restartBatchForbidden", 403) } func (o *RestartBatchForbidden) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/restart][%d] restartBatchForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/restart][%d] restartBatchForbidden", 403) } func (o *RestartBatchForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -323,11 +323,11 @@ func (o *RestartBatchNotFound) Code() int { } func (o *RestartBatchNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/restart][%d] restartBatchNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/restart][%d] restartBatchNotFound", 404) } func (o *RestartBatchNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/restart][%d] restartBatchNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/restart][%d] restartBatchNotFound", 404) } func (o *RestartBatchNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/job/restart_job_responses.go b/generated-client/client/job/restart_job_responses.go index 045a363..bef420e 100644 --- a/generated-client/client/job/restart_job_responses.go +++ b/generated-client/client/job/restart_job_responses.go @@ -99,11 +99,11 @@ func (o *RestartJobNoContent) Code() int { } func (o *RestartJobNoContent) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/restart][%d] restartJobNoContent ", 204) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/restart][%d] restartJobNoContent", 204) } func (o *RestartJobNoContent) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/restart][%d] restartJobNoContent ", 204) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/restart][%d] restartJobNoContent", 204) } func (o *RestartJobNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -155,11 +155,11 @@ func (o *RestartJobBadRequest) Code() int { } func (o *RestartJobBadRequest) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/restart][%d] restartJobBadRequest ", 400) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/restart][%d] restartJobBadRequest", 400) } func (o *RestartJobBadRequest) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/restart][%d] restartJobBadRequest ", 400) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/restart][%d] restartJobBadRequest", 400) } func (o *RestartJobBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -211,11 +211,11 @@ func (o *RestartJobUnauthorized) Code() int { } func (o *RestartJobUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/restart][%d] restartJobUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/restart][%d] restartJobUnauthorized", 401) } func (o *RestartJobUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/restart][%d] restartJobUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/restart][%d] restartJobUnauthorized", 401) } func (o *RestartJobUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -267,11 +267,11 @@ func (o *RestartJobForbidden) Code() int { } func (o *RestartJobForbidden) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/restart][%d] restartJobForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/restart][%d] restartJobForbidden", 403) } func (o *RestartJobForbidden) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/restart][%d] restartJobForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/restart][%d] restartJobForbidden", 403) } func (o *RestartJobForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -323,11 +323,11 @@ func (o *RestartJobNotFound) Code() int { } func (o *RestartJobNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/restart][%d] restartJobNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/restart][%d] restartJobNotFound", 404) } func (o *RestartJobNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/restart][%d] restartJobNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/restart][%d] restartJobNotFound", 404) } func (o *RestartJobNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/job/stop_batch_responses.go b/generated-client/client/job/stop_batch_responses.go index 9edf0cc..29ae975 100644 --- a/generated-client/client/job/stop_batch_responses.go +++ b/generated-client/client/job/stop_batch_responses.go @@ -99,11 +99,11 @@ func (o *StopBatchNoContent) Code() int { } func (o *StopBatchNoContent) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/stop][%d] stopBatchNoContent ", 204) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/stop][%d] stopBatchNoContent", 204) } func (o *StopBatchNoContent) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/stop][%d] stopBatchNoContent ", 204) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/stop][%d] stopBatchNoContent", 204) } func (o *StopBatchNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -155,11 +155,11 @@ func (o *StopBatchBadRequest) Code() int { } func (o *StopBatchBadRequest) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/stop][%d] stopBatchBadRequest ", 400) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/stop][%d] stopBatchBadRequest", 400) } func (o *StopBatchBadRequest) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/stop][%d] stopBatchBadRequest ", 400) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/stop][%d] stopBatchBadRequest", 400) } func (o *StopBatchBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -211,11 +211,11 @@ func (o *StopBatchUnauthorized) Code() int { } func (o *StopBatchUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/stop][%d] stopBatchUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/stop][%d] stopBatchUnauthorized", 401) } func (o *StopBatchUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/stop][%d] stopBatchUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/stop][%d] stopBatchUnauthorized", 401) } func (o *StopBatchUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -267,11 +267,11 @@ func (o *StopBatchForbidden) Code() int { } func (o *StopBatchForbidden) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/stop][%d] stopBatchForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/stop][%d] stopBatchForbidden", 403) } func (o *StopBatchForbidden) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/stop][%d] stopBatchForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/stop][%d] stopBatchForbidden", 403) } func (o *StopBatchForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -323,11 +323,11 @@ func (o *StopBatchNotFound) Code() int { } func (o *StopBatchNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/stop][%d] stopBatchNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/stop][%d] stopBatchNotFound", 404) } func (o *StopBatchNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/stop][%d] stopBatchNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/batches/{batchName}/stop][%d] stopBatchNotFound", 404) } func (o *StopBatchNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/job/stop_job_responses.go b/generated-client/client/job/stop_job_responses.go index 0de5757..988d616 100644 --- a/generated-client/client/job/stop_job_responses.go +++ b/generated-client/client/job/stop_job_responses.go @@ -99,11 +99,11 @@ func (o *StopJobNoContent) Code() int { } func (o *StopJobNoContent) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/stop][%d] stopJobNoContent ", 204) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/stop][%d] stopJobNoContent", 204) } func (o *StopJobNoContent) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/stop][%d] stopJobNoContent ", 204) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/stop][%d] stopJobNoContent", 204) } func (o *StopJobNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -155,11 +155,11 @@ func (o *StopJobBadRequest) Code() int { } func (o *StopJobBadRequest) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/stop][%d] stopJobBadRequest ", 400) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/stop][%d] stopJobBadRequest", 400) } func (o *StopJobBadRequest) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/stop][%d] stopJobBadRequest ", 400) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/stop][%d] stopJobBadRequest", 400) } func (o *StopJobBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -211,11 +211,11 @@ func (o *StopJobUnauthorized) Code() int { } func (o *StopJobUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/stop][%d] stopJobUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/stop][%d] stopJobUnauthorized", 401) } func (o *StopJobUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/stop][%d] stopJobUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/stop][%d] stopJobUnauthorized", 401) } func (o *StopJobUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -267,11 +267,11 @@ func (o *StopJobForbidden) Code() int { } func (o *StopJobForbidden) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/stop][%d] stopJobForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/stop][%d] stopJobForbidden", 403) } func (o *StopJobForbidden) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/stop][%d] stopJobForbidden ", 403) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/stop][%d] stopJobForbidden", 403) } func (o *StopJobForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -323,11 +323,11 @@ func (o *StopJobNotFound) Code() int { } func (o *StopJobNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/stop][%d] stopJobNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/stop][%d] stopJobNotFound", 404) } func (o *StopJobNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/stop][%d] stopJobNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/environments/{envName}/jobcomponents/{jobComponentName}/jobs/{jobName}/stop][%d] stopJobNotFound", 404) } func (o *StopJobNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/pipeline_job/get_application_job_responses.go b/generated-client/client/pipeline_job/get_application_job_responses.go index 51b1232..8cc5a49 100644 --- a/generated-client/client/pipeline_job/get_application_job_responses.go +++ b/generated-client/client/pipeline_job/get_application_job_responses.go @@ -6,6 +6,7 @@ package pipeline_job // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -91,11 +92,13 @@ func (o *GetApplicationJobOK) Code() int { } func (o *GetApplicationJobOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}][%d] getApplicationJobOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}][%d] getApplicationJobOK %s", 200, payload) } func (o *GetApplicationJobOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}][%d] getApplicationJobOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}][%d] getApplicationJobOK %s", 200, payload) } func (o *GetApplicationJobOK) GetPayload() *models.Job { @@ -158,11 +161,11 @@ func (o *GetApplicationJobUnauthorized) Code() int { } func (o *GetApplicationJobUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}][%d] getApplicationJobUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}][%d] getApplicationJobUnauthorized", 401) } func (o *GetApplicationJobUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}][%d] getApplicationJobUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}][%d] getApplicationJobUnauthorized", 401) } func (o *GetApplicationJobUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -214,11 +217,11 @@ func (o *GetApplicationJobNotFound) Code() int { } func (o *GetApplicationJobNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}][%d] getApplicationJobNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}][%d] getApplicationJobNotFound", 404) } func (o *GetApplicationJobNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}][%d] getApplicationJobNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}][%d] getApplicationJobNotFound", 404) } func (o *GetApplicationJobNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/pipeline_job/get_application_jobs_responses.go b/generated-client/client/pipeline_job/get_application_jobs_responses.go index 132894a..6a2ed08 100644 --- a/generated-client/client/pipeline_job/get_application_jobs_responses.go +++ b/generated-client/client/pipeline_job/get_application_jobs_responses.go @@ -6,6 +6,7 @@ package pipeline_job // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -91,11 +92,13 @@ func (o *GetApplicationJobsOK) Code() int { } func (o *GetApplicationJobsOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs][%d] getApplicationJobsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/jobs][%d] getApplicationJobsOK %s", 200, payload) } func (o *GetApplicationJobsOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs][%d] getApplicationJobsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/jobs][%d] getApplicationJobsOK %s", 200, payload) } func (o *GetApplicationJobsOK) GetPayload() []*models.JobSummary { @@ -156,11 +159,11 @@ func (o *GetApplicationJobsUnauthorized) Code() int { } func (o *GetApplicationJobsUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs][%d] getApplicationJobsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/jobs][%d] getApplicationJobsUnauthorized", 401) } func (o *GetApplicationJobsUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs][%d] getApplicationJobsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/jobs][%d] getApplicationJobsUnauthorized", 401) } func (o *GetApplicationJobsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -212,11 +215,11 @@ func (o *GetApplicationJobsNotFound) Code() int { } func (o *GetApplicationJobsNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs][%d] getApplicationJobsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/jobs][%d] getApplicationJobsNotFound", 404) } func (o *GetApplicationJobsNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs][%d] getApplicationJobsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/jobs][%d] getApplicationJobsNotFound", 404) } func (o *GetApplicationJobsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/pipeline_job/get_pipeline_job_step_logs_responses.go b/generated-client/client/pipeline_job/get_pipeline_job_step_logs_responses.go index dce1b13..676ede9 100644 --- a/generated-client/client/pipeline_job/get_pipeline_job_step_logs_responses.go +++ b/generated-client/client/pipeline_job/get_pipeline_job_step_logs_responses.go @@ -6,6 +6,7 @@ package pipeline_job // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -89,11 +90,13 @@ func (o *GetPipelineJobStepLogsOK) Code() int { } func (o *GetPipelineJobStepLogsOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/logs/{stepName}][%d] getPipelineJobStepLogsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/logs/{stepName}][%d] getPipelineJobStepLogsOK %s", 200, payload) } func (o *GetPipelineJobStepLogsOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/logs/{stepName}][%d] getPipelineJobStepLogsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/logs/{stepName}][%d] getPipelineJobStepLogsOK %s", 200, payload) } func (o *GetPipelineJobStepLogsOK) GetPayload() string { @@ -154,11 +157,11 @@ func (o *GetPipelineJobStepLogsUnauthorized) Code() int { } func (o *GetPipelineJobStepLogsUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/logs/{stepName}][%d] getPipelineJobStepLogsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/logs/{stepName}][%d] getPipelineJobStepLogsUnauthorized", 401) } func (o *GetPipelineJobStepLogsUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/logs/{stepName}][%d] getPipelineJobStepLogsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/logs/{stepName}][%d] getPipelineJobStepLogsUnauthorized", 401) } func (o *GetPipelineJobStepLogsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -210,11 +213,11 @@ func (o *GetPipelineJobStepLogsNotFound) Code() int { } func (o *GetPipelineJobStepLogsNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/logs/{stepName}][%d] getPipelineJobStepLogsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/logs/{stepName}][%d] getPipelineJobStepLogsNotFound", 404) } func (o *GetPipelineJobStepLogsNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/logs/{stepName}][%d] getPipelineJobStepLogsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/logs/{stepName}][%d] getPipelineJobStepLogsNotFound", 404) } func (o *GetPipelineJobStepLogsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/pipeline_job/get_tekton_pipeline_run_responses.go b/generated-client/client/pipeline_job/get_tekton_pipeline_run_responses.go index 19bf62b..f43806d 100644 --- a/generated-client/client/pipeline_job/get_tekton_pipeline_run_responses.go +++ b/generated-client/client/pipeline_job/get_tekton_pipeline_run_responses.go @@ -6,6 +6,7 @@ package pipeline_job // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -91,11 +92,13 @@ func (o *GetTektonPipelineRunOK) Code() int { } func (o *GetTektonPipelineRunOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}][%d] getTektonPipelineRunOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}][%d] getTektonPipelineRunOK %s", 200, payload) } func (o *GetTektonPipelineRunOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}][%d] getTektonPipelineRunOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}][%d] getTektonPipelineRunOK %s", 200, payload) } func (o *GetTektonPipelineRunOK) GetPayload() *models.PipelineRun { @@ -158,11 +161,11 @@ func (o *GetTektonPipelineRunUnauthorized) Code() int { } func (o *GetTektonPipelineRunUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}][%d] getTektonPipelineRunUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}][%d] getTektonPipelineRunUnauthorized", 401) } func (o *GetTektonPipelineRunUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}][%d] getTektonPipelineRunUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}][%d] getTektonPipelineRunUnauthorized", 401) } func (o *GetTektonPipelineRunUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -214,11 +217,11 @@ func (o *GetTektonPipelineRunNotFound) Code() int { } func (o *GetTektonPipelineRunNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}][%d] getTektonPipelineRunNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}][%d] getTektonPipelineRunNotFound", 404) } func (o *GetTektonPipelineRunNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}][%d] getTektonPipelineRunNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}][%d] getTektonPipelineRunNotFound", 404) } func (o *GetTektonPipelineRunNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/pipeline_job/get_tekton_pipeline_run_task_responses.go b/generated-client/client/pipeline_job/get_tekton_pipeline_run_task_responses.go index 8c795b4..3378d4c 100644 --- a/generated-client/client/pipeline_job/get_tekton_pipeline_run_task_responses.go +++ b/generated-client/client/pipeline_job/get_tekton_pipeline_run_task_responses.go @@ -6,6 +6,7 @@ package pipeline_job // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -91,11 +92,13 @@ func (o *GetTektonPipelineRunTaskOK) Code() int { } func (o *GetTektonPipelineRunTaskOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}][%d] getTektonPipelineRunTaskOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}][%d] getTektonPipelineRunTaskOK %s", 200, payload) } func (o *GetTektonPipelineRunTaskOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}][%d] getTektonPipelineRunTaskOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}][%d] getTektonPipelineRunTaskOK %s", 200, payload) } func (o *GetTektonPipelineRunTaskOK) GetPayload() *models.PipelineRunTask { @@ -158,11 +161,11 @@ func (o *GetTektonPipelineRunTaskUnauthorized) Code() int { } func (o *GetTektonPipelineRunTaskUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}][%d] getTektonPipelineRunTaskUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}][%d] getTektonPipelineRunTaskUnauthorized", 401) } func (o *GetTektonPipelineRunTaskUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}][%d] getTektonPipelineRunTaskUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}][%d] getTektonPipelineRunTaskUnauthorized", 401) } func (o *GetTektonPipelineRunTaskUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -214,11 +217,11 @@ func (o *GetTektonPipelineRunTaskNotFound) Code() int { } func (o *GetTektonPipelineRunTaskNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}][%d] getTektonPipelineRunTaskNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}][%d] getTektonPipelineRunTaskNotFound", 404) } func (o *GetTektonPipelineRunTaskNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}][%d] getTektonPipelineRunTaskNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}][%d] getTektonPipelineRunTaskNotFound", 404) } func (o *GetTektonPipelineRunTaskNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/pipeline_job/get_tekton_pipeline_run_task_step_logs_responses.go b/generated-client/client/pipeline_job/get_tekton_pipeline_run_task_step_logs_responses.go index 36f790f..2102073 100644 --- a/generated-client/client/pipeline_job/get_tekton_pipeline_run_task_step_logs_responses.go +++ b/generated-client/client/pipeline_job/get_tekton_pipeline_run_task_step_logs_responses.go @@ -6,6 +6,7 @@ package pipeline_job // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -89,11 +90,13 @@ func (o *GetTektonPipelineRunTaskStepLogsOK) Code() int { } func (o *GetTektonPipelineRunTaskStepLogsOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}/logs/{stepName}][%d] getTektonPipelineRunTaskStepLogsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}/logs/{stepName}][%d] getTektonPipelineRunTaskStepLogsOK %s", 200, payload) } func (o *GetTektonPipelineRunTaskStepLogsOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}/logs/{stepName}][%d] getTektonPipelineRunTaskStepLogsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}/logs/{stepName}][%d] getTektonPipelineRunTaskStepLogsOK %s", 200, payload) } func (o *GetTektonPipelineRunTaskStepLogsOK) GetPayload() string { @@ -154,11 +157,11 @@ func (o *GetTektonPipelineRunTaskStepLogsUnauthorized) Code() int { } func (o *GetTektonPipelineRunTaskStepLogsUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}/logs/{stepName}][%d] getTektonPipelineRunTaskStepLogsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}/logs/{stepName}][%d] getTektonPipelineRunTaskStepLogsUnauthorized", 401) } func (o *GetTektonPipelineRunTaskStepLogsUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}/logs/{stepName}][%d] getTektonPipelineRunTaskStepLogsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}/logs/{stepName}][%d] getTektonPipelineRunTaskStepLogsUnauthorized", 401) } func (o *GetTektonPipelineRunTaskStepLogsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -210,11 +213,11 @@ func (o *GetTektonPipelineRunTaskStepLogsNotFound) Code() int { } func (o *GetTektonPipelineRunTaskStepLogsNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}/logs/{stepName}][%d] getTektonPipelineRunTaskStepLogsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}/logs/{stepName}][%d] getTektonPipelineRunTaskStepLogsNotFound", 404) } func (o *GetTektonPipelineRunTaskStepLogsNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}/logs/{stepName}][%d] getTektonPipelineRunTaskStepLogsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}/logs/{stepName}][%d] getTektonPipelineRunTaskStepLogsNotFound", 404) } func (o *GetTektonPipelineRunTaskStepLogsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/pipeline_job/get_tekton_pipeline_run_task_steps_responses.go b/generated-client/client/pipeline_job/get_tekton_pipeline_run_task_steps_responses.go index 818ab64..a761178 100644 --- a/generated-client/client/pipeline_job/get_tekton_pipeline_run_task_steps_responses.go +++ b/generated-client/client/pipeline_job/get_tekton_pipeline_run_task_steps_responses.go @@ -6,6 +6,7 @@ package pipeline_job // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -91,11 +92,13 @@ func (o *GetTektonPipelineRunTaskStepsOK) Code() int { } func (o *GetTektonPipelineRunTaskStepsOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}/steps][%d] getTektonPipelineRunTaskStepsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}/steps][%d] getTektonPipelineRunTaskStepsOK %s", 200, payload) } func (o *GetTektonPipelineRunTaskStepsOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}/steps][%d] getTektonPipelineRunTaskStepsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}/steps][%d] getTektonPipelineRunTaskStepsOK %s", 200, payload) } func (o *GetTektonPipelineRunTaskStepsOK) GetPayload() []*models.PipelineRunTaskStep { @@ -156,11 +159,11 @@ func (o *GetTektonPipelineRunTaskStepsUnauthorized) Code() int { } func (o *GetTektonPipelineRunTaskStepsUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}/steps][%d] getTektonPipelineRunTaskStepsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}/steps][%d] getTektonPipelineRunTaskStepsUnauthorized", 401) } func (o *GetTektonPipelineRunTaskStepsUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}/steps][%d] getTektonPipelineRunTaskStepsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}/steps][%d] getTektonPipelineRunTaskStepsUnauthorized", 401) } func (o *GetTektonPipelineRunTaskStepsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -212,11 +215,11 @@ func (o *GetTektonPipelineRunTaskStepsNotFound) Code() int { } func (o *GetTektonPipelineRunTaskStepsNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}/steps][%d] getTektonPipelineRunTaskStepsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}/steps][%d] getTektonPipelineRunTaskStepsNotFound", 404) } func (o *GetTektonPipelineRunTaskStepsNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}/steps][%d] getTektonPipelineRunTaskStepsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks/{taskName}/steps][%d] getTektonPipelineRunTaskStepsNotFound", 404) } func (o *GetTektonPipelineRunTaskStepsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/pipeline_job/get_tekton_pipeline_run_tasks_responses.go b/generated-client/client/pipeline_job/get_tekton_pipeline_run_tasks_responses.go index 4d131dc..4bee3f3 100644 --- a/generated-client/client/pipeline_job/get_tekton_pipeline_run_tasks_responses.go +++ b/generated-client/client/pipeline_job/get_tekton_pipeline_run_tasks_responses.go @@ -6,6 +6,7 @@ package pipeline_job // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -91,11 +92,13 @@ func (o *GetTektonPipelineRunTasksOK) Code() int { } func (o *GetTektonPipelineRunTasksOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks][%d] getTektonPipelineRunTasksOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks][%d] getTektonPipelineRunTasksOK %s", 200, payload) } func (o *GetTektonPipelineRunTasksOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks][%d] getTektonPipelineRunTasksOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks][%d] getTektonPipelineRunTasksOK %s", 200, payload) } func (o *GetTektonPipelineRunTasksOK) GetPayload() []*models.PipelineRunTask { @@ -156,11 +159,11 @@ func (o *GetTektonPipelineRunTasksUnauthorized) Code() int { } func (o *GetTektonPipelineRunTasksUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks][%d] getTektonPipelineRunTasksUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks][%d] getTektonPipelineRunTasksUnauthorized", 401) } func (o *GetTektonPipelineRunTasksUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks][%d] getTektonPipelineRunTasksUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks][%d] getTektonPipelineRunTasksUnauthorized", 401) } func (o *GetTektonPipelineRunTasksUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -212,11 +215,11 @@ func (o *GetTektonPipelineRunTasksNotFound) Code() int { } func (o *GetTektonPipelineRunTasksNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks][%d] getTektonPipelineRunTasksNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks][%d] getTektonPipelineRunTasksNotFound", 404) } func (o *GetTektonPipelineRunTasksNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks][%d] getTektonPipelineRunTasksNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns/{pipelineRunName}/tasks][%d] getTektonPipelineRunTasksNotFound", 404) } func (o *GetTektonPipelineRunTasksNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/pipeline_job/get_tekton_pipeline_runs_responses.go b/generated-client/client/pipeline_job/get_tekton_pipeline_runs_responses.go index 0ccba5b..4ade969 100644 --- a/generated-client/client/pipeline_job/get_tekton_pipeline_runs_responses.go +++ b/generated-client/client/pipeline_job/get_tekton_pipeline_runs_responses.go @@ -6,6 +6,7 @@ package pipeline_job // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -91,11 +92,13 @@ func (o *GetTektonPipelineRunsOK) Code() int { } func (o *GetTektonPipelineRunsOK) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns][%d] getTektonPipelineRunsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns][%d] getTektonPipelineRunsOK %s", 200, payload) } func (o *GetTektonPipelineRunsOK) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns][%d] getTektonPipelineRunsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns][%d] getTektonPipelineRunsOK %s", 200, payload) } func (o *GetTektonPipelineRunsOK) GetPayload() []*models.PipelineRun { @@ -156,11 +159,11 @@ func (o *GetTektonPipelineRunsUnauthorized) Code() int { } func (o *GetTektonPipelineRunsUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns][%d] getTektonPipelineRunsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns][%d] getTektonPipelineRunsUnauthorized", 401) } func (o *GetTektonPipelineRunsUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns][%d] getTektonPipelineRunsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns][%d] getTektonPipelineRunsUnauthorized", 401) } func (o *GetTektonPipelineRunsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -212,11 +215,11 @@ func (o *GetTektonPipelineRunsNotFound) Code() int { } func (o *GetTektonPipelineRunsNotFound) Error() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns][%d] getTektonPipelineRunsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns][%d] getTektonPipelineRunsNotFound", 404) } func (o *GetTektonPipelineRunsNotFound) String() string { - return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns][%d] getTektonPipelineRunsNotFound ", 404) + return fmt.Sprintf("[GET /applications/{appName}/jobs/{jobName}/pipelineruns][%d] getTektonPipelineRunsNotFound", 404) } func (o *GetTektonPipelineRunsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/pipeline_job/pipeline_job_client.go b/generated-client/client/pipeline_job/pipeline_job_client.go index eca722b..67b661d 100644 --- a/generated-client/client/pipeline_job/pipeline_job_client.go +++ b/generated-client/client/pipeline_job/pipeline_job_client.go @@ -9,6 +9,7 @@ import ( "fmt" "github.com/go-openapi/runtime" + httptransport "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" ) @@ -17,6 +18,31 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientServi return &Client{transport: transport, formats: formats} } +// New creates a new pipeline job API client with basic auth credentials. +// It takes the following parameters: +// - host: http host (github.com). +// - basePath: any base path for the API client ("/v1", "/v3"). +// - scheme: http scheme ("http", "https"). +// - user: user for basic authentication header. +// - password: password for basic authentication header. +func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService { + transport := httptransport.New(host, basePath, []string{scheme}) + transport.DefaultAuthentication = httptransport.BasicAuth(user, password) + return &Client{transport: transport, formats: strfmt.Default} +} + +// New creates a new pipeline job API client with a bearer token for authentication. +// It takes the following parameters: +// - host: http host (github.com). +// - basePath: any base path for the API client ("/v1", "/v3"). +// - scheme: http scheme ("http", "https"). +// - bearerToken: bearer token for Bearer authentication header. +func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService { + transport := httptransport.New(host, basePath, []string{scheme}) + transport.DefaultAuthentication = httptransport.BearerToken(bearerToken) + return &Client{transport: transport, formats: strfmt.Default} +} + /* Client for pipeline job API */ @@ -25,7 +51,7 @@ type Client struct { formats strfmt.Registry } -// ClientOption is the option for Client methods +// ClientOption may be used to customize the behavior of Client methods. type ClientOption func(*runtime.ClientOperation) // ClientService is the interface for Client methods diff --git a/generated-client/client/pipeline_job/rerun_application_job_responses.go b/generated-client/client/pipeline_job/rerun_application_job_responses.go index cfbf564..a9245b9 100644 --- a/generated-client/client/pipeline_job/rerun_application_job_responses.go +++ b/generated-client/client/pipeline_job/rerun_application_job_responses.go @@ -87,11 +87,11 @@ func (o *RerunApplicationJobNoContent) Code() int { } func (o *RerunApplicationJobNoContent) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/jobs/{jobName}/rerun][%d] rerunApplicationJobNoContent ", 204) + return fmt.Sprintf("[POST /applications/{appName}/jobs/{jobName}/rerun][%d] rerunApplicationJobNoContent", 204) } func (o *RerunApplicationJobNoContent) String() string { - return fmt.Sprintf("[POST /applications/{appName}/jobs/{jobName}/rerun][%d] rerunApplicationJobNoContent ", 204) + return fmt.Sprintf("[POST /applications/{appName}/jobs/{jobName}/rerun][%d] rerunApplicationJobNoContent", 204) } func (o *RerunApplicationJobNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -143,11 +143,11 @@ func (o *RerunApplicationJobUnauthorized) Code() int { } func (o *RerunApplicationJobUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/jobs/{jobName}/rerun][%d] rerunApplicationJobUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/jobs/{jobName}/rerun][%d] rerunApplicationJobUnauthorized", 401) } func (o *RerunApplicationJobUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/jobs/{jobName}/rerun][%d] rerunApplicationJobUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/jobs/{jobName}/rerun][%d] rerunApplicationJobUnauthorized", 401) } func (o *RerunApplicationJobUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -199,11 +199,11 @@ func (o *RerunApplicationJobNotFound) Code() int { } func (o *RerunApplicationJobNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/jobs/{jobName}/rerun][%d] rerunApplicationJobNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/jobs/{jobName}/rerun][%d] rerunApplicationJobNotFound", 404) } func (o *RerunApplicationJobNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/jobs/{jobName}/rerun][%d] rerunApplicationJobNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/jobs/{jobName}/rerun][%d] rerunApplicationJobNotFound", 404) } func (o *RerunApplicationJobNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/pipeline_job/stop_application_job_responses.go b/generated-client/client/pipeline_job/stop_application_job_responses.go index 572b7f2..69b8356 100644 --- a/generated-client/client/pipeline_job/stop_application_job_responses.go +++ b/generated-client/client/pipeline_job/stop_application_job_responses.go @@ -87,11 +87,11 @@ func (o *StopApplicationJobNoContent) Code() int { } func (o *StopApplicationJobNoContent) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/jobs/{jobName}/stop][%d] stopApplicationJobNoContent ", 204) + return fmt.Sprintf("[POST /applications/{appName}/jobs/{jobName}/stop][%d] stopApplicationJobNoContent", 204) } func (o *StopApplicationJobNoContent) String() string { - return fmt.Sprintf("[POST /applications/{appName}/jobs/{jobName}/stop][%d] stopApplicationJobNoContent ", 204) + return fmt.Sprintf("[POST /applications/{appName}/jobs/{jobName}/stop][%d] stopApplicationJobNoContent", 204) } func (o *StopApplicationJobNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -143,11 +143,11 @@ func (o *StopApplicationJobUnauthorized) Code() int { } func (o *StopApplicationJobUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/jobs/{jobName}/stop][%d] stopApplicationJobUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/jobs/{jobName}/stop][%d] stopApplicationJobUnauthorized", 401) } func (o *StopApplicationJobUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/{appName}/jobs/{jobName}/stop][%d] stopApplicationJobUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/{appName}/jobs/{jobName}/stop][%d] stopApplicationJobUnauthorized", 401) } func (o *StopApplicationJobUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -199,11 +199,11 @@ func (o *StopApplicationJobNotFound) Code() int { } func (o *StopApplicationJobNotFound) Error() string { - return fmt.Sprintf("[POST /applications/{appName}/jobs/{jobName}/stop][%d] stopApplicationJobNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/jobs/{jobName}/stop][%d] stopApplicationJobNotFound", 404) } func (o *StopApplicationJobNotFound) String() string { - return fmt.Sprintf("[POST /applications/{appName}/jobs/{jobName}/stop][%d] stopApplicationJobNotFound ", 404) + return fmt.Sprintf("[POST /applications/{appName}/jobs/{jobName}/stop][%d] stopApplicationJobNotFound", 404) } func (o *StopApplicationJobNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/platform/get_search_applications_responses.go b/generated-client/client/platform/get_search_applications_responses.go index 5cb3407..d7a9f7f 100644 --- a/generated-client/client/platform/get_search_applications_responses.go +++ b/generated-client/client/platform/get_search_applications_responses.go @@ -6,6 +6,7 @@ package platform // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -109,11 +110,13 @@ func (o *GetSearchApplicationsOK) Code() int { } func (o *GetSearchApplicationsOK) Error() string { - return fmt.Sprintf("[GET /applications/_search][%d] getSearchApplicationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/_search][%d] getSearchApplicationsOK %s", 200, payload) } func (o *GetSearchApplicationsOK) String() string { - return fmt.Sprintf("[GET /applications/_search][%d] getSearchApplicationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications/_search][%d] getSearchApplicationsOK %s", 200, payload) } func (o *GetSearchApplicationsOK) GetPayload() []*models.ApplicationSummary { @@ -174,11 +177,11 @@ func (o *GetSearchApplicationsUnauthorized) Code() int { } func (o *GetSearchApplicationsUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications/_search][%d] getSearchApplicationsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/_search][%d] getSearchApplicationsUnauthorized", 401) } func (o *GetSearchApplicationsUnauthorized) String() string { - return fmt.Sprintf("[GET /applications/_search][%d] getSearchApplicationsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications/_search][%d] getSearchApplicationsUnauthorized", 401) } func (o *GetSearchApplicationsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -230,11 +233,11 @@ func (o *GetSearchApplicationsForbidden) Code() int { } func (o *GetSearchApplicationsForbidden) Error() string { - return fmt.Sprintf("[GET /applications/_search][%d] getSearchApplicationsForbidden ", 403) + return fmt.Sprintf("[GET /applications/_search][%d] getSearchApplicationsForbidden", 403) } func (o *GetSearchApplicationsForbidden) String() string { - return fmt.Sprintf("[GET /applications/_search][%d] getSearchApplicationsForbidden ", 403) + return fmt.Sprintf("[GET /applications/_search][%d] getSearchApplicationsForbidden", 403) } func (o *GetSearchApplicationsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -286,11 +289,11 @@ func (o *GetSearchApplicationsNotFound) Code() int { } func (o *GetSearchApplicationsNotFound) Error() string { - return fmt.Sprintf("[GET /applications/_search][%d] getSearchApplicationsNotFound ", 404) + return fmt.Sprintf("[GET /applications/_search][%d] getSearchApplicationsNotFound", 404) } func (o *GetSearchApplicationsNotFound) String() string { - return fmt.Sprintf("[GET /applications/_search][%d] getSearchApplicationsNotFound ", 404) + return fmt.Sprintf("[GET /applications/_search][%d] getSearchApplicationsNotFound", 404) } func (o *GetSearchApplicationsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -342,11 +345,11 @@ func (o *GetSearchApplicationsConflict) Code() int { } func (o *GetSearchApplicationsConflict) Error() string { - return fmt.Sprintf("[GET /applications/_search][%d] getSearchApplicationsConflict ", 409) + return fmt.Sprintf("[GET /applications/_search][%d] getSearchApplicationsConflict", 409) } func (o *GetSearchApplicationsConflict) String() string { - return fmt.Sprintf("[GET /applications/_search][%d] getSearchApplicationsConflict ", 409) + return fmt.Sprintf("[GET /applications/_search][%d] getSearchApplicationsConflict", 409) } func (o *GetSearchApplicationsConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -398,11 +401,11 @@ func (o *GetSearchApplicationsInternalServerError) Code() int { } func (o *GetSearchApplicationsInternalServerError) Error() string { - return fmt.Sprintf("[GET /applications/_search][%d] getSearchApplicationsInternalServerError ", 500) + return fmt.Sprintf("[GET /applications/_search][%d] getSearchApplicationsInternalServerError", 500) } func (o *GetSearchApplicationsInternalServerError) String() string { - return fmt.Sprintf("[GET /applications/_search][%d] getSearchApplicationsInternalServerError ", 500) + return fmt.Sprintf("[GET /applications/_search][%d] getSearchApplicationsInternalServerError", 500) } func (o *GetSearchApplicationsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/platform/platform_client.go b/generated-client/client/platform/platform_client.go index 455bdd5..b32aa7f 100644 --- a/generated-client/client/platform/platform_client.go +++ b/generated-client/client/platform/platform_client.go @@ -9,6 +9,7 @@ import ( "fmt" "github.com/go-openapi/runtime" + httptransport "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" ) @@ -17,6 +18,31 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientServi return &Client{transport: transport, formats: formats} } +// New creates a new platform API client with basic auth credentials. +// It takes the following parameters: +// - host: http host (github.com). +// - basePath: any base path for the API client ("/v1", "/v3"). +// - scheme: http scheme ("http", "https"). +// - user: user for basic authentication header. +// - password: password for basic authentication header. +func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService { + transport := httptransport.New(host, basePath, []string{scheme}) + transport.DefaultAuthentication = httptransport.BasicAuth(user, password) + return &Client{transport: transport, formats: strfmt.Default} +} + +// New creates a new platform API client with a bearer token for authentication. +// It takes the following parameters: +// - host: http host (github.com). +// - basePath: any base path for the API client ("/v1", "/v3"). +// - scheme: http scheme ("http", "https"). +// - bearerToken: bearer token for Bearer authentication header. +func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService { + transport := httptransport.New(host, basePath, []string{scheme}) + transport.DefaultAuthentication = httptransport.BearerToken(bearerToken) + return &Client{transport: transport, formats: strfmt.Default} +} + /* Client for platform API */ @@ -25,7 +51,7 @@ type Client struct { formats strfmt.Registry } -// ClientOption is the option for Client methods +// ClientOption may be used to customize the behavior of Client methods. type ClientOption func(*runtime.ClientOperation) // ClientService is the interface for Client methods diff --git a/generated-client/client/platform/register_application_responses.go b/generated-client/client/platform/register_application_responses.go index 9740aea..c7bee26 100644 --- a/generated-client/client/platform/register_application_responses.go +++ b/generated-client/client/platform/register_application_responses.go @@ -6,6 +6,7 @@ package platform // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -97,11 +98,13 @@ func (o *RegisterApplicationOK) Code() int { } func (o *RegisterApplicationOK) Error() string { - return fmt.Sprintf("[POST /applications][%d] registerApplicationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications][%d] registerApplicationOK %s", 200, payload) } func (o *RegisterApplicationOK) String() string { - return fmt.Sprintf("[POST /applications][%d] registerApplicationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications][%d] registerApplicationOK %s", 200, payload) } func (o *RegisterApplicationOK) GetPayload() *models.ApplicationRegistrationUpsertResponse { @@ -164,11 +167,11 @@ func (o *RegisterApplicationBadRequest) Code() int { } func (o *RegisterApplicationBadRequest) Error() string { - return fmt.Sprintf("[POST /applications][%d] registerApplicationBadRequest ", 400) + return fmt.Sprintf("[POST /applications][%d] registerApplicationBadRequest", 400) } func (o *RegisterApplicationBadRequest) String() string { - return fmt.Sprintf("[POST /applications][%d] registerApplicationBadRequest ", 400) + return fmt.Sprintf("[POST /applications][%d] registerApplicationBadRequest", 400) } func (o *RegisterApplicationBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -220,11 +223,11 @@ func (o *RegisterApplicationUnauthorized) Code() int { } func (o *RegisterApplicationUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications][%d] registerApplicationUnauthorized ", 401) + return fmt.Sprintf("[POST /applications][%d] registerApplicationUnauthorized", 401) } func (o *RegisterApplicationUnauthorized) String() string { - return fmt.Sprintf("[POST /applications][%d] registerApplicationUnauthorized ", 401) + return fmt.Sprintf("[POST /applications][%d] registerApplicationUnauthorized", 401) } func (o *RegisterApplicationUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -276,11 +279,11 @@ func (o *RegisterApplicationConflict) Code() int { } func (o *RegisterApplicationConflict) Error() string { - return fmt.Sprintf("[POST /applications][%d] registerApplicationConflict ", 409) + return fmt.Sprintf("[POST /applications][%d] registerApplicationConflict", 409) } func (o *RegisterApplicationConflict) String() string { - return fmt.Sprintf("[POST /applications][%d] registerApplicationConflict ", 409) + return fmt.Sprintf("[POST /applications][%d] registerApplicationConflict", 409) } func (o *RegisterApplicationConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/platform/search_applications_responses.go b/generated-client/client/platform/search_applications_responses.go index d68e282..a0240e0 100644 --- a/generated-client/client/platform/search_applications_responses.go +++ b/generated-client/client/platform/search_applications_responses.go @@ -6,6 +6,7 @@ package platform // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -109,11 +110,13 @@ func (o *SearchApplicationsOK) Code() int { } func (o *SearchApplicationsOK) Error() string { - return fmt.Sprintf("[POST /applications/_search][%d] searchApplicationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications/_search][%d] searchApplicationsOK %s", 200, payload) } func (o *SearchApplicationsOK) String() string { - return fmt.Sprintf("[POST /applications/_search][%d] searchApplicationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /applications/_search][%d] searchApplicationsOK %s", 200, payload) } func (o *SearchApplicationsOK) GetPayload() []*models.ApplicationSummary { @@ -174,11 +177,11 @@ func (o *SearchApplicationsUnauthorized) Code() int { } func (o *SearchApplicationsUnauthorized) Error() string { - return fmt.Sprintf("[POST /applications/_search][%d] searchApplicationsUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/_search][%d] searchApplicationsUnauthorized", 401) } func (o *SearchApplicationsUnauthorized) String() string { - return fmt.Sprintf("[POST /applications/_search][%d] searchApplicationsUnauthorized ", 401) + return fmt.Sprintf("[POST /applications/_search][%d] searchApplicationsUnauthorized", 401) } func (o *SearchApplicationsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -230,11 +233,11 @@ func (o *SearchApplicationsForbidden) Code() int { } func (o *SearchApplicationsForbidden) Error() string { - return fmt.Sprintf("[POST /applications/_search][%d] searchApplicationsForbidden ", 403) + return fmt.Sprintf("[POST /applications/_search][%d] searchApplicationsForbidden", 403) } func (o *SearchApplicationsForbidden) String() string { - return fmt.Sprintf("[POST /applications/_search][%d] searchApplicationsForbidden ", 403) + return fmt.Sprintf("[POST /applications/_search][%d] searchApplicationsForbidden", 403) } func (o *SearchApplicationsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -286,11 +289,11 @@ func (o *SearchApplicationsNotFound) Code() int { } func (o *SearchApplicationsNotFound) Error() string { - return fmt.Sprintf("[POST /applications/_search][%d] searchApplicationsNotFound ", 404) + return fmt.Sprintf("[POST /applications/_search][%d] searchApplicationsNotFound", 404) } func (o *SearchApplicationsNotFound) String() string { - return fmt.Sprintf("[POST /applications/_search][%d] searchApplicationsNotFound ", 404) + return fmt.Sprintf("[POST /applications/_search][%d] searchApplicationsNotFound", 404) } func (o *SearchApplicationsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -342,11 +345,11 @@ func (o *SearchApplicationsConflict) Code() int { } func (o *SearchApplicationsConflict) Error() string { - return fmt.Sprintf("[POST /applications/_search][%d] searchApplicationsConflict ", 409) + return fmt.Sprintf("[POST /applications/_search][%d] searchApplicationsConflict", 409) } func (o *SearchApplicationsConflict) String() string { - return fmt.Sprintf("[POST /applications/_search][%d] searchApplicationsConflict ", 409) + return fmt.Sprintf("[POST /applications/_search][%d] searchApplicationsConflict", 409) } func (o *SearchApplicationsConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -398,11 +401,11 @@ func (o *SearchApplicationsInternalServerError) Code() int { } func (o *SearchApplicationsInternalServerError) Error() string { - return fmt.Sprintf("[POST /applications/_search][%d] searchApplicationsInternalServerError ", 500) + return fmt.Sprintf("[POST /applications/_search][%d] searchApplicationsInternalServerError", 500) } func (o *SearchApplicationsInternalServerError) String() string { - return fmt.Sprintf("[POST /applications/_search][%d] searchApplicationsInternalServerError ", 500) + return fmt.Sprintf("[POST /applications/_search][%d] searchApplicationsInternalServerError", 500) } func (o *SearchApplicationsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/client/platform/show_applications_responses.go b/generated-client/client/platform/show_applications_responses.go index 5a0ca24..e0fb4c9 100644 --- a/generated-client/client/platform/show_applications_responses.go +++ b/generated-client/client/platform/show_applications_responses.go @@ -6,6 +6,7 @@ package platform // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -109,11 +110,13 @@ func (o *ShowApplicationsOK) Code() int { } func (o *ShowApplicationsOK) Error() string { - return fmt.Sprintf("[GET /applications][%d] showApplicationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications][%d] showApplicationsOK %s", 200, payload) } func (o *ShowApplicationsOK) String() string { - return fmt.Sprintf("[GET /applications][%d] showApplicationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /applications][%d] showApplicationsOK %s", 200, payload) } func (o *ShowApplicationsOK) GetPayload() []*models.ApplicationSummary { @@ -174,11 +177,11 @@ func (o *ShowApplicationsUnauthorized) Code() int { } func (o *ShowApplicationsUnauthorized) Error() string { - return fmt.Sprintf("[GET /applications][%d] showApplicationsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications][%d] showApplicationsUnauthorized", 401) } func (o *ShowApplicationsUnauthorized) String() string { - return fmt.Sprintf("[GET /applications][%d] showApplicationsUnauthorized ", 401) + return fmt.Sprintf("[GET /applications][%d] showApplicationsUnauthorized", 401) } func (o *ShowApplicationsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -230,11 +233,11 @@ func (o *ShowApplicationsForbidden) Code() int { } func (o *ShowApplicationsForbidden) Error() string { - return fmt.Sprintf("[GET /applications][%d] showApplicationsForbidden ", 403) + return fmt.Sprintf("[GET /applications][%d] showApplicationsForbidden", 403) } func (o *ShowApplicationsForbidden) String() string { - return fmt.Sprintf("[GET /applications][%d] showApplicationsForbidden ", 403) + return fmt.Sprintf("[GET /applications][%d] showApplicationsForbidden", 403) } func (o *ShowApplicationsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -286,11 +289,11 @@ func (o *ShowApplicationsNotFound) Code() int { } func (o *ShowApplicationsNotFound) Error() string { - return fmt.Sprintf("[GET /applications][%d] showApplicationsNotFound ", 404) + return fmt.Sprintf("[GET /applications][%d] showApplicationsNotFound", 404) } func (o *ShowApplicationsNotFound) String() string { - return fmt.Sprintf("[GET /applications][%d] showApplicationsNotFound ", 404) + return fmt.Sprintf("[GET /applications][%d] showApplicationsNotFound", 404) } func (o *ShowApplicationsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -342,11 +345,11 @@ func (o *ShowApplicationsConflict) Code() int { } func (o *ShowApplicationsConflict) Error() string { - return fmt.Sprintf("[GET /applications][%d] showApplicationsConflict ", 409) + return fmt.Sprintf("[GET /applications][%d] showApplicationsConflict", 409) } func (o *ShowApplicationsConflict) String() string { - return fmt.Sprintf("[GET /applications][%d] showApplicationsConflict ", 409) + return fmt.Sprintf("[GET /applications][%d] showApplicationsConflict", 409) } func (o *ShowApplicationsConflict) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { @@ -398,11 +401,11 @@ func (o *ShowApplicationsInternalServerError) Code() int { } func (o *ShowApplicationsInternalServerError) Error() string { - return fmt.Sprintf("[GET /applications][%d] showApplicationsInternalServerError ", 500) + return fmt.Sprintf("[GET /applications][%d] showApplicationsInternalServerError", 500) } func (o *ShowApplicationsInternalServerError) String() string { - return fmt.Sprintf("[GET /applications][%d] showApplicationsInternalServerError ", 500) + return fmt.Sprintf("[GET /applications][%d] showApplicationsInternalServerError", 500) } func (o *ShowApplicationsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { diff --git a/generated-client/models/auxiliary_resource_deployment.go b/generated-client/models/auxiliary_resource_deployment.go index 1232480..557c28e 100644 --- a/generated-client/models/auxiliary_resource_deployment.go +++ b/generated-client/models/auxiliary_resource_deployment.go @@ -27,7 +27,7 @@ type AuxiliaryResourceDeployment struct { // Status of the auxiliary resource's deployment // Example: Consistent // Required: true - // Enum: [Stopped Consistent Reconciling] + // Enum: ["Stopped","Consistent","Reconciling"] Status *string `json:"status"` } diff --git a/generated-client/models/build_secret.go b/generated-client/models/build_secret.go index a24a8c5..7600488 100644 --- a/generated-client/models/build_secret.go +++ b/generated-client/models/build_secret.go @@ -29,7 +29,7 @@ type BuildSecret struct { // Pending = Secret value is not set // Consistent = Secret value is set // Example: Consistent - // Enum: [Pending Consistent] + // Enum: ["Pending","Consistent"] Status string `json:"status,omitempty"` } diff --git a/generated-client/models/component.go b/generated-client/models/component.go index 5aace5b..011002d 100644 --- a/generated-client/models/component.go +++ b/generated-client/models/component.go @@ -70,13 +70,13 @@ type Component struct { // Status of the component // Example: Consistent - // Enum: [Stopped Consistent Reconciling Restarting Outdated] + // Enum: ["Stopped","Consistent","Reconciling","Restarting","Outdated"] Status string `json:"status,omitempty"` // Type of component // Example: component // Required: true - // Enum: [component job] + // Enum: ["component","job"] Type *string `json:"type"` // Variable names map to values. From radixconfig.yaml diff --git a/generated-client/models/component_summary.go b/generated-client/models/component_summary.go index 1bf8f93..8194cda 100644 --- a/generated-client/models/component_summary.go +++ b/generated-client/models/component_summary.go @@ -46,7 +46,7 @@ type ComponentSummary struct { // Type of component // Example: component // Required: true - // Enum: [component job] + // Enum: ["component","job"] Type *string `json:"type"` // resources diff --git a/generated-client/models/deployment_summary.go b/generated-client/models/deployment_summary.go index 72610ab..46e9364 100644 --- a/generated-client/models/deployment_summary.go +++ b/generated-client/models/deployment_summary.go @@ -60,7 +60,7 @@ type DeploymentSummary struct { // Type of pipeline job // Example: build-deploy - // Enum: [build build-deploy promote deploy] + // Enum: ["build","build-deploy","promote","deploy"] PipelineJobType string `json:"pipelineJobType,omitempty"` // Name of the environment the deployment was promoted from diff --git a/generated-client/models/deployment_summary_pipeline_job_info.go b/generated-client/models/deployment_summary_pipeline_job_info.go index 70a8085..a826314 100644 --- a/generated-client/models/deployment_summary_pipeline_job_info.go +++ b/generated-client/models/deployment_summary_pipeline_job_info.go @@ -29,7 +29,7 @@ type DeploymentSummaryPipelineJobInfo struct { // Type of pipeline job // Example: build-deploy - // Enum: [build build-deploy promote deploy] + // Enum: ["build","build-deploy","promote","deploy"] PipelineJobType string `json:"pipelineJobType,omitempty"` // Name of the environment the deployment was promoted from diff --git a/generated-client/models/environment.go b/generated-client/models/environment.go index d24f80e..4e15c4b 100644 --- a/generated-client/models/environment.go +++ b/generated-client/models/environment.go @@ -40,7 +40,7 @@ type Environment struct { // Consistent = Environment exists in Radix config and in cluster // Orphan = Environment does not exist in Radix config, but exists in cluster // Example: Consistent - // Enum: [Pending Consistent Orphan] + // Enum: ["Pending","Consistent","Orphan"] Status string `json:"status,omitempty"` // active deployment diff --git a/generated-client/models/environment_summary.go b/generated-client/models/environment_summary.go index 9dc4b26..b0ce157 100644 --- a/generated-client/models/environment_summary.go +++ b/generated-client/models/environment_summary.go @@ -32,7 +32,7 @@ type EnvironmentSummary struct { // Consistent = Environment exists in Radix config and in cluster // Orphan = Environment does not exist in Radix config, but exists in cluster // Example: Consistent - // Enum: [Pending Consistent Orphan] + // Enum: ["Pending","Consistent","Orphan"] Status string `json:"status,omitempty"` // active deployment diff --git a/generated-client/models/image_hub_secret.go b/generated-client/models/image_hub_secret.go index 43793ea..4035ed4 100644 --- a/generated-client/models/image_hub_secret.go +++ b/generated-client/models/image_hub_secret.go @@ -33,7 +33,7 @@ type ImageHubSecret struct { // Pending = Secret value is not set // Consistent = Secret value is set // Example: Consistent - // Enum: [Pending Consistent] + // Enum: ["Pending","Consistent"] Status string `json:"status,omitempty"` // Username for connecting to private image hub diff --git a/generated-client/models/job.go b/generated-client/models/job.go index 489e8c6..808707b 100644 --- a/generated-client/models/job.go +++ b/generated-client/models/job.go @@ -55,7 +55,7 @@ type Job struct { // Name of the pipeline // Example: build-deploy - // Enum: [build build-deploy promote deploy] + // Enum: ["build","build-deploy","promote","deploy"] Pipeline string `json:"pipeline,omitempty"` // RadixDeployment name, which is promoted @@ -79,7 +79,7 @@ type Job struct { // Status of the job // Example: Waiting - // Enum: [Queued Waiting Running Succeeded Failed Stopped Stopping StoppedNoChanges] + // Enum: ["Queued","Waiting","Running","Succeeded","Failed","Stopped","Stopping","StoppedNoChanges"] Status string `json:"status,omitempty"` // Array of steps diff --git a/generated-client/models/job_summary.go b/generated-client/models/job_summary.go index 311626a..f68ab14 100644 --- a/generated-client/models/job_summary.go +++ b/generated-client/models/job_summary.go @@ -52,9 +52,12 @@ type JobSummary struct { // Example: radix-pipeline-20181029135644-algpv-6hznh Name string `json:"name,omitempty"` + // OverrideUseBuildCache override default or configured build cache option + OverrideUseBuildCache *bool `json:"overrideUseBuildCache,omitempty"` + // Name of the pipeline // Example: build-deploy - // Enum: [build build-deploy promote deploy] + // Enum: ["build","build-deploy","promote","deploy"] Pipeline string `json:"pipeline,omitempty"` // RadixDeployment name, which is promoted @@ -72,7 +75,7 @@ type JobSummary struct { // Status of the job // Example: Waiting - // Enum: [Queued Waiting Running Succeeded Failed Stopped Stopping StoppedNoChanges] + // Enum: ["Queued","Waiting","Running","Succeeded","Failed","Stopped","Stopping","StoppedNoChanges"] Status string `json:"status,omitempty"` // TriggeredBy user that triggered the job. If through webhook = sender.login. If through api - usertoken.upn diff --git a/generated-client/models/pipeline_parameters_build.go b/generated-client/models/pipeline_parameters_build.go index 3cc14ee..9edd0cc 100644 --- a/generated-client/models/pipeline_parameters_build.go +++ b/generated-client/models/pipeline_parameters_build.go @@ -39,6 +39,9 @@ type PipelineParametersBuild struct { // Example: master-latest ImageTag string `json:"imageTag,omitempty"` + // OverrideUseBuildCache override default or configured build cache option + OverrideUseBuildCache *bool `json:"overrideUseBuildCache,omitempty"` + // PushImage should image be pushed to container registry. Defaults pushing // Example: true PushImage string `json:"pushImage,omitempty"` diff --git a/generated-client/models/pipeline_run.go b/generated-client/models/pipeline_run.go index 9c74cc3..d21cd26 100644 --- a/generated-client/models/pipeline_run.go +++ b/generated-client/models/pipeline_run.go @@ -60,7 +60,7 @@ type PipelineRun struct { // TaskValidationFailed TaskRunReasonTaskFailedValidation TaskRunReasonTaskFailedValidation indicated that the reason for failure status is that task failed runtime validation // ResourceVerificationFailed TaskRunReasonResourceVerificationFailed TaskRunReasonResourceVerificationFailed indicates that the task fails the trusted resource verification, it could be the content has changed, signature is invalid or public key is invalid // FailureIgnored TaskRunReasonFailureIgnored TaskRunReasonFailureIgnored is the reason set when the Taskrun has failed due to pod execution error and the failure is ignored for the owning PipelineRun. TaskRuns failed due to reconciler/validation error should not use this reason. - // Enum: [Started Running Succeeded Failed ToBeRetried TaskRunCancelled TaskRunTimeout TaskRunImagePullFailed TaskRunResultLargerThanAllowedLimit TaskRunStopSidecarFailed InvalidParamValue TaskRunResolutionFailed TaskRunValidationFailed TaskValidationFailed ResourceVerificationFailed FailureIgnored] + // Enum: ["Started","Running","Succeeded","Failed","ToBeRetried","TaskRunCancelled","TaskRunTimeout","TaskRunImagePullFailed","TaskRunResultLargerThanAllowedLimit","TaskRunStopSidecarFailed","InvalidParamValue","TaskRunResolutionFailed","TaskRunValidationFailed","TaskValidationFailed","ResourceVerificationFailed","FailureIgnored"] Status string `json:"status,omitempty"` // StatusMessage of the task diff --git a/generated-client/models/pipeline_run_task.go b/generated-client/models/pipeline_run_task.go index 3350933..29b158e 100644 --- a/generated-client/models/pipeline_run_task.go +++ b/generated-client/models/pipeline_run_task.go @@ -82,7 +82,7 @@ type PipelineRunTask struct { // CreateRunFailed PipelineRunReasonCreateRunFailed ReasonCreateRunFailed indicates that the pipeline fails to create the taskrun or other run resources // CELEvaluationFailed PipelineRunReasonCELEvaluationFailed ReasonCELEvaluationFailed indicates the pipeline fails the CEL evaluation // InvalidParamValue PipelineRunReasonInvalidParamValue PipelineRunReasonInvalidParamValue indicates that the PipelineRun Param input value is not allowed. - // Enum: [Started Running Succeeded Completed Failed Cancelled PipelineRunPending PipelineRunTimeout PipelineRunStopping CancelledRunningFinally StoppedRunningFinally CouldntGetPipeline InvalidPipelineResourceBindings InvalidWorkspaceBindings InvalidTaskRunSpecs ParameterTypeMismatch ObjectParameterMissKeys ParamArrayIndexingInvalid CouldntGetTask ParameterMissing PipelineValidationFailed CouldntGetPipelineResult PipelineInvalidGraph PipelineRunCouldntCancel PipelineRunCouldntTimeOut InvalidMatrixParameterTypes InvalidTaskResultReference RequiredWorkspaceMarkedOptional ResolvingPipelineRef ResourceVerificationFailed CreateRunFailed CELEvaluationFailed InvalidParamValue] + // Enum: ["Started","Running","Succeeded","Completed","Failed","Cancelled","PipelineRunPending","PipelineRunTimeout","PipelineRunStopping","CancelledRunningFinally","StoppedRunningFinally","CouldntGetPipeline","InvalidPipelineResourceBindings","InvalidWorkspaceBindings","InvalidTaskRunSpecs","ParameterTypeMismatch","ObjectParameterMissKeys","ParamArrayIndexingInvalid","CouldntGetTask","ParameterMissing","PipelineValidationFailed","CouldntGetPipelineResult","PipelineInvalidGraph","PipelineRunCouldntCancel","PipelineRunCouldntTimeOut","InvalidMatrixParameterTypes","InvalidTaskResultReference","RequiredWorkspaceMarkedOptional","ResolvingPipelineRef","ResourceVerificationFailed","CreateRunFailed","CELEvaluationFailed","InvalidParamValue"] Status string `json:"status,omitempty"` // StatusMessage of the task diff --git a/generated-client/models/pipeline_run_task_step.go b/generated-client/models/pipeline_run_task_step.go index 4f76ecb..bffbd4d 100644 --- a/generated-client/models/pipeline_run_task_step.go +++ b/generated-client/models/pipeline_run_task_step.go @@ -50,7 +50,7 @@ type PipelineRunTaskStep struct { // TaskValidationFailed TaskRunReasonTaskFailedValidation TaskRunReasonTaskFailedValidation indicated that the reason for failure status is that task failed runtime validation // ResourceVerificationFailed TaskRunReasonResourceVerificationFailed TaskRunReasonResourceVerificationFailed indicates that the task fails the trusted resource verification, it could be the content has changed, signature is invalid or public key is invalid // FailureIgnored TaskRunReasonFailureIgnored TaskRunReasonFailureIgnored is the reason set when the Taskrun has failed due to pod execution error and the failure is ignored for the owning PipelineRun. TaskRuns failed due to reconciler/validation error should not use this reason. - // Enum: [Started Running Succeeded Failed ToBeRetried TaskRunCancelled TaskRunTimeout TaskRunImagePullFailed TaskRunResultLargerThanAllowedLimit TaskRunStopSidecarFailed InvalidParamValue TaskRunResolutionFailed TaskRunValidationFailed TaskValidationFailed ResourceVerificationFailed FailureIgnored] + // Enum: ["Started","Running","Succeeded","Failed","ToBeRetried","TaskRunCancelled","TaskRunTimeout","TaskRunImagePullFailed","TaskRunResultLargerThanAllowedLimit","TaskRunStopSidecarFailed","InvalidParamValue","TaskRunResolutionFailed","TaskRunValidationFailed","TaskValidationFailed","ResourceVerificationFailed","FailureIgnored"] Status string `json:"status,omitempty"` // StatusMessage of the task diff --git a/generated-client/models/replica_status.go b/generated-client/models/replica_status.go index 8dbb227..40d51d8 100644 --- a/generated-client/models/replica_status.go +++ b/generated-client/models/replica_status.go @@ -39,7 +39,7 @@ type ReplicaStatus struct { // Succeeded Succeeded Succeeded all containers in the pod have voluntarily terminated // Example: Running // Required: true - // Enum: [Pending Failed Failing Running Terminated Starting Stopped Succeeded] + // Enum: ["Pending","Failed","Failing","Running","Terminated","Starting","Stopped","Succeeded"] Status *string `json:"status"` } diff --git a/generated-client/models/replica_summary.go b/generated-client/models/replica_summary.go index 69015e3..776507f 100644 --- a/generated-client/models/replica_summary.go +++ b/generated-client/models/replica_summary.go @@ -72,7 +72,7 @@ type ReplicaSummary struct { // OAuth2 = Replica of a Radix OAuth2 component // Undefined = Replica without defined type - to be extended // Example: ComponentReplica - // Enum: [ComponentReplica ScheduledJobReplica JobManager JobManagerAux OAuth2 Undefined] + // Enum: ["ComponentReplica","ScheduledJobReplica","JobManager","JobManagerAux","OAuth2","Undefined"] Type string `json:"type,omitempty"` // replica status diff --git a/generated-client/models/scheduled_batch_summary.go b/generated-client/models/scheduled_batch_summary.go index c447374..f15710a 100644 --- a/generated-client/models/scheduled_batch_summary.go +++ b/generated-client/models/scheduled_batch_summary.go @@ -60,7 +60,7 @@ type ScheduledBatchSummary struct { // Completed ScheduledBatchJobStatusCompleted ScheduledBatchJobStatusCompleted batch jobs are completed // Example: Waiting // Required: true - // Enum: [Running Succeeded Failed Waiting Stopping Stopped Active Completed] + // Enum: ["Running","Succeeded","Failed","Waiting","Stopping","Stopped","Active","Completed"] Status *string `json:"status"` // TotalJobCount count of jobs, requested to be scheduled by a batch diff --git a/generated-client/models/scheduled_job_summary.go b/generated-client/models/scheduled_job_summary.go index 3e4b12e..7e2667e 100644 --- a/generated-client/models/scheduled_job_summary.go +++ b/generated-client/models/scheduled_job_summary.go @@ -80,7 +80,7 @@ type ScheduledJobSummary struct { // Completed ScheduledBatchJobStatusCompleted ScheduledBatchJobStatusCompleted batch jobs are completed // Example: Waiting // Required: true - // Enum: [Running Succeeded Failed Waiting Stopping Stopped Active Completed] + // Enum: ["Running","Succeeded","Failed","Waiting","Stopping","Stopped","Active","Completed"] Status *string `json:"status"` // TimeLimitSeconds How long the job supposed to run at maximum diff --git a/generated-client/models/secret.go b/generated-client/models/secret.go index e332d9d..2b4762b 100644 --- a/generated-client/models/secret.go +++ b/generated-client/models/secret.go @@ -46,7 +46,7 @@ type Secret struct { // Consistent = Secret exists in Radix config and in cluster // NotAvailable = Secret is available in external secret configuration but not in cluster // Example: Consistent - // Enum: [Pending Consistent NotAvailable] + // Enum: ["Pending","Consistent","NotAvailable"] Status string `json:"status,omitempty"` // Type of the secret @@ -58,7 +58,7 @@ type Secret struct { // client-cert-auth SecretTypeClientCertificateAuth // oauth2-proxy SecretTypeOAuth2Proxy // Example: client-cert - // Enum: [generic azure-blob-fuse-volume csi-azure-blob-volume csi-azure-key-vault-creds csi-azure-key-vault-item client-cert-auth oauth2-proxy] + // Enum: ["generic","azure-blob-fuse-volume","csi-azure-blob-volume","csi-azure-key-vault-creds","csi-azure-key-vault-item","client-cert-auth","oauth2-proxy"] Type string `json:"type,omitempty"` } diff --git a/generated-client/models/secret_parameters.go b/generated-client/models/secret_parameters.go index 643f646..3efb058 100644 --- a/generated-client/models/secret_parameters.go +++ b/generated-client/models/secret_parameters.go @@ -34,7 +34,7 @@ type SecretParameters struct { // client-cert-auth SecretTypeClientCertificateAuth // oauth2-proxy SecretTypeOAuth2Proxy // Example: azure-blob-fuse-volume - // Enum: [generic azure-blob-fuse-volume csi-azure-blob-volume csi-azure-key-vault-creds csi-azure-key-vault-item client-cert-auth oauth2-proxy] + // Enum: ["generic","azure-blob-fuse-volume","csi-azure-blob-volume","csi-azure-key-vault-creds","csi-azure-key-vault-item","client-cert-auth","oauth2-proxy"] Type string `json:"type,omitempty"` } diff --git a/generated-client/models/step.go b/generated-client/models/step.go index b47e10f..2e71839 100644 --- a/generated-client/models/step.go +++ b/generated-client/models/step.go @@ -37,7 +37,7 @@ type Step struct { // Status of the step // Example: Waiting - // Enum: [Queued Waiting Running Succeeded Failed Stopped StoppedNoChanges] + // Enum: ["Queued","Waiting","Running","Succeeded","Failed","Stopped","StoppedNoChanges"] Status string `json:"status,omitempty"` } diff --git a/generated-client/models/tls.go b/generated-client/models/tls.go index 8156c9d..073d35d 100644 --- a/generated-client/models/tls.go +++ b/generated-client/models/tls.go @@ -31,7 +31,7 @@ type TLS struct { // Invalid TLSStatusInvalid TLS certificate and private key is invalid // Example: Consistent // Required: true - // Enum: [Pending Consistent Invalid] + // Enum: ["Pending","Consistent","Invalid"] Status *string `json:"status"` // StatusMessages contains a list of messages related to Status diff --git a/generated-client/models/tls_automation.go b/generated-client/models/tls_automation.go index 0429996..852bf6d 100644 --- a/generated-client/models/tls_automation.go +++ b/generated-client/models/tls_automation.go @@ -29,7 +29,7 @@ type TLSAutomation struct { // Failed TLSAutomationFailed Certificate automation request failed // Example: Pending // Required: true - // Enum: [Pending Success Failed] + // Enum: ["Pending","Success","Failed"] Status *string `json:"status"` } diff --git a/go.mod b/go.mod index 1858b12..50430a7 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,8 @@ toolchain go1.22.5 require ( github.com/AzureAD/microsoft-authentication-library-for-go v1.2.2 - github.com/equinor/radix-operator v1.57.4 + github.com/equinor/radix-common v1.9.3 + github.com/equinor/radix-operator v1.57.18 github.com/fatih/color v1.17.0 github.com/go-openapi/errors v0.22.0 github.com/go-openapi/runtime v0.28.0 @@ -27,7 +28,6 @@ require ( github.com/cespare/xxhash/v2 v2.2.0 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/emicklei/go-restful/v3 v3.11.2 // indirect - github.com/equinor/radix-common v1.9.2 // indirect github.com/evanphx/json-patch v5.8.1+incompatible // indirect github.com/evanphx/json-patch/v5 v5.9.0 // indirect github.com/expr-lang/expr v1.15.8 // indirect @@ -40,7 +40,7 @@ require ( github.com/go-openapi/loads v0.22.0 // indirect github.com/go-openapi/spec v0.21.0 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang-jwt/jwt/v5 v5.2.0 // indirect + github.com/golang-jwt/jwt/v5 v5.2.1 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/mock v1.6.0 // indirect github.com/golang/protobuf v1.5.4 // indirect @@ -72,23 +72,23 @@ require ( github.com/prometheus/common v0.53.0 // indirect github.com/prometheus/procfs v0.12.0 // indirect github.com/robfig/cron/v3 v3.0.1 // indirect - github.com/rs/zerolog v1.32.0 // indirect + github.com/rs/zerolog v1.33.0 // indirect github.com/spf13/pflag v1.0.5 // indirect go.mongodb.org/mongo-driver v1.14.0 // indirect go.opentelemetry.io/otel v1.24.0 // indirect go.opentelemetry.io/otel/metric v1.24.0 // indirect go.opentelemetry.io/otel/trace v1.24.0 // indirect - golang.org/x/crypto v0.22.0 // indirect + golang.org/x/crypto v0.23.0 // indirect golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3 // indirect - golang.org/x/net v0.24.0 // indirect + golang.org/x/net v0.25.0 // indirect golang.org/x/oauth2 v0.19.0 // indirect golang.org/x/sync v0.7.0 // indirect - golang.org/x/sys v0.19.0 // indirect - golang.org/x/term v0.19.0 // indirect - golang.org/x/text v0.14.0 // indirect + golang.org/x/sys v0.20.0 // indirect + golang.org/x/term v0.20.0 // indirect + golang.org/x/text v0.15.0 // indirect golang.org/x/time v0.5.0 // indirect gomodules.xyz/jsonpatch/v2 v2.4.0 // indirect - google.golang.org/protobuf v1.33.0 // indirect + google.golang.org/protobuf v1.34.1 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/go.sum b/go.sum index 18939e4..fdac6cc 100644 --- a/go.sum +++ b/go.sum @@ -18,10 +18,10 @@ github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1 github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/emicklei/go-restful/v3 v3.11.2 h1:1onLa9DcsMYO9P+CXaL0dStDqQ2EHHXLiz+BtnqkLAU= github.com/emicklei/go-restful/v3 v3.11.2/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= -github.com/equinor/radix-common v1.9.2 h1:pOYN/mSAoPe6KO/Nvudfd5DUETbLv4nLTLzFPr62ADw= -github.com/equinor/radix-common v1.9.2/go.mod h1:ekn86U68NT4ccSdt3GT+ukpiclzfuhr96a7zBJKv/jw= -github.com/equinor/radix-operator v1.57.4 h1:Rr/bjxU+ABWyk1UM9QknMmOHQxiwHi/HHjeA+50fUNU= -github.com/equinor/radix-operator v1.57.4/go.mod h1:zCdAiP/wxyvlUO4qGoJuLW3O+ZSt9kTyHMnjmsR3fCU= +github.com/equinor/radix-common v1.9.3 h1:dLKFzYy8/XyEG9Zygi0rMWIYGCddai/ILwUqjBiGYxQ= +github.com/equinor/radix-common v1.9.3/go.mod h1:+g0Wj0D40zz29DjNkYKVmCVeYy4OsFWKI7Qi9rA6kpY= +github.com/equinor/radix-operator v1.57.18 h1:+zPaeZKfErjXE9O2+EjtUenrKw2nabq3e0y5VBjlwHA= +github.com/equinor/radix-operator v1.57.18/go.mod h1:zCdAiP/wxyvlUO4qGoJuLW3O+ZSt9kTyHMnjmsR3fCU= github.com/evanphx/json-patch v5.8.1+incompatible h1:2toJaoe7/rNa1zpeQx0UnVEjqk6z2ecyA20V/zg8vTU= github.com/evanphx/json-patch v5.8.1+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= github.com/evanphx/json-patch/v5 v5.9.0 h1:kcBlZQbplgElYIlo/n1hJbls2z/1awpXxpRi0/FOJfg= @@ -64,8 +64,8 @@ github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4 github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang-jwt/jwt/v5 v5.2.0 h1:d/ix8ftRUorsN+5eMIlF4T6J8CAt9rch3My2winC1Jw= -github.com/golang-jwt/jwt/v5 v5.2.0/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= +github.com/golang-jwt/jwt/v5 v5.2.1 h1:OuVbFODueb089Lh128TAcimifWaLhJwVflnrgM17wHk= +github.com/golang-jwt/jwt/v5 v5.2.1/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= @@ -152,8 +152,8 @@ github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzG github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= -github.com/rs/zerolog v1.32.0 h1:keLypqrlIjaFsbmJOBdB/qvyF8KEtCWHwobLp5l/mQ0= -github.com/rs/zerolog v1.32.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= +github.com/rs/zerolog v1.33.0 h1:1cU2KZkvPxNyfgEmhHAz/1A9Bz+llsdYzklWFzgp0r8= +github.com/rs/zerolog v1.33.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 h1:lZUw3E0/J3roVtGQ+SCrUrg3ON6NgVqpn3+iol9aGu4= github.com/santhosh-tekuri/jsonschema/v5 v5.3.1/go.mod h1:uToXkOrWAZ6/Oc07xWQrPOhJotwFIyu2bBVN41fcDUY= @@ -190,8 +190,8 @@ go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30= -golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= +golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI= +golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3 h1:hNQpMuAJe5CtcUqCXaWga3FHu+kQvCqcsoVaQgSV60o= golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3/go.mod h1:idGWGoKP1toJGkd5/ig9ZLuPcZBC3ewk7SzmH0uou08= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= @@ -204,8 +204,8 @@ golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w= -golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= +golang.org/x/net v0.25.0 h1:d/OCCoBEUq33pjydKrGQhw7IlUPI2Oylr+8qLx49kac= +golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= golang.org/x/oauth2 v0.19.0 h1:9+E/EZBCbTLNrbN35fHv/a/d/mOBatymz1zbtQrXpIg= golang.org/x/oauth2 v0.19.0/go.mod h1:vYi7skDa1x015PmRRYZ7+s1cWyPgrPiSYRe4rnsexc8= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -225,15 +225,15 @@ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= -golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= +golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.19.0 h1:+ThwsDv+tYfnJFhF4L8jITxu1tdTWRTZpdsWgEgjL6Q= -golang.org/x/term v0.19.0/go.mod h1:2CuTdWZ7KHSQwUzKva0cbMg6q2DMI3Mmxp+gKJbskEk= +golang.org/x/term v0.20.0 h1:VnkxpohqXaOBYJtBmEppKUG6mXpi+4O6purfc2+sMhw= +golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk= +golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= @@ -249,8 +249,8 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gomodules.xyz/jsonpatch/v2 v2.4.0 h1:Ci3iUJyx9UeRx7CeFN8ARgGbkESwJK+KB9lLcWxY/Zw= gomodules.xyz/jsonpatch/v2 v2.4.0/go.mod h1:AH3dM2RI6uoBZxn3LVrfvJ3E0/9dG4cSrbuBJT4moAY= -google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= -google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.34.1 h1:9ddQBjfCyZPOHPUiPxpYESBLc+T8P3E+Vo4IbKZgFWg= +google.golang.org/protobuf v1.34.1/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= diff --git a/pkg/flagnames/names.go b/pkg/flagnames/names.go index c5ae242..b545127 100644 --- a/pkg/flagnames/names.go +++ b/pkg/flagnames/names.go @@ -41,6 +41,7 @@ const ( TokenEnvironment = "token-environment" TokenStdin = "token-stdin" UseActiveDeployment = "use-active-deployment" + UseBuildCache = "use-build-cache" UseDeviceCode = "use-device-code" User = "user" Variable = "variable" diff --git a/pkg/model/bool_ptr.go b/pkg/model/bool_ptr.go new file mode 100644 index 0000000..79147b0 --- /dev/null +++ b/pkg/model/bool_ptr.go @@ -0,0 +1,36 @@ +package model + +import "strconv" + +// BoolPtr Nillable bool type +type BoolPtr struct { + value *bool +} + +// String returns the string representation of the nillable boolean +func (b *BoolPtr) String() string { + if b.value == nil { + return "nil" + } + return strconv.FormatBool(*b.value) +} + +// Set a new value +func (b *BoolPtr) Set(s string) error { + v, err := strconv.ParseBool(s) + if err != nil { + return err + } + b.value = &v + return nil +} + +// Type returns the type of the nillable boolean +func (b *BoolPtr) Type() string { + return "bool" +} + +// Get the value of the nillable boolean +func (b *BoolPtr) Get() *bool { + return b.value +}