diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/complete_git_hub_install_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/complete_git_hub_install_responses.go index 37412438..31a6a57b 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/complete_git_hub_install_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/complete_git_hub_install_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *CompleteGitHubInstallOK) Code() int { } func (o *CompleteGitHubInstallOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/sync/github/callback][%d] completeGitHubInstallOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/sync/github/callback][%d] completeGitHubInstallOK %s", 200, payload) } func (o *CompleteGitHubInstallOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/sync/github/callback][%d] completeGitHubInstallOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/sync/github/callback][%d] completeGitHubInstallOK %s", 200, payload) } func (o *CompleteGitHubInstallOK) GetPayload() *models.APIHTTPBody { @@ -158,11 +161,13 @@ func (o *CompleteGitHubInstallDefault) Code() int { } func (o *CompleteGitHubInstallDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/sync/github/callback][%d] CompleteGitHubInstall default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/sync/github/callback][%d] CompleteGitHubInstall default %s", o._statusCode, payload) } func (o *CompleteGitHubInstallDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/sync/github/callback][%d] CompleteGitHubInstall default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/sync/github/callback][%d] CompleteGitHubInstall default %s", o._statusCode, payload) } func (o *CompleteGitHubInstallDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/complete_vercel_installation_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/complete_vercel_installation_responses.go index db4aef38..ed7610f8 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/complete_vercel_installation_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/complete_vercel_installation_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *CompleteVercelInstallationOK) Code() int { } func (o *CompleteVercelInstallationOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/sync/vercel/callback][%d] completeVercelInstallationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/sync/vercel/callback][%d] completeVercelInstallationOK %s", 200, payload) } func (o *CompleteVercelInstallationOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/sync/vercel/callback][%d] completeVercelInstallationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/sync/vercel/callback][%d] completeVercelInstallationOK %s", 200, payload) } func (o *CompleteVercelInstallationOK) GetPayload() *models.APIHTTPBody { @@ -158,11 +161,13 @@ func (o *CompleteVercelInstallationDefault) Code() int { } func (o *CompleteVercelInstallationDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/sync/vercel/callback][%d] CompleteVercelInstallation default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/sync/vercel/callback][%d] CompleteVercelInstallation default %s", o._statusCode, payload) } func (o *CompleteVercelInstallationDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/sync/vercel/callback][%d] CompleteVercelInstallation default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/sync/vercel/callback][%d] CompleteVercelInstallation default %s", o._statusCode, payload) } func (o *CompleteVercelInstallationDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/connect_git_hub_installation_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/connect_git_hub_installation_responses.go index c00390f5..f2019250 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/connect_git_hub_installation_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/connect_git_hub_installation_responses.go @@ -7,6 +7,7 @@ package secret_service import ( "context" + "encoding/json" "fmt" "io" @@ -89,11 +90,13 @@ func (o *ConnectGitHubInstallationOK) Code() int { } func (o *ConnectGitHubInstallationOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/installations][%d] connectGitHubInstallationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/installations][%d] connectGitHubInstallationOK %s", 200, payload) } func (o *ConnectGitHubInstallationOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/installations][%d] connectGitHubInstallationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/installations][%d] connectGitHubInstallationOK %s", 200, payload) } func (o *ConnectGitHubInstallationOK) GetPayload() *models.Secrets20230613ConnectGitHubInstallationResponse { @@ -161,11 +164,13 @@ func (o *ConnectGitHubInstallationDefault) Code() int { } func (o *ConnectGitHubInstallationDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/installations][%d] ConnectGitHubInstallation default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/installations][%d] ConnectGitHubInstallation default %s", o._statusCode, payload) } func (o *ConnectGitHubInstallationDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/installations][%d] ConnectGitHubInstallation default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/installations][%d] ConnectGitHubInstallation default %s", o._statusCode, payload) } func (o *ConnectGitHubInstallationDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_app_k_v_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_app_k_v_secret_responses.go index 5cdee88e..965fc40a 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_app_k_v_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_app_k_v_secret_responses.go @@ -7,6 +7,7 @@ package secret_service import ( "context" + "encoding/json" "fmt" "io" @@ -89,11 +90,13 @@ func (o *CreateAppKVSecretOK) Code() int { } func (o *CreateAppKVSecretOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/kv][%d] createAppKVSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/kv][%d] createAppKVSecretOK %s", 200, payload) } func (o *CreateAppKVSecretOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/kv][%d] createAppKVSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/kv][%d] createAppKVSecretOK %s", 200, payload) } func (o *CreateAppKVSecretOK) GetPayload() *models.Secrets20230613CreateAppKVSecretResponse { @@ -161,11 +164,13 @@ func (o *CreateAppKVSecretDefault) Code() int { } func (o *CreateAppKVSecretDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/kv][%d] CreateAppKVSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/kv][%d] CreateAppKVSecret default %s", o._statusCode, payload) } func (o *CreateAppKVSecretDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/kv][%d] CreateAppKVSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/kv][%d] CreateAppKVSecret default %s", o._statusCode, payload) } func (o *CreateAppKVSecretDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_app_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_app_responses.go index ba5c9090..1d322cbb 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_app_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_app_responses.go @@ -7,6 +7,7 @@ package secret_service import ( "context" + "encoding/json" "fmt" "io" @@ -89,11 +90,13 @@ func (o *CreateAppOK) Code() int { } func (o *CreateAppOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps][%d] createAppOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps][%d] createAppOK %s", 200, payload) } func (o *CreateAppOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps][%d] createAppOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps][%d] createAppOK %s", 200, payload) } func (o *CreateAppOK) GetPayload() *models.Secrets20230613CreateAppResponse { @@ -161,11 +164,13 @@ func (o *CreateAppDefault) Code() int { } func (o *CreateAppDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps][%d] CreateApp default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps][%d] CreateApp default %s", o._statusCode, payload) } func (o *CreateAppDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps][%d] CreateApp default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps][%d] CreateApp default %s", o._statusCode, payload) } func (o *CreateAppDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_aws_sm_sync_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_aws_sm_sync_integration_responses.go index 53d2a9a1..118bdaa5 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_aws_sm_sync_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_aws_sm_sync_integration_responses.go @@ -7,6 +7,7 @@ package secret_service import ( "context" + "encoding/json" "fmt" "io" @@ -89,11 +90,13 @@ func (o *CreateAwsSmSyncIntegrationOK) Code() int { } func (o *CreateAwsSmSyncIntegrationOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/aws-sm][%d] createAwsSmSyncIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/aws-sm][%d] createAwsSmSyncIntegrationOK %s", 200, payload) } func (o *CreateAwsSmSyncIntegrationOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/aws-sm][%d] createAwsSmSyncIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/aws-sm][%d] createAwsSmSyncIntegrationOK %s", 200, payload) } func (o *CreateAwsSmSyncIntegrationOK) GetPayload() *models.Secrets20230613CreateSyncIntegrationResponse { @@ -161,11 +164,13 @@ func (o *CreateAwsSmSyncIntegrationDefault) Code() int { } func (o *CreateAwsSmSyncIntegrationDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/aws-sm][%d] CreateAwsSmSyncIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/aws-sm][%d] CreateAwsSmSyncIntegration default %s", o._statusCode, payload) } func (o *CreateAwsSmSyncIntegrationDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/aws-sm][%d] CreateAwsSmSyncIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/aws-sm][%d] CreateAwsSmSyncIntegration default %s", o._statusCode, payload) } func (o *CreateAwsSmSyncIntegrationDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_azure_kv_sync_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_azure_kv_sync_integration_responses.go index e98bb2a9..eb26f04f 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_azure_kv_sync_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_azure_kv_sync_integration_responses.go @@ -7,6 +7,7 @@ package secret_service import ( "context" + "encoding/json" "fmt" "io" @@ -89,11 +90,13 @@ func (o *CreateAzureKvSyncIntegrationOK) Code() int { } func (o *CreateAzureKvSyncIntegrationOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/azure-kv][%d] createAzureKvSyncIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/azure-kv][%d] createAzureKvSyncIntegrationOK %s", 200, payload) } func (o *CreateAzureKvSyncIntegrationOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/azure-kv][%d] createAzureKvSyncIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/azure-kv][%d] createAzureKvSyncIntegrationOK %s", 200, payload) } func (o *CreateAzureKvSyncIntegrationOK) GetPayload() *models.Secrets20230613CreateSyncIntegrationResponse { @@ -161,11 +164,13 @@ func (o *CreateAzureKvSyncIntegrationDefault) Code() int { } func (o *CreateAzureKvSyncIntegrationDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/azure-kv][%d] CreateAzureKvSyncIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/azure-kv][%d] CreateAzureKvSyncIntegration default %s", o._statusCode, payload) } func (o *CreateAzureKvSyncIntegrationDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/azure-kv][%d] CreateAzureKvSyncIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/azure-kv][%d] CreateAzureKvSyncIntegration default %s", o._statusCode, payload) } func (o *CreateAzureKvSyncIntegrationDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_gcp_sm_sync_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_gcp_sm_sync_integration_responses.go index 2fbf42c0..d7d3b74f 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_gcp_sm_sync_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_gcp_sm_sync_integration_responses.go @@ -7,6 +7,7 @@ package secret_service import ( "context" + "encoding/json" "fmt" "io" @@ -89,11 +90,13 @@ func (o *CreateGcpSmSyncIntegrationOK) Code() int { } func (o *CreateGcpSmSyncIntegrationOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/gcp-sm][%d] createGcpSmSyncIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/gcp-sm][%d] createGcpSmSyncIntegrationOK %s", 200, payload) } func (o *CreateGcpSmSyncIntegrationOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/gcp-sm][%d] createGcpSmSyncIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/gcp-sm][%d] createGcpSmSyncIntegrationOK %s", 200, payload) } func (o *CreateGcpSmSyncIntegrationOK) GetPayload() *models.Secrets20230613CreateSyncIntegrationResponse { @@ -161,11 +164,13 @@ func (o *CreateGcpSmSyncIntegrationDefault) Code() int { } func (o *CreateGcpSmSyncIntegrationDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/gcp-sm][%d] CreateGcpSmSyncIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/gcp-sm][%d] CreateGcpSmSyncIntegration default %s", o._statusCode, payload) } func (o *CreateGcpSmSyncIntegrationDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/gcp-sm][%d] CreateGcpSmSyncIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/gcp-sm][%d] CreateGcpSmSyncIntegration default %s", o._statusCode, payload) } func (o *CreateGcpSmSyncIntegrationDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_gh_org_sync_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_gh_org_sync_integration_responses.go index 478df774..c5b55529 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_gh_org_sync_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_gh_org_sync_integration_responses.go @@ -7,6 +7,7 @@ package secret_service import ( "context" + "encoding/json" "fmt" "io" @@ -89,11 +90,13 @@ func (o *CreateGhOrgSyncIntegrationOK) Code() int { } func (o *CreateGhOrgSyncIntegrationOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/gh-org][%d] createGhOrgSyncIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/gh-org][%d] createGhOrgSyncIntegrationOK %s", 200, payload) } func (o *CreateGhOrgSyncIntegrationOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/gh-org][%d] createGhOrgSyncIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/gh-org][%d] createGhOrgSyncIntegrationOK %s", 200, payload) } func (o *CreateGhOrgSyncIntegrationOK) GetPayload() *models.Secrets20230613CreateSyncIntegrationResponse { @@ -161,11 +164,13 @@ func (o *CreateGhOrgSyncIntegrationDefault) Code() int { } func (o *CreateGhOrgSyncIntegrationDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/gh-org][%d] CreateGhOrgSyncIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/gh-org][%d] CreateGhOrgSyncIntegration default %s", o._statusCode, payload) } func (o *CreateGhOrgSyncIntegrationDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/gh-org][%d] CreateGhOrgSyncIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/gh-org][%d] CreateGhOrgSyncIntegration default %s", o._statusCode, payload) } func (o *CreateGhOrgSyncIntegrationDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_gh_repo_sync_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_gh_repo_sync_integration_responses.go index 81d3cef1..3d551988 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_gh_repo_sync_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_gh_repo_sync_integration_responses.go @@ -7,6 +7,7 @@ package secret_service import ( "context" + "encoding/json" "fmt" "io" @@ -89,11 +90,13 @@ func (o *CreateGhRepoSyncIntegrationOK) Code() int { } func (o *CreateGhRepoSyncIntegrationOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/gh-repo][%d] createGhRepoSyncIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/gh-repo][%d] createGhRepoSyncIntegrationOK %s", 200, payload) } func (o *CreateGhRepoSyncIntegrationOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/gh-repo][%d] createGhRepoSyncIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/gh-repo][%d] createGhRepoSyncIntegrationOK %s", 200, payload) } func (o *CreateGhRepoSyncIntegrationOK) GetPayload() *models.Secrets20230613CreateSyncIntegrationResponse { @@ -161,11 +164,13 @@ func (o *CreateGhRepoSyncIntegrationDefault) Code() int { } func (o *CreateGhRepoSyncIntegrationDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/gh-repo][%d] CreateGhRepoSyncIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/gh-repo][%d] CreateGhRepoSyncIntegration default %s", o._statusCode, payload) } func (o *CreateGhRepoSyncIntegrationDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/gh-repo][%d] CreateGhRepoSyncIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/gh-repo][%d] CreateGhRepoSyncIntegration default %s", o._statusCode, payload) } func (o *CreateGhRepoSyncIntegrationDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_hcp_terraform_sync_installation_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_hcp_terraform_sync_installation_responses.go index 50c7b0ce..8999e807 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_hcp_terraform_sync_installation_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_hcp_terraform_sync_installation_responses.go @@ -7,6 +7,7 @@ package secret_service import ( "context" + "encoding/json" "fmt" "io" @@ -89,11 +90,13 @@ func (o *CreateHcpTerraformSyncInstallationOK) Code() int { } func (o *CreateHcpTerraformSyncInstallationOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/hcp-terraform/installations][%d] createHcpTerraformSyncInstallationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/hcp-terraform/installations][%d] createHcpTerraformSyncInstallationOK %s", 200, payload) } func (o *CreateHcpTerraformSyncInstallationOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/hcp-terraform/installations][%d] createHcpTerraformSyncInstallationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/hcp-terraform/installations][%d] createHcpTerraformSyncInstallationOK %s", 200, payload) } func (o *CreateHcpTerraformSyncInstallationOK) GetPayload() *models.Secrets20230613GetSyncInstallationResponse { @@ -161,11 +164,13 @@ func (o *CreateHcpTerraformSyncInstallationDefault) Code() int { } func (o *CreateHcpTerraformSyncInstallationDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/hcp-terraform/installations][%d] CreateHcpTerraformSyncInstallation default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/hcp-terraform/installations][%d] CreateHcpTerraformSyncInstallation default %s", o._statusCode, payload) } func (o *CreateHcpTerraformSyncInstallationDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/hcp-terraform/installations][%d] CreateHcpTerraformSyncInstallation default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/hcp-terraform/installations][%d] CreateHcpTerraformSyncInstallation default %s", o._statusCode, payload) } func (o *CreateHcpTerraformSyncInstallationDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_hcp_terraform_sync_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_hcp_terraform_sync_integration_responses.go index 994779a7..e3713862 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_hcp_terraform_sync_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_hcp_terraform_sync_integration_responses.go @@ -7,6 +7,7 @@ package secret_service import ( "context" + "encoding/json" "fmt" "io" @@ -89,11 +90,13 @@ func (o *CreateHcpTerraformSyncIntegrationOK) Code() int { } func (o *CreateHcpTerraformSyncIntegrationOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/hcp-terraform][%d] createHcpTerraformSyncIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/hcp-terraform][%d] createHcpTerraformSyncIntegrationOK %s", 200, payload) } func (o *CreateHcpTerraformSyncIntegrationOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/hcp-terraform][%d] createHcpTerraformSyncIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/hcp-terraform][%d] createHcpTerraformSyncIntegrationOK %s", 200, payload) } func (o *CreateHcpTerraformSyncIntegrationOK) GetPayload() *models.Secrets20230613CreateSyncIntegrationResponse { @@ -161,11 +164,13 @@ func (o *CreateHcpTerraformSyncIntegrationDefault) Code() int { } func (o *CreateHcpTerraformSyncIntegrationDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/hcp-terraform][%d] CreateHcpTerraformSyncIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/hcp-terraform][%d] CreateHcpTerraformSyncIntegration default %s", o._statusCode, payload) } func (o *CreateHcpTerraformSyncIntegrationDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/hcp-terraform][%d] CreateHcpTerraformSyncIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/hcp-terraform][%d] CreateHcpTerraformSyncIntegration default %s", o._statusCode, payload) } func (o *CreateHcpTerraformSyncIntegrationDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_vercel_project_sync_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_vercel_project_sync_integration_responses.go index ede5bb99..800b7548 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_vercel_project_sync_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/create_vercel_project_sync_integration_responses.go @@ -7,6 +7,7 @@ package secret_service import ( "context" + "encoding/json" "fmt" "io" @@ -89,11 +90,13 @@ func (o *CreateVercelProjectSyncIntegrationOK) Code() int { } func (o *CreateVercelProjectSyncIntegrationOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/vercel-project][%d] createVercelProjectSyncIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/vercel-project][%d] createVercelProjectSyncIntegrationOK %s", 200, payload) } func (o *CreateVercelProjectSyncIntegrationOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/vercel-project][%d] createVercelProjectSyncIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/vercel-project][%d] createVercelProjectSyncIntegrationOK %s", 200, payload) } func (o *CreateVercelProjectSyncIntegrationOK) GetPayload() *models.Secrets20230613CreateSyncIntegrationResponse { @@ -161,11 +164,13 @@ func (o *CreateVercelProjectSyncIntegrationDefault) Code() int { } func (o *CreateVercelProjectSyncIntegrationDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/vercel-project][%d] CreateVercelProjectSyncIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/vercel-project][%d] CreateVercelProjectSyncIntegration default %s", o._statusCode, payload) } func (o *CreateVercelProjectSyncIntegrationDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/vercel-project][%d] CreateVercelProjectSyncIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/vercel-project][%d] CreateVercelProjectSyncIntegration default %s", o._statusCode, payload) } func (o *CreateVercelProjectSyncIntegrationDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/delete_app_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/delete_app_responses.go index 60875d4a..915f9d8d 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/delete_app_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/delete_app_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *DeleteAppOK) Code() int { } func (o *DeleteAppOK) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{name}][%d] deleteAppOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{name}][%d] deleteAppOK %s", 200, payload) } func (o *DeleteAppOK) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{name}][%d] deleteAppOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{name}][%d] deleteAppOK %s", 200, payload) } func (o *DeleteAppOK) GetPayload() models.Secrets20230613DeleteAppResponse { @@ -156,11 +159,13 @@ func (o *DeleteAppDefault) Code() int { } func (o *DeleteAppDefault) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{name}][%d] DeleteApp default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{name}][%d] DeleteApp default %s", o._statusCode, payload) } func (o *DeleteAppDefault) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{name}][%d] DeleteApp default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{name}][%d] DeleteApp default %s", o._statusCode, payload) } func (o *DeleteAppDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/delete_app_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/delete_app_secret_responses.go index a2b44efe..f8d57b16 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/delete_app_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/delete_app_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *DeleteAppSecretOK) Code() int { } func (o *DeleteAppSecretOK) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}][%d] deleteAppSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}][%d] deleteAppSecretOK %s", 200, payload) } func (o *DeleteAppSecretOK) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}][%d] deleteAppSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}][%d] deleteAppSecretOK %s", 200, payload) } func (o *DeleteAppSecretOK) GetPayload() models.Secrets20230613DeleteAppSecretResponse { @@ -156,11 +159,13 @@ func (o *DeleteAppSecretDefault) Code() int { } func (o *DeleteAppSecretDefault) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}][%d] DeleteAppSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}][%d] DeleteAppSecret default %s", o._statusCode, payload) } func (o *DeleteAppSecretDefault) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}][%d] DeleteAppSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}][%d] DeleteAppSecret default %s", o._statusCode, payload) } func (o *DeleteAppSecretDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/delete_app_secret_version_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/delete_app_secret_version_responses.go index aa144472..79d7d99b 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/delete_app_secret_version_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/delete_app_secret_version_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *DeleteAppSecretVersionOK) Code() int { } func (o *DeleteAppSecretVersionOK) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] deleteAppSecretVersionOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] deleteAppSecretVersionOK %s", 200, payload) } func (o *DeleteAppSecretVersionOK) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] deleteAppSecretVersionOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] deleteAppSecretVersionOK %s", 200, payload) } func (o *DeleteAppSecretVersionOK) GetPayload() models.Secrets20230613DeleteAppSecretVersionResponse { @@ -156,11 +159,13 @@ func (o *DeleteAppSecretVersionDefault) Code() int { } func (o *DeleteAppSecretVersionDefault) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] DeleteAppSecretVersion default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] DeleteAppSecretVersion default %s", o._statusCode, payload) } func (o *DeleteAppSecretVersionDefault) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] DeleteAppSecretVersion default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] DeleteAppSecretVersion default %s", o._statusCode, payload) } func (o *DeleteAppSecretVersionDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/delete_sync_installation_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/delete_sync_installation_responses.go index cb5e3fc7..d0890b6c 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/delete_sync_installation_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/delete_sync_installation_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *DeleteSyncInstallationOK) Code() int { } func (o *DeleteSyncInstallationOK) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations/{name}][%d] deleteSyncInstallationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations/{name}][%d] deleteSyncInstallationOK %s", 200, payload) } func (o *DeleteSyncInstallationOK) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations/{name}][%d] deleteSyncInstallationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations/{name}][%d] deleteSyncInstallationOK %s", 200, payload) } func (o *DeleteSyncInstallationOK) GetPayload() models.Secrets20230613DeleteSyncInstallationResponse { @@ -156,11 +159,13 @@ func (o *DeleteSyncInstallationDefault) Code() int { } func (o *DeleteSyncInstallationDefault) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations/{name}][%d] DeleteSyncInstallation default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations/{name}][%d] DeleteSyncInstallation default %s", o._statusCode, payload) } func (o *DeleteSyncInstallationDefault) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations/{name}][%d] DeleteSyncInstallation default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations/{name}][%d] DeleteSyncInstallation default %s", o._statusCode, payload) } func (o *DeleteSyncInstallationDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/delete_sync_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/delete_sync_integration_responses.go index 2167d340..7b1a561a 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/delete_sync_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/delete_sync_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *DeleteSyncIntegrationOK) Code() int { } func (o *DeleteSyncIntegrationOK) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/integrations/{name}][%d] deleteSyncIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/integrations/{name}][%d] deleteSyncIntegrationOK %s", 200, payload) } func (o *DeleteSyncIntegrationOK) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/integrations/{name}][%d] deleteSyncIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/integrations/{name}][%d] deleteSyncIntegrationOK %s", 200, payload) } func (o *DeleteSyncIntegrationOK) GetPayload() models.Secrets20230613DeleteSyncIntegrationResponse { @@ -156,11 +159,13 @@ func (o *DeleteSyncIntegrationDefault) Code() int { } func (o *DeleteSyncIntegrationDefault) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/integrations/{name}][%d] DeleteSyncIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/integrations/{name}][%d] DeleteSyncIntegration default %s", o._statusCode, payload) } func (o *DeleteSyncIntegrationDefault) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/integrations/{name}][%d] DeleteSyncIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/integrations/{name}][%d] DeleteSyncIntegration default %s", o._statusCode, payload) } func (o *DeleteSyncIntegrationDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/force_sync_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/force_sync_responses.go index c8104e39..fe8fff98 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/force_sync_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/force_sync_responses.go @@ -7,6 +7,7 @@ package secret_service import ( "context" + "encoding/json" "fmt" "io" @@ -89,11 +90,13 @@ func (o *ForceSyncOK) Code() int { } func (o *ForceSyncOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/force][%d] forceSyncOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/force][%d] forceSyncOK %s", 200, payload) } func (o *ForceSyncOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/force][%d] forceSyncOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/force][%d] forceSyncOK %s", 200, payload) } func (o *ForceSyncOK) GetPayload() models.Secrets20230613ForceSyncResponse { @@ -159,11 +162,13 @@ func (o *ForceSyncDefault) Code() int { } func (o *ForceSyncDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/force][%d] ForceSync default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/force][%d] ForceSync default %s", o._statusCode, payload) } func (o *ForceSyncDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/force][%d] ForceSync default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/force][%d] ForceSync default %s", o._statusCode, payload) } func (o *ForceSyncDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_app_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_app_responses.go index 486bfc4b..8c9cb825 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_app_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_app_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetAppOK) Code() int { } func (o *GetAppOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{name}][%d] getAppOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{name}][%d] getAppOK %s", 200, payload) } func (o *GetAppOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{name}][%d] getAppOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{name}][%d] getAppOK %s", 200, payload) } func (o *GetAppOK) GetPayload() *models.Secrets20230613GetAppResponse { @@ -158,11 +161,13 @@ func (o *GetAppDefault) Code() int { } func (o *GetAppDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{name}][%d] GetApp default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{name}][%d] GetApp default %s", o._statusCode, payload) } func (o *GetAppDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{name}][%d] GetApp default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{name}][%d] GetApp default %s", o._statusCode, payload) } func (o *GetAppDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_app_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_app_secret_responses.go index 56b639e7..5ad60c0e 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_app_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_app_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetAppSecretOK) Code() int { } func (o *GetAppSecretOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}][%d] getAppSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}][%d] getAppSecretOK %s", 200, payload) } func (o *GetAppSecretOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}][%d] getAppSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}][%d] getAppSecretOK %s", 200, payload) } func (o *GetAppSecretOK) GetPayload() *models.Secrets20230613GetAppSecretResponse { @@ -158,11 +161,13 @@ func (o *GetAppSecretDefault) Code() int { } func (o *GetAppSecretDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}][%d] GetAppSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}][%d] GetAppSecret default %s", o._statusCode, payload) } func (o *GetAppSecretDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}][%d] GetAppSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}][%d] GetAppSecret default %s", o._statusCode, payload) } func (o *GetAppSecretDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_app_secret_version_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_app_secret_version_responses.go index 9c1120c7..bc4a6a86 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_app_secret_version_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_app_secret_version_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetAppSecretVersionOK) Code() int { } func (o *GetAppSecretVersionOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] getAppSecretVersionOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] getAppSecretVersionOK %s", 200, payload) } func (o *GetAppSecretVersionOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] getAppSecretVersionOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] getAppSecretVersionOK %s", 200, payload) } func (o *GetAppSecretVersionOK) GetPayload() *models.Secrets20230613GetAppSecretVersionResponse { @@ -158,11 +161,13 @@ func (o *GetAppSecretVersionDefault) Code() int { } func (o *GetAppSecretVersionDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] GetAppSecretVersion default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] GetAppSecretVersion default %s", o._statusCode, payload) } func (o *GetAppSecretVersionDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] GetAppSecretVersion default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] GetAppSecretVersion default %s", o._statusCode, payload) } func (o *GetAppSecretVersionDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_git_hub_environments_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_git_hub_environments_responses.go index 4e0b37da..7e4a1d2f 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_git_hub_environments_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_git_hub_environments_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetGitHubEnvironmentsOK) Code() int { } func (o *GetGitHubEnvironmentsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/repositories/{repository}/environments][%d] getGitHubEnvironmentsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/repositories/{repository}/environments][%d] getGitHubEnvironmentsOK %s", 200, payload) } func (o *GetGitHubEnvironmentsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/repositories/{repository}/environments][%d] getGitHubEnvironmentsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/repositories/{repository}/environments][%d] getGitHubEnvironmentsOK %s", 200, payload) } func (o *GetGitHubEnvironmentsOK) GetPayload() *models.Secrets20230613GetGitHubEnvironmentsResponse { @@ -158,11 +161,13 @@ func (o *GetGitHubEnvironmentsDefault) Code() int { } func (o *GetGitHubEnvironmentsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/repositories/{repository}/environments][%d] GetGitHubEnvironments default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/repositories/{repository}/environments][%d] GetGitHubEnvironments default %s", o._statusCode, payload) } func (o *GetGitHubEnvironmentsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/repositories/{repository}/environments][%d] GetGitHubEnvironments default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/repositories/{repository}/environments][%d] GetGitHubEnvironments default %s", o._statusCode, payload) } func (o *GetGitHubEnvironmentsDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_git_hub_install_links_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_git_hub_install_links_responses.go index 7bda6da2..20d2446a 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_git_hub_install_links_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_git_hub_install_links_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetGitHubInstallLinksOK) Code() int { } func (o *GetGitHubInstallLinksOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/links][%d] getGitHubInstallLinksOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/links][%d] getGitHubInstallLinksOK %s", 200, payload) } func (o *GetGitHubInstallLinksOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/links][%d] getGitHubInstallLinksOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/links][%d] getGitHubInstallLinksOK %s", 200, payload) } func (o *GetGitHubInstallLinksOK) GetPayload() *models.Secrets20230613GetGitHubInstallLinksResponse { @@ -158,11 +161,13 @@ func (o *GetGitHubInstallLinksDefault) Code() int { } func (o *GetGitHubInstallLinksDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/links][%d] GetGitHubInstallLinks default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/links][%d] GetGitHubInstallLinks default %s", o._statusCode, payload) } func (o *GetGitHubInstallLinksDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/links][%d] GetGitHubInstallLinks default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/links][%d] GetGitHubInstallLinks default %s", o._statusCode, payload) } func (o *GetGitHubInstallLinksDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_git_hub_repositories_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_git_hub_repositories_responses.go index 105ac91a..8d083139 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_git_hub_repositories_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_git_hub_repositories_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetGitHubRepositoriesOK) Code() int { } func (o *GetGitHubRepositoriesOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/repositories][%d] getGitHubRepositoriesOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/repositories][%d] getGitHubRepositoriesOK %s", 200, payload) } func (o *GetGitHubRepositoriesOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/repositories][%d] getGitHubRepositoriesOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/repositories][%d] getGitHubRepositoriesOK %s", 200, payload) } func (o *GetGitHubRepositoriesOK) GetPayload() *models.Secrets20230613GetGitHubRepositoriesResponse { @@ -158,11 +161,13 @@ func (o *GetGitHubRepositoriesDefault) Code() int { } func (o *GetGitHubRepositoriesDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/repositories][%d] GetGitHubRepositories default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/repositories][%d] GetGitHubRepositories default %s", o._statusCode, payload) } func (o *GetGitHubRepositoriesDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/repositories][%d] GetGitHubRepositories default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/repositories][%d] GetGitHubRepositories default %s", o._statusCode, payload) } func (o *GetGitHubRepositoriesDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_sync_installation_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_sync_installation_responses.go index 57cf6962..858d230d 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_sync_installation_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_sync_installation_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetSyncInstallationOK) Code() int { } func (o *GetSyncInstallationOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations/{name}][%d] getSyncInstallationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations/{name}][%d] getSyncInstallationOK %s", 200, payload) } func (o *GetSyncInstallationOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations/{name}][%d] getSyncInstallationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations/{name}][%d] getSyncInstallationOK %s", 200, payload) } func (o *GetSyncInstallationOK) GetPayload() *models.Secrets20230613GetSyncInstallationResponse { @@ -158,11 +161,13 @@ func (o *GetSyncInstallationDefault) Code() int { } func (o *GetSyncInstallationDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations/{name}][%d] GetSyncInstallation default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations/{name}][%d] GetSyncInstallation default %s", o._statusCode, payload) } func (o *GetSyncInstallationDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations/{name}][%d] GetSyncInstallation default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations/{name}][%d] GetSyncInstallation default %s", o._statusCode, payload) } func (o *GetSyncInstallationDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_sync_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_sync_integration_responses.go index be7d606e..475c3fb0 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_sync_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_sync_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetSyncIntegrationOK) Code() int { } func (o *GetSyncIntegrationOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/integrations/{name}][%d] getSyncIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/integrations/{name}][%d] getSyncIntegrationOK %s", 200, payload) } func (o *GetSyncIntegrationOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/integrations/{name}][%d] getSyncIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/integrations/{name}][%d] getSyncIntegrationOK %s", 200, payload) } func (o *GetSyncIntegrationOK) GetPayload() *models.Secrets20230613GetSyncIntegrationResponse { @@ -158,11 +161,13 @@ func (o *GetSyncIntegrationDefault) Code() int { } func (o *GetSyncIntegrationDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/integrations/{name}][%d] GetSyncIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/integrations/{name}][%d] GetSyncIntegration default %s", o._statusCode, payload) } func (o *GetSyncIntegrationDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/integrations/{name}][%d] GetSyncIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/integrations/{name}][%d] GetSyncIntegration default %s", o._statusCode, payload) } func (o *GetSyncIntegrationDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_usage2_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_usage2_responses.go index 184f4551..55d7aec1 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_usage2_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_usage2_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetUsage2OK) Code() int { } func (o *GetUsage2OK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/usage][%d] getUsage2OK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/usage][%d] getUsage2OK %s", 200, payload) } func (o *GetUsage2OK) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/usage][%d] getUsage2OK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/usage][%d] getUsage2OK %s", 200, payload) } func (o *GetUsage2OK) GetPayload() *models.Secrets20230613GetUsageResponse { @@ -158,11 +161,13 @@ func (o *GetUsage2Default) Code() int { } func (o *GetUsage2Default) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/usage][%d] GetUsage2 default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/usage][%d] GetUsage2 default %s", o._statusCode, payload) } func (o *GetUsage2Default) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/usage][%d] GetUsage2 default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/usage][%d] GetUsage2 default %s", o._statusCode, payload) } func (o *GetUsage2Default) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_usage_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_usage_responses.go index d1cf3320..706269cc 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_usage_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_usage_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetUsageOK) Code() int { } func (o *GetUsageOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/usage][%d] getUsageOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/usage][%d] getUsageOK %s", 200, payload) } func (o *GetUsageOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/usage][%d] getUsageOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/usage][%d] getUsageOK %s", 200, payload) } func (o *GetUsageOK) GetPayload() *models.Secrets20230613GetUsageResponse { @@ -158,11 +161,13 @@ func (o *GetUsageDefault) Code() int { } func (o *GetUsageDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/usage][%d] GetUsage default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/usage][%d] GetUsage default %s", o._statusCode, payload) } func (o *GetUsageDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/usage][%d] GetUsage default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/usage][%d] GetUsage default %s", o._statusCode, payload) } func (o *GetUsageDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_vercel_installation_link_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_vercel_installation_link_responses.go index 494c60e5..65a84062 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_vercel_installation_link_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/get_vercel_installation_link_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetVercelInstallationLinkOK) Code() int { } func (o *GetVercelInstallationLinkOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/vercel/link][%d] getVercelInstallationLinkOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/vercel/link][%d] getVercelInstallationLinkOK %s", 200, payload) } func (o *GetVercelInstallationLinkOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/vercel/link][%d] getVercelInstallationLinkOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/vercel/link][%d] getVercelInstallationLinkOK %s", 200, payload) } func (o *GetVercelInstallationLinkOK) GetPayload() *models.Secrets20230613GetVercelInstallationLinkResponse { @@ -158,11 +161,13 @@ func (o *GetVercelInstallationLinkDefault) Code() int { } func (o *GetVercelInstallationLinkDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/vercel/link][%d] GetVercelInstallationLink default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/vercel/link][%d] GetVercelInstallationLink default %s", o._statusCode, payload) } func (o *GetVercelInstallationLinkDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/vercel/link][%d] GetVercelInstallationLink default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/vercel/link][%d] GetVercelInstallationLink default %s", o._statusCode, payload) } func (o *GetVercelInstallationLinkDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_app_secret_versions_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_app_secret_versions_responses.go index 2918cd8e..1355591f 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_app_secret_versions_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_app_secret_versions_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListAppSecretVersionsOK) Code() int { } func (o *ListAppSecretVersionsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}/versions][%d] listAppSecretVersionsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}/versions][%d] listAppSecretVersionsOK %s", 200, payload) } func (o *ListAppSecretVersionsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}/versions][%d] listAppSecretVersionsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}/versions][%d] listAppSecretVersionsOK %s", 200, payload) } func (o *ListAppSecretVersionsOK) GetPayload() *models.Secrets20230613ListAppSecretVersionsResponse { @@ -158,11 +161,13 @@ func (o *ListAppSecretVersionsDefault) Code() int { } func (o *ListAppSecretVersionsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}/versions][%d] ListAppSecretVersions default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}/versions][%d] ListAppSecretVersions default %s", o._statusCode, payload) } func (o *ListAppSecretVersionsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}/versions][%d] ListAppSecretVersions default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets/{secret_name}/versions][%d] ListAppSecretVersions default %s", o._statusCode, payload) } func (o *ListAppSecretVersionsDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_app_secrets_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_app_secrets_responses.go index 9c3980f4..97df32ec 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_app_secrets_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_app_secrets_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListAppSecretsOK) Code() int { } func (o *ListAppSecretsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets][%d] listAppSecretsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets][%d] listAppSecretsOK %s", 200, payload) } func (o *ListAppSecretsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets][%d] listAppSecretsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets][%d] listAppSecretsOK %s", 200, payload) } func (o *ListAppSecretsOK) GetPayload() *models.Secrets20230613ListAppSecretsResponse { @@ -158,11 +161,13 @@ func (o *ListAppSecretsDefault) Code() int { } func (o *ListAppSecretsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets][%d] ListAppSecrets default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets][%d] ListAppSecrets default %s", o._statusCode, payload) } func (o *ListAppSecretsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets][%d] ListAppSecrets default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/secrets][%d] ListAppSecrets default %s", o._statusCode, payload) } func (o *ListAppSecretsDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_apps_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_apps_responses.go index bb7c2c45..71f69a24 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_apps_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_apps_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListAppsOK) Code() int { } func (o *ListAppsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps][%d] listAppsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps][%d] listAppsOK %s", 200, payload) } func (o *ListAppsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps][%d] listAppsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps][%d] listAppsOK %s", 200, payload) } func (o *ListAppsOK) GetPayload() *models.Secrets20230613ListAppsResponse { @@ -158,11 +161,13 @@ func (o *ListAppsDefault) Code() int { } func (o *ListAppsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps][%d] ListApps default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps][%d] ListApps default %s", o._statusCode, payload) } func (o *ListAppsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps][%d] ListApps default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps][%d] ListApps default %s", o._statusCode, payload) } func (o *ListAppsDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_git_hub_installations_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_git_hub_installations_responses.go index 4c4913f0..27ddb42a 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_git_hub_installations_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_git_hub_installations_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListGitHubInstallationsOK) Code() int { } func (o *ListGitHubInstallationsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/installations][%d] listGitHubInstallationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/installations][%d] listGitHubInstallationsOK %s", 200, payload) } func (o *ListGitHubInstallationsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/installations][%d] listGitHubInstallationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/installations][%d] listGitHubInstallationsOK %s", 200, payload) } func (o *ListGitHubInstallationsOK) GetPayload() *models.Secrets20230613ListGitHubInstallationsResponse { @@ -158,11 +161,13 @@ func (o *ListGitHubInstallationsDefault) Code() int { } func (o *ListGitHubInstallationsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/installations][%d] ListGitHubInstallations default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/installations][%d] ListGitHubInstallations default %s", o._statusCode, payload) } func (o *ListGitHubInstallationsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/installations][%d] ListGitHubInstallations default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/github/installations][%d] ListGitHubInstallations default %s", o._statusCode, payload) } func (o *ListGitHubInstallationsDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_open_app_secret_versions_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_open_app_secret_versions_responses.go index db05057e..a772f254 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_open_app_secret_versions_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_open_app_secret_versions_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListOpenAppSecretVersionsOK) Code() int { } func (o *ListOpenAppSecretVersionsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open/{secret_name}/versions][%d] listOpenAppSecretVersionsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open/{secret_name}/versions][%d] listOpenAppSecretVersionsOK %s", 200, payload) } func (o *ListOpenAppSecretVersionsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open/{secret_name}/versions][%d] listOpenAppSecretVersionsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open/{secret_name}/versions][%d] listOpenAppSecretVersionsOK %s", 200, payload) } func (o *ListOpenAppSecretVersionsOK) GetPayload() *models.Secrets20230613ListOpenAppSecretVersionsResponse { @@ -158,11 +161,13 @@ func (o *ListOpenAppSecretVersionsDefault) Code() int { } func (o *ListOpenAppSecretVersionsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open/{secret_name}/versions][%d] ListOpenAppSecretVersions default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open/{secret_name}/versions][%d] ListOpenAppSecretVersions default %s", o._statusCode, payload) } func (o *ListOpenAppSecretVersionsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open/{secret_name}/versions][%d] ListOpenAppSecretVersions default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open/{secret_name}/versions][%d] ListOpenAppSecretVersions default %s", o._statusCode, payload) } func (o *ListOpenAppSecretVersionsDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_sync_installations_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_sync_installations_responses.go index eedb4da3..31832db4 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_sync_installations_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_sync_installations_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListSyncInstallationsOK) Code() int { } func (o *ListSyncInstallationsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations][%d] listSyncInstallationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations][%d] listSyncInstallationsOK %s", 200, payload) } func (o *ListSyncInstallationsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations][%d] listSyncInstallationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations][%d] listSyncInstallationsOK %s", 200, payload) } func (o *ListSyncInstallationsOK) GetPayload() *models.Secrets20230613ListSyncInstallationsResponse { @@ -158,11 +161,13 @@ func (o *ListSyncInstallationsDefault) Code() int { } func (o *ListSyncInstallationsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations][%d] ListSyncInstallations default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations][%d] ListSyncInstallations default %s", o._statusCode, payload) } func (o *ListSyncInstallationsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations][%d] ListSyncInstallations default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations][%d] ListSyncInstallations default %s", o._statusCode, payload) } func (o *ListSyncInstallationsDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_sync_integrations_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_sync_integrations_responses.go index 29d087ea..90fbed71 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_sync_integrations_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/list_sync_integrations_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListSyncIntegrationsOK) Code() int { } func (o *ListSyncIntegrationsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/integrations][%d] listSyncIntegrationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/integrations][%d] listSyncIntegrationsOK %s", 200, payload) } func (o *ListSyncIntegrationsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/integrations][%d] listSyncIntegrationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/integrations][%d] listSyncIntegrationsOK %s", 200, payload) } func (o *ListSyncIntegrationsOK) GetPayload() *models.Secrets20230613ListSyncIntegrationsResponse { @@ -158,11 +161,13 @@ func (o *ListSyncIntegrationsDefault) Code() int { } func (o *ListSyncIntegrationsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/integrations][%d] ListSyncIntegrations default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/integrations][%d] ListSyncIntegrations default %s", o._statusCode, payload) } func (o *ListSyncIntegrationsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/integrations][%d] ListSyncIntegrations default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/integrations][%d] ListSyncIntegrations default %s", o._statusCode, payload) } func (o *ListSyncIntegrationsDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/open_app_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/open_app_secret_responses.go index d65c3104..0aa6f9fd 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/open_app_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/open_app_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *OpenAppSecretOK) Code() int { } func (o *OpenAppSecretOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open/{secret_name}][%d] openAppSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open/{secret_name}][%d] openAppSecretOK %s", 200, payload) } func (o *OpenAppSecretOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open/{secret_name}][%d] openAppSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open/{secret_name}][%d] openAppSecretOK %s", 200, payload) } func (o *OpenAppSecretOK) GetPayload() *models.Secrets20230613OpenAppSecretResponse { @@ -158,11 +161,13 @@ func (o *OpenAppSecretDefault) Code() int { } func (o *OpenAppSecretDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open/{secret_name}][%d] OpenAppSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open/{secret_name}][%d] OpenAppSecret default %s", o._statusCode, payload) } func (o *OpenAppSecretDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open/{secret_name}][%d] OpenAppSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open/{secret_name}][%d] OpenAppSecret default %s", o._statusCode, payload) } func (o *OpenAppSecretDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/open_app_secret_version_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/open_app_secret_version_responses.go index 57167b38..4bf7878c 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/open_app_secret_version_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/open_app_secret_version_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *OpenAppSecretVersionOK) Code() int { } func (o *OpenAppSecretVersionOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open/{secret_name}/versions/{version}][%d] openAppSecretVersionOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open/{secret_name}/versions/{version}][%d] openAppSecretVersionOK %s", 200, payload) } func (o *OpenAppSecretVersionOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open/{secret_name}/versions/{version}][%d] openAppSecretVersionOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open/{secret_name}/versions/{version}][%d] openAppSecretVersionOK %s", 200, payload) } func (o *OpenAppSecretVersionOK) GetPayload() *models.Secrets20230613OpenAppSecretVersionResponse { @@ -158,11 +161,13 @@ func (o *OpenAppSecretVersionDefault) Code() int { } func (o *OpenAppSecretVersionDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open/{secret_name}/versions/{version}][%d] OpenAppSecretVersion default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open/{secret_name}/versions/{version}][%d] OpenAppSecretVersion default %s", o._statusCode, payload) } func (o *OpenAppSecretVersionDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open/{secret_name}/versions/{version}][%d] OpenAppSecretVersion default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open/{secret_name}/versions/{version}][%d] OpenAppSecretVersion default %s", o._statusCode, payload) } func (o *OpenAppSecretVersionDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/open_app_secrets_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/open_app_secrets_responses.go index 8941e4d6..6499f5a0 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/open_app_secrets_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/open_app_secrets_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *OpenAppSecretsOK) Code() int { } func (o *OpenAppSecretsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open][%d] openAppSecretsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open][%d] openAppSecretsOK %s", 200, payload) } func (o *OpenAppSecretsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open][%d] openAppSecretsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open][%d] openAppSecretsOK %s", 200, payload) } func (o *OpenAppSecretsOK) GetPayload() *models.Secrets20230613OpenAppSecretsResponse { @@ -158,11 +161,13 @@ func (o *OpenAppSecretsDefault) Code() int { } func (o *OpenAppSecretsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open][%d] OpenAppSecrets default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open][%d] OpenAppSecrets default %s", o._statusCode, payload) } func (o *OpenAppSecretsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open][%d] OpenAppSecrets default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{app_name}/open][%d] OpenAppSecrets default %s", o._statusCode, payload) } func (o *OpenAppSecretsDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/secret_service_client.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/secret_service_client.go index 8994a340..35a7023b 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/secret_service_client.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/secret_service_client.go @@ -7,6 +7,7 @@ package secret_service import ( "github.com/go-openapi/runtime" + httptransport "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" ) @@ -15,6 +16,31 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientServi return &Client{transport: transport, formats: formats} } +// New creates a new secret service 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 secret service 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 secret service API */ @@ -23,7 +49,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/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/set_tier_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/set_tier_responses.go index 2974a509..a9bd7194 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/set_tier_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/set_tier_responses.go @@ -7,6 +7,7 @@ package secret_service import ( "context" + "encoding/json" "fmt" "io" @@ -89,11 +90,13 @@ func (o *SetTierOK) Code() int { } func (o *SetTierOK) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-06-13/organizations/{location.organization_id}/billing/tier][%d] setTierOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-06-13/organizations/{location.organization_id}/billing/tier][%d] setTierOK %s", 200, payload) } func (o *SetTierOK) String() string { - return fmt.Sprintf("[PUT /secrets/2023-06-13/organizations/{location.organization_id}/billing/tier][%d] setTierOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-06-13/organizations/{location.organization_id}/billing/tier][%d] setTierOK %s", 200, payload) } func (o *SetTierOK) GetPayload() interface{} { @@ -159,11 +162,13 @@ func (o *SetTierDefault) Code() int { } func (o *SetTierDefault) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-06-13/organizations/{location.organization_id}/billing/tier][%d] SetTier default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-06-13/organizations/{location.organization_id}/billing/tier][%d] SetTier default %s", o._statusCode, payload) } func (o *SetTierDefault) String() string { - return fmt.Sprintf("[PUT /secrets/2023-06-13/organizations/{location.organization_id}/billing/tier][%d] SetTier default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-06-13/organizations/{location.organization_id}/billing/tier][%d] SetTier default %s", o._statusCode, payload) } func (o *SetTierDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/update_app_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/update_app_responses.go index b307560c..6561ad58 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/update_app_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/update_app_responses.go @@ -7,6 +7,7 @@ package secret_service import ( "context" + "encoding/json" "fmt" "io" @@ -89,11 +90,13 @@ func (o *UpdateAppOK) Code() int { } func (o *UpdateAppOK) Error() string { - return fmt.Sprintf("[PATCH /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{name}][%d] updateAppOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PATCH /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{name}][%d] updateAppOK %s", 200, payload) } func (o *UpdateAppOK) String() string { - return fmt.Sprintf("[PATCH /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{name}][%d] updateAppOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PATCH /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{name}][%d] updateAppOK %s", 200, payload) } func (o *UpdateAppOK) GetPayload() *models.Secrets20230613UpdateAppResponse { @@ -161,11 +164,13 @@ func (o *UpdateAppDefault) Code() int { } func (o *UpdateAppDefault) Error() string { - return fmt.Sprintf("[PATCH /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{name}][%d] UpdateApp default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PATCH /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{name}][%d] UpdateApp default %s", o._statusCode, payload) } func (o *UpdateAppDefault) String() string { - return fmt.Sprintf("[PATCH /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{name}][%d] UpdateApp default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PATCH /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/apps/{name}][%d] UpdateApp default %s", o._statusCode, payload) } func (o *UpdateAppDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/update_sync_installation_responses.go b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/update_sync_installation_responses.go index 3ad31a2b..f3b1790f 100644 --- a/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/update_sync_installation_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-06-13/client/secret_service/update_sync_installation_responses.go @@ -7,6 +7,7 @@ package secret_service import ( "context" + "encoding/json" "fmt" "io" @@ -89,11 +90,13 @@ func (o *UpdateSyncInstallationOK) Code() int { } func (o *UpdateSyncInstallationOK) Error() string { - return fmt.Sprintf("[PATCH /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations/{name}][%d] updateSyncInstallationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PATCH /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations/{name}][%d] updateSyncInstallationOK %s", 200, payload) } func (o *UpdateSyncInstallationOK) String() string { - return fmt.Sprintf("[PATCH /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations/{name}][%d] updateSyncInstallationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PATCH /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations/{name}][%d] updateSyncInstallationOK %s", 200, payload) } func (o *UpdateSyncInstallationOK) GetPayload() *models.Secrets20230613UpdateSyncInstallationResponse { @@ -161,11 +164,13 @@ func (o *UpdateSyncInstallationDefault) Code() int { } func (o *UpdateSyncInstallationDefault) Error() string { - return fmt.Sprintf("[PATCH /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations/{name}][%d] UpdateSyncInstallation default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PATCH /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations/{name}][%d] UpdateSyncInstallation default %s", o._statusCode, payload) } func (o *UpdateSyncInstallationDefault) String() string { - return fmt.Sprintf("[PATCH /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations/{name}][%d] UpdateSyncInstallation default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PATCH /secrets/2023-06-13/organizations/{location.organization_id}/projects/{location.project_id}/sync/installations/{name}][%d] UpdateSyncInstallation default %s", o._statusCode, payload) } func (o *UpdateSyncInstallationDefault) GetPayload() *models.RPCStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_app_k_v_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_app_k_v_secret_responses.go index 999be770..66667f4c 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_app_k_v_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_app_k_v_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *CreateAppKVSecretOK) Code() int { } func (o *CreateAppKVSecretOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secret/kv][%d] createAppKVSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secret/kv][%d] createAppKVSecretOK %s", 200, payload) } func (o *CreateAppKVSecretOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secret/kv][%d] createAppKVSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secret/kv][%d] createAppKVSecretOK %s", 200, payload) } func (o *CreateAppKVSecretOK) GetPayload() *models.Secrets20231128CreateAppKVSecretResponse { @@ -158,11 +161,13 @@ func (o *CreateAppKVSecretDefault) Code() int { } func (o *CreateAppKVSecretDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secret/kv][%d] CreateAppKVSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secret/kv][%d] CreateAppKVSecret default %s", o._statusCode, payload) } func (o *CreateAppKVSecretDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secret/kv][%d] CreateAppKVSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secret/kv][%d] CreateAppKVSecret default %s", o._statusCode, payload) } func (o *CreateAppKVSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_app_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_app_responses.go index 24e2fc98..8bcce8db 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_app_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_app_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *CreateAppOK) Code() int { } func (o *CreateAppOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps][%d] createAppOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps][%d] createAppOK %s", 200, payload) } func (o *CreateAppOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps][%d] createAppOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps][%d] createAppOK %s", 200, payload) } func (o *CreateAppOK) GetPayload() *models.Secrets20231128CreateAppResponse { @@ -158,11 +161,13 @@ func (o *CreateAppDefault) Code() int { } func (o *CreateAppDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps][%d] CreateApp default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps][%d] CreateApp default %s", o._statusCode, payload) } func (o *CreateAppDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps][%d] CreateApp default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps][%d] CreateApp default %s", o._statusCode, payload) } func (o *CreateAppDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_app_rotating_secret_parameters.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_app_rotating_secret_parameters.go new file mode 100644 index 00000000..b512aa18 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_app_rotating_secret_parameters.go @@ -0,0 +1,207 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package secret_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-secrets/stable/2023-11-28/models" +) + +// NewCreateAppRotatingSecretParams creates a new CreateAppRotatingSecretParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCreateAppRotatingSecretParams() *CreateAppRotatingSecretParams { + return &CreateAppRotatingSecretParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCreateAppRotatingSecretParamsWithTimeout creates a new CreateAppRotatingSecretParams object +// with the ability to set a timeout on a request. +func NewCreateAppRotatingSecretParamsWithTimeout(timeout time.Duration) *CreateAppRotatingSecretParams { + return &CreateAppRotatingSecretParams{ + timeout: timeout, + } +} + +// NewCreateAppRotatingSecretParamsWithContext creates a new CreateAppRotatingSecretParams object +// with the ability to set a context for a request. +func NewCreateAppRotatingSecretParamsWithContext(ctx context.Context) *CreateAppRotatingSecretParams { + return &CreateAppRotatingSecretParams{ + Context: ctx, + } +} + +// NewCreateAppRotatingSecretParamsWithHTTPClient creates a new CreateAppRotatingSecretParams object +// with the ability to set a custom HTTPClient for a request. +func NewCreateAppRotatingSecretParamsWithHTTPClient(client *http.Client) *CreateAppRotatingSecretParams { + return &CreateAppRotatingSecretParams{ + HTTPClient: client, + } +} + +/* +CreateAppRotatingSecretParams contains all the parameters to send to the API endpoint + + for the create app rotating secret operation. + + Typically these are written to a http.Request. +*/ +type CreateAppRotatingSecretParams struct { + + // AppName. + AppName string + + // Body. + Body *models.SecretServiceCreateAppRotatingSecretBody + + // OrganizationID. + OrganizationID string + + // ProjectID. + ProjectID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the create app rotating secret params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateAppRotatingSecretParams) WithDefaults() *CreateAppRotatingSecretParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the create app rotating secret params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateAppRotatingSecretParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the create app rotating secret params +func (o *CreateAppRotatingSecretParams) WithTimeout(timeout time.Duration) *CreateAppRotatingSecretParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the create app rotating secret params +func (o *CreateAppRotatingSecretParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the create app rotating secret params +func (o *CreateAppRotatingSecretParams) WithContext(ctx context.Context) *CreateAppRotatingSecretParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the create app rotating secret params +func (o *CreateAppRotatingSecretParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the create app rotating secret params +func (o *CreateAppRotatingSecretParams) WithHTTPClient(client *http.Client) *CreateAppRotatingSecretParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the create app rotating secret params +func (o *CreateAppRotatingSecretParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAppName adds the appName to the create app rotating secret params +func (o *CreateAppRotatingSecretParams) WithAppName(appName string) *CreateAppRotatingSecretParams { + o.SetAppName(appName) + return o +} + +// SetAppName adds the appName to the create app rotating secret params +func (o *CreateAppRotatingSecretParams) SetAppName(appName string) { + o.AppName = appName +} + +// WithBody adds the body to the create app rotating secret params +func (o *CreateAppRotatingSecretParams) WithBody(body *models.SecretServiceCreateAppRotatingSecretBody) *CreateAppRotatingSecretParams { + o.SetBody(body) + return o +} + +// SetBody adds the body to the create app rotating secret params +func (o *CreateAppRotatingSecretParams) SetBody(body *models.SecretServiceCreateAppRotatingSecretBody) { + o.Body = body +} + +// WithOrganizationID adds the organizationID to the create app rotating secret params +func (o *CreateAppRotatingSecretParams) WithOrganizationID(organizationID string) *CreateAppRotatingSecretParams { + o.SetOrganizationID(organizationID) + return o +} + +// SetOrganizationID adds the organizationId to the create app rotating secret params +func (o *CreateAppRotatingSecretParams) SetOrganizationID(organizationID string) { + o.OrganizationID = organizationID +} + +// WithProjectID adds the projectID to the create app rotating secret params +func (o *CreateAppRotatingSecretParams) WithProjectID(projectID string) *CreateAppRotatingSecretParams { + o.SetProjectID(projectID) + return o +} + +// SetProjectID adds the projectId to the create app rotating secret params +func (o *CreateAppRotatingSecretParams) SetProjectID(projectID string) { + o.ProjectID = projectID +} + +// WriteToRequest writes these params to a swagger request +func (o *CreateAppRotatingSecretParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param app_name + if err := r.SetPathParam("app_name", o.AppName); err != nil { + return err + } + if o.Body != nil { + if err := r.SetBodyParam(o.Body); err != nil { + return err + } + } + + // path param organization_id + if err := r.SetPathParam("organization_id", o.OrganizationID); err != nil { + return err + } + + // path param project_id + if err := r.SetPathParam("project_id", o.ProjectID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_app_rotating_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_app_rotating_secret_responses.go new file mode 100644 index 00000000..da5888cb --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_app_rotating_secret_responses.go @@ -0,0 +1,187 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package secret_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "encoding/json" + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-secrets/stable/2023-11-28/models" +) + +// CreateAppRotatingSecretReader is a Reader for the CreateAppRotatingSecret structure. +type CreateAppRotatingSecretReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CreateAppRotatingSecretReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewCreateAppRotatingSecretOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + result := NewCreateAppRotatingSecretDefault(response.Code()) + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + if response.Code()/100 == 2 { + return result, nil + } + return nil, result + } +} + +// NewCreateAppRotatingSecretOK creates a CreateAppRotatingSecretOK with default headers values +func NewCreateAppRotatingSecretOK() *CreateAppRotatingSecretOK { + return &CreateAppRotatingSecretOK{} +} + +/* +CreateAppRotatingSecretOK describes a response with status code 200, with default header values. + +A successful response. +*/ +type CreateAppRotatingSecretOK struct { + Payload *models.Secrets20231128CreateAppRotatingSecretResponse +} + +// IsSuccess returns true when this create app rotating secret o k response has a 2xx status code +func (o *CreateAppRotatingSecretOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create app rotating secret o k response has a 3xx status code +func (o *CreateAppRotatingSecretOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create app rotating secret o k response has a 4xx status code +func (o *CreateAppRotatingSecretOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this create app rotating secret o k response has a 5xx status code +func (o *CreateAppRotatingSecretOK) IsServerError() bool { + return false +} + +// IsCode returns true when this create app rotating secret o k response a status code equal to that given +func (o *CreateAppRotatingSecretOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the create app rotating secret o k response +func (o *CreateAppRotatingSecretOK) Code() int { + return 200 +} + +func (o *CreateAppRotatingSecretOK) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/rotating][%d] createAppRotatingSecretOK %s", 200, payload) +} + +func (o *CreateAppRotatingSecretOK) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/rotating][%d] createAppRotatingSecretOK %s", 200, payload) +} + +func (o *CreateAppRotatingSecretOK) GetPayload() *models.Secrets20231128CreateAppRotatingSecretResponse { + return o.Payload +} + +func (o *CreateAppRotatingSecretOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Secrets20231128CreateAppRotatingSecretResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewCreateAppRotatingSecretDefault creates a CreateAppRotatingSecretDefault with default headers values +func NewCreateAppRotatingSecretDefault(code int) *CreateAppRotatingSecretDefault { + return &CreateAppRotatingSecretDefault{ + _statusCode: code, + } +} + +/* +CreateAppRotatingSecretDefault describes a response with status code -1, with default header values. + +An unexpected error response. +*/ +type CreateAppRotatingSecretDefault struct { + _statusCode int + + Payload *models.GooglerpcStatus +} + +// IsSuccess returns true when this create app rotating secret default response has a 2xx status code +func (o *CreateAppRotatingSecretDefault) IsSuccess() bool { + return o._statusCode/100 == 2 +} + +// IsRedirect returns true when this create app rotating secret default response has a 3xx status code +func (o *CreateAppRotatingSecretDefault) IsRedirect() bool { + return o._statusCode/100 == 3 +} + +// IsClientError returns true when this create app rotating secret default response has a 4xx status code +func (o *CreateAppRotatingSecretDefault) IsClientError() bool { + return o._statusCode/100 == 4 +} + +// IsServerError returns true when this create app rotating secret default response has a 5xx status code +func (o *CreateAppRotatingSecretDefault) IsServerError() bool { + return o._statusCode/100 == 5 +} + +// IsCode returns true when this create app rotating secret default response a status code equal to that given +func (o *CreateAppRotatingSecretDefault) IsCode(code int) bool { + return o._statusCode == code +} + +// Code gets the status code for the create app rotating secret default response +func (o *CreateAppRotatingSecretDefault) Code() int { + return o._statusCode +} + +func (o *CreateAppRotatingSecretDefault) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/rotating][%d] CreateAppRotatingSecret default %s", o._statusCode, payload) +} + +func (o *CreateAppRotatingSecretDefault) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/rotating][%d] CreateAppRotatingSecret default %s", o._statusCode, payload) +} + +func (o *CreateAppRotatingSecretDefault) GetPayload() *models.GooglerpcStatus { + return o.Payload +} + +func (o *CreateAppRotatingSecretDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.GooglerpcStatus) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_aws_dynamic_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_aws_dynamic_secret_responses.go index 0c36290e..fc309b73 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_aws_dynamic_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_aws_dynamic_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *CreateAwsDynamicSecretOK) Code() int { } func (o *CreateAwsDynamicSecretOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret][%d] createAwsDynamicSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret][%d] createAwsDynamicSecretOK %s", 200, payload) } func (o *CreateAwsDynamicSecretOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret][%d] createAwsDynamicSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret][%d] createAwsDynamicSecretOK %s", 200, payload) } func (o *CreateAwsDynamicSecretOK) GetPayload() *models.Secrets20231128CreateAwsDynamicSecretResponse { @@ -158,11 +161,13 @@ func (o *CreateAwsDynamicSecretDefault) Code() int { } func (o *CreateAwsDynamicSecretDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret][%d] CreateAwsDynamicSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret][%d] CreateAwsDynamicSecret default %s", o._statusCode, payload) } func (o *CreateAwsDynamicSecretDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret][%d] CreateAwsDynamicSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret][%d] CreateAwsDynamicSecret default %s", o._statusCode, payload) } func (o *CreateAwsDynamicSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_aws_i_a_m_user_access_key_rotating_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_aws_i_a_m_user_access_key_rotating_secret_responses.go index 01772e4f..68b22f9f 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_aws_i_a_m_user_access_key_rotating_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_aws_i_a_m_user_access_key_rotating_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *CreateAwsIAMUserAccessKeyRotatingSecretOK) Code() int { } func (o *CreateAwsIAMUserAccessKeyRotatingSecretOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/aws/secret][%d] createAwsIAMUserAccessKeyRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/aws/secret][%d] createAwsIAMUserAccessKeyRotatingSecretOK %s", 200, payload) } func (o *CreateAwsIAMUserAccessKeyRotatingSecretOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/aws/secret][%d] createAwsIAMUserAccessKeyRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/aws/secret][%d] createAwsIAMUserAccessKeyRotatingSecretOK %s", 200, payload) } func (o *CreateAwsIAMUserAccessKeyRotatingSecretOK) GetPayload() *models.Secrets20231128CreateAwsIAMUserAccessKeyRotatingSecretResponse { @@ -158,11 +161,13 @@ func (o *CreateAwsIAMUserAccessKeyRotatingSecretDefault) Code() int { } func (o *CreateAwsIAMUserAccessKeyRotatingSecretDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/aws/secret][%d] CreateAwsIAMUserAccessKeyRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/aws/secret][%d] CreateAwsIAMUserAccessKeyRotatingSecret default %s", o._statusCode, payload) } func (o *CreateAwsIAMUserAccessKeyRotatingSecretDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/aws/secret][%d] CreateAwsIAMUserAccessKeyRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/aws/secret][%d] CreateAwsIAMUserAccessKeyRotatingSecret default %s", o._statusCode, payload) } func (o *CreateAwsIAMUserAccessKeyRotatingSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_aws_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_aws_integration_responses.go index e21b021d..a257a5d2 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_aws_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_aws_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *CreateAwsIntegrationOK) Code() int { } func (o *CreateAwsIntegrationOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config][%d] createAwsIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config][%d] createAwsIntegrationOK %s", 200, payload) } func (o *CreateAwsIntegrationOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config][%d] createAwsIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config][%d] createAwsIntegrationOK %s", 200, payload) } func (o *CreateAwsIntegrationOK) GetPayload() *models.Secrets20231128CreateAwsIntegrationResponse { @@ -158,11 +161,13 @@ func (o *CreateAwsIntegrationDefault) Code() int { } func (o *CreateAwsIntegrationDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config][%d] CreateAwsIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config][%d] CreateAwsIntegration default %s", o._statusCode, payload) } func (o *CreateAwsIntegrationDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config][%d] CreateAwsIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config][%d] CreateAwsIntegration default %s", o._statusCode, payload) } func (o *CreateAwsIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_azure_application_password_rotating_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_azure_application_password_rotating_secret_responses.go index 101b88e3..677520f1 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_azure_application_password_rotating_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_azure_application_password_rotating_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *CreateAzureApplicationPasswordRotatingSecretOK) Code() int { } func (o *CreateAzureApplicationPasswordRotatingSecretOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/azure/secret][%d] createAzureApplicationPasswordRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/azure/secret][%d] createAzureApplicationPasswordRotatingSecretOK %s", 200, payload) } func (o *CreateAzureApplicationPasswordRotatingSecretOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/azure/secret][%d] createAzureApplicationPasswordRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/azure/secret][%d] createAzureApplicationPasswordRotatingSecretOK %s", 200, payload) } func (o *CreateAzureApplicationPasswordRotatingSecretOK) GetPayload() *models.Secrets20231128CreateAzureApplicationPasswordRotatingSecretResponse { @@ -158,11 +161,13 @@ func (o *CreateAzureApplicationPasswordRotatingSecretDefault) Code() int { } func (o *CreateAzureApplicationPasswordRotatingSecretDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/azure/secret][%d] CreateAzureApplicationPasswordRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/azure/secret][%d] CreateAzureApplicationPasswordRotatingSecret default %s", o._statusCode, payload) } func (o *CreateAzureApplicationPasswordRotatingSecretDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/azure/secret][%d] CreateAzureApplicationPasswordRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/azure/secret][%d] CreateAzureApplicationPasswordRotatingSecret default %s", o._statusCode, payload) } func (o *CreateAzureApplicationPasswordRotatingSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_azure_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_azure_integration_responses.go index bca727d4..fc42b3f6 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_azure_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_azure_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *CreateAzureIntegrationOK) Code() int { } func (o *CreateAzureIntegrationOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config][%d] createAzureIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config][%d] createAzureIntegrationOK %s", 200, payload) } func (o *CreateAzureIntegrationOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config][%d] createAzureIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config][%d] createAzureIntegrationOK %s", 200, payload) } func (o *CreateAzureIntegrationOK) GetPayload() *models.Secrets20231128CreateAzureIntegrationResponse { @@ -158,11 +161,13 @@ func (o *CreateAzureIntegrationDefault) Code() int { } func (o *CreateAzureIntegrationDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config][%d] CreateAzureIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config][%d] CreateAzureIntegration default %s", o._statusCode, payload) } func (o *CreateAzureIntegrationDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config][%d] CreateAzureIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config][%d] CreateAzureIntegration default %s", o._statusCode, payload) } func (o *CreateAzureIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_confluent_cloud_api_key_rotating_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_confluent_cloud_api_key_rotating_secret_responses.go index 33c03e46..76c6953b 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_confluent_cloud_api_key_rotating_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_confluent_cloud_api_key_rotating_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *CreateConfluentCloudAPIKeyRotatingSecretOK) Code() int { } func (o *CreateConfluentCloudAPIKeyRotatingSecretOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/confluent/secret][%d] createConfluentCloudApiKeyRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/confluent/secret][%d] createConfluentCloudApiKeyRotatingSecretOK %s", 200, payload) } func (o *CreateConfluentCloudAPIKeyRotatingSecretOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/confluent/secret][%d] createConfluentCloudApiKeyRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/confluent/secret][%d] createConfluentCloudApiKeyRotatingSecretOK %s", 200, payload) } func (o *CreateConfluentCloudAPIKeyRotatingSecretOK) GetPayload() *models.Secrets20231128CreateConfluentCloudAPIKeyRotatingSecretResponse { @@ -158,11 +161,13 @@ func (o *CreateConfluentCloudAPIKeyRotatingSecretDefault) Code() int { } func (o *CreateConfluentCloudAPIKeyRotatingSecretDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/confluent/secret][%d] CreateConfluentCloudApiKeyRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/confluent/secret][%d] CreateConfluentCloudApiKeyRotatingSecret default %s", o._statusCode, payload) } func (o *CreateConfluentCloudAPIKeyRotatingSecretDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/confluent/secret][%d] CreateConfluentCloudApiKeyRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/confluent/secret][%d] CreateConfluentCloudApiKeyRotatingSecret default %s", o._statusCode, payload) } func (o *CreateConfluentCloudAPIKeyRotatingSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_confluent_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_confluent_integration_responses.go index 6e0b4fc2..e32fafa1 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_confluent_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_confluent_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *CreateConfluentIntegrationOK) Code() int { } func (o *CreateConfluentIntegrationOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config][%d] createConfluentIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config][%d] createConfluentIntegrationOK %s", 200, payload) } func (o *CreateConfluentIntegrationOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config][%d] createConfluentIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config][%d] createConfluentIntegrationOK %s", 200, payload) } func (o *CreateConfluentIntegrationOK) GetPayload() *models.Secrets20231128CreateConfluentIntegrationResponse { @@ -158,11 +161,13 @@ func (o *CreateConfluentIntegrationDefault) Code() int { } func (o *CreateConfluentIntegrationDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config][%d] CreateConfluentIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config][%d] CreateConfluentIntegration default %s", o._statusCode, payload) } func (o *CreateConfluentIntegrationDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config][%d] CreateConfluentIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config][%d] CreateConfluentIntegration default %s", o._statusCode, payload) } func (o *CreateConfluentIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_gateway_pool_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_gateway_pool_responses.go index 71ec58d3..fd90cec5 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_gateway_pool_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_gateway_pool_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *CreateGatewayPoolOK) Code() int { } func (o *CreateGatewayPoolOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools][%d] createGatewayPoolOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools][%d] createGatewayPoolOK %s", 200, payload) } func (o *CreateGatewayPoolOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools][%d] createGatewayPoolOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools][%d] createGatewayPoolOK %s", 200, payload) } func (o *CreateGatewayPoolOK) GetPayload() *models.Secrets20231128CreateGatewayPoolResponse { @@ -158,11 +161,13 @@ func (o *CreateGatewayPoolDefault) Code() int { } func (o *CreateGatewayPoolDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools][%d] CreateGatewayPool default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools][%d] CreateGatewayPool default %s", o._statusCode, payload) } func (o *CreateGatewayPoolDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools][%d] CreateGatewayPool default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools][%d] CreateGatewayPool default %s", o._statusCode, payload) } func (o *CreateGatewayPoolDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_gcp_dynamic_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_gcp_dynamic_secret_responses.go index 2b3f83f5..ae64bf58 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_gcp_dynamic_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_gcp_dynamic_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *CreateGcpDynamicSecretOK) Code() int { } func (o *CreateGcpDynamicSecretOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret][%d] createGcpDynamicSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret][%d] createGcpDynamicSecretOK %s", 200, payload) } func (o *CreateGcpDynamicSecretOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret][%d] createGcpDynamicSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret][%d] createGcpDynamicSecretOK %s", 200, payload) } func (o *CreateGcpDynamicSecretOK) GetPayload() *models.Secrets20231128CreateGcpDynamicSecretResponse { @@ -158,11 +161,13 @@ func (o *CreateGcpDynamicSecretDefault) Code() int { } func (o *CreateGcpDynamicSecretDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret][%d] CreateGcpDynamicSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret][%d] CreateGcpDynamicSecret default %s", o._statusCode, payload) } func (o *CreateGcpDynamicSecretDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret][%d] CreateGcpDynamicSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret][%d] CreateGcpDynamicSecret default %s", o._statusCode, payload) } func (o *CreateGcpDynamicSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_gcp_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_gcp_integration_responses.go index 28f5853d..41d67992 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_gcp_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_gcp_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *CreateGcpIntegrationOK) Code() int { } func (o *CreateGcpIntegrationOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config][%d] createGcpIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config][%d] createGcpIntegrationOK %s", 200, payload) } func (o *CreateGcpIntegrationOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config][%d] createGcpIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config][%d] createGcpIntegrationOK %s", 200, payload) } func (o *CreateGcpIntegrationOK) GetPayload() *models.Secrets20231128CreateGcpIntegrationResponse { @@ -158,11 +161,13 @@ func (o *CreateGcpIntegrationDefault) Code() int { } func (o *CreateGcpIntegrationDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config][%d] CreateGcpIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config][%d] CreateGcpIntegration default %s", o._statusCode, payload) } func (o *CreateGcpIntegrationDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config][%d] CreateGcpIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config][%d] CreateGcpIntegration default %s", o._statusCode, payload) } func (o *CreateGcpIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_gcp_service_account_key_rotating_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_gcp_service_account_key_rotating_secret_responses.go index be8b6a55..628c9b0f 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_gcp_service_account_key_rotating_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_gcp_service_account_key_rotating_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *CreateGcpServiceAccountKeyRotatingSecretOK) Code() int { } func (o *CreateGcpServiceAccountKeyRotatingSecretOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/gcp/secret][%d] createGcpServiceAccountKeyRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/gcp/secret][%d] createGcpServiceAccountKeyRotatingSecretOK %s", 200, payload) } func (o *CreateGcpServiceAccountKeyRotatingSecretOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/gcp/secret][%d] createGcpServiceAccountKeyRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/gcp/secret][%d] createGcpServiceAccountKeyRotatingSecretOK %s", 200, payload) } func (o *CreateGcpServiceAccountKeyRotatingSecretOK) GetPayload() *models.Secrets20231128CreateGcpServiceAccountKeyRotatingSecretResponse { @@ -158,11 +161,13 @@ func (o *CreateGcpServiceAccountKeyRotatingSecretDefault) Code() int { } func (o *CreateGcpServiceAccountKeyRotatingSecretDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/gcp/secret][%d] CreateGcpServiceAccountKeyRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/gcp/secret][%d] CreateGcpServiceAccountKeyRotatingSecret default %s", o._statusCode, payload) } func (o *CreateGcpServiceAccountKeyRotatingSecretDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/gcp/secret][%d] CreateGcpServiceAccountKeyRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/gcp/secret][%d] CreateGcpServiceAccountKeyRotatingSecret default %s", o._statusCode, payload) } func (o *CreateGcpServiceAccountKeyRotatingSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_integration_responses.go index e9c7b347..873d5d42 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *CreateIntegrationOK) Code() int { } func (o *CreateIntegrationOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations][%d] createIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations][%d] createIntegrationOK %s", 200, payload) } func (o *CreateIntegrationOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations][%d] createIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations][%d] createIntegrationOK %s", 200, payload) } func (o *CreateIntegrationOK) GetPayload() *models.Secrets20231128CreateIntegrationResponse { @@ -158,11 +161,13 @@ func (o *CreateIntegrationDefault) Code() int { } func (o *CreateIntegrationDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations][%d] CreateIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations][%d] CreateIntegration default %s", o._statusCode, payload) } func (o *CreateIntegrationDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations][%d] CreateIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations][%d] CreateIntegration default %s", o._statusCode, payload) } func (o *CreateIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_mongo_d_b_atlas_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_mongo_d_b_atlas_integration_responses.go index 77d49759..3c1c6714 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_mongo_d_b_atlas_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_mongo_d_b_atlas_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *CreateMongoDBAtlasIntegrationOK) Code() int { } func (o *CreateMongoDBAtlasIntegrationOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config][%d] createMongoDBAtlasIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config][%d] createMongoDBAtlasIntegrationOK %s", 200, payload) } func (o *CreateMongoDBAtlasIntegrationOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config][%d] createMongoDBAtlasIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config][%d] createMongoDBAtlasIntegrationOK %s", 200, payload) } func (o *CreateMongoDBAtlasIntegrationOK) GetPayload() *models.Secrets20231128CreateMongoDBAtlasIntegrationResponse { @@ -158,11 +161,13 @@ func (o *CreateMongoDBAtlasIntegrationDefault) Code() int { } func (o *CreateMongoDBAtlasIntegrationDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config][%d] CreateMongoDBAtlasIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config][%d] CreateMongoDBAtlasIntegration default %s", o._statusCode, payload) } func (o *CreateMongoDBAtlasIntegrationDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config][%d] CreateMongoDBAtlasIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config][%d] CreateMongoDBAtlasIntegration default %s", o._statusCode, payload) } func (o *CreateMongoDBAtlasIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_mongo_d_b_atlas_rotating_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_mongo_d_b_atlas_rotating_secret_responses.go index d4119539..dcf8d918 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_mongo_d_b_atlas_rotating_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_mongo_d_b_atlas_rotating_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *CreateMongoDBAtlasRotatingSecretOK) Code() int { } func (o *CreateMongoDBAtlasRotatingSecretOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/mongodb-atlas/secret][%d] createMongoDBAtlasRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/mongodb-atlas/secret][%d] createMongoDBAtlasRotatingSecretOK %s", 200, payload) } func (o *CreateMongoDBAtlasRotatingSecretOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/mongodb-atlas/secret][%d] createMongoDBAtlasRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/mongodb-atlas/secret][%d] createMongoDBAtlasRotatingSecretOK %s", 200, payload) } func (o *CreateMongoDBAtlasRotatingSecretOK) GetPayload() *models.Secrets20231128CreateMongoDBAtlasRotatingSecretResponse { @@ -158,11 +161,13 @@ func (o *CreateMongoDBAtlasRotatingSecretDefault) Code() int { } func (o *CreateMongoDBAtlasRotatingSecretDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/mongodb-atlas/secret][%d] CreateMongoDBAtlasRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/mongodb-atlas/secret][%d] CreateMongoDBAtlasRotatingSecret default %s", o._statusCode, payload) } func (o *CreateMongoDBAtlasRotatingSecretDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/mongodb-atlas/secret][%d] CreateMongoDBAtlasRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/mongodb-atlas/secret][%d] CreateMongoDBAtlasRotatingSecret default %s", o._statusCode, payload) } func (o *CreateMongoDBAtlasRotatingSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_postgres_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_postgres_integration_responses.go index 6e334edb..1d719cfa 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_postgres_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_postgres_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *CreatePostgresIntegrationOK) Code() int { } func (o *CreatePostgresIntegrationOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config][%d] createPostgresIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config][%d] createPostgresIntegrationOK %s", 200, payload) } func (o *CreatePostgresIntegrationOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config][%d] createPostgresIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config][%d] createPostgresIntegrationOK %s", 200, payload) } func (o *CreatePostgresIntegrationOK) GetPayload() *models.Secrets20231128CreatePostgresIntegrationResponse { @@ -158,11 +161,13 @@ func (o *CreatePostgresIntegrationDefault) Code() int { } func (o *CreatePostgresIntegrationDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config][%d] CreatePostgresIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config][%d] CreatePostgresIntegration default %s", o._statusCode, payload) } func (o *CreatePostgresIntegrationDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config][%d] CreatePostgresIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config][%d] CreatePostgresIntegration default %s", o._statusCode, payload) } func (o *CreatePostgresIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_postgres_rotating_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_postgres_rotating_secret_responses.go index 7e23067c..f9e77b29 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_postgres_rotating_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_postgres_rotating_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *CreatePostgresRotatingSecretOK) Code() int { } func (o *CreatePostgresRotatingSecretOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/postgres/secret][%d] createPostgresRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/postgres/secret][%d] createPostgresRotatingSecretOK %s", 200, payload) } func (o *CreatePostgresRotatingSecretOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/postgres/secret][%d] createPostgresRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/postgres/secret][%d] createPostgresRotatingSecretOK %s", 200, payload) } func (o *CreatePostgresRotatingSecretOK) GetPayload() *models.Secrets20231128CreatePostgresRotatingSecretResponse { @@ -158,11 +161,13 @@ func (o *CreatePostgresRotatingSecretDefault) Code() int { } func (o *CreatePostgresRotatingSecretDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/postgres/secret][%d] CreatePostgresRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/postgres/secret][%d] CreatePostgresRotatingSecret default %s", o._statusCode, payload) } func (o *CreatePostgresRotatingSecretDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/postgres/secret][%d] CreatePostgresRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/postgres/secret][%d] CreatePostgresRotatingSecret default %s", o._statusCode, payload) } func (o *CreatePostgresRotatingSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_random_integration_parameters.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_random_integration_parameters.go new file mode 100644 index 00000000..a92f082d --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_random_integration_parameters.go @@ -0,0 +1,188 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package secret_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-secrets/stable/2023-11-28/models" +) + +// NewCreateRandomIntegrationParams creates a new CreateRandomIntegrationParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCreateRandomIntegrationParams() *CreateRandomIntegrationParams { + return &CreateRandomIntegrationParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCreateRandomIntegrationParamsWithTimeout creates a new CreateRandomIntegrationParams object +// with the ability to set a timeout on a request. +func NewCreateRandomIntegrationParamsWithTimeout(timeout time.Duration) *CreateRandomIntegrationParams { + return &CreateRandomIntegrationParams{ + timeout: timeout, + } +} + +// NewCreateRandomIntegrationParamsWithContext creates a new CreateRandomIntegrationParams object +// with the ability to set a context for a request. +func NewCreateRandomIntegrationParamsWithContext(ctx context.Context) *CreateRandomIntegrationParams { + return &CreateRandomIntegrationParams{ + Context: ctx, + } +} + +// NewCreateRandomIntegrationParamsWithHTTPClient creates a new CreateRandomIntegrationParams object +// with the ability to set a custom HTTPClient for a request. +func NewCreateRandomIntegrationParamsWithHTTPClient(client *http.Client) *CreateRandomIntegrationParams { + return &CreateRandomIntegrationParams{ + HTTPClient: client, + } +} + +/* +CreateRandomIntegrationParams contains all the parameters to send to the API endpoint + + for the create random integration operation. + + Typically these are written to a http.Request. +*/ +type CreateRandomIntegrationParams struct { + + // Body. + Body *models.SecretServiceCreateRandomIntegrationBody + + // OrganizationID. + OrganizationID string + + // ProjectID. + ProjectID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the create random integration params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateRandomIntegrationParams) WithDefaults() *CreateRandomIntegrationParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the create random integration params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateRandomIntegrationParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the create random integration params +func (o *CreateRandomIntegrationParams) WithTimeout(timeout time.Duration) *CreateRandomIntegrationParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the create random integration params +func (o *CreateRandomIntegrationParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the create random integration params +func (o *CreateRandomIntegrationParams) WithContext(ctx context.Context) *CreateRandomIntegrationParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the create random integration params +func (o *CreateRandomIntegrationParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the create random integration params +func (o *CreateRandomIntegrationParams) WithHTTPClient(client *http.Client) *CreateRandomIntegrationParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the create random integration params +func (o *CreateRandomIntegrationParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithBody adds the body to the create random integration params +func (o *CreateRandomIntegrationParams) WithBody(body *models.SecretServiceCreateRandomIntegrationBody) *CreateRandomIntegrationParams { + o.SetBody(body) + return o +} + +// SetBody adds the body to the create random integration params +func (o *CreateRandomIntegrationParams) SetBody(body *models.SecretServiceCreateRandomIntegrationBody) { + o.Body = body +} + +// WithOrganizationID adds the organizationID to the create random integration params +func (o *CreateRandomIntegrationParams) WithOrganizationID(organizationID string) *CreateRandomIntegrationParams { + o.SetOrganizationID(organizationID) + return o +} + +// SetOrganizationID adds the organizationId to the create random integration params +func (o *CreateRandomIntegrationParams) SetOrganizationID(organizationID string) { + o.OrganizationID = organizationID +} + +// WithProjectID adds the projectID to the create random integration params +func (o *CreateRandomIntegrationParams) WithProjectID(projectID string) *CreateRandomIntegrationParams { + o.SetProjectID(projectID) + return o +} + +// SetProjectID adds the projectId to the create random integration params +func (o *CreateRandomIntegrationParams) SetProjectID(projectID string) { + o.ProjectID = projectID +} + +// WriteToRequest writes these params to a swagger request +func (o *CreateRandomIntegrationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.Body != nil { + if err := r.SetBodyParam(o.Body); err != nil { + return err + } + } + + // path param organization_id + if err := r.SetPathParam("organization_id", o.OrganizationID); err != nil { + return err + } + + // path param project_id + if err := r.SetPathParam("project_id", o.ProjectID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_random_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_random_integration_responses.go new file mode 100644 index 00000000..bd082346 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_random_integration_responses.go @@ -0,0 +1,187 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package secret_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "encoding/json" + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-secrets/stable/2023-11-28/models" +) + +// CreateRandomIntegrationReader is a Reader for the CreateRandomIntegration structure. +type CreateRandomIntegrationReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CreateRandomIntegrationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewCreateRandomIntegrationOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + result := NewCreateRandomIntegrationDefault(response.Code()) + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + if response.Code()/100 == 2 { + return result, nil + } + return nil, result + } +} + +// NewCreateRandomIntegrationOK creates a CreateRandomIntegrationOK with default headers values +func NewCreateRandomIntegrationOK() *CreateRandomIntegrationOK { + return &CreateRandomIntegrationOK{} +} + +/* +CreateRandomIntegrationOK describes a response with status code 200, with default header values. + +A successful response. +*/ +type CreateRandomIntegrationOK struct { + Payload *models.Secrets20231128CreateRandomIntegrationResponse +} + +// IsSuccess returns true when this create random integration o k response has a 2xx status code +func (o *CreateRandomIntegrationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create random integration o k response has a 3xx status code +func (o *CreateRandomIntegrationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create random integration o k response has a 4xx status code +func (o *CreateRandomIntegrationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this create random integration o k response has a 5xx status code +func (o *CreateRandomIntegrationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this create random integration o k response a status code equal to that given +func (o *CreateRandomIntegrationOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the create random integration o k response +func (o *CreateRandomIntegrationOK) Code() int { + return 200 +} + +func (o *CreateRandomIntegrationOK) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config][%d] createRandomIntegrationOK %s", 200, payload) +} + +func (o *CreateRandomIntegrationOK) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config][%d] createRandomIntegrationOK %s", 200, payload) +} + +func (o *CreateRandomIntegrationOK) GetPayload() *models.Secrets20231128CreateRandomIntegrationResponse { + return o.Payload +} + +func (o *CreateRandomIntegrationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Secrets20231128CreateRandomIntegrationResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewCreateRandomIntegrationDefault creates a CreateRandomIntegrationDefault with default headers values +func NewCreateRandomIntegrationDefault(code int) *CreateRandomIntegrationDefault { + return &CreateRandomIntegrationDefault{ + _statusCode: code, + } +} + +/* +CreateRandomIntegrationDefault describes a response with status code -1, with default header values. + +An unexpected error response. +*/ +type CreateRandomIntegrationDefault struct { + _statusCode int + + Payload *models.GooglerpcStatus +} + +// IsSuccess returns true when this create random integration default response has a 2xx status code +func (o *CreateRandomIntegrationDefault) IsSuccess() bool { + return o._statusCode/100 == 2 +} + +// IsRedirect returns true when this create random integration default response has a 3xx status code +func (o *CreateRandomIntegrationDefault) IsRedirect() bool { + return o._statusCode/100 == 3 +} + +// IsClientError returns true when this create random integration default response has a 4xx status code +func (o *CreateRandomIntegrationDefault) IsClientError() bool { + return o._statusCode/100 == 4 +} + +// IsServerError returns true when this create random integration default response has a 5xx status code +func (o *CreateRandomIntegrationDefault) IsServerError() bool { + return o._statusCode/100 == 5 +} + +// IsCode returns true when this create random integration default response a status code equal to that given +func (o *CreateRandomIntegrationDefault) IsCode(code int) bool { + return o._statusCode == code +} + +// Code gets the status code for the create random integration default response +func (o *CreateRandomIntegrationDefault) Code() int { + return o._statusCode +} + +func (o *CreateRandomIntegrationDefault) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config][%d] CreateRandomIntegration default %s", o._statusCode, payload) +} + +func (o *CreateRandomIntegrationDefault) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config][%d] CreateRandomIntegration default %s", o._statusCode, payload) +} + +func (o *CreateRandomIntegrationDefault) GetPayload() *models.GooglerpcStatus { + return o.Payload +} + +func (o *CreateRandomIntegrationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.GooglerpcStatus) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_random_rotating_secret_parameters.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_random_rotating_secret_parameters.go new file mode 100644 index 00000000..cd7907c2 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_random_rotating_secret_parameters.go @@ -0,0 +1,207 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package secret_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-secrets/stable/2023-11-28/models" +) + +// NewCreateRandomRotatingSecretParams creates a new CreateRandomRotatingSecretParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCreateRandomRotatingSecretParams() *CreateRandomRotatingSecretParams { + return &CreateRandomRotatingSecretParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCreateRandomRotatingSecretParamsWithTimeout creates a new CreateRandomRotatingSecretParams object +// with the ability to set a timeout on a request. +func NewCreateRandomRotatingSecretParamsWithTimeout(timeout time.Duration) *CreateRandomRotatingSecretParams { + return &CreateRandomRotatingSecretParams{ + timeout: timeout, + } +} + +// NewCreateRandomRotatingSecretParamsWithContext creates a new CreateRandomRotatingSecretParams object +// with the ability to set a context for a request. +func NewCreateRandomRotatingSecretParamsWithContext(ctx context.Context) *CreateRandomRotatingSecretParams { + return &CreateRandomRotatingSecretParams{ + Context: ctx, + } +} + +// NewCreateRandomRotatingSecretParamsWithHTTPClient creates a new CreateRandomRotatingSecretParams object +// with the ability to set a custom HTTPClient for a request. +func NewCreateRandomRotatingSecretParamsWithHTTPClient(client *http.Client) *CreateRandomRotatingSecretParams { + return &CreateRandomRotatingSecretParams{ + HTTPClient: client, + } +} + +/* +CreateRandomRotatingSecretParams contains all the parameters to send to the API endpoint + + for the create random rotating secret operation. + + Typically these are written to a http.Request. +*/ +type CreateRandomRotatingSecretParams struct { + + // AppName. + AppName string + + // Body. + Body *models.SecretServiceCreateRandomRotatingSecretBody + + // OrganizationID. + OrganizationID string + + // ProjectID. + ProjectID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the create random rotating secret params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateRandomRotatingSecretParams) WithDefaults() *CreateRandomRotatingSecretParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the create random rotating secret params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CreateRandomRotatingSecretParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the create random rotating secret params +func (o *CreateRandomRotatingSecretParams) WithTimeout(timeout time.Duration) *CreateRandomRotatingSecretParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the create random rotating secret params +func (o *CreateRandomRotatingSecretParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the create random rotating secret params +func (o *CreateRandomRotatingSecretParams) WithContext(ctx context.Context) *CreateRandomRotatingSecretParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the create random rotating secret params +func (o *CreateRandomRotatingSecretParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the create random rotating secret params +func (o *CreateRandomRotatingSecretParams) WithHTTPClient(client *http.Client) *CreateRandomRotatingSecretParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the create random rotating secret params +func (o *CreateRandomRotatingSecretParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAppName adds the appName to the create random rotating secret params +func (o *CreateRandomRotatingSecretParams) WithAppName(appName string) *CreateRandomRotatingSecretParams { + o.SetAppName(appName) + return o +} + +// SetAppName adds the appName to the create random rotating secret params +func (o *CreateRandomRotatingSecretParams) SetAppName(appName string) { + o.AppName = appName +} + +// WithBody adds the body to the create random rotating secret params +func (o *CreateRandomRotatingSecretParams) WithBody(body *models.SecretServiceCreateRandomRotatingSecretBody) *CreateRandomRotatingSecretParams { + o.SetBody(body) + return o +} + +// SetBody adds the body to the create random rotating secret params +func (o *CreateRandomRotatingSecretParams) SetBody(body *models.SecretServiceCreateRandomRotatingSecretBody) { + o.Body = body +} + +// WithOrganizationID adds the organizationID to the create random rotating secret params +func (o *CreateRandomRotatingSecretParams) WithOrganizationID(organizationID string) *CreateRandomRotatingSecretParams { + o.SetOrganizationID(organizationID) + return o +} + +// SetOrganizationID adds the organizationId to the create random rotating secret params +func (o *CreateRandomRotatingSecretParams) SetOrganizationID(organizationID string) { + o.OrganizationID = organizationID +} + +// WithProjectID adds the projectID to the create random rotating secret params +func (o *CreateRandomRotatingSecretParams) WithProjectID(projectID string) *CreateRandomRotatingSecretParams { + o.SetProjectID(projectID) + return o +} + +// SetProjectID adds the projectId to the create random rotating secret params +func (o *CreateRandomRotatingSecretParams) SetProjectID(projectID string) { + o.ProjectID = projectID +} + +// WriteToRequest writes these params to a swagger request +func (o *CreateRandomRotatingSecretParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param app_name + if err := r.SetPathParam("app_name", o.AppName); err != nil { + return err + } + if o.Body != nil { + if err := r.SetBodyParam(o.Body); err != nil { + return err + } + } + + // path param organization_id + if err := r.SetPathParam("organization_id", o.OrganizationID); err != nil { + return err + } + + // path param project_id + if err := r.SetPathParam("project_id", o.ProjectID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_random_rotating_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_random_rotating_secret_responses.go new file mode 100644 index 00000000..e6bb1f0e --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_random_rotating_secret_responses.go @@ -0,0 +1,187 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package secret_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "encoding/json" + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-secrets/stable/2023-11-28/models" +) + +// CreateRandomRotatingSecretReader is a Reader for the CreateRandomRotatingSecret structure. +type CreateRandomRotatingSecretReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CreateRandomRotatingSecretReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewCreateRandomRotatingSecretOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + result := NewCreateRandomRotatingSecretDefault(response.Code()) + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + if response.Code()/100 == 2 { + return result, nil + } + return nil, result + } +} + +// NewCreateRandomRotatingSecretOK creates a CreateRandomRotatingSecretOK with default headers values +func NewCreateRandomRotatingSecretOK() *CreateRandomRotatingSecretOK { + return &CreateRandomRotatingSecretOK{} +} + +/* +CreateRandomRotatingSecretOK describes a response with status code 200, with default header values. + +A successful response. +*/ +type CreateRandomRotatingSecretOK struct { + Payload *models.Secrets20231128CreateRandomRotatingSecretResponse +} + +// IsSuccess returns true when this create random rotating secret o k response has a 2xx status code +func (o *CreateRandomRotatingSecretOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this create random rotating secret o k response has a 3xx status code +func (o *CreateRandomRotatingSecretOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this create random rotating secret o k response has a 4xx status code +func (o *CreateRandomRotatingSecretOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this create random rotating secret o k response has a 5xx status code +func (o *CreateRandomRotatingSecretOK) IsServerError() bool { + return false +} + +// IsCode returns true when this create random rotating secret o k response a status code equal to that given +func (o *CreateRandomRotatingSecretOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the create random rotating secret o k response +func (o *CreateRandomRotatingSecretOK) Code() int { + return 200 +} + +func (o *CreateRandomRotatingSecretOK) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/random/secret][%d] createRandomRotatingSecretOK %s", 200, payload) +} + +func (o *CreateRandomRotatingSecretOK) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/random/secret][%d] createRandomRotatingSecretOK %s", 200, payload) +} + +func (o *CreateRandomRotatingSecretOK) GetPayload() *models.Secrets20231128CreateRandomRotatingSecretResponse { + return o.Payload +} + +func (o *CreateRandomRotatingSecretOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Secrets20231128CreateRandomRotatingSecretResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewCreateRandomRotatingSecretDefault creates a CreateRandomRotatingSecretDefault with default headers values +func NewCreateRandomRotatingSecretDefault(code int) *CreateRandomRotatingSecretDefault { + return &CreateRandomRotatingSecretDefault{ + _statusCode: code, + } +} + +/* +CreateRandomRotatingSecretDefault describes a response with status code -1, with default header values. + +An unexpected error response. +*/ +type CreateRandomRotatingSecretDefault struct { + _statusCode int + + Payload *models.GooglerpcStatus +} + +// IsSuccess returns true when this create random rotating secret default response has a 2xx status code +func (o *CreateRandomRotatingSecretDefault) IsSuccess() bool { + return o._statusCode/100 == 2 +} + +// IsRedirect returns true when this create random rotating secret default response has a 3xx status code +func (o *CreateRandomRotatingSecretDefault) IsRedirect() bool { + return o._statusCode/100 == 3 +} + +// IsClientError returns true when this create random rotating secret default response has a 4xx status code +func (o *CreateRandomRotatingSecretDefault) IsClientError() bool { + return o._statusCode/100 == 4 +} + +// IsServerError returns true when this create random rotating secret default response has a 5xx status code +func (o *CreateRandomRotatingSecretDefault) IsServerError() bool { + return o._statusCode/100 == 5 +} + +// IsCode returns true when this create random rotating secret default response a status code equal to that given +func (o *CreateRandomRotatingSecretDefault) IsCode(code int) bool { + return o._statusCode == code +} + +// Code gets the status code for the create random rotating secret default response +func (o *CreateRandomRotatingSecretDefault) Code() int { + return o._statusCode +} + +func (o *CreateRandomRotatingSecretDefault) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/random/secret][%d] CreateRandomRotatingSecret default %s", o._statusCode, payload) +} + +func (o *CreateRandomRotatingSecretDefault) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/random/secret][%d] CreateRandomRotatingSecret default %s", o._statusCode, payload) +} + +func (o *CreateRandomRotatingSecretDefault) GetPayload() *models.GooglerpcStatus { + return o.Payload +} + +func (o *CreateRandomRotatingSecretDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.GooglerpcStatus) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_sync_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_sync_responses.go index 932f14c8..cee5cab5 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_sync_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_sync_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *CreateSyncOK) Code() int { } func (o *CreateSyncOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs][%d] createSyncOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs][%d] createSyncOK %s", 200, payload) } func (o *CreateSyncOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs][%d] createSyncOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs][%d] createSyncOK %s", 200, payload) } func (o *CreateSyncOK) GetPayload() *models.Secrets20231128CreateSyncResponse { @@ -158,11 +161,13 @@ func (o *CreateSyncDefault) Code() int { } func (o *CreateSyncDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs][%d] CreateSync default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs][%d] CreateSync default %s", o._statusCode, payload) } func (o *CreateSyncDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs][%d] CreateSync default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs][%d] CreateSync default %s", o._statusCode, payload) } func (o *CreateSyncDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_twilio_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_twilio_integration_responses.go index 53621280..ff8431a3 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_twilio_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_twilio_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *CreateTwilioIntegrationOK) Code() int { } func (o *CreateTwilioIntegrationOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config][%d] createTwilioIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config][%d] createTwilioIntegrationOK %s", 200, payload) } func (o *CreateTwilioIntegrationOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config][%d] createTwilioIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config][%d] createTwilioIntegrationOK %s", 200, payload) } func (o *CreateTwilioIntegrationOK) GetPayload() *models.Secrets20231128CreateTwilioIntegrationResponse { @@ -158,11 +161,13 @@ func (o *CreateTwilioIntegrationDefault) Code() int { } func (o *CreateTwilioIntegrationDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config][%d] CreateTwilioIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config][%d] CreateTwilioIntegration default %s", o._statusCode, payload) } func (o *CreateTwilioIntegrationDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config][%d] CreateTwilioIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config][%d] CreateTwilioIntegration default %s", o._statusCode, payload) } func (o *CreateTwilioIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_twilio_rotating_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_twilio_rotating_secret_responses.go index abfdd6da..67737a14 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_twilio_rotating_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/create_twilio_rotating_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *CreateTwilioRotatingSecretOK) Code() int { } func (o *CreateTwilioRotatingSecretOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/twilio/secret][%d] createTwilioRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/twilio/secret][%d] createTwilioRotatingSecretOK %s", 200, payload) } func (o *CreateTwilioRotatingSecretOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/twilio/secret][%d] createTwilioRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/twilio/secret][%d] createTwilioRotatingSecretOK %s", 200, payload) } func (o *CreateTwilioRotatingSecretOK) GetPayload() *models.Secrets20231128CreateTwilioRotatingSecretResponse { @@ -158,11 +161,13 @@ func (o *CreateTwilioRotatingSecretDefault) Code() int { } func (o *CreateTwilioRotatingSecretDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/twilio/secret][%d] CreateTwilioRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/twilio/secret][%d] CreateTwilioRotatingSecret default %s", o._statusCode, payload) } func (o *CreateTwilioRotatingSecretDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/twilio/secret][%d] CreateTwilioRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/twilio/secret][%d] CreateTwilioRotatingSecret default %s", o._statusCode, payload) } func (o *CreateTwilioRotatingSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_app_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_app_responses.go index 578da537..98bbe595 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_app_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_app_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *DeleteAppOK) Code() int { } func (o *DeleteAppOK) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}][%d] deleteAppOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}][%d] deleteAppOK %s", 200, payload) } func (o *DeleteAppOK) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}][%d] deleteAppOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}][%d] deleteAppOK %s", 200, payload) } func (o *DeleteAppOK) GetPayload() models.Secrets20231128DeleteAppResponse { @@ -156,11 +159,13 @@ func (o *DeleteAppDefault) Code() int { } func (o *DeleteAppDefault) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}][%d] DeleteApp default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}][%d] DeleteApp default %s", o._statusCode, payload) } func (o *DeleteAppDefault) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}][%d] DeleteApp default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}][%d] DeleteApp default %s", o._statusCode, payload) } func (o *DeleteAppDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_app_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_app_secret_responses.go index a658a0c0..0209e644 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_app_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_app_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *DeleteAppSecretOK) Code() int { } func (o *DeleteAppSecretOK) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}][%d] deleteAppSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}][%d] deleteAppSecretOK %s", 200, payload) } func (o *DeleteAppSecretOK) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}][%d] deleteAppSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}][%d] deleteAppSecretOK %s", 200, payload) } func (o *DeleteAppSecretOK) GetPayload() models.Secrets20231128DeleteAppSecretResponse { @@ -156,11 +159,13 @@ func (o *DeleteAppSecretDefault) Code() int { } func (o *DeleteAppSecretDefault) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}][%d] DeleteAppSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}][%d] DeleteAppSecret default %s", o._statusCode, payload) } func (o *DeleteAppSecretDefault) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}][%d] DeleteAppSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}][%d] DeleteAppSecret default %s", o._statusCode, payload) } func (o *DeleteAppSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_app_secret_version_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_app_secret_version_responses.go index c32b6b43..f99a0f0a 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_app_secret_version_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_app_secret_version_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *DeleteAppSecretVersionOK) Code() int { } func (o *DeleteAppSecretVersionOK) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] deleteAppSecretVersionOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] deleteAppSecretVersionOK %s", 200, payload) } func (o *DeleteAppSecretVersionOK) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] deleteAppSecretVersionOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] deleteAppSecretVersionOK %s", 200, payload) } func (o *DeleteAppSecretVersionOK) GetPayload() models.Secrets20231128DeleteAppSecretVersionResponse { @@ -156,11 +159,13 @@ func (o *DeleteAppSecretVersionDefault) Code() int { } func (o *DeleteAppSecretVersionDefault) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] DeleteAppSecretVersion default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] DeleteAppSecretVersion default %s", o._statusCode, payload) } func (o *DeleteAppSecretVersionDefault) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] DeleteAppSecretVersion default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] DeleteAppSecretVersion default %s", o._statusCode, payload) } func (o *DeleteAppSecretVersionDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_aws_dynamic_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_aws_dynamic_secret_responses.go index 7844a003..9593cdc6 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_aws_dynamic_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_aws_dynamic_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *DeleteAwsDynamicSecretOK) Code() int { } func (o *DeleteAwsDynamicSecretOK) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret/{name}][%d] deleteAwsDynamicSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret/{name}][%d] deleteAwsDynamicSecretOK %s", 200, payload) } func (o *DeleteAwsDynamicSecretOK) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret/{name}][%d] deleteAwsDynamicSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret/{name}][%d] deleteAwsDynamicSecretOK %s", 200, payload) } func (o *DeleteAwsDynamicSecretOK) GetPayload() models.Secrets20231128DeleteAwsDynamicSecretResponse { @@ -156,11 +159,13 @@ func (o *DeleteAwsDynamicSecretDefault) Code() int { } func (o *DeleteAwsDynamicSecretDefault) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret/{name}][%d] DeleteAwsDynamicSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret/{name}][%d] DeleteAwsDynamicSecret default %s", o._statusCode, payload) } func (o *DeleteAwsDynamicSecretDefault) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret/{name}][%d] DeleteAwsDynamicSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret/{name}][%d] DeleteAwsDynamicSecret default %s", o._statusCode, payload) } func (o *DeleteAwsDynamicSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_aws_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_aws_integration_responses.go index 334c1d72..33777873 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_aws_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_aws_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *DeleteAwsIntegrationOK) Code() int { } func (o *DeleteAwsIntegrationOK) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config/{name}][%d] deleteAwsIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config/{name}][%d] deleteAwsIntegrationOK %s", 200, payload) } func (o *DeleteAwsIntegrationOK) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config/{name}][%d] deleteAwsIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config/{name}][%d] deleteAwsIntegrationOK %s", 200, payload) } func (o *DeleteAwsIntegrationOK) GetPayload() models.Secrets20231128DeleteAwsIntegrationResponse { @@ -156,11 +159,13 @@ func (o *DeleteAwsIntegrationDefault) Code() int { } func (o *DeleteAwsIntegrationDefault) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config/{name}][%d] DeleteAwsIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config/{name}][%d] DeleteAwsIntegration default %s", o._statusCode, payload) } func (o *DeleteAwsIntegrationDefault) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config/{name}][%d] DeleteAwsIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config/{name}][%d] DeleteAwsIntegration default %s", o._statusCode, payload) } func (o *DeleteAwsIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_azure_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_azure_integration_responses.go index 99654ce4..861d8a7c 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_azure_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_azure_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *DeleteAzureIntegrationOK) Code() int { } func (o *DeleteAzureIntegrationOK) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config/{name}][%d] deleteAzureIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config/{name}][%d] deleteAzureIntegrationOK %s", 200, payload) } func (o *DeleteAzureIntegrationOK) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config/{name}][%d] deleteAzureIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config/{name}][%d] deleteAzureIntegrationOK %s", 200, payload) } func (o *DeleteAzureIntegrationOK) GetPayload() models.Secrets20231128DeleteAzureIntegrationResponse { @@ -156,11 +159,13 @@ func (o *DeleteAzureIntegrationDefault) Code() int { } func (o *DeleteAzureIntegrationDefault) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config/{name}][%d] DeleteAzureIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config/{name}][%d] DeleteAzureIntegration default %s", o._statusCode, payload) } func (o *DeleteAzureIntegrationDefault) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config/{name}][%d] DeleteAzureIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config/{name}][%d] DeleteAzureIntegration default %s", o._statusCode, payload) } func (o *DeleteAzureIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_confluent_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_confluent_integration_responses.go index 5fc88abb..4f8c4007 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_confluent_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_confluent_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *DeleteConfluentIntegrationOK) Code() int { } func (o *DeleteConfluentIntegrationOK) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config/{name}][%d] deleteConfluentIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config/{name}][%d] deleteConfluentIntegrationOK %s", 200, payload) } func (o *DeleteConfluentIntegrationOK) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config/{name}][%d] deleteConfluentIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config/{name}][%d] deleteConfluentIntegrationOK %s", 200, payload) } func (o *DeleteConfluentIntegrationOK) GetPayload() models.Secrets20231128DeleteConfluentIntegrationResponse { @@ -156,11 +159,13 @@ func (o *DeleteConfluentIntegrationDefault) Code() int { } func (o *DeleteConfluentIntegrationDefault) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config/{name}][%d] DeleteConfluentIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config/{name}][%d] DeleteConfluentIntegration default %s", o._statusCode, payload) } func (o *DeleteConfluentIntegrationDefault) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config/{name}][%d] DeleteConfluentIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config/{name}][%d] DeleteConfluentIntegration default %s", o._statusCode, payload) } func (o *DeleteConfluentIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_gateway_pool_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_gateway_pool_responses.go index b23b35c8..131daa72 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_gateway_pool_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_gateway_pool_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *DeleteGatewayPoolOK) Code() int { } func (o *DeleteGatewayPoolOK) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}][%d] deleteGatewayPoolOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}][%d] deleteGatewayPoolOK %s", 200, payload) } func (o *DeleteGatewayPoolOK) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}][%d] deleteGatewayPoolOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}][%d] deleteGatewayPoolOK %s", 200, payload) } func (o *DeleteGatewayPoolOK) GetPayload() models.Secrets20231128DeleteGatewayPoolResponse { @@ -156,11 +159,13 @@ func (o *DeleteGatewayPoolDefault) Code() int { } func (o *DeleteGatewayPoolDefault) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}][%d] DeleteGatewayPool default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}][%d] DeleteGatewayPool default %s", o._statusCode, payload) } func (o *DeleteGatewayPoolDefault) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}][%d] DeleteGatewayPool default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}][%d] DeleteGatewayPool default %s", o._statusCode, payload) } func (o *DeleteGatewayPoolDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_gcp_dynamic_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_gcp_dynamic_secret_responses.go index 7f86dc2d..c9344007 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_gcp_dynamic_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_gcp_dynamic_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *DeleteGcpDynamicSecretOK) Code() int { } func (o *DeleteGcpDynamicSecretOK) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret/{name}][%d] deleteGcpDynamicSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret/{name}][%d] deleteGcpDynamicSecretOK %s", 200, payload) } func (o *DeleteGcpDynamicSecretOK) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret/{name}][%d] deleteGcpDynamicSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret/{name}][%d] deleteGcpDynamicSecretOK %s", 200, payload) } func (o *DeleteGcpDynamicSecretOK) GetPayload() models.Secrets20231128DeleteGcpDynamicSecretResponse { @@ -156,11 +159,13 @@ func (o *DeleteGcpDynamicSecretDefault) Code() int { } func (o *DeleteGcpDynamicSecretDefault) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret/{name}][%d] DeleteGcpDynamicSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret/{name}][%d] DeleteGcpDynamicSecret default %s", o._statusCode, payload) } func (o *DeleteGcpDynamicSecretDefault) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret/{name}][%d] DeleteGcpDynamicSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret/{name}][%d] DeleteGcpDynamicSecret default %s", o._statusCode, payload) } func (o *DeleteGcpDynamicSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_gcp_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_gcp_integration_responses.go index ba910a02..214252d8 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_gcp_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_gcp_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *DeleteGcpIntegrationOK) Code() int { } func (o *DeleteGcpIntegrationOK) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config/{name}][%d] deleteGcpIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config/{name}][%d] deleteGcpIntegrationOK %s", 200, payload) } func (o *DeleteGcpIntegrationOK) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config/{name}][%d] deleteGcpIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config/{name}][%d] deleteGcpIntegrationOK %s", 200, payload) } func (o *DeleteGcpIntegrationOK) GetPayload() models.Secrets20231128DeleteGcpIntegrationResponse { @@ -156,11 +159,13 @@ func (o *DeleteGcpIntegrationDefault) Code() int { } func (o *DeleteGcpIntegrationDefault) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config/{name}][%d] DeleteGcpIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config/{name}][%d] DeleteGcpIntegration default %s", o._statusCode, payload) } func (o *DeleteGcpIntegrationDefault) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config/{name}][%d] DeleteGcpIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config/{name}][%d] DeleteGcpIntegration default %s", o._statusCode, payload) } func (o *DeleteGcpIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_integration_responses.go index 03f15e6f..cea98834 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *DeleteIntegrationOK) Code() int { } func (o *DeleteIntegrationOK) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/{name}][%d] deleteIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/{name}][%d] deleteIntegrationOK %s", 200, payload) } func (o *DeleteIntegrationOK) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/{name}][%d] deleteIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/{name}][%d] deleteIntegrationOK %s", 200, payload) } func (o *DeleteIntegrationOK) GetPayload() models.Secrets20231128DeleteIntegrationResponse { @@ -156,11 +159,13 @@ func (o *DeleteIntegrationDefault) Code() int { } func (o *DeleteIntegrationDefault) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/{name}][%d] DeleteIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/{name}][%d] DeleteIntegration default %s", o._statusCode, payload) } func (o *DeleteIntegrationDefault) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/{name}][%d] DeleteIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/{name}][%d] DeleteIntegration default %s", o._statusCode, payload) } func (o *DeleteIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_mongo_d_b_atlas_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_mongo_d_b_atlas_integration_responses.go index d5d03274..dae90a03 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_mongo_d_b_atlas_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_mongo_d_b_atlas_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *DeleteMongoDBAtlasIntegrationOK) Code() int { } func (o *DeleteMongoDBAtlasIntegrationOK) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config/{name}][%d] deleteMongoDBAtlasIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config/{name}][%d] deleteMongoDBAtlasIntegrationOK %s", 200, payload) } func (o *DeleteMongoDBAtlasIntegrationOK) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config/{name}][%d] deleteMongoDBAtlasIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config/{name}][%d] deleteMongoDBAtlasIntegrationOK %s", 200, payload) } func (o *DeleteMongoDBAtlasIntegrationOK) GetPayload() models.Secrets20231128DeleteMongoDBAtlasIntegrationResponse { @@ -156,11 +159,13 @@ func (o *DeleteMongoDBAtlasIntegrationDefault) Code() int { } func (o *DeleteMongoDBAtlasIntegrationDefault) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config/{name}][%d] DeleteMongoDBAtlasIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config/{name}][%d] DeleteMongoDBAtlasIntegration default %s", o._statusCode, payload) } func (o *DeleteMongoDBAtlasIntegrationDefault) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config/{name}][%d] DeleteMongoDBAtlasIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config/{name}][%d] DeleteMongoDBAtlasIntegration default %s", o._statusCode, payload) } func (o *DeleteMongoDBAtlasIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_postgres_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_postgres_integration_responses.go index 363ae1d2..8ba849e0 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_postgres_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_postgres_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *DeletePostgresIntegrationOK) Code() int { } func (o *DeletePostgresIntegrationOK) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config/{name}][%d] deletePostgresIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config/{name}][%d] deletePostgresIntegrationOK %s", 200, payload) } func (o *DeletePostgresIntegrationOK) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config/{name}][%d] deletePostgresIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config/{name}][%d] deletePostgresIntegrationOK %s", 200, payload) } func (o *DeletePostgresIntegrationOK) GetPayload() models.Secrets20231128DeletePostgresIntegrationResponse { @@ -156,11 +159,13 @@ func (o *DeletePostgresIntegrationDefault) Code() int { } func (o *DeletePostgresIntegrationDefault) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config/{name}][%d] DeletePostgresIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config/{name}][%d] DeletePostgresIntegration default %s", o._statusCode, payload) } func (o *DeletePostgresIntegrationDefault) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config/{name}][%d] DeletePostgresIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config/{name}][%d] DeletePostgresIntegration default %s", o._statusCode, payload) } func (o *DeletePostgresIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_random_integration_parameters.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_random_integration_parameters.go new file mode 100644 index 00000000..2a63dd8e --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_random_integration_parameters.go @@ -0,0 +1,186 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package secret_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewDeleteRandomIntegrationParams creates a new DeleteRandomIntegrationParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewDeleteRandomIntegrationParams() *DeleteRandomIntegrationParams { + return &DeleteRandomIntegrationParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewDeleteRandomIntegrationParamsWithTimeout creates a new DeleteRandomIntegrationParams object +// with the ability to set a timeout on a request. +func NewDeleteRandomIntegrationParamsWithTimeout(timeout time.Duration) *DeleteRandomIntegrationParams { + return &DeleteRandomIntegrationParams{ + timeout: timeout, + } +} + +// NewDeleteRandomIntegrationParamsWithContext creates a new DeleteRandomIntegrationParams object +// with the ability to set a context for a request. +func NewDeleteRandomIntegrationParamsWithContext(ctx context.Context) *DeleteRandomIntegrationParams { + return &DeleteRandomIntegrationParams{ + Context: ctx, + } +} + +// NewDeleteRandomIntegrationParamsWithHTTPClient creates a new DeleteRandomIntegrationParams object +// with the ability to set a custom HTTPClient for a request. +func NewDeleteRandomIntegrationParamsWithHTTPClient(client *http.Client) *DeleteRandomIntegrationParams { + return &DeleteRandomIntegrationParams{ + HTTPClient: client, + } +} + +/* +DeleteRandomIntegrationParams contains all the parameters to send to the API endpoint + + for the delete random integration operation. + + Typically these are written to a http.Request. +*/ +type DeleteRandomIntegrationParams struct { + + // Name. + Name string + + // OrganizationID. + OrganizationID string + + // ProjectID. + ProjectID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the delete random integration params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteRandomIntegrationParams) WithDefaults() *DeleteRandomIntegrationParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the delete random integration params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *DeleteRandomIntegrationParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the delete random integration params +func (o *DeleteRandomIntegrationParams) WithTimeout(timeout time.Duration) *DeleteRandomIntegrationParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the delete random integration params +func (o *DeleteRandomIntegrationParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the delete random integration params +func (o *DeleteRandomIntegrationParams) WithContext(ctx context.Context) *DeleteRandomIntegrationParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the delete random integration params +func (o *DeleteRandomIntegrationParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the delete random integration params +func (o *DeleteRandomIntegrationParams) WithHTTPClient(client *http.Client) *DeleteRandomIntegrationParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the delete random integration params +func (o *DeleteRandomIntegrationParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithName adds the name to the delete random integration params +func (o *DeleteRandomIntegrationParams) WithName(name string) *DeleteRandomIntegrationParams { + o.SetName(name) + return o +} + +// SetName adds the name to the delete random integration params +func (o *DeleteRandomIntegrationParams) SetName(name string) { + o.Name = name +} + +// WithOrganizationID adds the organizationID to the delete random integration params +func (o *DeleteRandomIntegrationParams) WithOrganizationID(organizationID string) *DeleteRandomIntegrationParams { + o.SetOrganizationID(organizationID) + return o +} + +// SetOrganizationID adds the organizationId to the delete random integration params +func (o *DeleteRandomIntegrationParams) SetOrganizationID(organizationID string) { + o.OrganizationID = organizationID +} + +// WithProjectID adds the projectID to the delete random integration params +func (o *DeleteRandomIntegrationParams) WithProjectID(projectID string) *DeleteRandomIntegrationParams { + o.SetProjectID(projectID) + return o +} + +// SetProjectID adds the projectId to the delete random integration params +func (o *DeleteRandomIntegrationParams) SetProjectID(projectID string) { + o.ProjectID = projectID +} + +// WriteToRequest writes these params to a swagger request +func (o *DeleteRandomIntegrationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param name + if err := r.SetPathParam("name", o.Name); err != nil { + return err + } + + // path param organization_id + if err := r.SetPathParam("organization_id", o.OrganizationID); err != nil { + return err + } + + // path param project_id + if err := r.SetPathParam("project_id", o.ProjectID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_random_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_random_integration_responses.go new file mode 100644 index 00000000..61ee4c3c --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_random_integration_responses.go @@ -0,0 +1,185 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package secret_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "encoding/json" + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-secrets/stable/2023-11-28/models" +) + +// DeleteRandomIntegrationReader is a Reader for the DeleteRandomIntegration structure. +type DeleteRandomIntegrationReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *DeleteRandomIntegrationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewDeleteRandomIntegrationOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + result := NewDeleteRandomIntegrationDefault(response.Code()) + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + if response.Code()/100 == 2 { + return result, nil + } + return nil, result + } +} + +// NewDeleteRandomIntegrationOK creates a DeleteRandomIntegrationOK with default headers values +func NewDeleteRandomIntegrationOK() *DeleteRandomIntegrationOK { + return &DeleteRandomIntegrationOK{} +} + +/* +DeleteRandomIntegrationOK describes a response with status code 200, with default header values. + +A successful response. +*/ +type DeleteRandomIntegrationOK struct { + Payload models.Secrets20231128DeleteRandomIntegrationResponse +} + +// IsSuccess returns true when this delete random integration o k response has a 2xx status code +func (o *DeleteRandomIntegrationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this delete random integration o k response has a 3xx status code +func (o *DeleteRandomIntegrationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this delete random integration o k response has a 4xx status code +func (o *DeleteRandomIntegrationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this delete random integration o k response has a 5xx status code +func (o *DeleteRandomIntegrationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this delete random integration o k response a status code equal to that given +func (o *DeleteRandomIntegrationOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the delete random integration o k response +func (o *DeleteRandomIntegrationOK) Code() int { + return 200 +} + +func (o *DeleteRandomIntegrationOK) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config/{name}][%d] deleteRandomIntegrationOK %s", 200, payload) +} + +func (o *DeleteRandomIntegrationOK) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config/{name}][%d] deleteRandomIntegrationOK %s", 200, payload) +} + +func (o *DeleteRandomIntegrationOK) GetPayload() models.Secrets20231128DeleteRandomIntegrationResponse { + return o.Payload +} + +func (o *DeleteRandomIntegrationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // response payload + if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewDeleteRandomIntegrationDefault creates a DeleteRandomIntegrationDefault with default headers values +func NewDeleteRandomIntegrationDefault(code int) *DeleteRandomIntegrationDefault { + return &DeleteRandomIntegrationDefault{ + _statusCode: code, + } +} + +/* +DeleteRandomIntegrationDefault describes a response with status code -1, with default header values. + +An unexpected error response. +*/ +type DeleteRandomIntegrationDefault struct { + _statusCode int + + Payload *models.GooglerpcStatus +} + +// IsSuccess returns true when this delete random integration default response has a 2xx status code +func (o *DeleteRandomIntegrationDefault) IsSuccess() bool { + return o._statusCode/100 == 2 +} + +// IsRedirect returns true when this delete random integration default response has a 3xx status code +func (o *DeleteRandomIntegrationDefault) IsRedirect() bool { + return o._statusCode/100 == 3 +} + +// IsClientError returns true when this delete random integration default response has a 4xx status code +func (o *DeleteRandomIntegrationDefault) IsClientError() bool { + return o._statusCode/100 == 4 +} + +// IsServerError returns true when this delete random integration default response has a 5xx status code +func (o *DeleteRandomIntegrationDefault) IsServerError() bool { + return o._statusCode/100 == 5 +} + +// IsCode returns true when this delete random integration default response a status code equal to that given +func (o *DeleteRandomIntegrationDefault) IsCode(code int) bool { + return o._statusCode == code +} + +// Code gets the status code for the delete random integration default response +func (o *DeleteRandomIntegrationDefault) Code() int { + return o._statusCode +} + +func (o *DeleteRandomIntegrationDefault) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config/{name}][%d] DeleteRandomIntegration default %s", o._statusCode, payload) +} + +func (o *DeleteRandomIntegrationDefault) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config/{name}][%d] DeleteRandomIntegration default %s", o._statusCode, payload) +} + +func (o *DeleteRandomIntegrationDefault) GetPayload() *models.GooglerpcStatus { + return o.Payload +} + +func (o *DeleteRandomIntegrationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.GooglerpcStatus) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_sync_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_sync_responses.go index 5fd7a013..206a864f 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_sync_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_sync_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *DeleteSyncOK) Code() int { } func (o *DeleteSyncOK) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs/{name}][%d] deleteSyncOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs/{name}][%d] deleteSyncOK %s", 200, payload) } func (o *DeleteSyncOK) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs/{name}][%d] deleteSyncOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs/{name}][%d] deleteSyncOK %s", 200, payload) } func (o *DeleteSyncOK) GetPayload() models.Secrets20231128DeleteSyncResponse { @@ -156,11 +159,13 @@ func (o *DeleteSyncDefault) Code() int { } func (o *DeleteSyncDefault) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs/{name}][%d] DeleteSync default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs/{name}][%d] DeleteSync default %s", o._statusCode, payload) } func (o *DeleteSyncDefault) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs/{name}][%d] DeleteSync default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs/{name}][%d] DeleteSync default %s", o._statusCode, payload) } func (o *DeleteSyncDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_twilio_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_twilio_integration_responses.go index cb8504d1..1321c891 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_twilio_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/delete_twilio_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *DeleteTwilioIntegrationOK) Code() int { } func (o *DeleteTwilioIntegrationOK) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config/{name}][%d] deleteTwilioIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config/{name}][%d] deleteTwilioIntegrationOK %s", 200, payload) } func (o *DeleteTwilioIntegrationOK) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config/{name}][%d] deleteTwilioIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config/{name}][%d] deleteTwilioIntegrationOK %s", 200, payload) } func (o *DeleteTwilioIntegrationOK) GetPayload() models.Secrets20231128DeleteTwilioIntegrationResponse { @@ -156,11 +159,13 @@ func (o *DeleteTwilioIntegrationDefault) Code() int { } func (o *DeleteTwilioIntegrationDefault) Error() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config/{name}][%d] DeleteTwilioIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config/{name}][%d] DeleteTwilioIntegration default %s", o._statusCode, payload) } func (o *DeleteTwilioIntegrationDefault) String() string { - return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config/{name}][%d] DeleteTwilioIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[DELETE /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config/{name}][%d] DeleteTwilioIntegration default %s", o._statusCode, payload) } func (o *DeleteTwilioIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_app_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_app_responses.go index 08432b13..48c9fb07 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_app_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_app_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetAppOK) Code() int { } func (o *GetAppOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}][%d] getAppOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}][%d] getAppOK %s", 200, payload) } func (o *GetAppOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}][%d] getAppOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}][%d] getAppOK %s", 200, payload) } func (o *GetAppOK) GetPayload() *models.Secrets20231128GetAppResponse { @@ -158,11 +161,13 @@ func (o *GetAppDefault) Code() int { } func (o *GetAppDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}][%d] GetApp default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}][%d] GetApp default %s", o._statusCode, payload) } func (o *GetAppDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}][%d] GetApp default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}][%d] GetApp default %s", o._statusCode, payload) } func (o *GetAppDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_app_rotating_secret_parameters.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_app_rotating_secret_parameters.go new file mode 100644 index 00000000..16fa3ac4 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_app_rotating_secret_parameters.go @@ -0,0 +1,205 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package secret_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewGetAppRotatingSecretParams creates a new GetAppRotatingSecretParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewGetAppRotatingSecretParams() *GetAppRotatingSecretParams { + return &GetAppRotatingSecretParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetAppRotatingSecretParamsWithTimeout creates a new GetAppRotatingSecretParams object +// with the ability to set a timeout on a request. +func NewGetAppRotatingSecretParamsWithTimeout(timeout time.Duration) *GetAppRotatingSecretParams { + return &GetAppRotatingSecretParams{ + timeout: timeout, + } +} + +// NewGetAppRotatingSecretParamsWithContext creates a new GetAppRotatingSecretParams object +// with the ability to set a context for a request. +func NewGetAppRotatingSecretParamsWithContext(ctx context.Context) *GetAppRotatingSecretParams { + return &GetAppRotatingSecretParams{ + Context: ctx, + } +} + +// NewGetAppRotatingSecretParamsWithHTTPClient creates a new GetAppRotatingSecretParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetAppRotatingSecretParamsWithHTTPClient(client *http.Client) *GetAppRotatingSecretParams { + return &GetAppRotatingSecretParams{ + HTTPClient: client, + } +} + +/* +GetAppRotatingSecretParams contains all the parameters to send to the API endpoint + + for the get app rotating secret operation. + + Typically these are written to a http.Request. +*/ +type GetAppRotatingSecretParams struct { + + // AppName. + AppName string + + // Name. + Name string + + // OrganizationID. + OrganizationID string + + // ProjectID. + ProjectID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get app rotating secret params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetAppRotatingSecretParams) WithDefaults() *GetAppRotatingSecretParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get app rotating secret params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetAppRotatingSecretParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get app rotating secret params +func (o *GetAppRotatingSecretParams) WithTimeout(timeout time.Duration) *GetAppRotatingSecretParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get app rotating secret params +func (o *GetAppRotatingSecretParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get app rotating secret params +func (o *GetAppRotatingSecretParams) WithContext(ctx context.Context) *GetAppRotatingSecretParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get app rotating secret params +func (o *GetAppRotatingSecretParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get app rotating secret params +func (o *GetAppRotatingSecretParams) WithHTTPClient(client *http.Client) *GetAppRotatingSecretParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get app rotating secret params +func (o *GetAppRotatingSecretParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAppName adds the appName to the get app rotating secret params +func (o *GetAppRotatingSecretParams) WithAppName(appName string) *GetAppRotatingSecretParams { + o.SetAppName(appName) + return o +} + +// SetAppName adds the appName to the get app rotating secret params +func (o *GetAppRotatingSecretParams) SetAppName(appName string) { + o.AppName = appName +} + +// WithName adds the name to the get app rotating secret params +func (o *GetAppRotatingSecretParams) WithName(name string) *GetAppRotatingSecretParams { + o.SetName(name) + return o +} + +// SetName adds the name to the get app rotating secret params +func (o *GetAppRotatingSecretParams) SetName(name string) { + o.Name = name +} + +// WithOrganizationID adds the organizationID to the get app rotating secret params +func (o *GetAppRotatingSecretParams) WithOrganizationID(organizationID string) *GetAppRotatingSecretParams { + o.SetOrganizationID(organizationID) + return o +} + +// SetOrganizationID adds the organizationId to the get app rotating secret params +func (o *GetAppRotatingSecretParams) SetOrganizationID(organizationID string) { + o.OrganizationID = organizationID +} + +// WithProjectID adds the projectID to the get app rotating secret params +func (o *GetAppRotatingSecretParams) WithProjectID(projectID string) *GetAppRotatingSecretParams { + o.SetProjectID(projectID) + return o +} + +// SetProjectID adds the projectId to the get app rotating secret params +func (o *GetAppRotatingSecretParams) SetProjectID(projectID string) { + o.ProjectID = projectID +} + +// WriteToRequest writes these params to a swagger request +func (o *GetAppRotatingSecretParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param app_name + if err := r.SetPathParam("app_name", o.AppName); err != nil { + return err + } + + // path param name + if err := r.SetPathParam("name", o.Name); err != nil { + return err + } + + // path param organization_id + if err := r.SetPathParam("organization_id", o.OrganizationID); err != nil { + return err + } + + // path param project_id + if err := r.SetPathParam("project_id", o.ProjectID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_app_rotating_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_app_rotating_secret_responses.go new file mode 100644 index 00000000..30551618 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_app_rotating_secret_responses.go @@ -0,0 +1,187 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package secret_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "encoding/json" + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-secrets/stable/2023-11-28/models" +) + +// GetAppRotatingSecretReader is a Reader for the GetAppRotatingSecret structure. +type GetAppRotatingSecretReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetAppRotatingSecretReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetAppRotatingSecretOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + result := NewGetAppRotatingSecretDefault(response.Code()) + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + if response.Code()/100 == 2 { + return result, nil + } + return nil, result + } +} + +// NewGetAppRotatingSecretOK creates a GetAppRotatingSecretOK with default headers values +func NewGetAppRotatingSecretOK() *GetAppRotatingSecretOK { + return &GetAppRotatingSecretOK{} +} + +/* +GetAppRotatingSecretOK describes a response with status code 200, with default header values. + +A successful response. +*/ +type GetAppRotatingSecretOK struct { + Payload *models.Secrets20231128GetAppRotatingSecretResponse +} + +// IsSuccess returns true when this get app rotating secret o k response has a 2xx status code +func (o *GetAppRotatingSecretOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get app rotating secret o k response has a 3xx status code +func (o *GetAppRotatingSecretOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get app rotating secret o k response has a 4xx status code +func (o *GetAppRotatingSecretOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get app rotating secret o k response has a 5xx status code +func (o *GetAppRotatingSecretOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get app rotating secret o k response a status code equal to that given +func (o *GetAppRotatingSecretOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get app rotating secret o k response +func (o *GetAppRotatingSecretOK) Code() int { + return 200 +} + +func (o *GetAppRotatingSecretOK) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/rotating/{name}][%d] getAppRotatingSecretOK %s", 200, payload) +} + +func (o *GetAppRotatingSecretOK) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/rotating/{name}][%d] getAppRotatingSecretOK %s", 200, payload) +} + +func (o *GetAppRotatingSecretOK) GetPayload() *models.Secrets20231128GetAppRotatingSecretResponse { + return o.Payload +} + +func (o *GetAppRotatingSecretOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Secrets20231128GetAppRotatingSecretResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetAppRotatingSecretDefault creates a GetAppRotatingSecretDefault with default headers values +func NewGetAppRotatingSecretDefault(code int) *GetAppRotatingSecretDefault { + return &GetAppRotatingSecretDefault{ + _statusCode: code, + } +} + +/* +GetAppRotatingSecretDefault describes a response with status code -1, with default header values. + +An unexpected error response. +*/ +type GetAppRotatingSecretDefault struct { + _statusCode int + + Payload *models.GooglerpcStatus +} + +// IsSuccess returns true when this get app rotating secret default response has a 2xx status code +func (o *GetAppRotatingSecretDefault) IsSuccess() bool { + return o._statusCode/100 == 2 +} + +// IsRedirect returns true when this get app rotating secret default response has a 3xx status code +func (o *GetAppRotatingSecretDefault) IsRedirect() bool { + return o._statusCode/100 == 3 +} + +// IsClientError returns true when this get app rotating secret default response has a 4xx status code +func (o *GetAppRotatingSecretDefault) IsClientError() bool { + return o._statusCode/100 == 4 +} + +// IsServerError returns true when this get app rotating secret default response has a 5xx status code +func (o *GetAppRotatingSecretDefault) IsServerError() bool { + return o._statusCode/100 == 5 +} + +// IsCode returns true when this get app rotating secret default response a status code equal to that given +func (o *GetAppRotatingSecretDefault) IsCode(code int) bool { + return o._statusCode == code +} + +// Code gets the status code for the get app rotating secret default response +func (o *GetAppRotatingSecretDefault) Code() int { + return o._statusCode +} + +func (o *GetAppRotatingSecretDefault) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/rotating/{name}][%d] GetAppRotatingSecret default %s", o._statusCode, payload) +} + +func (o *GetAppRotatingSecretDefault) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/rotating/{name}][%d] GetAppRotatingSecret default %s", o._statusCode, payload) +} + +func (o *GetAppRotatingSecretDefault) GetPayload() *models.GooglerpcStatus { + return o.Payload +} + +func (o *GetAppRotatingSecretDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.GooglerpcStatus) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_app_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_app_secret_responses.go index 3b6b4bea..8297a9ed 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_app_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_app_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetAppSecretOK) Code() int { } func (o *GetAppSecretOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}][%d] getAppSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}][%d] getAppSecretOK %s", 200, payload) } func (o *GetAppSecretOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}][%d] getAppSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}][%d] getAppSecretOK %s", 200, payload) } func (o *GetAppSecretOK) GetPayload() *models.Secrets20231128GetAppSecretResponse { @@ -158,11 +161,13 @@ func (o *GetAppSecretDefault) Code() int { } func (o *GetAppSecretDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}][%d] GetAppSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}][%d] GetAppSecret default %s", o._statusCode, payload) } func (o *GetAppSecretDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}][%d] GetAppSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}][%d] GetAppSecret default %s", o._statusCode, payload) } func (o *GetAppSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_app_secret_version_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_app_secret_version_responses.go index e1e72bda..8b304dee 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_app_secret_version_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_app_secret_version_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetAppSecretVersionOK) Code() int { } func (o *GetAppSecretVersionOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] getAppSecretVersionOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] getAppSecretVersionOK %s", 200, payload) } func (o *GetAppSecretVersionOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] getAppSecretVersionOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] getAppSecretVersionOK %s", 200, payload) } func (o *GetAppSecretVersionOK) GetPayload() *models.Secrets20231128GetAppSecretVersionResponse { @@ -158,11 +161,13 @@ func (o *GetAppSecretVersionDefault) Code() int { } func (o *GetAppSecretVersionDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] GetAppSecretVersion default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] GetAppSecretVersion default %s", o._statusCode, payload) } func (o *GetAppSecretVersionDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] GetAppSecretVersion default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}][%d] GetAppSecretVersion default %s", o._statusCode, payload) } func (o *GetAppSecretVersionDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_app_syncs_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_app_syncs_responses.go index 48e174e9..8b662275 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_app_syncs_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_app_syncs_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetAppSyncsOK) Code() int { } func (o *GetAppSyncsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}/syncs][%d] getAppSyncsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}/syncs][%d] getAppSyncsOK %s", 200, payload) } func (o *GetAppSyncsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}/syncs][%d] getAppSyncsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}/syncs][%d] getAppSyncsOK %s", 200, payload) } func (o *GetAppSyncsOK) GetPayload() *models.Secrets20231128GetAppSyncsResponse { @@ -158,11 +161,13 @@ func (o *GetAppSyncsDefault) Code() int { } func (o *GetAppSyncsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}/syncs][%d] GetAppSyncs default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}/syncs][%d] GetAppSyncs default %s", o._statusCode, payload) } func (o *GetAppSyncsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}/syncs][%d] GetAppSyncs default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}/syncs][%d] GetAppSyncs default %s", o._statusCode, payload) } func (o *GetAppSyncsDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_aws_dynamic_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_aws_dynamic_secret_responses.go index 51a1d3b0..e4ae2eff 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_aws_dynamic_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_aws_dynamic_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetAwsDynamicSecretOK) Code() int { } func (o *GetAwsDynamicSecretOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret/{name}][%d] getAwsDynamicSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret/{name}][%d] getAwsDynamicSecretOK %s", 200, payload) } func (o *GetAwsDynamicSecretOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret/{name}][%d] getAwsDynamicSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret/{name}][%d] getAwsDynamicSecretOK %s", 200, payload) } func (o *GetAwsDynamicSecretOK) GetPayload() *models.Secrets20231128GetAwsDynamicSecretResponse { @@ -158,11 +161,13 @@ func (o *GetAwsDynamicSecretDefault) Code() int { } func (o *GetAwsDynamicSecretDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret/{name}][%d] GetAwsDynamicSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret/{name}][%d] GetAwsDynamicSecret default %s", o._statusCode, payload) } func (o *GetAwsDynamicSecretDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret/{name}][%d] GetAwsDynamicSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret/{name}][%d] GetAwsDynamicSecret default %s", o._statusCode, payload) } func (o *GetAwsDynamicSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_aws_i_a_m_user_access_key_rotating_secret_config_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_aws_i_a_m_user_access_key_rotating_secret_config_responses.go index 1016994d..e41555ae 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_aws_i_a_m_user_access_key_rotating_secret_config_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_aws_i_a_m_user_access_key_rotating_secret_config_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetAwsIAMUserAccessKeyRotatingSecretConfigOK) Code() int { } func (o *GetAwsIAMUserAccessKeyRotatingSecretConfigOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/aws/secret/{name}][%d] getAwsIAMUserAccessKeyRotatingSecretConfigOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/aws/secret/{name}][%d] getAwsIAMUserAccessKeyRotatingSecretConfigOK %s", 200, payload) } func (o *GetAwsIAMUserAccessKeyRotatingSecretConfigOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/aws/secret/{name}][%d] getAwsIAMUserAccessKeyRotatingSecretConfigOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/aws/secret/{name}][%d] getAwsIAMUserAccessKeyRotatingSecretConfigOK %s", 200, payload) } func (o *GetAwsIAMUserAccessKeyRotatingSecretConfigOK) GetPayload() *models.Secrets20231128GetAwsIAMUserAccessKeyRotatingSecretConfigResponse { @@ -158,11 +161,13 @@ func (o *GetAwsIAMUserAccessKeyRotatingSecretConfigDefault) Code() int { } func (o *GetAwsIAMUserAccessKeyRotatingSecretConfigDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/aws/secret/{name}][%d] GetAwsIAMUserAccessKeyRotatingSecretConfig default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/aws/secret/{name}][%d] GetAwsIAMUserAccessKeyRotatingSecretConfig default %s", o._statusCode, payload) } func (o *GetAwsIAMUserAccessKeyRotatingSecretConfigDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/aws/secret/{name}][%d] GetAwsIAMUserAccessKeyRotatingSecretConfig default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/aws/secret/{name}][%d] GetAwsIAMUserAccessKeyRotatingSecretConfig default %s", o._statusCode, payload) } func (o *GetAwsIAMUserAccessKeyRotatingSecretConfigDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_aws_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_aws_integration_responses.go index 08e521ac..2e1da670 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_aws_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_aws_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetAwsIntegrationOK) Code() int { } func (o *GetAwsIntegrationOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config/{name}][%d] getAwsIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config/{name}][%d] getAwsIntegrationOK %s", 200, payload) } func (o *GetAwsIntegrationOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config/{name}][%d] getAwsIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config/{name}][%d] getAwsIntegrationOK %s", 200, payload) } func (o *GetAwsIntegrationOK) GetPayload() *models.Secrets20231128GetAwsIntegrationResponse { @@ -158,11 +161,13 @@ func (o *GetAwsIntegrationDefault) Code() int { } func (o *GetAwsIntegrationDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config/{name}][%d] GetAwsIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config/{name}][%d] GetAwsIntegration default %s", o._statusCode, payload) } func (o *GetAwsIntegrationDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config/{name}][%d] GetAwsIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config/{name}][%d] GetAwsIntegration default %s", o._statusCode, payload) } func (o *GetAwsIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_azure_application_password_rotating_secret_config_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_azure_application_password_rotating_secret_config_responses.go index 6dc87867..99944caf 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_azure_application_password_rotating_secret_config_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_azure_application_password_rotating_secret_config_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetAzureApplicationPasswordRotatingSecretConfigOK) Code() int { } func (o *GetAzureApplicationPasswordRotatingSecretConfigOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/azure/secret/{name}][%d] getAzureApplicationPasswordRotatingSecretConfigOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/azure/secret/{name}][%d] getAzureApplicationPasswordRotatingSecretConfigOK %s", 200, payload) } func (o *GetAzureApplicationPasswordRotatingSecretConfigOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/azure/secret/{name}][%d] getAzureApplicationPasswordRotatingSecretConfigOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/azure/secret/{name}][%d] getAzureApplicationPasswordRotatingSecretConfigOK %s", 200, payload) } func (o *GetAzureApplicationPasswordRotatingSecretConfigOK) GetPayload() *models.Secrets20231128GetAzureApplicationPasswordRotatingSecretConfigResponse { @@ -158,11 +161,13 @@ func (o *GetAzureApplicationPasswordRotatingSecretConfigDefault) Code() int { } func (o *GetAzureApplicationPasswordRotatingSecretConfigDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/azure/secret/{name}][%d] GetAzureApplicationPasswordRotatingSecretConfig default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/azure/secret/{name}][%d] GetAzureApplicationPasswordRotatingSecretConfig default %s", o._statusCode, payload) } func (o *GetAzureApplicationPasswordRotatingSecretConfigDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/azure/secret/{name}][%d] GetAzureApplicationPasswordRotatingSecretConfig default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/azure/secret/{name}][%d] GetAzureApplicationPasswordRotatingSecretConfig default %s", o._statusCode, payload) } func (o *GetAzureApplicationPasswordRotatingSecretConfigDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_azure_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_azure_integration_responses.go index dcb1b41f..e5e6ca2f 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_azure_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_azure_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetAzureIntegrationOK) Code() int { } func (o *GetAzureIntegrationOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config/{name}][%d] getAzureIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config/{name}][%d] getAzureIntegrationOK %s", 200, payload) } func (o *GetAzureIntegrationOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config/{name}][%d] getAzureIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config/{name}][%d] getAzureIntegrationOK %s", 200, payload) } func (o *GetAzureIntegrationOK) GetPayload() *models.Secrets20231128GetAzureIntegrationResponse { @@ -158,11 +161,13 @@ func (o *GetAzureIntegrationDefault) Code() int { } func (o *GetAzureIntegrationDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config/{name}][%d] GetAzureIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config/{name}][%d] GetAzureIntegration default %s", o._statusCode, payload) } func (o *GetAzureIntegrationDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config/{name}][%d] GetAzureIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config/{name}][%d] GetAzureIntegration default %s", o._statusCode, payload) } func (o *GetAzureIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_confluent_cloud_api_key_rotating_secret_config_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_confluent_cloud_api_key_rotating_secret_config_responses.go index dcbd0db8..a49abd9d 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_confluent_cloud_api_key_rotating_secret_config_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_confluent_cloud_api_key_rotating_secret_config_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetConfluentCloudAPIKeyRotatingSecretConfigOK) Code() int { } func (o *GetConfluentCloudAPIKeyRotatingSecretConfigOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/confluent/secret/{name}][%d] getConfluentCloudApiKeyRotatingSecretConfigOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/confluent/secret/{name}][%d] getConfluentCloudApiKeyRotatingSecretConfigOK %s", 200, payload) } func (o *GetConfluentCloudAPIKeyRotatingSecretConfigOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/confluent/secret/{name}][%d] getConfluentCloudApiKeyRotatingSecretConfigOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/confluent/secret/{name}][%d] getConfluentCloudApiKeyRotatingSecretConfigOK %s", 200, payload) } func (o *GetConfluentCloudAPIKeyRotatingSecretConfigOK) GetPayload() *models.Secrets20231128GetConfluentCloudAPIKeyRotatingSecretConfigResponse { @@ -158,11 +161,13 @@ func (o *GetConfluentCloudAPIKeyRotatingSecretConfigDefault) Code() int { } func (o *GetConfluentCloudAPIKeyRotatingSecretConfigDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/confluent/secret/{name}][%d] GetConfluentCloudApiKeyRotatingSecretConfig default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/confluent/secret/{name}][%d] GetConfluentCloudApiKeyRotatingSecretConfig default %s", o._statusCode, payload) } func (o *GetConfluentCloudAPIKeyRotatingSecretConfigDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/confluent/secret/{name}][%d] GetConfluentCloudApiKeyRotatingSecretConfig default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/confluent/secret/{name}][%d] GetConfluentCloudApiKeyRotatingSecretConfig default %s", o._statusCode, payload) } func (o *GetConfluentCloudAPIKeyRotatingSecretConfigDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_confluent_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_confluent_integration_responses.go index 66399272..101a6f59 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_confluent_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_confluent_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetConfluentIntegrationOK) Code() int { } func (o *GetConfluentIntegrationOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config/{name}][%d] getConfluentIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config/{name}][%d] getConfluentIntegrationOK %s", 200, payload) } func (o *GetConfluentIntegrationOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config/{name}][%d] getConfluentIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config/{name}][%d] getConfluentIntegrationOK %s", 200, payload) } func (o *GetConfluentIntegrationOK) GetPayload() *models.Secrets20231128GetConfluentIntegrationResponse { @@ -158,11 +161,13 @@ func (o *GetConfluentIntegrationDefault) Code() int { } func (o *GetConfluentIntegrationDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config/{name}][%d] GetConfluentIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config/{name}][%d] GetConfluentIntegration default %s", o._statusCode, payload) } func (o *GetConfluentIntegrationDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config/{name}][%d] GetConfluentIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config/{name}][%d] GetConfluentIntegration default %s", o._statusCode, payload) } func (o *GetConfluentIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_gateway_pool_certificate_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_gateway_pool_certificate_responses.go index 9a7a3b51..5f31b5bc 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_gateway_pool_certificate_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_gateway_pool_certificate_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetGatewayPoolCertificateOK) Code() int { } func (o *GetGatewayPoolCertificateOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}/certificate][%d] getGatewayPoolCertificateOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}/certificate][%d] getGatewayPoolCertificateOK %s", 200, payload) } func (o *GetGatewayPoolCertificateOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}/certificate][%d] getGatewayPoolCertificateOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}/certificate][%d] getGatewayPoolCertificateOK %s", 200, payload) } func (o *GetGatewayPoolCertificateOK) GetPayload() *models.Secrets20231128GetGatewayPoolCertificateResponse { @@ -158,11 +161,13 @@ func (o *GetGatewayPoolCertificateDefault) Code() int { } func (o *GetGatewayPoolCertificateDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}/certificate][%d] GetGatewayPoolCertificate default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}/certificate][%d] GetGatewayPoolCertificate default %s", o._statusCode, payload) } func (o *GetGatewayPoolCertificateDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}/certificate][%d] GetGatewayPoolCertificate default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}/certificate][%d] GetGatewayPoolCertificate default %s", o._statusCode, payload) } func (o *GetGatewayPoolCertificateDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_gateway_pool_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_gateway_pool_responses.go index d334028f..47aaf8c0 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_gateway_pool_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_gateway_pool_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetGatewayPoolOK) Code() int { } func (o *GetGatewayPoolOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}][%d] getGatewayPoolOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}][%d] getGatewayPoolOK %s", 200, payload) } func (o *GetGatewayPoolOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}][%d] getGatewayPoolOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}][%d] getGatewayPoolOK %s", 200, payload) } func (o *GetGatewayPoolOK) GetPayload() *models.Secrets20231128GetGatewayPoolResponse { @@ -158,11 +161,13 @@ func (o *GetGatewayPoolDefault) Code() int { } func (o *GetGatewayPoolDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}][%d] GetGatewayPool default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}][%d] GetGatewayPool default %s", o._statusCode, payload) } func (o *GetGatewayPoolDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}][%d] GetGatewayPool default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}][%d] GetGatewayPool default %s", o._statusCode, payload) } func (o *GetGatewayPoolDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_gcp_dynamic_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_gcp_dynamic_secret_responses.go index e4c90051..c16fe479 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_gcp_dynamic_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_gcp_dynamic_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetGcpDynamicSecretOK) Code() int { } func (o *GetGcpDynamicSecretOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret/{name}][%d] getGcpDynamicSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret/{name}][%d] getGcpDynamicSecretOK %s", 200, payload) } func (o *GetGcpDynamicSecretOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret/{name}][%d] getGcpDynamicSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret/{name}][%d] getGcpDynamicSecretOK %s", 200, payload) } func (o *GetGcpDynamicSecretOK) GetPayload() *models.Secrets20231128GetGcpDynamicSecretResponse { @@ -158,11 +161,13 @@ func (o *GetGcpDynamicSecretDefault) Code() int { } func (o *GetGcpDynamicSecretDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret/{name}][%d] GetGcpDynamicSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret/{name}][%d] GetGcpDynamicSecret default %s", o._statusCode, payload) } func (o *GetGcpDynamicSecretDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret/{name}][%d] GetGcpDynamicSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret/{name}][%d] GetGcpDynamicSecret default %s", o._statusCode, payload) } func (o *GetGcpDynamicSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_gcp_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_gcp_integration_responses.go index 4fbb98cd..a1205e32 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_gcp_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_gcp_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetGcpIntegrationOK) Code() int { } func (o *GetGcpIntegrationOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config/{name}][%d] getGcpIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config/{name}][%d] getGcpIntegrationOK %s", 200, payload) } func (o *GetGcpIntegrationOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config/{name}][%d] getGcpIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config/{name}][%d] getGcpIntegrationOK %s", 200, payload) } func (o *GetGcpIntegrationOK) GetPayload() *models.Secrets20231128GetGcpIntegrationResponse { @@ -158,11 +161,13 @@ func (o *GetGcpIntegrationDefault) Code() int { } func (o *GetGcpIntegrationDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config/{name}][%d] GetGcpIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config/{name}][%d] GetGcpIntegration default %s", o._statusCode, payload) } func (o *GetGcpIntegrationDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config/{name}][%d] GetGcpIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config/{name}][%d] GetGcpIntegration default %s", o._statusCode, payload) } func (o *GetGcpIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_gcp_service_account_key_rotating_secret_config_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_gcp_service_account_key_rotating_secret_config_responses.go index 46e8a266..be9f1fee 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_gcp_service_account_key_rotating_secret_config_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_gcp_service_account_key_rotating_secret_config_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetGcpServiceAccountKeyRotatingSecretConfigOK) Code() int { } func (o *GetGcpServiceAccountKeyRotatingSecretConfigOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/gcp/secret/{name}][%d] getGcpServiceAccountKeyRotatingSecretConfigOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/gcp/secret/{name}][%d] getGcpServiceAccountKeyRotatingSecretConfigOK %s", 200, payload) } func (o *GetGcpServiceAccountKeyRotatingSecretConfigOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/gcp/secret/{name}][%d] getGcpServiceAccountKeyRotatingSecretConfigOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/gcp/secret/{name}][%d] getGcpServiceAccountKeyRotatingSecretConfigOK %s", 200, payload) } func (o *GetGcpServiceAccountKeyRotatingSecretConfigOK) GetPayload() *models.Secrets20231128GetGcpServiceAccountKeyRotatingSecretConfigResponse { @@ -158,11 +161,13 @@ func (o *GetGcpServiceAccountKeyRotatingSecretConfigDefault) Code() int { } func (o *GetGcpServiceAccountKeyRotatingSecretConfigDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/gcp/secret/{name}][%d] GetGcpServiceAccountKeyRotatingSecretConfig default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/gcp/secret/{name}][%d] GetGcpServiceAccountKeyRotatingSecretConfig default %s", o._statusCode, payload) } func (o *GetGcpServiceAccountKeyRotatingSecretConfigDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/gcp/secret/{name}][%d] GetGcpServiceAccountKeyRotatingSecretConfig default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/gcp/secret/{name}][%d] GetGcpServiceAccountKeyRotatingSecretConfig default %s", o._statusCode, payload) } func (o *GetGcpServiceAccountKeyRotatingSecretConfigDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_integration_responses.go index ecc453d5..e18b4d77 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetIntegrationOK) Code() int { } func (o *GetIntegrationOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/{name}][%d] getIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/{name}][%d] getIntegrationOK %s", 200, payload) } func (o *GetIntegrationOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/{name}][%d] getIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/{name}][%d] getIntegrationOK %s", 200, payload) } func (o *GetIntegrationOK) GetPayload() *models.Secrets20231128GetIntegrationResponse { @@ -158,11 +161,13 @@ func (o *GetIntegrationDefault) Code() int { } func (o *GetIntegrationDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/{name}][%d] GetIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/{name}][%d] GetIntegration default %s", o._statusCode, payload) } func (o *GetIntegrationDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/{name}][%d] GetIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/{name}][%d] GetIntegration default %s", o._statusCode, payload) } func (o *GetIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_mongo_d_b_atlas_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_mongo_d_b_atlas_integration_responses.go index 6d3019f6..f9439ee4 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_mongo_d_b_atlas_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_mongo_d_b_atlas_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetMongoDBAtlasIntegrationOK) Code() int { } func (o *GetMongoDBAtlasIntegrationOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config/{name}][%d] getMongoDBAtlasIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config/{name}][%d] getMongoDBAtlasIntegrationOK %s", 200, payload) } func (o *GetMongoDBAtlasIntegrationOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config/{name}][%d] getMongoDBAtlasIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config/{name}][%d] getMongoDBAtlasIntegrationOK %s", 200, payload) } func (o *GetMongoDBAtlasIntegrationOK) GetPayload() *models.Secrets20231128GetMongoDBAtlasIntegrationResponse { @@ -158,11 +161,13 @@ func (o *GetMongoDBAtlasIntegrationDefault) Code() int { } func (o *GetMongoDBAtlasIntegrationDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config/{name}][%d] GetMongoDBAtlasIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config/{name}][%d] GetMongoDBAtlasIntegration default %s", o._statusCode, payload) } func (o *GetMongoDBAtlasIntegrationDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config/{name}][%d] GetMongoDBAtlasIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config/{name}][%d] GetMongoDBAtlasIntegration default %s", o._statusCode, payload) } func (o *GetMongoDBAtlasIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_mongo_d_b_atlas_rotating_secret_config_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_mongo_d_b_atlas_rotating_secret_config_responses.go index 3d5fb35f..aa47b9f2 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_mongo_d_b_atlas_rotating_secret_config_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_mongo_d_b_atlas_rotating_secret_config_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetMongoDBAtlasRotatingSecretConfigOK) Code() int { } func (o *GetMongoDBAtlasRotatingSecretConfigOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/mongodb-atlas/secret/{name}][%d] getMongoDBAtlasRotatingSecretConfigOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/mongodb-atlas/secret/{name}][%d] getMongoDBAtlasRotatingSecretConfigOK %s", 200, payload) } func (o *GetMongoDBAtlasRotatingSecretConfigOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/mongodb-atlas/secret/{name}][%d] getMongoDBAtlasRotatingSecretConfigOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/mongodb-atlas/secret/{name}][%d] getMongoDBAtlasRotatingSecretConfigOK %s", 200, payload) } func (o *GetMongoDBAtlasRotatingSecretConfigOK) GetPayload() *models.Secrets20231128GetMongoDBAtlasRotatingSecretConfigResponse { @@ -158,11 +161,13 @@ func (o *GetMongoDBAtlasRotatingSecretConfigDefault) Code() int { } func (o *GetMongoDBAtlasRotatingSecretConfigDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/mongodb-atlas/secret/{name}][%d] GetMongoDBAtlasRotatingSecretConfig default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/mongodb-atlas/secret/{name}][%d] GetMongoDBAtlasRotatingSecretConfig default %s", o._statusCode, payload) } func (o *GetMongoDBAtlasRotatingSecretConfigDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/mongodb-atlas/secret/{name}][%d] GetMongoDBAtlasRotatingSecretConfig default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/mongodb-atlas/secret/{name}][%d] GetMongoDBAtlasRotatingSecretConfig default %s", o._statusCode, payload) } func (o *GetMongoDBAtlasRotatingSecretConfigDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_postgres_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_postgres_integration_responses.go index f81a95a9..3aa25186 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_postgres_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_postgres_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetPostgresIntegrationOK) Code() int { } func (o *GetPostgresIntegrationOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config/{name}][%d] getPostgresIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config/{name}][%d] getPostgresIntegrationOK %s", 200, payload) } func (o *GetPostgresIntegrationOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config/{name}][%d] getPostgresIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config/{name}][%d] getPostgresIntegrationOK %s", 200, payload) } func (o *GetPostgresIntegrationOK) GetPayload() *models.Secrets20231128GetPostgresIntegrationResponse { @@ -158,11 +161,13 @@ func (o *GetPostgresIntegrationDefault) Code() int { } func (o *GetPostgresIntegrationDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config/{name}][%d] GetPostgresIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config/{name}][%d] GetPostgresIntegration default %s", o._statusCode, payload) } func (o *GetPostgresIntegrationDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config/{name}][%d] GetPostgresIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config/{name}][%d] GetPostgresIntegration default %s", o._statusCode, payload) } func (o *GetPostgresIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_postgres_rotating_secret_config_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_postgres_rotating_secret_config_responses.go index 84cf4953..038d95ae 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_postgres_rotating_secret_config_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_postgres_rotating_secret_config_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetPostgresRotatingSecretConfigOK) Code() int { } func (o *GetPostgresRotatingSecretConfigOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/postgres/secret/{name}][%d] getPostgresRotatingSecretConfigOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/postgres/secret/{name}][%d] getPostgresRotatingSecretConfigOK %s", 200, payload) } func (o *GetPostgresRotatingSecretConfigOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/postgres/secret/{name}][%d] getPostgresRotatingSecretConfigOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/postgres/secret/{name}][%d] getPostgresRotatingSecretConfigOK %s", 200, payload) } func (o *GetPostgresRotatingSecretConfigOK) GetPayload() *models.Secrets20231128GetPostgresRotatingSecretConfigResponse { @@ -158,11 +161,13 @@ func (o *GetPostgresRotatingSecretConfigDefault) Code() int { } func (o *GetPostgresRotatingSecretConfigDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/postgres/secret/{name}][%d] GetPostgresRotatingSecretConfig default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/postgres/secret/{name}][%d] GetPostgresRotatingSecretConfig default %s", o._statusCode, payload) } func (o *GetPostgresRotatingSecretConfigDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/postgres/secret/{name}][%d] GetPostgresRotatingSecretConfig default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/postgres/secret/{name}][%d] GetPostgresRotatingSecretConfig default %s", o._statusCode, payload) } func (o *GetPostgresRotatingSecretConfigDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_random_integration_parameters.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_random_integration_parameters.go new file mode 100644 index 00000000..85f64268 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_random_integration_parameters.go @@ -0,0 +1,186 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package secret_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewGetRandomIntegrationParams creates a new GetRandomIntegrationParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewGetRandomIntegrationParams() *GetRandomIntegrationParams { + return &GetRandomIntegrationParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetRandomIntegrationParamsWithTimeout creates a new GetRandomIntegrationParams object +// with the ability to set a timeout on a request. +func NewGetRandomIntegrationParamsWithTimeout(timeout time.Duration) *GetRandomIntegrationParams { + return &GetRandomIntegrationParams{ + timeout: timeout, + } +} + +// NewGetRandomIntegrationParamsWithContext creates a new GetRandomIntegrationParams object +// with the ability to set a context for a request. +func NewGetRandomIntegrationParamsWithContext(ctx context.Context) *GetRandomIntegrationParams { + return &GetRandomIntegrationParams{ + Context: ctx, + } +} + +// NewGetRandomIntegrationParamsWithHTTPClient creates a new GetRandomIntegrationParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetRandomIntegrationParamsWithHTTPClient(client *http.Client) *GetRandomIntegrationParams { + return &GetRandomIntegrationParams{ + HTTPClient: client, + } +} + +/* +GetRandomIntegrationParams contains all the parameters to send to the API endpoint + + for the get random integration operation. + + Typically these are written to a http.Request. +*/ +type GetRandomIntegrationParams struct { + + // Name. + Name string + + // OrganizationID. + OrganizationID string + + // ProjectID. + ProjectID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get random integration params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetRandomIntegrationParams) WithDefaults() *GetRandomIntegrationParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get random integration params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetRandomIntegrationParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get random integration params +func (o *GetRandomIntegrationParams) WithTimeout(timeout time.Duration) *GetRandomIntegrationParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get random integration params +func (o *GetRandomIntegrationParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get random integration params +func (o *GetRandomIntegrationParams) WithContext(ctx context.Context) *GetRandomIntegrationParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get random integration params +func (o *GetRandomIntegrationParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get random integration params +func (o *GetRandomIntegrationParams) WithHTTPClient(client *http.Client) *GetRandomIntegrationParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get random integration params +func (o *GetRandomIntegrationParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithName adds the name to the get random integration params +func (o *GetRandomIntegrationParams) WithName(name string) *GetRandomIntegrationParams { + o.SetName(name) + return o +} + +// SetName adds the name to the get random integration params +func (o *GetRandomIntegrationParams) SetName(name string) { + o.Name = name +} + +// WithOrganizationID adds the organizationID to the get random integration params +func (o *GetRandomIntegrationParams) WithOrganizationID(organizationID string) *GetRandomIntegrationParams { + o.SetOrganizationID(organizationID) + return o +} + +// SetOrganizationID adds the organizationId to the get random integration params +func (o *GetRandomIntegrationParams) SetOrganizationID(organizationID string) { + o.OrganizationID = organizationID +} + +// WithProjectID adds the projectID to the get random integration params +func (o *GetRandomIntegrationParams) WithProjectID(projectID string) *GetRandomIntegrationParams { + o.SetProjectID(projectID) + return o +} + +// SetProjectID adds the projectId to the get random integration params +func (o *GetRandomIntegrationParams) SetProjectID(projectID string) { + o.ProjectID = projectID +} + +// WriteToRequest writes these params to a swagger request +func (o *GetRandomIntegrationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param name + if err := r.SetPathParam("name", o.Name); err != nil { + return err + } + + // path param organization_id + if err := r.SetPathParam("organization_id", o.OrganizationID); err != nil { + return err + } + + // path param project_id + if err := r.SetPathParam("project_id", o.ProjectID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_random_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_random_integration_responses.go new file mode 100644 index 00000000..613437d1 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_random_integration_responses.go @@ -0,0 +1,187 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package secret_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "encoding/json" + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-secrets/stable/2023-11-28/models" +) + +// GetRandomIntegrationReader is a Reader for the GetRandomIntegration structure. +type GetRandomIntegrationReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetRandomIntegrationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetRandomIntegrationOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + result := NewGetRandomIntegrationDefault(response.Code()) + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + if response.Code()/100 == 2 { + return result, nil + } + return nil, result + } +} + +// NewGetRandomIntegrationOK creates a GetRandomIntegrationOK with default headers values +func NewGetRandomIntegrationOK() *GetRandomIntegrationOK { + return &GetRandomIntegrationOK{} +} + +/* +GetRandomIntegrationOK describes a response with status code 200, with default header values. + +A successful response. +*/ +type GetRandomIntegrationOK struct { + Payload *models.Secrets20231128GetRandomIntegrationResponse +} + +// IsSuccess returns true when this get random integration o k response has a 2xx status code +func (o *GetRandomIntegrationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get random integration o k response has a 3xx status code +func (o *GetRandomIntegrationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get random integration o k response has a 4xx status code +func (o *GetRandomIntegrationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get random integration o k response has a 5xx status code +func (o *GetRandomIntegrationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get random integration o k response a status code equal to that given +func (o *GetRandomIntegrationOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get random integration o k response +func (o *GetRandomIntegrationOK) Code() int { + return 200 +} + +func (o *GetRandomIntegrationOK) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config/{name}][%d] getRandomIntegrationOK %s", 200, payload) +} + +func (o *GetRandomIntegrationOK) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config/{name}][%d] getRandomIntegrationOK %s", 200, payload) +} + +func (o *GetRandomIntegrationOK) GetPayload() *models.Secrets20231128GetRandomIntegrationResponse { + return o.Payload +} + +func (o *GetRandomIntegrationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Secrets20231128GetRandomIntegrationResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetRandomIntegrationDefault creates a GetRandomIntegrationDefault with default headers values +func NewGetRandomIntegrationDefault(code int) *GetRandomIntegrationDefault { + return &GetRandomIntegrationDefault{ + _statusCode: code, + } +} + +/* +GetRandomIntegrationDefault describes a response with status code -1, with default header values. + +An unexpected error response. +*/ +type GetRandomIntegrationDefault struct { + _statusCode int + + Payload *models.GooglerpcStatus +} + +// IsSuccess returns true when this get random integration default response has a 2xx status code +func (o *GetRandomIntegrationDefault) IsSuccess() bool { + return o._statusCode/100 == 2 +} + +// IsRedirect returns true when this get random integration default response has a 3xx status code +func (o *GetRandomIntegrationDefault) IsRedirect() bool { + return o._statusCode/100 == 3 +} + +// IsClientError returns true when this get random integration default response has a 4xx status code +func (o *GetRandomIntegrationDefault) IsClientError() bool { + return o._statusCode/100 == 4 +} + +// IsServerError returns true when this get random integration default response has a 5xx status code +func (o *GetRandomIntegrationDefault) IsServerError() bool { + return o._statusCode/100 == 5 +} + +// IsCode returns true when this get random integration default response a status code equal to that given +func (o *GetRandomIntegrationDefault) IsCode(code int) bool { + return o._statusCode == code +} + +// Code gets the status code for the get random integration default response +func (o *GetRandomIntegrationDefault) Code() int { + return o._statusCode +} + +func (o *GetRandomIntegrationDefault) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config/{name}][%d] GetRandomIntegration default %s", o._statusCode, payload) +} + +func (o *GetRandomIntegrationDefault) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config/{name}][%d] GetRandomIntegration default %s", o._statusCode, payload) +} + +func (o *GetRandomIntegrationDefault) GetPayload() *models.GooglerpcStatus { + return o.Payload +} + +func (o *GetRandomIntegrationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.GooglerpcStatus) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_random_rotating_secret_config_parameters.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_random_rotating_secret_config_parameters.go new file mode 100644 index 00000000..61af31e6 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_random_rotating_secret_config_parameters.go @@ -0,0 +1,205 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package secret_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" +) + +// NewGetRandomRotatingSecretConfigParams creates a new GetRandomRotatingSecretConfigParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewGetRandomRotatingSecretConfigParams() *GetRandomRotatingSecretConfigParams { + return &GetRandomRotatingSecretConfigParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewGetRandomRotatingSecretConfigParamsWithTimeout creates a new GetRandomRotatingSecretConfigParams object +// with the ability to set a timeout on a request. +func NewGetRandomRotatingSecretConfigParamsWithTimeout(timeout time.Duration) *GetRandomRotatingSecretConfigParams { + return &GetRandomRotatingSecretConfigParams{ + timeout: timeout, + } +} + +// NewGetRandomRotatingSecretConfigParamsWithContext creates a new GetRandomRotatingSecretConfigParams object +// with the ability to set a context for a request. +func NewGetRandomRotatingSecretConfigParamsWithContext(ctx context.Context) *GetRandomRotatingSecretConfigParams { + return &GetRandomRotatingSecretConfigParams{ + Context: ctx, + } +} + +// NewGetRandomRotatingSecretConfigParamsWithHTTPClient creates a new GetRandomRotatingSecretConfigParams object +// with the ability to set a custom HTTPClient for a request. +func NewGetRandomRotatingSecretConfigParamsWithHTTPClient(client *http.Client) *GetRandomRotatingSecretConfigParams { + return &GetRandomRotatingSecretConfigParams{ + HTTPClient: client, + } +} + +/* +GetRandomRotatingSecretConfigParams contains all the parameters to send to the API endpoint + + for the get random rotating secret config operation. + + Typically these are written to a http.Request. +*/ +type GetRandomRotatingSecretConfigParams struct { + + // AppName. + AppName string + + // Name. + Name string + + // OrganizationID. + OrganizationID string + + // ProjectID. + ProjectID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the get random rotating secret config params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetRandomRotatingSecretConfigParams) WithDefaults() *GetRandomRotatingSecretConfigParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the get random rotating secret config params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *GetRandomRotatingSecretConfigParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the get random rotating secret config params +func (o *GetRandomRotatingSecretConfigParams) WithTimeout(timeout time.Duration) *GetRandomRotatingSecretConfigParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the get random rotating secret config params +func (o *GetRandomRotatingSecretConfigParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the get random rotating secret config params +func (o *GetRandomRotatingSecretConfigParams) WithContext(ctx context.Context) *GetRandomRotatingSecretConfigParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the get random rotating secret config params +func (o *GetRandomRotatingSecretConfigParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the get random rotating secret config params +func (o *GetRandomRotatingSecretConfigParams) WithHTTPClient(client *http.Client) *GetRandomRotatingSecretConfigParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the get random rotating secret config params +func (o *GetRandomRotatingSecretConfigParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAppName adds the appName to the get random rotating secret config params +func (o *GetRandomRotatingSecretConfigParams) WithAppName(appName string) *GetRandomRotatingSecretConfigParams { + o.SetAppName(appName) + return o +} + +// SetAppName adds the appName to the get random rotating secret config params +func (o *GetRandomRotatingSecretConfigParams) SetAppName(appName string) { + o.AppName = appName +} + +// WithName adds the name to the get random rotating secret config params +func (o *GetRandomRotatingSecretConfigParams) WithName(name string) *GetRandomRotatingSecretConfigParams { + o.SetName(name) + return o +} + +// SetName adds the name to the get random rotating secret config params +func (o *GetRandomRotatingSecretConfigParams) SetName(name string) { + o.Name = name +} + +// WithOrganizationID adds the organizationID to the get random rotating secret config params +func (o *GetRandomRotatingSecretConfigParams) WithOrganizationID(organizationID string) *GetRandomRotatingSecretConfigParams { + o.SetOrganizationID(organizationID) + return o +} + +// SetOrganizationID adds the organizationId to the get random rotating secret config params +func (o *GetRandomRotatingSecretConfigParams) SetOrganizationID(organizationID string) { + o.OrganizationID = organizationID +} + +// WithProjectID adds the projectID to the get random rotating secret config params +func (o *GetRandomRotatingSecretConfigParams) WithProjectID(projectID string) *GetRandomRotatingSecretConfigParams { + o.SetProjectID(projectID) + return o +} + +// SetProjectID adds the projectId to the get random rotating secret config params +func (o *GetRandomRotatingSecretConfigParams) SetProjectID(projectID string) { + o.ProjectID = projectID +} + +// WriteToRequest writes these params to a swagger request +func (o *GetRandomRotatingSecretConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param app_name + if err := r.SetPathParam("app_name", o.AppName); err != nil { + return err + } + + // path param name + if err := r.SetPathParam("name", o.Name); err != nil { + return err + } + + // path param organization_id + if err := r.SetPathParam("organization_id", o.OrganizationID); err != nil { + return err + } + + // path param project_id + if err := r.SetPathParam("project_id", o.ProjectID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_random_rotating_secret_config_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_random_rotating_secret_config_responses.go new file mode 100644 index 00000000..2bcc1886 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_random_rotating_secret_config_responses.go @@ -0,0 +1,187 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package secret_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "encoding/json" + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-secrets/stable/2023-11-28/models" +) + +// GetRandomRotatingSecretConfigReader is a Reader for the GetRandomRotatingSecretConfig structure. +type GetRandomRotatingSecretConfigReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *GetRandomRotatingSecretConfigReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewGetRandomRotatingSecretConfigOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + result := NewGetRandomRotatingSecretConfigDefault(response.Code()) + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + if response.Code()/100 == 2 { + return result, nil + } + return nil, result + } +} + +// NewGetRandomRotatingSecretConfigOK creates a GetRandomRotatingSecretConfigOK with default headers values +func NewGetRandomRotatingSecretConfigOK() *GetRandomRotatingSecretConfigOK { + return &GetRandomRotatingSecretConfigOK{} +} + +/* +GetRandomRotatingSecretConfigOK describes a response with status code 200, with default header values. + +A successful response. +*/ +type GetRandomRotatingSecretConfigOK struct { + Payload *models.Secrets20231128GetRandomRotatingSecretConfigResponse +} + +// IsSuccess returns true when this get random rotating secret config o k response has a 2xx status code +func (o *GetRandomRotatingSecretConfigOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this get random rotating secret config o k response has a 3xx status code +func (o *GetRandomRotatingSecretConfigOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this get random rotating secret config o k response has a 4xx status code +func (o *GetRandomRotatingSecretConfigOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this get random rotating secret config o k response has a 5xx status code +func (o *GetRandomRotatingSecretConfigOK) IsServerError() bool { + return false +} + +// IsCode returns true when this get random rotating secret config o k response a status code equal to that given +func (o *GetRandomRotatingSecretConfigOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the get random rotating secret config o k response +func (o *GetRandomRotatingSecretConfigOK) Code() int { + return 200 +} + +func (o *GetRandomRotatingSecretConfigOK) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/random/secret/{name}][%d] getRandomRotatingSecretConfigOK %s", 200, payload) +} + +func (o *GetRandomRotatingSecretConfigOK) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/random/secret/{name}][%d] getRandomRotatingSecretConfigOK %s", 200, payload) +} + +func (o *GetRandomRotatingSecretConfigOK) GetPayload() *models.Secrets20231128GetRandomRotatingSecretConfigResponse { + return o.Payload +} + +func (o *GetRandomRotatingSecretConfigOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Secrets20231128GetRandomRotatingSecretConfigResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewGetRandomRotatingSecretConfigDefault creates a GetRandomRotatingSecretConfigDefault with default headers values +func NewGetRandomRotatingSecretConfigDefault(code int) *GetRandomRotatingSecretConfigDefault { + return &GetRandomRotatingSecretConfigDefault{ + _statusCode: code, + } +} + +/* +GetRandomRotatingSecretConfigDefault describes a response with status code -1, with default header values. + +An unexpected error response. +*/ +type GetRandomRotatingSecretConfigDefault struct { + _statusCode int + + Payload *models.GooglerpcStatus +} + +// IsSuccess returns true when this get random rotating secret config default response has a 2xx status code +func (o *GetRandomRotatingSecretConfigDefault) IsSuccess() bool { + return o._statusCode/100 == 2 +} + +// IsRedirect returns true when this get random rotating secret config default response has a 3xx status code +func (o *GetRandomRotatingSecretConfigDefault) IsRedirect() bool { + return o._statusCode/100 == 3 +} + +// IsClientError returns true when this get random rotating secret config default response has a 4xx status code +func (o *GetRandomRotatingSecretConfigDefault) IsClientError() bool { + return o._statusCode/100 == 4 +} + +// IsServerError returns true when this get random rotating secret config default response has a 5xx status code +func (o *GetRandomRotatingSecretConfigDefault) IsServerError() bool { + return o._statusCode/100 == 5 +} + +// IsCode returns true when this get random rotating secret config default response a status code equal to that given +func (o *GetRandomRotatingSecretConfigDefault) IsCode(code int) bool { + return o._statusCode == code +} + +// Code gets the status code for the get random rotating secret config default response +func (o *GetRandomRotatingSecretConfigDefault) Code() int { + return o._statusCode +} + +func (o *GetRandomRotatingSecretConfigDefault) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/random/secret/{name}][%d] GetRandomRotatingSecretConfig default %s", o._statusCode, payload) +} + +func (o *GetRandomRotatingSecretConfigDefault) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/random/secret/{name}][%d] GetRandomRotatingSecretConfig default %s", o._statusCode, payload) +} + +func (o *GetRandomRotatingSecretConfigDefault) GetPayload() *models.GooglerpcStatus { + return o.Payload +} + +func (o *GetRandomRotatingSecretConfigDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.GooglerpcStatus) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_rotating_secret_state_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_rotating_secret_state_responses.go index df372705..502032e3 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_rotating_secret_state_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_rotating_secret_state_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetRotatingSecretStateOK) Code() int { } func (o *GetRotatingSecretStateOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{name}/rotation-state][%d] getRotatingSecretStateOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{name}/rotation-state][%d] getRotatingSecretStateOK %s", 200, payload) } func (o *GetRotatingSecretStateOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{name}/rotation-state][%d] getRotatingSecretStateOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{name}/rotation-state][%d] getRotatingSecretStateOK %s", 200, payload) } func (o *GetRotatingSecretStateOK) GetPayload() *models.Secrets20231128GetRotatingSecretStateResponse { @@ -158,11 +161,13 @@ func (o *GetRotatingSecretStateDefault) Code() int { } func (o *GetRotatingSecretStateDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{name}/rotation-state][%d] GetRotatingSecretState default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{name}/rotation-state][%d] GetRotatingSecretState default %s", o._statusCode, payload) } func (o *GetRotatingSecretStateDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{name}/rotation-state][%d] GetRotatingSecretState default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{name}/rotation-state][%d] GetRotatingSecretState default %s", o._statusCode, payload) } func (o *GetRotatingSecretStateDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_sync_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_sync_responses.go index d8303921..14cfc8f5 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_sync_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_sync_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetSyncOK) Code() int { } func (o *GetSyncOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs/{name}][%d] getSyncOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs/{name}][%d] getSyncOK %s", 200, payload) } func (o *GetSyncOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs/{name}][%d] getSyncOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs/{name}][%d] getSyncOK %s", 200, payload) } func (o *GetSyncOK) GetPayload() *models.Secrets20231128GetSyncResponse { @@ -158,11 +161,13 @@ func (o *GetSyncDefault) Code() int { } func (o *GetSyncDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs/{name}][%d] GetSync default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs/{name}][%d] GetSync default %s", o._statusCode, payload) } func (o *GetSyncDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs/{name}][%d] GetSync default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs/{name}][%d] GetSync default %s", o._statusCode, payload) } func (o *GetSyncDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_twilio_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_twilio_integration_responses.go index 6ac7f79a..dc395d97 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_twilio_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_twilio_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetTwilioIntegrationOK) Code() int { } func (o *GetTwilioIntegrationOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config/{name}][%d] getTwilioIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config/{name}][%d] getTwilioIntegrationOK %s", 200, payload) } func (o *GetTwilioIntegrationOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config/{name}][%d] getTwilioIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config/{name}][%d] getTwilioIntegrationOK %s", 200, payload) } func (o *GetTwilioIntegrationOK) GetPayload() *models.Secrets20231128GetTwilioIntegrationResponse { @@ -158,11 +161,13 @@ func (o *GetTwilioIntegrationDefault) Code() int { } func (o *GetTwilioIntegrationDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config/{name}][%d] GetTwilioIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config/{name}][%d] GetTwilioIntegration default %s", o._statusCode, payload) } func (o *GetTwilioIntegrationDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config/{name}][%d] GetTwilioIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config/{name}][%d] GetTwilioIntegration default %s", o._statusCode, payload) } func (o *GetTwilioIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_twilio_rotating_secret_config_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_twilio_rotating_secret_config_responses.go index b87448ca..e5d31971 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_twilio_rotating_secret_config_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_twilio_rotating_secret_config_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetTwilioRotatingSecretConfigOK) Code() int { } func (o *GetTwilioRotatingSecretConfigOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/twilio/secret/{name}][%d] getTwilioRotatingSecretConfigOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/twilio/secret/{name}][%d] getTwilioRotatingSecretConfigOK %s", 200, payload) } func (o *GetTwilioRotatingSecretConfigOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/twilio/secret/{name}][%d] getTwilioRotatingSecretConfigOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/twilio/secret/{name}][%d] getTwilioRotatingSecretConfigOK %s", 200, payload) } func (o *GetTwilioRotatingSecretConfigOK) GetPayload() *models.Secrets20231128GetTwilioRotatingSecretConfigResponse { @@ -158,11 +161,13 @@ func (o *GetTwilioRotatingSecretConfigDefault) Code() int { } func (o *GetTwilioRotatingSecretConfigDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/twilio/secret/{name}][%d] GetTwilioRotatingSecretConfig default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/twilio/secret/{name}][%d] GetTwilioRotatingSecretConfig default %s", o._statusCode, payload) } func (o *GetTwilioRotatingSecretConfigDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/twilio/secret/{name}][%d] GetTwilioRotatingSecretConfig default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/twilio/secret/{name}][%d] GetTwilioRotatingSecretConfig default %s", o._statusCode, payload) } func (o *GetTwilioRotatingSecretConfigDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_usage2_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_usage2_responses.go index 8ddc9514..84ba5266 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_usage2_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_usage2_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetUsage2OK) Code() int { } func (o *GetUsage2OK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/usage][%d] getUsage2OK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/usage][%d] getUsage2OK %s", 200, payload) } func (o *GetUsage2OK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/usage][%d] getUsage2OK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/usage][%d] getUsage2OK %s", 200, payload) } func (o *GetUsage2OK) GetPayload() *models.Secrets20231128GetUsageResponse { @@ -158,11 +161,13 @@ func (o *GetUsage2Default) Code() int { } func (o *GetUsage2Default) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/usage][%d] GetUsage2 default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/usage][%d] GetUsage2 default %s", o._statusCode, payload) } func (o *GetUsage2Default) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/usage][%d] GetUsage2 default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/usage][%d] GetUsage2 default %s", o._statusCode, payload) } func (o *GetUsage2Default) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_usage_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_usage_responses.go index f66b35e9..ec0ee46f 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_usage_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/get_usage_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *GetUsageOK) Code() int { } func (o *GetUsageOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/usage][%d] getUsageOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/usage][%d] getUsageOK %s", 200, payload) } func (o *GetUsageOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/usage][%d] getUsageOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/usage][%d] getUsageOK %s", 200, payload) } func (o *GetUsageOK) GetPayload() *models.Secrets20231128GetUsageResponse { @@ -158,11 +161,13 @@ func (o *GetUsageDefault) Code() int { } func (o *GetUsageDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/usage][%d] GetUsage default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/usage][%d] GetUsage default %s", o._statusCode, payload) } func (o *GetUsageDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/usage][%d] GetUsage default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/usage][%d] GetUsage default %s", o._statusCode, payload) } func (o *GetUsageDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_app_secret_versions_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_app_secret_versions_responses.go index c98de913..affbe487 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_app_secret_versions_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_app_secret_versions_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListAppSecretVersionsOK) Code() int { } func (o *ListAppSecretVersionsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions][%d] listAppSecretVersionsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions][%d] listAppSecretVersionsOK %s", 200, payload) } func (o *ListAppSecretVersionsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions][%d] listAppSecretVersionsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions][%d] listAppSecretVersionsOK %s", 200, payload) } func (o *ListAppSecretVersionsOK) GetPayload() *models.Secrets20231128ListAppSecretVersionsResponse { @@ -158,11 +161,13 @@ func (o *ListAppSecretVersionsDefault) Code() int { } func (o *ListAppSecretVersionsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions][%d] ListAppSecretVersions default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions][%d] ListAppSecretVersions default %s", o._statusCode, payload) } func (o *ListAppSecretVersionsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions][%d] ListAppSecretVersions default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions][%d] ListAppSecretVersions default %s", o._statusCode, payload) } func (o *ListAppSecretVersionsDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_app_secrets_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_app_secrets_responses.go index cf3c4929..2dc40d19 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_app_secrets_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_app_secrets_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListAppSecretsOK) Code() int { } func (o *ListAppSecretsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets][%d] listAppSecretsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets][%d] listAppSecretsOK %s", 200, payload) } func (o *ListAppSecretsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets][%d] listAppSecretsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets][%d] listAppSecretsOK %s", 200, payload) } func (o *ListAppSecretsOK) GetPayload() *models.Secrets20231128ListAppSecretsResponse { @@ -158,11 +161,13 @@ func (o *ListAppSecretsDefault) Code() int { } func (o *ListAppSecretsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets][%d] ListAppSecrets default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets][%d] ListAppSecrets default %s", o._statusCode, payload) } func (o *ListAppSecretsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets][%d] ListAppSecrets default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets][%d] ListAppSecrets default %s", o._statusCode, payload) } func (o *ListAppSecretsDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_apps_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_apps_responses.go index 88874412..2f76205b 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_apps_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_apps_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListAppsOK) Code() int { } func (o *ListAppsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps][%d] listAppsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps][%d] listAppsOK %s", 200, payload) } func (o *ListAppsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps][%d] listAppsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps][%d] listAppsOK %s", 200, payload) } func (o *ListAppsOK) GetPayload() *models.Secrets20231128ListAppsResponse { @@ -158,11 +161,13 @@ func (o *ListAppsDefault) Code() int { } func (o *ListAppsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps][%d] ListApps default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps][%d] ListApps default %s", o._statusCode, payload) } func (o *ListAppsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps][%d] ListApps default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps][%d] ListApps default %s", o._statusCode, payload) } func (o *ListAppsDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_aws_dynamic_secrets_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_aws_dynamic_secrets_responses.go index 2e9ecb70..dd7decdc 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_aws_dynamic_secrets_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_aws_dynamic_secrets_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListAwsDynamicSecretsOK) Code() int { } func (o *ListAwsDynamicSecretsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret][%d] listAwsDynamicSecretsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret][%d] listAwsDynamicSecretsOK %s", 200, payload) } func (o *ListAwsDynamicSecretsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret][%d] listAwsDynamicSecretsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret][%d] listAwsDynamicSecretsOK %s", 200, payload) } func (o *ListAwsDynamicSecretsOK) GetPayload() *models.Secrets20231128ListAwsDynamicSecretsResponse { @@ -158,11 +161,13 @@ func (o *ListAwsDynamicSecretsDefault) Code() int { } func (o *ListAwsDynamicSecretsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret][%d] ListAwsDynamicSecrets default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret][%d] ListAwsDynamicSecrets default %s", o._statusCode, payload) } func (o *ListAwsDynamicSecretsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret][%d] ListAwsDynamicSecrets default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret][%d] ListAwsDynamicSecrets default %s", o._statusCode, payload) } func (o *ListAwsDynamicSecretsDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_aws_integrations_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_aws_integrations_responses.go index 1b9db560..5be5ff90 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_aws_integrations_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_aws_integrations_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListAwsIntegrationsOK) Code() int { } func (o *ListAwsIntegrationsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config][%d] listAwsIntegrationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config][%d] listAwsIntegrationsOK %s", 200, payload) } func (o *ListAwsIntegrationsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config][%d] listAwsIntegrationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config][%d] listAwsIntegrationsOK %s", 200, payload) } func (o *ListAwsIntegrationsOK) GetPayload() *models.Secrets20231128ListAwsIntegrationsResponse { @@ -158,11 +161,13 @@ func (o *ListAwsIntegrationsDefault) Code() int { } func (o *ListAwsIntegrationsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config][%d] ListAwsIntegrations default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config][%d] ListAwsIntegrations default %s", o._statusCode, payload) } func (o *ListAwsIntegrationsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config][%d] ListAwsIntegrations default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config][%d] ListAwsIntegrations default %s", o._statusCode, payload) } func (o *ListAwsIntegrationsDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_azure_integrations_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_azure_integrations_responses.go index b7d1babd..89feedf1 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_azure_integrations_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_azure_integrations_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListAzureIntegrationsOK) Code() int { } func (o *ListAzureIntegrationsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config][%d] listAzureIntegrationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config][%d] listAzureIntegrationsOK %s", 200, payload) } func (o *ListAzureIntegrationsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config][%d] listAzureIntegrationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config][%d] listAzureIntegrationsOK %s", 200, payload) } func (o *ListAzureIntegrationsOK) GetPayload() *models.Secrets20231128ListAzureIntegrationsResponse { @@ -158,11 +161,13 @@ func (o *ListAzureIntegrationsDefault) Code() int { } func (o *ListAzureIntegrationsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config][%d] ListAzureIntegrations default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config][%d] ListAzureIntegrations default %s", o._statusCode, payload) } func (o *ListAzureIntegrationsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config][%d] ListAzureIntegrations default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config][%d] ListAzureIntegrations default %s", o._statusCode, payload) } func (o *ListAzureIntegrationsDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_confluent_integrations_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_confluent_integrations_responses.go index 1be895a4..4626af2c 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_confluent_integrations_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_confluent_integrations_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListConfluentIntegrationsOK) Code() int { } func (o *ListConfluentIntegrationsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config][%d] listConfluentIntegrationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config][%d] listConfluentIntegrationsOK %s", 200, payload) } func (o *ListConfluentIntegrationsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config][%d] listConfluentIntegrationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config][%d] listConfluentIntegrationsOK %s", 200, payload) } func (o *ListConfluentIntegrationsOK) GetPayload() *models.Secrets20231128ListConfluentIntegrationsResponse { @@ -158,11 +161,13 @@ func (o *ListConfluentIntegrationsDefault) Code() int { } func (o *ListConfluentIntegrationsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config][%d] ListConfluentIntegrations default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config][%d] ListConfluentIntegrations default %s", o._statusCode, payload) } func (o *ListConfluentIntegrationsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config][%d] ListConfluentIntegrations default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config][%d] ListConfluentIntegrations default %s", o._statusCode, payload) } func (o *ListConfluentIntegrationsDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_gateway_pool_gateways_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_gateway_pool_gateways_responses.go index 80cff728..259af40e 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_gateway_pool_gateways_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_gateway_pool_gateways_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListGatewayPoolGatewaysOK) Code() int { } func (o *ListGatewayPoolGatewaysOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}/gateways][%d] listGatewayPoolGatewaysOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}/gateways][%d] listGatewayPoolGatewaysOK %s", 200, payload) } func (o *ListGatewayPoolGatewaysOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}/gateways][%d] listGatewayPoolGatewaysOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}/gateways][%d] listGatewayPoolGatewaysOK %s", 200, payload) } func (o *ListGatewayPoolGatewaysOK) GetPayload() *models.Secrets20231128ListGatewayPoolGatewaysResponse { @@ -158,11 +161,13 @@ func (o *ListGatewayPoolGatewaysDefault) Code() int { } func (o *ListGatewayPoolGatewaysDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}/gateways][%d] ListGatewayPoolGateways default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}/gateways][%d] ListGatewayPoolGateways default %s", o._statusCode, payload) } func (o *ListGatewayPoolGatewaysDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}/gateways][%d] ListGatewayPoolGateways default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}/gateways][%d] ListGatewayPoolGateways default %s", o._statusCode, payload) } func (o *ListGatewayPoolGatewaysDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_gateway_pool_integrations_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_gateway_pool_integrations_responses.go index 7c059973..86e3d5db 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_gateway_pool_integrations_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_gateway_pool_integrations_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListGatewayPoolIntegrationsOK) Code() int { } func (o *ListGatewayPoolIntegrationsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}/integrations][%d] listGatewayPoolIntegrationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}/integrations][%d] listGatewayPoolIntegrationsOK %s", 200, payload) } func (o *ListGatewayPoolIntegrationsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}/integrations][%d] listGatewayPoolIntegrationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}/integrations][%d] listGatewayPoolIntegrationsOK %s", 200, payload) } func (o *ListGatewayPoolIntegrationsOK) GetPayload() *models.Secrets20231128ListGatewayPoolIntegrationsResponse { @@ -158,11 +161,13 @@ func (o *ListGatewayPoolIntegrationsDefault) Code() int { } func (o *ListGatewayPoolIntegrationsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}/integrations][%d] ListGatewayPoolIntegrations default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}/integrations][%d] ListGatewayPoolIntegrations default %s", o._statusCode, payload) } func (o *ListGatewayPoolIntegrationsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}/integrations][%d] ListGatewayPoolIntegrations default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}/integrations][%d] ListGatewayPoolIntegrations default %s", o._statusCode, payload) } func (o *ListGatewayPoolIntegrationsDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_gateway_pools_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_gateway_pools_responses.go index b36128ab..638d998d 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_gateway_pools_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_gateway_pools_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListGatewayPoolsOK) Code() int { } func (o *ListGatewayPoolsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools][%d] listGatewayPoolsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools][%d] listGatewayPoolsOK %s", 200, payload) } func (o *ListGatewayPoolsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools][%d] listGatewayPoolsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools][%d] listGatewayPoolsOK %s", 200, payload) } func (o *ListGatewayPoolsOK) GetPayload() *models.Secrets20231128ListGatewayPoolsResponse { @@ -158,11 +161,13 @@ func (o *ListGatewayPoolsDefault) Code() int { } func (o *ListGatewayPoolsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools][%d] ListGatewayPools default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools][%d] ListGatewayPools default %s", o._statusCode, payload) } func (o *ListGatewayPoolsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools][%d] ListGatewayPools default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools][%d] ListGatewayPools default %s", o._statusCode, payload) } func (o *ListGatewayPoolsDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_gcp_dynamic_secrets_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_gcp_dynamic_secrets_responses.go index 2e5e194b..9b2d8bc3 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_gcp_dynamic_secrets_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_gcp_dynamic_secrets_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListGcpDynamicSecretsOK) Code() int { } func (o *ListGcpDynamicSecretsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret][%d] listGcpDynamicSecretsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret][%d] listGcpDynamicSecretsOK %s", 200, payload) } func (o *ListGcpDynamicSecretsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret][%d] listGcpDynamicSecretsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret][%d] listGcpDynamicSecretsOK %s", 200, payload) } func (o *ListGcpDynamicSecretsOK) GetPayload() *models.Secrets20231128ListGcpDynamicSecretsResponse { @@ -158,11 +161,13 @@ func (o *ListGcpDynamicSecretsDefault) Code() int { } func (o *ListGcpDynamicSecretsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret][%d] ListGcpDynamicSecrets default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret][%d] ListGcpDynamicSecrets default %s", o._statusCode, payload) } func (o *ListGcpDynamicSecretsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret][%d] ListGcpDynamicSecrets default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret][%d] ListGcpDynamicSecrets default %s", o._statusCode, payload) } func (o *ListGcpDynamicSecretsDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_gcp_integrations_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_gcp_integrations_responses.go index 88d22992..a4fa4656 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_gcp_integrations_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_gcp_integrations_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListGcpIntegrationsOK) Code() int { } func (o *ListGcpIntegrationsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config][%d] listGcpIntegrationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config][%d] listGcpIntegrationsOK %s", 200, payload) } func (o *ListGcpIntegrationsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config][%d] listGcpIntegrationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config][%d] listGcpIntegrationsOK %s", 200, payload) } func (o *ListGcpIntegrationsOK) GetPayload() *models.Secrets20231128ListGcpIntegrationsResponse { @@ -158,11 +161,13 @@ func (o *ListGcpIntegrationsDefault) Code() int { } func (o *ListGcpIntegrationsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config][%d] ListGcpIntegrations default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config][%d] ListGcpIntegrations default %s", o._statusCode, payload) } func (o *ListGcpIntegrationsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config][%d] ListGcpIntegrations default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config][%d] ListGcpIntegrations default %s", o._statusCode, payload) } func (o *ListGcpIntegrationsDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_integrations_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_integrations_responses.go index a51295d1..daf8fb79 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_integrations_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_integrations_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListIntegrationsOK) Code() int { } func (o *ListIntegrationsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations][%d] listIntegrationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations][%d] listIntegrationsOK %s", 200, payload) } func (o *ListIntegrationsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations][%d] listIntegrationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations][%d] listIntegrationsOK %s", 200, payload) } func (o *ListIntegrationsOK) GetPayload() *models.Secrets20231128ListIntegrationsResponse { @@ -158,11 +161,13 @@ func (o *ListIntegrationsDefault) Code() int { } func (o *ListIntegrationsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations][%d] ListIntegrations default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations][%d] ListIntegrations default %s", o._statusCode, payload) } func (o *ListIntegrationsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations][%d] ListIntegrations default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations][%d] ListIntegrations default %s", o._statusCode, payload) } func (o *ListIntegrationsDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_mongo_d_b_atlas_integrations_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_mongo_d_b_atlas_integrations_responses.go index b3205645..ac08d593 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_mongo_d_b_atlas_integrations_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_mongo_d_b_atlas_integrations_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListMongoDBAtlasIntegrationsOK) Code() int { } func (o *ListMongoDBAtlasIntegrationsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config][%d] listMongoDBAtlasIntegrationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config][%d] listMongoDBAtlasIntegrationsOK %s", 200, payload) } func (o *ListMongoDBAtlasIntegrationsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config][%d] listMongoDBAtlasIntegrationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config][%d] listMongoDBAtlasIntegrationsOK %s", 200, payload) } func (o *ListMongoDBAtlasIntegrationsOK) GetPayload() *models.Secrets20231128ListMongoDBAtlasIntegrationsResponse { @@ -158,11 +161,13 @@ func (o *ListMongoDBAtlasIntegrationsDefault) Code() int { } func (o *ListMongoDBAtlasIntegrationsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config][%d] ListMongoDBAtlasIntegrations default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config][%d] ListMongoDBAtlasIntegrations default %s", o._statusCode, payload) } func (o *ListMongoDBAtlasIntegrationsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config][%d] ListMongoDBAtlasIntegrations default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config][%d] ListMongoDBAtlasIntegrations default %s", o._statusCode, payload) } func (o *ListMongoDBAtlasIntegrationsDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_open_app_secret_versions_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_open_app_secret_versions_responses.go index 759446d1..f7e0b8b3 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_open_app_secret_versions_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_open_app_secret_versions_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListOpenAppSecretVersionsOK) Code() int { } func (o *ListOpenAppSecretVersionsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions:open][%d] listOpenAppSecretVersionsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions:open][%d] listOpenAppSecretVersionsOK %s", 200, payload) } func (o *ListOpenAppSecretVersionsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions:open][%d] listOpenAppSecretVersionsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions:open][%d] listOpenAppSecretVersionsOK %s", 200, payload) } func (o *ListOpenAppSecretVersionsOK) GetPayload() *models.Secrets20231128ListOpenAppSecretVersionsResponse { @@ -158,11 +161,13 @@ func (o *ListOpenAppSecretVersionsDefault) Code() int { } func (o *ListOpenAppSecretVersionsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions:open][%d] ListOpenAppSecretVersions default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions:open][%d] ListOpenAppSecretVersions default %s", o._statusCode, payload) } func (o *ListOpenAppSecretVersionsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions:open][%d] ListOpenAppSecretVersions default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions:open][%d] ListOpenAppSecretVersions default %s", o._statusCode, payload) } func (o *ListOpenAppSecretVersionsDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_postgres_integrations_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_postgres_integrations_responses.go index 4ed59382..bf60ba5b 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_postgres_integrations_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_postgres_integrations_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListPostgresIntegrationsOK) Code() int { } func (o *ListPostgresIntegrationsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config][%d] listPostgresIntegrationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config][%d] listPostgresIntegrationsOK %s", 200, payload) } func (o *ListPostgresIntegrationsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config][%d] listPostgresIntegrationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config][%d] listPostgresIntegrationsOK %s", 200, payload) } func (o *ListPostgresIntegrationsOK) GetPayload() *models.Secrets20231128ListPostgresIntegrationsResponse { @@ -158,11 +161,13 @@ func (o *ListPostgresIntegrationsDefault) Code() int { } func (o *ListPostgresIntegrationsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config][%d] ListPostgresIntegrations default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config][%d] ListPostgresIntegrations default %s", o._statusCode, payload) } func (o *ListPostgresIntegrationsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config][%d] ListPostgresIntegrations default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config][%d] ListPostgresIntegrations default %s", o._statusCode, payload) } func (o *ListPostgresIntegrationsDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_providers_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_providers_responses.go index 2c826d24..abe2ad3e 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_providers_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_providers_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListProvidersOK) Code() int { } func (o *ListProvidersOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/providers][%d] listProvidersOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/providers][%d] listProvidersOK %s", 200, payload) } func (o *ListProvidersOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/providers][%d] listProvidersOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/providers][%d] listProvidersOK %s", 200, payload) } func (o *ListProvidersOK) GetPayload() *models.Secrets20231128ListProvidersResponse { @@ -158,11 +161,13 @@ func (o *ListProvidersDefault) Code() int { } func (o *ListProvidersDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/providers][%d] ListProviders default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/providers][%d] ListProviders default %s", o._statusCode, payload) } func (o *ListProvidersDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/providers][%d] ListProviders default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/providers][%d] ListProviders default %s", o._statusCode, payload) } func (o *ListProvidersDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_random_integrations_parameters.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_random_integrations_parameters.go new file mode 100644 index 00000000..896b300a --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_random_integrations_parameters.go @@ -0,0 +1,279 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package secret_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewListRandomIntegrationsParams creates a new ListRandomIntegrationsParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewListRandomIntegrationsParams() *ListRandomIntegrationsParams { + return &ListRandomIntegrationsParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewListRandomIntegrationsParamsWithTimeout creates a new ListRandomIntegrationsParams object +// with the ability to set a timeout on a request. +func NewListRandomIntegrationsParamsWithTimeout(timeout time.Duration) *ListRandomIntegrationsParams { + return &ListRandomIntegrationsParams{ + timeout: timeout, + } +} + +// NewListRandomIntegrationsParamsWithContext creates a new ListRandomIntegrationsParams object +// with the ability to set a context for a request. +func NewListRandomIntegrationsParamsWithContext(ctx context.Context) *ListRandomIntegrationsParams { + return &ListRandomIntegrationsParams{ + Context: ctx, + } +} + +// NewListRandomIntegrationsParamsWithHTTPClient creates a new ListRandomIntegrationsParams object +// with the ability to set a custom HTTPClient for a request. +func NewListRandomIntegrationsParamsWithHTTPClient(client *http.Client) *ListRandomIntegrationsParams { + return &ListRandomIntegrationsParams{ + HTTPClient: client, + } +} + +/* +ListRandomIntegrationsParams contains all the parameters to send to the API endpoint + + for the list random integrations operation. + + Typically these are written to a http.Request. +*/ +type ListRandomIntegrationsParams struct { + + // OrganizationID. + OrganizationID string + + /* PaginationNextPageToken. + + Specifies a page token to use to retrieve the next page. Set this to the + `next_page_token` returned by previous list requests to get the next page of + results. If set, `previous_page_token` must not be set. + */ + PaginationNextPageToken *string + + /* PaginationPageSize. + + The max number of results per page that should be returned. If the number + of available results is larger than `page_size`, a `next_page_token` is + returned which can be used to get the next page of results in subsequent + requests. A value of zero will cause `page_size` to be defaulted. + + Format: int64 + */ + PaginationPageSize *int64 + + /* PaginationPreviousPageToken. + + Specifies a page token to use to retrieve the previous page. Set this to + the `previous_page_token` returned by previous list requests to get the + previous page of results. If set, `next_page_token` must not be set. + */ + PaginationPreviousPageToken *string + + // ProjectID. + ProjectID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the list random integrations params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ListRandomIntegrationsParams) WithDefaults() *ListRandomIntegrationsParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the list random integrations params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ListRandomIntegrationsParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the list random integrations params +func (o *ListRandomIntegrationsParams) WithTimeout(timeout time.Duration) *ListRandomIntegrationsParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the list random integrations params +func (o *ListRandomIntegrationsParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the list random integrations params +func (o *ListRandomIntegrationsParams) WithContext(ctx context.Context) *ListRandomIntegrationsParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the list random integrations params +func (o *ListRandomIntegrationsParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the list random integrations params +func (o *ListRandomIntegrationsParams) WithHTTPClient(client *http.Client) *ListRandomIntegrationsParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the list random integrations params +func (o *ListRandomIntegrationsParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithOrganizationID adds the organizationID to the list random integrations params +func (o *ListRandomIntegrationsParams) WithOrganizationID(organizationID string) *ListRandomIntegrationsParams { + o.SetOrganizationID(organizationID) + return o +} + +// SetOrganizationID adds the organizationId to the list random integrations params +func (o *ListRandomIntegrationsParams) SetOrganizationID(organizationID string) { + o.OrganizationID = organizationID +} + +// WithPaginationNextPageToken adds the paginationNextPageToken to the list random integrations params +func (o *ListRandomIntegrationsParams) WithPaginationNextPageToken(paginationNextPageToken *string) *ListRandomIntegrationsParams { + o.SetPaginationNextPageToken(paginationNextPageToken) + return o +} + +// SetPaginationNextPageToken adds the paginationNextPageToken to the list random integrations params +func (o *ListRandomIntegrationsParams) SetPaginationNextPageToken(paginationNextPageToken *string) { + o.PaginationNextPageToken = paginationNextPageToken +} + +// WithPaginationPageSize adds the paginationPageSize to the list random integrations params +func (o *ListRandomIntegrationsParams) WithPaginationPageSize(paginationPageSize *int64) *ListRandomIntegrationsParams { + o.SetPaginationPageSize(paginationPageSize) + return o +} + +// SetPaginationPageSize adds the paginationPageSize to the list random integrations params +func (o *ListRandomIntegrationsParams) SetPaginationPageSize(paginationPageSize *int64) { + o.PaginationPageSize = paginationPageSize +} + +// WithPaginationPreviousPageToken adds the paginationPreviousPageToken to the list random integrations params +func (o *ListRandomIntegrationsParams) WithPaginationPreviousPageToken(paginationPreviousPageToken *string) *ListRandomIntegrationsParams { + o.SetPaginationPreviousPageToken(paginationPreviousPageToken) + return o +} + +// SetPaginationPreviousPageToken adds the paginationPreviousPageToken to the list random integrations params +func (o *ListRandomIntegrationsParams) SetPaginationPreviousPageToken(paginationPreviousPageToken *string) { + o.PaginationPreviousPageToken = paginationPreviousPageToken +} + +// WithProjectID adds the projectID to the list random integrations params +func (o *ListRandomIntegrationsParams) WithProjectID(projectID string) *ListRandomIntegrationsParams { + o.SetProjectID(projectID) + return o +} + +// SetProjectID adds the projectId to the list random integrations params +func (o *ListRandomIntegrationsParams) SetProjectID(projectID string) { + o.ProjectID = projectID +} + +// WriteToRequest writes these params to a swagger request +func (o *ListRandomIntegrationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param organization_id + if err := r.SetPathParam("organization_id", o.OrganizationID); err != nil { + return err + } + + if o.PaginationNextPageToken != nil { + + // query param pagination.next_page_token + var qrPaginationNextPageToken string + + if o.PaginationNextPageToken != nil { + qrPaginationNextPageToken = *o.PaginationNextPageToken + } + qPaginationNextPageToken := qrPaginationNextPageToken + if qPaginationNextPageToken != "" { + + if err := r.SetQueryParam("pagination.next_page_token", qPaginationNextPageToken); err != nil { + return err + } + } + } + + if o.PaginationPageSize != nil { + + // query param pagination.page_size + var qrPaginationPageSize int64 + + if o.PaginationPageSize != nil { + qrPaginationPageSize = *o.PaginationPageSize + } + qPaginationPageSize := swag.FormatInt64(qrPaginationPageSize) + if qPaginationPageSize != "" { + + if err := r.SetQueryParam("pagination.page_size", qPaginationPageSize); err != nil { + return err + } + } + } + + if o.PaginationPreviousPageToken != nil { + + // query param pagination.previous_page_token + var qrPaginationPreviousPageToken string + + if o.PaginationPreviousPageToken != nil { + qrPaginationPreviousPageToken = *o.PaginationPreviousPageToken + } + qPaginationPreviousPageToken := qrPaginationPreviousPageToken + if qPaginationPreviousPageToken != "" { + + if err := r.SetQueryParam("pagination.previous_page_token", qPaginationPreviousPageToken); err != nil { + return err + } + } + } + + // path param project_id + if err := r.SetPathParam("project_id", o.ProjectID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_random_integrations_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_random_integrations_responses.go new file mode 100644 index 00000000..4f4c7daa --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_random_integrations_responses.go @@ -0,0 +1,187 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package secret_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "encoding/json" + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-secrets/stable/2023-11-28/models" +) + +// ListRandomIntegrationsReader is a Reader for the ListRandomIntegrations structure. +type ListRandomIntegrationsReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *ListRandomIntegrationsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewListRandomIntegrationsOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + result := NewListRandomIntegrationsDefault(response.Code()) + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + if response.Code()/100 == 2 { + return result, nil + } + return nil, result + } +} + +// NewListRandomIntegrationsOK creates a ListRandomIntegrationsOK with default headers values +func NewListRandomIntegrationsOK() *ListRandomIntegrationsOK { + return &ListRandomIntegrationsOK{} +} + +/* +ListRandomIntegrationsOK describes a response with status code 200, with default header values. + +A successful response. +*/ +type ListRandomIntegrationsOK struct { + Payload *models.Secrets20231128ListRandomIntegrationsResponse +} + +// IsSuccess returns true when this list random integrations o k response has a 2xx status code +func (o *ListRandomIntegrationsOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this list random integrations o k response has a 3xx status code +func (o *ListRandomIntegrationsOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this list random integrations o k response has a 4xx status code +func (o *ListRandomIntegrationsOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this list random integrations o k response has a 5xx status code +func (o *ListRandomIntegrationsOK) IsServerError() bool { + return false +} + +// IsCode returns true when this list random integrations o k response a status code equal to that given +func (o *ListRandomIntegrationsOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the list random integrations o k response +func (o *ListRandomIntegrationsOK) Code() int { + return 200 +} + +func (o *ListRandomIntegrationsOK) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config][%d] listRandomIntegrationsOK %s", 200, payload) +} + +func (o *ListRandomIntegrationsOK) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config][%d] listRandomIntegrationsOK %s", 200, payload) +} + +func (o *ListRandomIntegrationsOK) GetPayload() *models.Secrets20231128ListRandomIntegrationsResponse { + return o.Payload +} + +func (o *ListRandomIntegrationsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Secrets20231128ListRandomIntegrationsResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewListRandomIntegrationsDefault creates a ListRandomIntegrationsDefault with default headers values +func NewListRandomIntegrationsDefault(code int) *ListRandomIntegrationsDefault { + return &ListRandomIntegrationsDefault{ + _statusCode: code, + } +} + +/* +ListRandomIntegrationsDefault describes a response with status code -1, with default header values. + +An unexpected error response. +*/ +type ListRandomIntegrationsDefault struct { + _statusCode int + + Payload *models.GooglerpcStatus +} + +// IsSuccess returns true when this list random integrations default response has a 2xx status code +func (o *ListRandomIntegrationsDefault) IsSuccess() bool { + return o._statusCode/100 == 2 +} + +// IsRedirect returns true when this list random integrations default response has a 3xx status code +func (o *ListRandomIntegrationsDefault) IsRedirect() bool { + return o._statusCode/100 == 3 +} + +// IsClientError returns true when this list random integrations default response has a 4xx status code +func (o *ListRandomIntegrationsDefault) IsClientError() bool { + return o._statusCode/100 == 4 +} + +// IsServerError returns true when this list random integrations default response has a 5xx status code +func (o *ListRandomIntegrationsDefault) IsServerError() bool { + return o._statusCode/100 == 5 +} + +// IsCode returns true when this list random integrations default response a status code equal to that given +func (o *ListRandomIntegrationsDefault) IsCode(code int) bool { + return o._statusCode == code +} + +// Code gets the status code for the list random integrations default response +func (o *ListRandomIntegrationsDefault) Code() int { + return o._statusCode +} + +func (o *ListRandomIntegrationsDefault) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config][%d] ListRandomIntegrations default %s", o._statusCode, payload) +} + +func (o *ListRandomIntegrationsDefault) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config][%d] ListRandomIntegrations default %s", o._statusCode, payload) +} + +func (o *ListRandomIntegrationsDefault) GetPayload() *models.GooglerpcStatus { + return o.Payload +} + +func (o *ListRandomIntegrationsDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.GooglerpcStatus) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_syncs_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_syncs_responses.go index 8a73a92e..dbe889e0 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_syncs_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_syncs_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListSyncsOK) Code() int { } func (o *ListSyncsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs][%d] listSyncsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs][%d] listSyncsOK %s", 200, payload) } func (o *ListSyncsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs][%d] listSyncsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs][%d] listSyncsOK %s", 200, payload) } func (o *ListSyncsOK) GetPayload() *models.Secrets20231128ListSyncsResponse { @@ -158,11 +161,13 @@ func (o *ListSyncsDefault) Code() int { } func (o *ListSyncsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs][%d] ListSyncs default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs][%d] ListSyncs default %s", o._statusCode, payload) } func (o *ListSyncsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs][%d] ListSyncs default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/syncs][%d] ListSyncs default %s", o._statusCode, payload) } func (o *ListSyncsDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_twilio_integrations_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_twilio_integrations_responses.go index 6396318f..0f8c6342 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_twilio_integrations_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/list_twilio_integrations_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *ListTwilioIntegrationsOK) Code() int { } func (o *ListTwilioIntegrationsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config][%d] listTwilioIntegrationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config][%d] listTwilioIntegrationsOK %s", 200, payload) } func (o *ListTwilioIntegrationsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config][%d] listTwilioIntegrationsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config][%d] listTwilioIntegrationsOK %s", 200, payload) } func (o *ListTwilioIntegrationsOK) GetPayload() *models.Secrets20231128ListTwilioIntegrationsResponse { @@ -158,11 +161,13 @@ func (o *ListTwilioIntegrationsDefault) Code() int { } func (o *ListTwilioIntegrationsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config][%d] ListTwilioIntegrations default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config][%d] ListTwilioIntegrations default %s", o._statusCode, payload) } func (o *ListTwilioIntegrationsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config][%d] ListTwilioIntegrations default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config][%d] ListTwilioIntegrations default %s", o._statusCode, payload) } func (o *ListTwilioIntegrationsDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/open_app_secret_by_resource_name_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/open_app_secret_by_resource_name_responses.go index 7612e2ad..d0ce0ba5 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/open_app_secret_by_resource_name_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/open_app_secret_by_resource_name_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *OpenAppSecretByResourceNameOK) Code() int { } func (o *OpenAppSecretByResourceNameOK) Error() string { - return fmt.Sprintf("[GET /2023-11-28/{resource_name}:open][%d] openAppSecretByResourceNameOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /2023-11-28/{resource_name}:open][%d] openAppSecretByResourceNameOK %s", 200, payload) } func (o *OpenAppSecretByResourceNameOK) String() string { - return fmt.Sprintf("[GET /2023-11-28/{resource_name}:open][%d] openAppSecretByResourceNameOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /2023-11-28/{resource_name}:open][%d] openAppSecretByResourceNameOK %s", 200, payload) } func (o *OpenAppSecretByResourceNameOK) GetPayload() *models.Secrets20231128OpenAppSecretResponse { @@ -158,11 +161,13 @@ func (o *OpenAppSecretByResourceNameDefault) Code() int { } func (o *OpenAppSecretByResourceNameDefault) Error() string { - return fmt.Sprintf("[GET /2023-11-28/{resource_name}:open][%d] OpenAppSecretByResourceName default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /2023-11-28/{resource_name}:open][%d] OpenAppSecretByResourceName default %s", o._statusCode, payload) } func (o *OpenAppSecretByResourceNameDefault) String() string { - return fmt.Sprintf("[GET /2023-11-28/{resource_name}:open][%d] OpenAppSecretByResourceName default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /2023-11-28/{resource_name}:open][%d] OpenAppSecretByResourceName default %s", o._statusCode, payload) } func (o *OpenAppSecretByResourceNameDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/open_app_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/open_app_secret_responses.go index aa200e7d..f967a391 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/open_app_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/open_app_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *OpenAppSecretOK) Code() int { } func (o *OpenAppSecretOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}:open][%d] openAppSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}:open][%d] openAppSecretOK %s", 200, payload) } func (o *OpenAppSecretOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}:open][%d] openAppSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}:open][%d] openAppSecretOK %s", 200, payload) } func (o *OpenAppSecretOK) GetPayload() *models.Secrets20231128OpenAppSecretResponse { @@ -158,11 +161,13 @@ func (o *OpenAppSecretDefault) Code() int { } func (o *OpenAppSecretDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}:open][%d] OpenAppSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}:open][%d] OpenAppSecret default %s", o._statusCode, payload) } func (o *OpenAppSecretDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}:open][%d] OpenAppSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}:open][%d] OpenAppSecret default %s", o._statusCode, payload) } func (o *OpenAppSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/open_app_secret_version_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/open_app_secret_version_responses.go index 25d32f35..9943352f 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/open_app_secret_version_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/open_app_secret_version_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *OpenAppSecretVersionOK) Code() int { } func (o *OpenAppSecretVersionOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}:open][%d] openAppSecretVersionOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}:open][%d] openAppSecretVersionOK %s", 200, payload) } func (o *OpenAppSecretVersionOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}:open][%d] openAppSecretVersionOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}:open][%d] openAppSecretVersionOK %s", 200, payload) } func (o *OpenAppSecretVersionOK) GetPayload() *models.Secrets20231128OpenAppSecretVersionResponse { @@ -158,11 +161,13 @@ func (o *OpenAppSecretVersionDefault) Code() int { } func (o *OpenAppSecretVersionDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}:open][%d] OpenAppSecretVersion default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}:open][%d] OpenAppSecretVersion default %s", o._statusCode, payload) } func (o *OpenAppSecretVersionDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}:open][%d] OpenAppSecretVersion default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{secret_name}/versions/{version}:open][%d] OpenAppSecretVersion default %s", o._statusCode, payload) } func (o *OpenAppSecretVersionDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/open_app_secrets_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/open_app_secrets_responses.go index 9ef77298..bbe5dd9b 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/open_app_secrets_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/open_app_secrets_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *OpenAppSecretsOK) Code() int { } func (o *OpenAppSecretsOK) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets:open][%d] openAppSecretsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets:open][%d] openAppSecretsOK %s", 200, payload) } func (o *OpenAppSecretsOK) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets:open][%d] openAppSecretsOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets:open][%d] openAppSecretsOK %s", 200, payload) } func (o *OpenAppSecretsOK) GetPayload() *models.Secrets20231128OpenAppSecretsResponse { @@ -158,11 +161,13 @@ func (o *OpenAppSecretsDefault) Code() int { } func (o *OpenAppSecretsDefault) Error() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets:open][%d] OpenAppSecrets default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets:open][%d] OpenAppSecrets default %s", o._statusCode, payload) } func (o *OpenAppSecretsDefault) String() string { - return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets:open][%d] OpenAppSecrets default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[GET /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets:open][%d] OpenAppSecrets default %s", o._statusCode, payload) } func (o *OpenAppSecretsDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/rotate_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/rotate_secret_responses.go index 34713172..f0ea34ce 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/rotate_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/rotate_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *RotateSecretOK) Code() int { } func (o *RotateSecretOK) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{name}:rotate][%d] rotateSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{name}:rotate][%d] rotateSecretOK %s", 200, payload) } func (o *RotateSecretOK) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{name}:rotate][%d] rotateSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{name}:rotate][%d] rotateSecretOK %s", 200, payload) } func (o *RotateSecretOK) GetPayload() models.Secrets20231128RotateSecretResponse { @@ -156,11 +159,13 @@ func (o *RotateSecretDefault) Code() int { } func (o *RotateSecretDefault) Error() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{name}:rotate][%d] RotateSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{name}:rotate][%d] RotateSecret default %s", o._statusCode, payload) } func (o *RotateSecretDefault) String() string { - return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{name}:rotate][%d] RotateSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/{name}:rotate][%d] RotateSecret default %s", o._statusCode, payload) } func (o *RotateSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/secret_service_client.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/secret_service_client.go index ad7dca2c..33ff87a3 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/secret_service_client.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/secret_service_client.go @@ -7,6 +7,7 @@ package secret_service import ( "github.com/go-openapi/runtime" + httptransport "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" ) @@ -15,6 +16,31 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientServi return &Client{transport: transport, formats: formats} } +// New creates a new secret service 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 secret service 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 secret service API */ @@ -23,7 +49,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 @@ -32,6 +58,8 @@ type ClientService interface { CreateAppKVSecret(params *CreateAppKVSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateAppKVSecretOK, error) + CreateAppRotatingSecret(params *CreateAppRotatingSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateAppRotatingSecretOK, error) + CreateAwsDynamicSecret(params *CreateAwsDynamicSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateAwsDynamicSecretOK, error) CreateAwsIAMUserAccessKeyRotatingSecret(params *CreateAwsIAMUserAccessKeyRotatingSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateAwsIAMUserAccessKeyRotatingSecretOK, error) @@ -64,6 +92,10 @@ type ClientService interface { CreatePostgresRotatingSecret(params *CreatePostgresRotatingSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePostgresRotatingSecretOK, error) + CreateRandomIntegration(params *CreateRandomIntegrationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateRandomIntegrationOK, error) + + CreateRandomRotatingSecret(params *CreateRandomRotatingSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateRandomRotatingSecretOK, error) + CreateSync(params *CreateSyncParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateSyncOK, error) CreateTwilioIntegration(params *CreateTwilioIntegrationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTwilioIntegrationOK, error) @@ -96,12 +128,16 @@ type ClientService interface { DeletePostgresIntegration(params *DeletePostgresIntegrationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeletePostgresIntegrationOK, error) + DeleteRandomIntegration(params *DeleteRandomIntegrationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteRandomIntegrationOK, error) + DeleteSync(params *DeleteSyncParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteSyncOK, error) DeleteTwilioIntegration(params *DeleteTwilioIntegrationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteTwilioIntegrationOK, error) GetApp(params *GetAppParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAppOK, error) + GetAppRotatingSecret(params *GetAppRotatingSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAppRotatingSecretOK, error) + GetAppSecret(params *GetAppSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAppSecretOK, error) GetAppSecretVersion(params *GetAppSecretVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAppSecretVersionOK, error) @@ -142,6 +178,10 @@ type ClientService interface { GetPostgresRotatingSecretConfig(params *GetPostgresRotatingSecretConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPostgresRotatingSecretConfigOK, error) + GetRandomIntegration(params *GetRandomIntegrationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRandomIntegrationOK, error) + + GetRandomRotatingSecretConfig(params *GetRandomRotatingSecretConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRandomRotatingSecretConfigOK, error) + GetRotatingSecretState(params *GetRotatingSecretStateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRotatingSecretStateOK, error) GetSync(params *GetSyncParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSyncOK, error) @@ -188,6 +228,8 @@ type ClientService interface { ListProviders(params *ListProvidersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListProvidersOK, error) + ListRandomIntegrations(params *ListRandomIntegrationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListRandomIntegrationsOK, error) + ListSyncs(params *ListSyncsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSyncsOK, error) ListTwilioIntegrations(params *ListTwilioIntegrationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTwilioIntegrationsOK, error) @@ -206,6 +248,8 @@ type ClientService interface { UpdateApp(params *UpdateAppParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateAppOK, error) + UpdateAppRotatingSecret(params *UpdateAppRotatingSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateAppRotatingSecretOK, error) + UpdateAwsDynamicSecret(params *UpdateAwsDynamicSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateAwsDynamicSecretOK, error) UpdateAwsIAMUserAccessKeyRotatingSecret(params *UpdateAwsIAMUserAccessKeyRotatingSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateAwsIAMUserAccessKeyRotatingSecretOK, error) @@ -238,6 +282,10 @@ type ClientService interface { UpdatePostgresRotatingSecret(params *UpdatePostgresRotatingSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdatePostgresRotatingSecretOK, error) + UpdateRandomIntegration(params *UpdateRandomIntegrationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateRandomIntegrationOK, error) + + UpdateRandomRotatingSecret(params *UpdateRandomRotatingSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateRandomRotatingSecretOK, error) + UpdateTwilioIntegration(params *UpdateTwilioIntegrationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateTwilioIntegrationOK, error) UpdateTwilioRotatingSecret(params *UpdateTwilioRotatingSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateTwilioRotatingSecretOK, error) @@ -321,6 +369,44 @@ func (a *Client) CreateAppKVSecret(params *CreateAppKVSecretParams, authInfo run return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } +/* +CreateAppRotatingSecret create app rotating secret API +*/ +func (a *Client) CreateAppRotatingSecret(params *CreateAppRotatingSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateAppRotatingSecretOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateAppRotatingSecretParams() + } + op := &runtime.ClientOperation{ + ID: "CreateAppRotatingSecret", + Method: "POST", + PathPattern: "/secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/rotating", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateAppRotatingSecretReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*CreateAppRotatingSecretOK) + if ok { + return success, nil + } + // unexpected success response + unexpectedSuccess := result.(*CreateAppRotatingSecretDefault) + return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) +} + /* CreateAwsDynamicSecret create aws dynamic secret API */ @@ -588,7 +674,7 @@ func (a *Client) CreateConfluentIntegration(params *CreateConfluentIntegrationPa } /* -CreateGatewayPool gateways +CreateGatewayPool create gateway pool API */ func (a *Client) CreateGatewayPool(params *CreateGatewayPoolParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateGatewayPoolOK, error) { // TODO: Validate the params before sending @@ -929,6 +1015,82 @@ func (a *Client) CreatePostgresRotatingSecret(params *CreatePostgresRotatingSecr return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } +/* +CreateRandomIntegration create random integration API +*/ +func (a *Client) CreateRandomIntegration(params *CreateRandomIntegrationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateRandomIntegrationOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateRandomIntegrationParams() + } + op := &runtime.ClientOperation{ + ID: "CreateRandomIntegration", + Method: "POST", + PathPattern: "/secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateRandomIntegrationReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*CreateRandomIntegrationOK) + if ok { + return success, nil + } + // unexpected success response + unexpectedSuccess := result.(*CreateRandomIntegrationDefault) + return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) +} + +/* +CreateRandomRotatingSecret create random rotating secret API +*/ +func (a *Client) CreateRandomRotatingSecret(params *CreateRandomRotatingSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateRandomRotatingSecretOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateRandomRotatingSecretParams() + } + op := &runtime.ClientOperation{ + ID: "CreateRandomRotatingSecret", + Method: "POST", + PathPattern: "/secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/random/secret", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &CreateRandomRotatingSecretReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*CreateRandomRotatingSecretOK) + if ok { + return success, nil + } + // unexpected success response + unexpectedSuccess := result.(*CreateRandomRotatingSecretDefault) + return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) +} + /* CreateSync create sync API */ @@ -1537,6 +1699,44 @@ func (a *Client) DeletePostgresIntegration(params *DeletePostgresIntegrationPara return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } +/* +DeleteRandomIntegration delete random integration API +*/ +func (a *Client) DeleteRandomIntegration(params *DeleteRandomIntegrationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteRandomIntegrationOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewDeleteRandomIntegrationParams() + } + op := &runtime.ClientOperation{ + ID: "DeleteRandomIntegration", + Method: "DELETE", + PathPattern: "/secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config/{name}", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &DeleteRandomIntegrationReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*DeleteRandomIntegrationOK) + if ok { + return success, nil + } + // unexpected success response + unexpectedSuccess := result.(*DeleteRandomIntegrationDefault) + return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) +} + /* DeleteSync delete sync API */ @@ -1651,6 +1851,44 @@ func (a *Client) GetApp(params *GetAppParams, authInfo runtime.ClientAuthInfoWri return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } +/* +GetAppRotatingSecret get app rotating secret API +*/ +func (a *Client) GetAppRotatingSecret(params *GetAppRotatingSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAppRotatingSecretOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetAppRotatingSecretParams() + } + op := &runtime.ClientOperation{ + ID: "GetAppRotatingSecret", + Method: "GET", + PathPattern: "/secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/rotating/{name}", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetAppRotatingSecretReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetAppRotatingSecretOK) + if ok { + return success, nil + } + // unexpected success response + unexpectedSuccess := result.(*GetAppRotatingSecretDefault) + return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) +} + /* GetAppSecret get app secret API */ @@ -2411,6 +2649,82 @@ func (a *Client) GetPostgresRotatingSecretConfig(params *GetPostgresRotatingSecr return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } +/* +GetRandomIntegration get random integration API +*/ +func (a *Client) GetRandomIntegration(params *GetRandomIntegrationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRandomIntegrationOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetRandomIntegrationParams() + } + op := &runtime.ClientOperation{ + ID: "GetRandomIntegration", + Method: "GET", + PathPattern: "/secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config/{name}", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetRandomIntegrationReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetRandomIntegrationOK) + if ok { + return success, nil + } + // unexpected success response + unexpectedSuccess := result.(*GetRandomIntegrationDefault) + return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) +} + +/* +GetRandomRotatingSecretConfig get random rotating secret config API +*/ +func (a *Client) GetRandomRotatingSecretConfig(params *GetRandomRotatingSecretConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRandomRotatingSecretConfigOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGetRandomRotatingSecretConfigParams() + } + op := &runtime.ClientOperation{ + ID: "GetRandomRotatingSecretConfig", + Method: "GET", + PathPattern: "/secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/random/secret/{name}", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &GetRandomRotatingSecretConfigReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GetRandomRotatingSecretConfigOK) + if ok { + return success, nil + } + // unexpected success response + unexpectedSuccess := result.(*GetRandomRotatingSecretConfigDefault) + return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) +} + /* GetRotatingSecretState get rotating secret state API */ @@ -2830,7 +3144,7 @@ func (a *Client) ListAwsIntegrations(params *ListAwsIntegrationsParams, authInfo } /* -ListAzureIntegrations as z u r e +ListAzureIntegrations list azure integrations API */ func (a *Client) ListAzureIntegrations(params *ListAzureIntegrationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListAzureIntegrationsOK, error) { // TODO: Validate the params before sending @@ -2868,7 +3182,7 @@ func (a *Client) ListAzureIntegrations(params *ListAzureIntegrationsParams, auth } /* -ListConfluentIntegrations confluents +ListConfluentIntegrations list confluent integrations API */ func (a *Client) ListConfluentIntegrations(params *ListConfluentIntegrationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListConfluentIntegrationsOK, error) { // TODO: Validate the params before sending @@ -3248,7 +3562,7 @@ func (a *Client) ListPostgresIntegrations(params *ListPostgresIntegrationsParams } /* -ListProviders ecosystems +ListProviders list providers API */ func (a *Client) ListProviders(params *ListProvidersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListProvidersOK, error) { // TODO: Validate the params before sending @@ -3286,7 +3600,45 @@ func (a *Client) ListProviders(params *ListProvidersParams, authInfo runtime.Cli } /* -ListSyncs syncs +ListRandomIntegrations list random integrations API +*/ +func (a *Client) ListRandomIntegrations(params *ListRandomIntegrationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListRandomIntegrationsOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewListRandomIntegrationsParams() + } + op := &runtime.ClientOperation{ + ID: "ListRandomIntegrations", + Method: "GET", + PathPattern: "/secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &ListRandomIntegrationsReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*ListRandomIntegrationsOK) + if ok { + return success, nil + } + // unexpected success response + unexpectedSuccess := result.(*ListRandomIntegrationsDefault) + return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) +} + +/* +ListSyncs list syncs API */ func (a *Client) ListSyncs(params *ListSyncsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSyncsOK, error) { // TODO: Validate the params before sending @@ -3627,6 +3979,44 @@ func (a *Client) UpdateApp(params *UpdateAppParams, authInfo runtime.ClientAuthI return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } +/* +UpdateAppRotatingSecret update app rotating secret API +*/ +func (a *Client) UpdateAppRotatingSecret(params *UpdateAppRotatingSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateAppRotatingSecretOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateAppRotatingSecretParams() + } + op := &runtime.ClientOperation{ + ID: "UpdateAppRotatingSecret", + Method: "POST", + PathPattern: "/secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/rotating/{name}", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateAppRotatingSecretReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UpdateAppRotatingSecretOK) + if ok { + return success, nil + } + // unexpected success response + unexpectedSuccess := result.(*UpdateAppRotatingSecretDefault) + return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) +} + /* UpdateAwsDynamicSecret update aws dynamic secret API */ @@ -4235,6 +4625,82 @@ func (a *Client) UpdatePostgresRotatingSecret(params *UpdatePostgresRotatingSecr return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) } +/* +UpdateRandomIntegration update random integration API +*/ +func (a *Client) UpdateRandomIntegration(params *UpdateRandomIntegrationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateRandomIntegrationOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateRandomIntegrationParams() + } + op := &runtime.ClientOperation{ + ID: "UpdateRandomIntegration", + Method: "PUT", + PathPattern: "/secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config/{name}", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateRandomIntegrationReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UpdateRandomIntegrationOK) + if ok { + return success, nil + } + // unexpected success response + unexpectedSuccess := result.(*UpdateRandomIntegrationDefault) + return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) +} + +/* +UpdateRandomRotatingSecret update random rotating secret API +*/ +func (a *Client) UpdateRandomRotatingSecret(params *UpdateRandomRotatingSecretParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateRandomRotatingSecretOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUpdateRandomRotatingSecretParams() + } + op := &runtime.ClientOperation{ + ID: "UpdateRandomRotatingSecret", + Method: "PUT", + PathPattern: "/secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/random/secret/{name}", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"http"}, + Params: params, + Reader: &UpdateRandomRotatingSecretReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UpdateRandomRotatingSecretOK) + if ok { + return success, nil + } + // unexpected success response + unexpectedSuccess := result.(*UpdateRandomRotatingSecretDefault) + return nil, runtime.NewAPIError("unexpected success response: content available as default response in error", unexpectedSuccess, unexpectedSuccess.Code()) +} + /* UpdateTwilioIntegration update twilio integration API */ diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/set_tier_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/set_tier_responses.go index b6d1f945..3f95fc48 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/set_tier_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/set_tier_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *SetTierOK) Code() int { } func (o *SetTierOK) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/billing/tier][%d] setTierOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/billing/tier][%d] setTierOK %s", 200, payload) } func (o *SetTierOK) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/billing/tier][%d] setTierOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/billing/tier][%d] setTierOK %s", 200, payload) } func (o *SetTierOK) GetPayload() interface{} { @@ -156,11 +159,13 @@ func (o *SetTierDefault) Code() int { } func (o *SetTierDefault) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/billing/tier][%d] SetTier default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/billing/tier][%d] SetTier default %s", o._statusCode, payload) } func (o *SetTierDefault) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/billing/tier][%d] SetTier default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/billing/tier][%d] SetTier default %s", o._statusCode, payload) } func (o *SetTierDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_app_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_app_responses.go index 7feaf585..ff481cb5 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_app_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_app_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *UpdateAppOK) Code() int { } func (o *UpdateAppOK) Error() string { - return fmt.Sprintf("[PATCH /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}][%d] updateAppOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PATCH /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}][%d] updateAppOK %s", 200, payload) } func (o *UpdateAppOK) String() string { - return fmt.Sprintf("[PATCH /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}][%d] updateAppOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PATCH /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}][%d] updateAppOK %s", 200, payload) } func (o *UpdateAppOK) GetPayload() *models.Secrets20231128UpdateAppResponse { @@ -158,11 +161,13 @@ func (o *UpdateAppDefault) Code() int { } func (o *UpdateAppDefault) Error() string { - return fmt.Sprintf("[PATCH /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}][%d] UpdateApp default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PATCH /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}][%d] UpdateApp default %s", o._statusCode, payload) } func (o *UpdateAppDefault) String() string { - return fmt.Sprintf("[PATCH /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}][%d] UpdateApp default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PATCH /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{name}][%d] UpdateApp default %s", o._statusCode, payload) } func (o *UpdateAppDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_app_rotating_secret_parameters.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_app_rotating_secret_parameters.go new file mode 100644 index 00000000..a760df7b --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_app_rotating_secret_parameters.go @@ -0,0 +1,226 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package secret_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-secrets/stable/2023-11-28/models" +) + +// NewUpdateAppRotatingSecretParams creates a new UpdateAppRotatingSecretParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUpdateAppRotatingSecretParams() *UpdateAppRotatingSecretParams { + return &UpdateAppRotatingSecretParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUpdateAppRotatingSecretParamsWithTimeout creates a new UpdateAppRotatingSecretParams object +// with the ability to set a timeout on a request. +func NewUpdateAppRotatingSecretParamsWithTimeout(timeout time.Duration) *UpdateAppRotatingSecretParams { + return &UpdateAppRotatingSecretParams{ + timeout: timeout, + } +} + +// NewUpdateAppRotatingSecretParamsWithContext creates a new UpdateAppRotatingSecretParams object +// with the ability to set a context for a request. +func NewUpdateAppRotatingSecretParamsWithContext(ctx context.Context) *UpdateAppRotatingSecretParams { + return &UpdateAppRotatingSecretParams{ + Context: ctx, + } +} + +// NewUpdateAppRotatingSecretParamsWithHTTPClient creates a new UpdateAppRotatingSecretParams object +// with the ability to set a custom HTTPClient for a request. +func NewUpdateAppRotatingSecretParamsWithHTTPClient(client *http.Client) *UpdateAppRotatingSecretParams { + return &UpdateAppRotatingSecretParams{ + HTTPClient: client, + } +} + +/* +UpdateAppRotatingSecretParams contains all the parameters to send to the API endpoint + + for the update app rotating secret operation. + + Typically these are written to a http.Request. +*/ +type UpdateAppRotatingSecretParams struct { + + // AppName. + AppName string + + // Body. + Body *models.SecretServiceUpdateAppRotatingSecretBody + + // Name. + Name string + + // OrganizationID. + OrganizationID string + + // ProjectID. + ProjectID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the update app rotating secret params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateAppRotatingSecretParams) WithDefaults() *UpdateAppRotatingSecretParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the update app rotating secret params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateAppRotatingSecretParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the update app rotating secret params +func (o *UpdateAppRotatingSecretParams) WithTimeout(timeout time.Duration) *UpdateAppRotatingSecretParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the update app rotating secret params +func (o *UpdateAppRotatingSecretParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the update app rotating secret params +func (o *UpdateAppRotatingSecretParams) WithContext(ctx context.Context) *UpdateAppRotatingSecretParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the update app rotating secret params +func (o *UpdateAppRotatingSecretParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the update app rotating secret params +func (o *UpdateAppRotatingSecretParams) WithHTTPClient(client *http.Client) *UpdateAppRotatingSecretParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the update app rotating secret params +func (o *UpdateAppRotatingSecretParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAppName adds the appName to the update app rotating secret params +func (o *UpdateAppRotatingSecretParams) WithAppName(appName string) *UpdateAppRotatingSecretParams { + o.SetAppName(appName) + return o +} + +// SetAppName adds the appName to the update app rotating secret params +func (o *UpdateAppRotatingSecretParams) SetAppName(appName string) { + o.AppName = appName +} + +// WithBody adds the body to the update app rotating secret params +func (o *UpdateAppRotatingSecretParams) WithBody(body *models.SecretServiceUpdateAppRotatingSecretBody) *UpdateAppRotatingSecretParams { + o.SetBody(body) + return o +} + +// SetBody adds the body to the update app rotating secret params +func (o *UpdateAppRotatingSecretParams) SetBody(body *models.SecretServiceUpdateAppRotatingSecretBody) { + o.Body = body +} + +// WithName adds the name to the update app rotating secret params +func (o *UpdateAppRotatingSecretParams) WithName(name string) *UpdateAppRotatingSecretParams { + o.SetName(name) + return o +} + +// SetName adds the name to the update app rotating secret params +func (o *UpdateAppRotatingSecretParams) SetName(name string) { + o.Name = name +} + +// WithOrganizationID adds the organizationID to the update app rotating secret params +func (o *UpdateAppRotatingSecretParams) WithOrganizationID(organizationID string) *UpdateAppRotatingSecretParams { + o.SetOrganizationID(organizationID) + return o +} + +// SetOrganizationID adds the organizationId to the update app rotating secret params +func (o *UpdateAppRotatingSecretParams) SetOrganizationID(organizationID string) { + o.OrganizationID = organizationID +} + +// WithProjectID adds the projectID to the update app rotating secret params +func (o *UpdateAppRotatingSecretParams) WithProjectID(projectID string) *UpdateAppRotatingSecretParams { + o.SetProjectID(projectID) + return o +} + +// SetProjectID adds the projectId to the update app rotating secret params +func (o *UpdateAppRotatingSecretParams) SetProjectID(projectID string) { + o.ProjectID = projectID +} + +// WriteToRequest writes these params to a swagger request +func (o *UpdateAppRotatingSecretParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param app_name + if err := r.SetPathParam("app_name", o.AppName); err != nil { + return err + } + if o.Body != nil { + if err := r.SetBodyParam(o.Body); err != nil { + return err + } + } + + // path param name + if err := r.SetPathParam("name", o.Name); err != nil { + return err + } + + // path param organization_id + if err := r.SetPathParam("organization_id", o.OrganizationID); err != nil { + return err + } + + // path param project_id + if err := r.SetPathParam("project_id", o.ProjectID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_app_rotating_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_app_rotating_secret_responses.go new file mode 100644 index 00000000..1276d31b --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_app_rotating_secret_responses.go @@ -0,0 +1,187 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package secret_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "encoding/json" + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-secrets/stable/2023-11-28/models" +) + +// UpdateAppRotatingSecretReader is a Reader for the UpdateAppRotatingSecret structure. +type UpdateAppRotatingSecretReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UpdateAppRotatingSecretReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUpdateAppRotatingSecretOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + result := NewUpdateAppRotatingSecretDefault(response.Code()) + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + if response.Code()/100 == 2 { + return result, nil + } + return nil, result + } +} + +// NewUpdateAppRotatingSecretOK creates a UpdateAppRotatingSecretOK with default headers values +func NewUpdateAppRotatingSecretOK() *UpdateAppRotatingSecretOK { + return &UpdateAppRotatingSecretOK{} +} + +/* +UpdateAppRotatingSecretOK describes a response with status code 200, with default header values. + +A successful response. +*/ +type UpdateAppRotatingSecretOK struct { + Payload *models.Secrets20231128UpdateAppRotatingSecretResponse +} + +// IsSuccess returns true when this update app rotating secret o k response has a 2xx status code +func (o *UpdateAppRotatingSecretOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update app rotating secret o k response has a 3xx status code +func (o *UpdateAppRotatingSecretOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update app rotating secret o k response has a 4xx status code +func (o *UpdateAppRotatingSecretOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update app rotating secret o k response has a 5xx status code +func (o *UpdateAppRotatingSecretOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update app rotating secret o k response a status code equal to that given +func (o *UpdateAppRotatingSecretOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update app rotating secret o k response +func (o *UpdateAppRotatingSecretOK) Code() int { + return 200 +} + +func (o *UpdateAppRotatingSecretOK) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/rotating/{name}][%d] updateAppRotatingSecretOK %s", 200, payload) +} + +func (o *UpdateAppRotatingSecretOK) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/rotating/{name}][%d] updateAppRotatingSecretOK %s", 200, payload) +} + +func (o *UpdateAppRotatingSecretOK) GetPayload() *models.Secrets20231128UpdateAppRotatingSecretResponse { + return o.Payload +} + +func (o *UpdateAppRotatingSecretOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Secrets20231128UpdateAppRotatingSecretResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewUpdateAppRotatingSecretDefault creates a UpdateAppRotatingSecretDefault with default headers values +func NewUpdateAppRotatingSecretDefault(code int) *UpdateAppRotatingSecretDefault { + return &UpdateAppRotatingSecretDefault{ + _statusCode: code, + } +} + +/* +UpdateAppRotatingSecretDefault describes a response with status code -1, with default header values. + +An unexpected error response. +*/ +type UpdateAppRotatingSecretDefault struct { + _statusCode int + + Payload *models.GooglerpcStatus +} + +// IsSuccess returns true when this update app rotating secret default response has a 2xx status code +func (o *UpdateAppRotatingSecretDefault) IsSuccess() bool { + return o._statusCode/100 == 2 +} + +// IsRedirect returns true when this update app rotating secret default response has a 3xx status code +func (o *UpdateAppRotatingSecretDefault) IsRedirect() bool { + return o._statusCode/100 == 3 +} + +// IsClientError returns true when this update app rotating secret default response has a 4xx status code +func (o *UpdateAppRotatingSecretDefault) IsClientError() bool { + return o._statusCode/100 == 4 +} + +// IsServerError returns true when this update app rotating secret default response has a 5xx status code +func (o *UpdateAppRotatingSecretDefault) IsServerError() bool { + return o._statusCode/100 == 5 +} + +// IsCode returns true when this update app rotating secret default response a status code equal to that given +func (o *UpdateAppRotatingSecretDefault) IsCode(code int) bool { + return o._statusCode == code +} + +// Code gets the status code for the update app rotating secret default response +func (o *UpdateAppRotatingSecretDefault) Code() int { + return o._statusCode +} + +func (o *UpdateAppRotatingSecretDefault) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/rotating/{name}][%d] UpdateAppRotatingSecret default %s", o._statusCode, payload) +} + +func (o *UpdateAppRotatingSecretDefault) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[POST /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/secrets/rotating/{name}][%d] UpdateAppRotatingSecret default %s", o._statusCode, payload) +} + +func (o *UpdateAppRotatingSecretDefault) GetPayload() *models.GooglerpcStatus { + return o.Payload +} + +func (o *UpdateAppRotatingSecretDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.GooglerpcStatus) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_aws_dynamic_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_aws_dynamic_secret_responses.go index 853c3bb7..de1a0767 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_aws_dynamic_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_aws_dynamic_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *UpdateAwsDynamicSecretOK) Code() int { } func (o *UpdateAwsDynamicSecretOK) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret/{name}][%d] updateAwsDynamicSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret/{name}][%d] updateAwsDynamicSecretOK %s", 200, payload) } func (o *UpdateAwsDynamicSecretOK) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret/{name}][%d] updateAwsDynamicSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret/{name}][%d] updateAwsDynamicSecretOK %s", 200, payload) } func (o *UpdateAwsDynamicSecretOK) GetPayload() *models.Secrets20231128UpdateAwsDynamicSecretResponse { @@ -158,11 +161,13 @@ func (o *UpdateAwsDynamicSecretDefault) Code() int { } func (o *UpdateAwsDynamicSecretDefault) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret/{name}][%d] UpdateAwsDynamicSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret/{name}][%d] UpdateAwsDynamicSecret default %s", o._statusCode, payload) } func (o *UpdateAwsDynamicSecretDefault) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret/{name}][%d] UpdateAwsDynamicSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/aws/secret/{name}][%d] UpdateAwsDynamicSecret default %s", o._statusCode, payload) } func (o *UpdateAwsDynamicSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_aws_i_a_m_user_access_key_rotating_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_aws_i_a_m_user_access_key_rotating_secret_responses.go index 48ece909..5a772dcb 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_aws_i_a_m_user_access_key_rotating_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_aws_i_a_m_user_access_key_rotating_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *UpdateAwsIAMUserAccessKeyRotatingSecretOK) Code() int { } func (o *UpdateAwsIAMUserAccessKeyRotatingSecretOK) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/aws/secret/{name}][%d] updateAwsIAMUserAccessKeyRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/aws/secret/{name}][%d] updateAwsIAMUserAccessKeyRotatingSecretOK %s", 200, payload) } func (o *UpdateAwsIAMUserAccessKeyRotatingSecretOK) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/aws/secret/{name}][%d] updateAwsIAMUserAccessKeyRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/aws/secret/{name}][%d] updateAwsIAMUserAccessKeyRotatingSecretOK %s", 200, payload) } func (o *UpdateAwsIAMUserAccessKeyRotatingSecretOK) GetPayload() *models.Secrets20231128UpdateAwsIAMUserAccessKeyRotatingSecretResponse { @@ -158,11 +161,13 @@ func (o *UpdateAwsIAMUserAccessKeyRotatingSecretDefault) Code() int { } func (o *UpdateAwsIAMUserAccessKeyRotatingSecretDefault) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/aws/secret/{name}][%d] UpdateAwsIAMUserAccessKeyRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/aws/secret/{name}][%d] UpdateAwsIAMUserAccessKeyRotatingSecret default %s", o._statusCode, payload) } func (o *UpdateAwsIAMUserAccessKeyRotatingSecretDefault) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/aws/secret/{name}][%d] UpdateAwsIAMUserAccessKeyRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/aws/secret/{name}][%d] UpdateAwsIAMUserAccessKeyRotatingSecret default %s", o._statusCode, payload) } func (o *UpdateAwsIAMUserAccessKeyRotatingSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_aws_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_aws_integration_responses.go index 24ec2839..ed8155c8 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_aws_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_aws_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *UpdateAwsIntegrationOK) Code() int { } func (o *UpdateAwsIntegrationOK) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config/{name}][%d] updateAwsIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config/{name}][%d] updateAwsIntegrationOK %s", 200, payload) } func (o *UpdateAwsIntegrationOK) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config/{name}][%d] updateAwsIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config/{name}][%d] updateAwsIntegrationOK %s", 200, payload) } func (o *UpdateAwsIntegrationOK) GetPayload() *models.Secrets20231128UpdateAwsIntegrationResponse { @@ -158,11 +161,13 @@ func (o *UpdateAwsIntegrationDefault) Code() int { } func (o *UpdateAwsIntegrationDefault) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config/{name}][%d] UpdateAwsIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config/{name}][%d] UpdateAwsIntegration default %s", o._statusCode, payload) } func (o *UpdateAwsIntegrationDefault) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config/{name}][%d] UpdateAwsIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/aws/config/{name}][%d] UpdateAwsIntegration default %s", o._statusCode, payload) } func (o *UpdateAwsIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_azure_application_password_rotating_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_azure_application_password_rotating_secret_responses.go index 3b9f0eff..d124468b 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_azure_application_password_rotating_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_azure_application_password_rotating_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *UpdateAzureApplicationPasswordRotatingSecretOK) Code() int { } func (o *UpdateAzureApplicationPasswordRotatingSecretOK) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/azure/secret/{name}][%d] updateAzureApplicationPasswordRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/azure/secret/{name}][%d] updateAzureApplicationPasswordRotatingSecretOK %s", 200, payload) } func (o *UpdateAzureApplicationPasswordRotatingSecretOK) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/azure/secret/{name}][%d] updateAzureApplicationPasswordRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/azure/secret/{name}][%d] updateAzureApplicationPasswordRotatingSecretOK %s", 200, payload) } func (o *UpdateAzureApplicationPasswordRotatingSecretOK) GetPayload() *models.Secrets20231128UpdateAzureApplicationPasswordRotatingSecretResponse { @@ -158,11 +161,13 @@ func (o *UpdateAzureApplicationPasswordRotatingSecretDefault) Code() int { } func (o *UpdateAzureApplicationPasswordRotatingSecretDefault) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/azure/secret/{name}][%d] UpdateAzureApplicationPasswordRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/azure/secret/{name}][%d] UpdateAzureApplicationPasswordRotatingSecret default %s", o._statusCode, payload) } func (o *UpdateAzureApplicationPasswordRotatingSecretDefault) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/azure/secret/{name}][%d] UpdateAzureApplicationPasswordRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/azure/secret/{name}][%d] UpdateAzureApplicationPasswordRotatingSecret default %s", o._statusCode, payload) } func (o *UpdateAzureApplicationPasswordRotatingSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_azure_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_azure_integration_responses.go index c93aee4e..4e09ac18 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_azure_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_azure_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *UpdateAzureIntegrationOK) Code() int { } func (o *UpdateAzureIntegrationOK) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config/{name}][%d] updateAzureIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config/{name}][%d] updateAzureIntegrationOK %s", 200, payload) } func (o *UpdateAzureIntegrationOK) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config/{name}][%d] updateAzureIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config/{name}][%d] updateAzureIntegrationOK %s", 200, payload) } func (o *UpdateAzureIntegrationOK) GetPayload() *models.Secrets20231128UpdateAzureIntegrationResponse { @@ -158,11 +161,13 @@ func (o *UpdateAzureIntegrationDefault) Code() int { } func (o *UpdateAzureIntegrationDefault) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config/{name}][%d] UpdateAzureIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config/{name}][%d] UpdateAzureIntegration default %s", o._statusCode, payload) } func (o *UpdateAzureIntegrationDefault) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config/{name}][%d] UpdateAzureIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/azure/config/{name}][%d] UpdateAzureIntegration default %s", o._statusCode, payload) } func (o *UpdateAzureIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_confluent_cloud_api_key_rotating_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_confluent_cloud_api_key_rotating_secret_responses.go index 97951bdf..67c30e1a 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_confluent_cloud_api_key_rotating_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_confluent_cloud_api_key_rotating_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *UpdateConfluentCloudAPIKeyRotatingSecretOK) Code() int { } func (o *UpdateConfluentCloudAPIKeyRotatingSecretOK) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/confluent/secret/{name}][%d] updateConfluentCloudApiKeyRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/confluent/secret/{name}][%d] updateConfluentCloudApiKeyRotatingSecretOK %s", 200, payload) } func (o *UpdateConfluentCloudAPIKeyRotatingSecretOK) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/confluent/secret/{name}][%d] updateConfluentCloudApiKeyRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/confluent/secret/{name}][%d] updateConfluentCloudApiKeyRotatingSecretOK %s", 200, payload) } func (o *UpdateConfluentCloudAPIKeyRotatingSecretOK) GetPayload() *models.Secrets20231128UpdateConfluentCloudAPIKeyRotatingSecretResponse { @@ -158,11 +161,13 @@ func (o *UpdateConfluentCloudAPIKeyRotatingSecretDefault) Code() int { } func (o *UpdateConfluentCloudAPIKeyRotatingSecretDefault) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/confluent/secret/{name}][%d] UpdateConfluentCloudApiKeyRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/confluent/secret/{name}][%d] UpdateConfluentCloudApiKeyRotatingSecret default %s", o._statusCode, payload) } func (o *UpdateConfluentCloudAPIKeyRotatingSecretDefault) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/confluent/secret/{name}][%d] UpdateConfluentCloudApiKeyRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/confluent/secret/{name}][%d] UpdateConfluentCloudApiKeyRotatingSecret default %s", o._statusCode, payload) } func (o *UpdateConfluentCloudAPIKeyRotatingSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_confluent_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_confluent_integration_responses.go index 3e7f9056..9915110c 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_confluent_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_confluent_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *UpdateConfluentIntegrationOK) Code() int { } func (o *UpdateConfluentIntegrationOK) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config/{name}][%d] updateConfluentIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config/{name}][%d] updateConfluentIntegrationOK %s", 200, payload) } func (o *UpdateConfluentIntegrationOK) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config/{name}][%d] updateConfluentIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config/{name}][%d] updateConfluentIntegrationOK %s", 200, payload) } func (o *UpdateConfluentIntegrationOK) GetPayload() *models.Secrets20231128UpdateConfluentIntegrationResponse { @@ -158,11 +161,13 @@ func (o *UpdateConfluentIntegrationDefault) Code() int { } func (o *UpdateConfluentIntegrationDefault) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config/{name}][%d] UpdateConfluentIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config/{name}][%d] UpdateConfluentIntegration default %s", o._statusCode, payload) } func (o *UpdateConfluentIntegrationDefault) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config/{name}][%d] UpdateConfluentIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/confluent/config/{name}][%d] UpdateConfluentIntegration default %s", o._statusCode, payload) } func (o *UpdateConfluentIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_gateway_pool_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_gateway_pool_responses.go index 0f4775a9..f72c6d68 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_gateway_pool_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_gateway_pool_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *UpdateGatewayPoolOK) Code() int { } func (o *UpdateGatewayPoolOK) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}][%d] updateGatewayPoolOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}][%d] updateGatewayPoolOK %s", 200, payload) } func (o *UpdateGatewayPoolOK) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}][%d] updateGatewayPoolOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}][%d] updateGatewayPoolOK %s", 200, payload) } func (o *UpdateGatewayPoolOK) GetPayload() *models.Secrets20231128UpdateGatewayPoolResponse { @@ -158,11 +161,13 @@ func (o *UpdateGatewayPoolDefault) Code() int { } func (o *UpdateGatewayPoolDefault) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}][%d] UpdateGatewayPool default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}][%d] UpdateGatewayPool default %s", o._statusCode, payload) } func (o *UpdateGatewayPoolDefault) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}][%d] UpdateGatewayPool default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/gateway-pools/{gateway_pool_name}][%d] UpdateGatewayPool default %s", o._statusCode, payload) } func (o *UpdateGatewayPoolDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_gcp_dynamic_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_gcp_dynamic_secret_responses.go index f6c43681..beb9e8ba 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_gcp_dynamic_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_gcp_dynamic_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *UpdateGcpDynamicSecretOK) Code() int { } func (o *UpdateGcpDynamicSecretOK) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret/{name}][%d] updateGcpDynamicSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret/{name}][%d] updateGcpDynamicSecretOK %s", 200, payload) } func (o *UpdateGcpDynamicSecretOK) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret/{name}][%d] updateGcpDynamicSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret/{name}][%d] updateGcpDynamicSecretOK %s", 200, payload) } func (o *UpdateGcpDynamicSecretOK) GetPayload() *models.Secrets20231128UpdateGcpDynamicSecretResponse { @@ -158,11 +161,13 @@ func (o *UpdateGcpDynamicSecretDefault) Code() int { } func (o *UpdateGcpDynamicSecretDefault) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret/{name}][%d] UpdateGcpDynamicSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret/{name}][%d] UpdateGcpDynamicSecret default %s", o._statusCode, payload) } func (o *UpdateGcpDynamicSecretDefault) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret/{name}][%d] UpdateGcpDynamicSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/dynamic/gcp/secret/{name}][%d] UpdateGcpDynamicSecret default %s", o._statusCode, payload) } func (o *UpdateGcpDynamicSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_gcp_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_gcp_integration_responses.go index 92b2ba5c..bcf8eca4 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_gcp_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_gcp_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *UpdateGcpIntegrationOK) Code() int { } func (o *UpdateGcpIntegrationOK) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config/{name}][%d] updateGcpIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config/{name}][%d] updateGcpIntegrationOK %s", 200, payload) } func (o *UpdateGcpIntegrationOK) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config/{name}][%d] updateGcpIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config/{name}][%d] updateGcpIntegrationOK %s", 200, payload) } func (o *UpdateGcpIntegrationOK) GetPayload() *models.Secrets20231128UpdateGcpIntegrationResponse { @@ -158,11 +161,13 @@ func (o *UpdateGcpIntegrationDefault) Code() int { } func (o *UpdateGcpIntegrationDefault) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config/{name}][%d] UpdateGcpIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config/{name}][%d] UpdateGcpIntegration default %s", o._statusCode, payload) } func (o *UpdateGcpIntegrationDefault) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config/{name}][%d] UpdateGcpIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/gcp/config/{name}][%d] UpdateGcpIntegration default %s", o._statusCode, payload) } func (o *UpdateGcpIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_gcp_service_account_key_rotating_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_gcp_service_account_key_rotating_secret_responses.go index 77983abd..e4276109 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_gcp_service_account_key_rotating_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_gcp_service_account_key_rotating_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *UpdateGcpServiceAccountKeyRotatingSecretOK) Code() int { } func (o *UpdateGcpServiceAccountKeyRotatingSecretOK) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/gcp/secret/{name}][%d] updateGcpServiceAccountKeyRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/gcp/secret/{name}][%d] updateGcpServiceAccountKeyRotatingSecretOK %s", 200, payload) } func (o *UpdateGcpServiceAccountKeyRotatingSecretOK) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/gcp/secret/{name}][%d] updateGcpServiceAccountKeyRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/gcp/secret/{name}][%d] updateGcpServiceAccountKeyRotatingSecretOK %s", 200, payload) } func (o *UpdateGcpServiceAccountKeyRotatingSecretOK) GetPayload() *models.Secrets20231128UpdateGcpServiceAccountKeyRotatingSecretResponse { @@ -158,11 +161,13 @@ func (o *UpdateGcpServiceAccountKeyRotatingSecretDefault) Code() int { } func (o *UpdateGcpServiceAccountKeyRotatingSecretDefault) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/gcp/secret/{name}][%d] UpdateGcpServiceAccountKeyRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/gcp/secret/{name}][%d] UpdateGcpServiceAccountKeyRotatingSecret default %s", o._statusCode, payload) } func (o *UpdateGcpServiceAccountKeyRotatingSecretDefault) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/gcp/secret/{name}][%d] UpdateGcpServiceAccountKeyRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/gcp/secret/{name}][%d] UpdateGcpServiceAccountKeyRotatingSecret default %s", o._statusCode, payload) } func (o *UpdateGcpServiceAccountKeyRotatingSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_integration_responses.go index c8eb81a7..2a8fc29a 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *UpdateIntegrationOK) Code() int { } func (o *UpdateIntegrationOK) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/{name}][%d] updateIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/{name}][%d] updateIntegrationOK %s", 200, payload) } func (o *UpdateIntegrationOK) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/{name}][%d] updateIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/{name}][%d] updateIntegrationOK %s", 200, payload) } func (o *UpdateIntegrationOK) GetPayload() *models.Secrets20231128UpdateIntegrationResponse { @@ -158,11 +161,13 @@ func (o *UpdateIntegrationDefault) Code() int { } func (o *UpdateIntegrationDefault) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/{name}][%d] UpdateIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/{name}][%d] UpdateIntegration default %s", o._statusCode, payload) } func (o *UpdateIntegrationDefault) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/{name}][%d] UpdateIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/{name}][%d] UpdateIntegration default %s", o._statusCode, payload) } func (o *UpdateIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_mongo_d_b_atlas_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_mongo_d_b_atlas_integration_responses.go index 4efc36ef..39215fd6 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_mongo_d_b_atlas_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_mongo_d_b_atlas_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *UpdateMongoDBAtlasIntegrationOK) Code() int { } func (o *UpdateMongoDBAtlasIntegrationOK) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config/{name}][%d] updateMongoDBAtlasIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config/{name}][%d] updateMongoDBAtlasIntegrationOK %s", 200, payload) } func (o *UpdateMongoDBAtlasIntegrationOK) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config/{name}][%d] updateMongoDBAtlasIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config/{name}][%d] updateMongoDBAtlasIntegrationOK %s", 200, payload) } func (o *UpdateMongoDBAtlasIntegrationOK) GetPayload() *models.Secrets20231128UpdateMongoDBAtlasIntegrationResponse { @@ -158,11 +161,13 @@ func (o *UpdateMongoDBAtlasIntegrationDefault) Code() int { } func (o *UpdateMongoDBAtlasIntegrationDefault) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config/{name}][%d] UpdateMongoDBAtlasIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config/{name}][%d] UpdateMongoDBAtlasIntegration default %s", o._statusCode, payload) } func (o *UpdateMongoDBAtlasIntegrationDefault) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config/{name}][%d] UpdateMongoDBAtlasIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/mongodb-atlas/config/{name}][%d] UpdateMongoDBAtlasIntegration default %s", o._statusCode, payload) } func (o *UpdateMongoDBAtlasIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_mongo_d_b_atlas_rotating_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_mongo_d_b_atlas_rotating_secret_responses.go index 587d5dbd..b6a73163 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_mongo_d_b_atlas_rotating_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_mongo_d_b_atlas_rotating_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *UpdateMongoDBAtlasRotatingSecretOK) Code() int { } func (o *UpdateMongoDBAtlasRotatingSecretOK) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/mongodb-atlas/secret/{name}][%d] updateMongoDBAtlasRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/mongodb-atlas/secret/{name}][%d] updateMongoDBAtlasRotatingSecretOK %s", 200, payload) } func (o *UpdateMongoDBAtlasRotatingSecretOK) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/mongodb-atlas/secret/{name}][%d] updateMongoDBAtlasRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/mongodb-atlas/secret/{name}][%d] updateMongoDBAtlasRotatingSecretOK %s", 200, payload) } func (o *UpdateMongoDBAtlasRotatingSecretOK) GetPayload() *models.Secrets20231128UpdateMongoDBAtlasRotatingSecretResponse { @@ -158,11 +161,13 @@ func (o *UpdateMongoDBAtlasRotatingSecretDefault) Code() int { } func (o *UpdateMongoDBAtlasRotatingSecretDefault) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/mongodb-atlas/secret/{name}][%d] UpdateMongoDBAtlasRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/mongodb-atlas/secret/{name}][%d] UpdateMongoDBAtlasRotatingSecret default %s", o._statusCode, payload) } func (o *UpdateMongoDBAtlasRotatingSecretDefault) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/mongodb-atlas/secret/{name}][%d] UpdateMongoDBAtlasRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/mongodb-atlas/secret/{name}][%d] UpdateMongoDBAtlasRotatingSecret default %s", o._statusCode, payload) } func (o *UpdateMongoDBAtlasRotatingSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_postgres_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_postgres_integration_responses.go index 1d136732..1b099c65 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_postgres_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_postgres_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *UpdatePostgresIntegrationOK) Code() int { } func (o *UpdatePostgresIntegrationOK) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config/{name}][%d] updatePostgresIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config/{name}][%d] updatePostgresIntegrationOK %s", 200, payload) } func (o *UpdatePostgresIntegrationOK) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config/{name}][%d] updatePostgresIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config/{name}][%d] updatePostgresIntegrationOK %s", 200, payload) } func (o *UpdatePostgresIntegrationOK) GetPayload() *models.Secrets20231128UpdatePostgresIntegrationResponse { @@ -158,11 +161,13 @@ func (o *UpdatePostgresIntegrationDefault) Code() int { } func (o *UpdatePostgresIntegrationDefault) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config/{name}][%d] UpdatePostgresIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config/{name}][%d] UpdatePostgresIntegration default %s", o._statusCode, payload) } func (o *UpdatePostgresIntegrationDefault) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config/{name}][%d] UpdatePostgresIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/postgres/config/{name}][%d] UpdatePostgresIntegration default %s", o._statusCode, payload) } func (o *UpdatePostgresIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_postgres_rotating_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_postgres_rotating_secret_responses.go index 9086232f..26045a92 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_postgres_rotating_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_postgres_rotating_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *UpdatePostgresRotatingSecretOK) Code() int { } func (o *UpdatePostgresRotatingSecretOK) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/postgres/secret/{name}][%d] updatePostgresRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/postgres/secret/{name}][%d] updatePostgresRotatingSecretOK %s", 200, payload) } func (o *UpdatePostgresRotatingSecretOK) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/postgres/secret/{name}][%d] updatePostgresRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/postgres/secret/{name}][%d] updatePostgresRotatingSecretOK %s", 200, payload) } func (o *UpdatePostgresRotatingSecretOK) GetPayload() *models.Secrets20231128UpdatePostgresRotatingSecretResponse { @@ -158,11 +161,13 @@ func (o *UpdatePostgresRotatingSecretDefault) Code() int { } func (o *UpdatePostgresRotatingSecretDefault) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/postgres/secret/{name}][%d] UpdatePostgresRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/postgres/secret/{name}][%d] UpdatePostgresRotatingSecret default %s", o._statusCode, payload) } func (o *UpdatePostgresRotatingSecretDefault) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/postgres/secret/{name}][%d] UpdatePostgresRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/postgres/secret/{name}][%d] UpdatePostgresRotatingSecret default %s", o._statusCode, payload) } func (o *UpdatePostgresRotatingSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_random_integration_parameters.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_random_integration_parameters.go new file mode 100644 index 00000000..81c9d211 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_random_integration_parameters.go @@ -0,0 +1,207 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package secret_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-secrets/stable/2023-11-28/models" +) + +// NewUpdateRandomIntegrationParams creates a new UpdateRandomIntegrationParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUpdateRandomIntegrationParams() *UpdateRandomIntegrationParams { + return &UpdateRandomIntegrationParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUpdateRandomIntegrationParamsWithTimeout creates a new UpdateRandomIntegrationParams object +// with the ability to set a timeout on a request. +func NewUpdateRandomIntegrationParamsWithTimeout(timeout time.Duration) *UpdateRandomIntegrationParams { + return &UpdateRandomIntegrationParams{ + timeout: timeout, + } +} + +// NewUpdateRandomIntegrationParamsWithContext creates a new UpdateRandomIntegrationParams object +// with the ability to set a context for a request. +func NewUpdateRandomIntegrationParamsWithContext(ctx context.Context) *UpdateRandomIntegrationParams { + return &UpdateRandomIntegrationParams{ + Context: ctx, + } +} + +// NewUpdateRandomIntegrationParamsWithHTTPClient creates a new UpdateRandomIntegrationParams object +// with the ability to set a custom HTTPClient for a request. +func NewUpdateRandomIntegrationParamsWithHTTPClient(client *http.Client) *UpdateRandomIntegrationParams { + return &UpdateRandomIntegrationParams{ + HTTPClient: client, + } +} + +/* +UpdateRandomIntegrationParams contains all the parameters to send to the API endpoint + + for the update random integration operation. + + Typically these are written to a http.Request. +*/ +type UpdateRandomIntegrationParams struct { + + // Body. + Body *models.SecretServiceUpdateRandomIntegrationBody + + // Name. + Name string + + // OrganizationID. + OrganizationID string + + // ProjectID. + ProjectID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the update random integration params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateRandomIntegrationParams) WithDefaults() *UpdateRandomIntegrationParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the update random integration params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateRandomIntegrationParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the update random integration params +func (o *UpdateRandomIntegrationParams) WithTimeout(timeout time.Duration) *UpdateRandomIntegrationParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the update random integration params +func (o *UpdateRandomIntegrationParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the update random integration params +func (o *UpdateRandomIntegrationParams) WithContext(ctx context.Context) *UpdateRandomIntegrationParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the update random integration params +func (o *UpdateRandomIntegrationParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the update random integration params +func (o *UpdateRandomIntegrationParams) WithHTTPClient(client *http.Client) *UpdateRandomIntegrationParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the update random integration params +func (o *UpdateRandomIntegrationParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithBody adds the body to the update random integration params +func (o *UpdateRandomIntegrationParams) WithBody(body *models.SecretServiceUpdateRandomIntegrationBody) *UpdateRandomIntegrationParams { + o.SetBody(body) + return o +} + +// SetBody adds the body to the update random integration params +func (o *UpdateRandomIntegrationParams) SetBody(body *models.SecretServiceUpdateRandomIntegrationBody) { + o.Body = body +} + +// WithName adds the name to the update random integration params +func (o *UpdateRandomIntegrationParams) WithName(name string) *UpdateRandomIntegrationParams { + o.SetName(name) + return o +} + +// SetName adds the name to the update random integration params +func (o *UpdateRandomIntegrationParams) SetName(name string) { + o.Name = name +} + +// WithOrganizationID adds the organizationID to the update random integration params +func (o *UpdateRandomIntegrationParams) WithOrganizationID(organizationID string) *UpdateRandomIntegrationParams { + o.SetOrganizationID(organizationID) + return o +} + +// SetOrganizationID adds the organizationId to the update random integration params +func (o *UpdateRandomIntegrationParams) SetOrganizationID(organizationID string) { + o.OrganizationID = organizationID +} + +// WithProjectID adds the projectID to the update random integration params +func (o *UpdateRandomIntegrationParams) WithProjectID(projectID string) *UpdateRandomIntegrationParams { + o.SetProjectID(projectID) + return o +} + +// SetProjectID adds the projectId to the update random integration params +func (o *UpdateRandomIntegrationParams) SetProjectID(projectID string) { + o.ProjectID = projectID +} + +// WriteToRequest writes these params to a swagger request +func (o *UpdateRandomIntegrationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.Body != nil { + if err := r.SetBodyParam(o.Body); err != nil { + return err + } + } + + // path param name + if err := r.SetPathParam("name", o.Name); err != nil { + return err + } + + // path param organization_id + if err := r.SetPathParam("organization_id", o.OrganizationID); err != nil { + return err + } + + // path param project_id + if err := r.SetPathParam("project_id", o.ProjectID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_random_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_random_integration_responses.go new file mode 100644 index 00000000..eac2f75d --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_random_integration_responses.go @@ -0,0 +1,187 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package secret_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "encoding/json" + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-secrets/stable/2023-11-28/models" +) + +// UpdateRandomIntegrationReader is a Reader for the UpdateRandomIntegration structure. +type UpdateRandomIntegrationReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UpdateRandomIntegrationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUpdateRandomIntegrationOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + result := NewUpdateRandomIntegrationDefault(response.Code()) + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + if response.Code()/100 == 2 { + return result, nil + } + return nil, result + } +} + +// NewUpdateRandomIntegrationOK creates a UpdateRandomIntegrationOK with default headers values +func NewUpdateRandomIntegrationOK() *UpdateRandomIntegrationOK { + return &UpdateRandomIntegrationOK{} +} + +/* +UpdateRandomIntegrationOK describes a response with status code 200, with default header values. + +A successful response. +*/ +type UpdateRandomIntegrationOK struct { + Payload *models.Secrets20231128UpdateRandomIntegrationResponse +} + +// IsSuccess returns true when this update random integration o k response has a 2xx status code +func (o *UpdateRandomIntegrationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update random integration o k response has a 3xx status code +func (o *UpdateRandomIntegrationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update random integration o k response has a 4xx status code +func (o *UpdateRandomIntegrationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update random integration o k response has a 5xx status code +func (o *UpdateRandomIntegrationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update random integration o k response a status code equal to that given +func (o *UpdateRandomIntegrationOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update random integration o k response +func (o *UpdateRandomIntegrationOK) Code() int { + return 200 +} + +func (o *UpdateRandomIntegrationOK) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config/{name}][%d] updateRandomIntegrationOK %s", 200, payload) +} + +func (o *UpdateRandomIntegrationOK) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config/{name}][%d] updateRandomIntegrationOK %s", 200, payload) +} + +func (o *UpdateRandomIntegrationOK) GetPayload() *models.Secrets20231128UpdateRandomIntegrationResponse { + return o.Payload +} + +func (o *UpdateRandomIntegrationOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Secrets20231128UpdateRandomIntegrationResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewUpdateRandomIntegrationDefault creates a UpdateRandomIntegrationDefault with default headers values +func NewUpdateRandomIntegrationDefault(code int) *UpdateRandomIntegrationDefault { + return &UpdateRandomIntegrationDefault{ + _statusCode: code, + } +} + +/* +UpdateRandomIntegrationDefault describes a response with status code -1, with default header values. + +An unexpected error response. +*/ +type UpdateRandomIntegrationDefault struct { + _statusCode int + + Payload *models.GooglerpcStatus +} + +// IsSuccess returns true when this update random integration default response has a 2xx status code +func (o *UpdateRandomIntegrationDefault) IsSuccess() bool { + return o._statusCode/100 == 2 +} + +// IsRedirect returns true when this update random integration default response has a 3xx status code +func (o *UpdateRandomIntegrationDefault) IsRedirect() bool { + return o._statusCode/100 == 3 +} + +// IsClientError returns true when this update random integration default response has a 4xx status code +func (o *UpdateRandomIntegrationDefault) IsClientError() bool { + return o._statusCode/100 == 4 +} + +// IsServerError returns true when this update random integration default response has a 5xx status code +func (o *UpdateRandomIntegrationDefault) IsServerError() bool { + return o._statusCode/100 == 5 +} + +// IsCode returns true when this update random integration default response a status code equal to that given +func (o *UpdateRandomIntegrationDefault) IsCode(code int) bool { + return o._statusCode == code +} + +// Code gets the status code for the update random integration default response +func (o *UpdateRandomIntegrationDefault) Code() int { + return o._statusCode +} + +func (o *UpdateRandomIntegrationDefault) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config/{name}][%d] UpdateRandomIntegration default %s", o._statusCode, payload) +} + +func (o *UpdateRandomIntegrationDefault) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/random/config/{name}][%d] UpdateRandomIntegration default %s", o._statusCode, payload) +} + +func (o *UpdateRandomIntegrationDefault) GetPayload() *models.GooglerpcStatus { + return o.Payload +} + +func (o *UpdateRandomIntegrationDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.GooglerpcStatus) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_random_rotating_secret_parameters.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_random_rotating_secret_parameters.go new file mode 100644 index 00000000..6d9bf976 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_random_rotating_secret_parameters.go @@ -0,0 +1,226 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package secret_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-secrets/stable/2023-11-28/models" +) + +// NewUpdateRandomRotatingSecretParams creates a new UpdateRandomRotatingSecretParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUpdateRandomRotatingSecretParams() *UpdateRandomRotatingSecretParams { + return &UpdateRandomRotatingSecretParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUpdateRandomRotatingSecretParamsWithTimeout creates a new UpdateRandomRotatingSecretParams object +// with the ability to set a timeout on a request. +func NewUpdateRandomRotatingSecretParamsWithTimeout(timeout time.Duration) *UpdateRandomRotatingSecretParams { + return &UpdateRandomRotatingSecretParams{ + timeout: timeout, + } +} + +// NewUpdateRandomRotatingSecretParamsWithContext creates a new UpdateRandomRotatingSecretParams object +// with the ability to set a context for a request. +func NewUpdateRandomRotatingSecretParamsWithContext(ctx context.Context) *UpdateRandomRotatingSecretParams { + return &UpdateRandomRotatingSecretParams{ + Context: ctx, + } +} + +// NewUpdateRandomRotatingSecretParamsWithHTTPClient creates a new UpdateRandomRotatingSecretParams object +// with the ability to set a custom HTTPClient for a request. +func NewUpdateRandomRotatingSecretParamsWithHTTPClient(client *http.Client) *UpdateRandomRotatingSecretParams { + return &UpdateRandomRotatingSecretParams{ + HTTPClient: client, + } +} + +/* +UpdateRandomRotatingSecretParams contains all the parameters to send to the API endpoint + + for the update random rotating secret operation. + + Typically these are written to a http.Request. +*/ +type UpdateRandomRotatingSecretParams struct { + + // AppName. + AppName string + + // Body. + Body *models.SecretServiceUpdateRandomRotatingSecretBody + + // Name. + Name string + + // OrganizationID. + OrganizationID string + + // ProjectID. + ProjectID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the update random rotating secret params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateRandomRotatingSecretParams) WithDefaults() *UpdateRandomRotatingSecretParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the update random rotating secret params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UpdateRandomRotatingSecretParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the update random rotating secret params +func (o *UpdateRandomRotatingSecretParams) WithTimeout(timeout time.Duration) *UpdateRandomRotatingSecretParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the update random rotating secret params +func (o *UpdateRandomRotatingSecretParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the update random rotating secret params +func (o *UpdateRandomRotatingSecretParams) WithContext(ctx context.Context) *UpdateRandomRotatingSecretParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the update random rotating secret params +func (o *UpdateRandomRotatingSecretParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the update random rotating secret params +func (o *UpdateRandomRotatingSecretParams) WithHTTPClient(client *http.Client) *UpdateRandomRotatingSecretParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the update random rotating secret params +func (o *UpdateRandomRotatingSecretParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAppName adds the appName to the update random rotating secret params +func (o *UpdateRandomRotatingSecretParams) WithAppName(appName string) *UpdateRandomRotatingSecretParams { + o.SetAppName(appName) + return o +} + +// SetAppName adds the appName to the update random rotating secret params +func (o *UpdateRandomRotatingSecretParams) SetAppName(appName string) { + o.AppName = appName +} + +// WithBody adds the body to the update random rotating secret params +func (o *UpdateRandomRotatingSecretParams) WithBody(body *models.SecretServiceUpdateRandomRotatingSecretBody) *UpdateRandomRotatingSecretParams { + o.SetBody(body) + return o +} + +// SetBody adds the body to the update random rotating secret params +func (o *UpdateRandomRotatingSecretParams) SetBody(body *models.SecretServiceUpdateRandomRotatingSecretBody) { + o.Body = body +} + +// WithName adds the name to the update random rotating secret params +func (o *UpdateRandomRotatingSecretParams) WithName(name string) *UpdateRandomRotatingSecretParams { + o.SetName(name) + return o +} + +// SetName adds the name to the update random rotating secret params +func (o *UpdateRandomRotatingSecretParams) SetName(name string) { + o.Name = name +} + +// WithOrganizationID adds the organizationID to the update random rotating secret params +func (o *UpdateRandomRotatingSecretParams) WithOrganizationID(organizationID string) *UpdateRandomRotatingSecretParams { + o.SetOrganizationID(organizationID) + return o +} + +// SetOrganizationID adds the organizationId to the update random rotating secret params +func (o *UpdateRandomRotatingSecretParams) SetOrganizationID(organizationID string) { + o.OrganizationID = organizationID +} + +// WithProjectID adds the projectID to the update random rotating secret params +func (o *UpdateRandomRotatingSecretParams) WithProjectID(projectID string) *UpdateRandomRotatingSecretParams { + o.SetProjectID(projectID) + return o +} + +// SetProjectID adds the projectId to the update random rotating secret params +func (o *UpdateRandomRotatingSecretParams) SetProjectID(projectID string) { + o.ProjectID = projectID +} + +// WriteToRequest writes these params to a swagger request +func (o *UpdateRandomRotatingSecretParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param app_name + if err := r.SetPathParam("app_name", o.AppName); err != nil { + return err + } + if o.Body != nil { + if err := r.SetBodyParam(o.Body); err != nil { + return err + } + } + + // path param name + if err := r.SetPathParam("name", o.Name); err != nil { + return err + } + + // path param organization_id + if err := r.SetPathParam("organization_id", o.OrganizationID); err != nil { + return err + } + + // path param project_id + if err := r.SetPathParam("project_id", o.ProjectID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_random_rotating_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_random_rotating_secret_responses.go new file mode 100644 index 00000000..34319b3c --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_random_rotating_secret_responses.go @@ -0,0 +1,187 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package secret_service + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "encoding/json" + "fmt" + "io" + + "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" + + "github.com/hashicorp/hcp-sdk-go/clients/cloud-vault-secrets/stable/2023-11-28/models" +) + +// UpdateRandomRotatingSecretReader is a Reader for the UpdateRandomRotatingSecret structure. +type UpdateRandomRotatingSecretReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UpdateRandomRotatingSecretReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUpdateRandomRotatingSecretOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + default: + result := NewUpdateRandomRotatingSecretDefault(response.Code()) + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + if response.Code()/100 == 2 { + return result, nil + } + return nil, result + } +} + +// NewUpdateRandomRotatingSecretOK creates a UpdateRandomRotatingSecretOK with default headers values +func NewUpdateRandomRotatingSecretOK() *UpdateRandomRotatingSecretOK { + return &UpdateRandomRotatingSecretOK{} +} + +/* +UpdateRandomRotatingSecretOK describes a response with status code 200, with default header values. + +A successful response. +*/ +type UpdateRandomRotatingSecretOK struct { + Payload *models.Secrets20231128UpdateRandomRotatingSecretResponse +} + +// IsSuccess returns true when this update random rotating secret o k response has a 2xx status code +func (o *UpdateRandomRotatingSecretOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this update random rotating secret o k response has a 3xx status code +func (o *UpdateRandomRotatingSecretOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this update random rotating secret o k response has a 4xx status code +func (o *UpdateRandomRotatingSecretOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this update random rotating secret o k response has a 5xx status code +func (o *UpdateRandomRotatingSecretOK) IsServerError() bool { + return false +} + +// IsCode returns true when this update random rotating secret o k response a status code equal to that given +func (o *UpdateRandomRotatingSecretOK) IsCode(code int) bool { + return code == 200 +} + +// Code gets the status code for the update random rotating secret o k response +func (o *UpdateRandomRotatingSecretOK) Code() int { + return 200 +} + +func (o *UpdateRandomRotatingSecretOK) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/random/secret/{name}][%d] updateRandomRotatingSecretOK %s", 200, payload) +} + +func (o *UpdateRandomRotatingSecretOK) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/random/secret/{name}][%d] updateRandomRotatingSecretOK %s", 200, payload) +} + +func (o *UpdateRandomRotatingSecretOK) GetPayload() *models.Secrets20231128UpdateRandomRotatingSecretResponse { + return o.Payload +} + +func (o *UpdateRandomRotatingSecretOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Secrets20231128UpdateRandomRotatingSecretResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewUpdateRandomRotatingSecretDefault creates a UpdateRandomRotatingSecretDefault with default headers values +func NewUpdateRandomRotatingSecretDefault(code int) *UpdateRandomRotatingSecretDefault { + return &UpdateRandomRotatingSecretDefault{ + _statusCode: code, + } +} + +/* +UpdateRandomRotatingSecretDefault describes a response with status code -1, with default header values. + +An unexpected error response. +*/ +type UpdateRandomRotatingSecretDefault struct { + _statusCode int + + Payload *models.GooglerpcStatus +} + +// IsSuccess returns true when this update random rotating secret default response has a 2xx status code +func (o *UpdateRandomRotatingSecretDefault) IsSuccess() bool { + return o._statusCode/100 == 2 +} + +// IsRedirect returns true when this update random rotating secret default response has a 3xx status code +func (o *UpdateRandomRotatingSecretDefault) IsRedirect() bool { + return o._statusCode/100 == 3 +} + +// IsClientError returns true when this update random rotating secret default response has a 4xx status code +func (o *UpdateRandomRotatingSecretDefault) IsClientError() bool { + return o._statusCode/100 == 4 +} + +// IsServerError returns true when this update random rotating secret default response has a 5xx status code +func (o *UpdateRandomRotatingSecretDefault) IsServerError() bool { + return o._statusCode/100 == 5 +} + +// IsCode returns true when this update random rotating secret default response a status code equal to that given +func (o *UpdateRandomRotatingSecretDefault) IsCode(code int) bool { + return o._statusCode == code +} + +// Code gets the status code for the update random rotating secret default response +func (o *UpdateRandomRotatingSecretDefault) Code() int { + return o._statusCode +} + +func (o *UpdateRandomRotatingSecretDefault) Error() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/random/secret/{name}][%d] UpdateRandomRotatingSecret default %s", o._statusCode, payload) +} + +func (o *UpdateRandomRotatingSecretDefault) String() string { + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/random/secret/{name}][%d] UpdateRandomRotatingSecret default %s", o._statusCode, payload) +} + +func (o *UpdateRandomRotatingSecretDefault) GetPayload() *models.GooglerpcStatus { + return o.Payload +} + +func (o *UpdateRandomRotatingSecretDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.GooglerpcStatus) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_twilio_integration_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_twilio_integration_responses.go index c9814ab0..c6e56fac 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_twilio_integration_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_twilio_integration_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *UpdateTwilioIntegrationOK) Code() int { } func (o *UpdateTwilioIntegrationOK) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config/{name}][%d] updateTwilioIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config/{name}][%d] updateTwilioIntegrationOK %s", 200, payload) } func (o *UpdateTwilioIntegrationOK) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config/{name}][%d] updateTwilioIntegrationOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config/{name}][%d] updateTwilioIntegrationOK %s", 200, payload) } func (o *UpdateTwilioIntegrationOK) GetPayload() *models.Secrets20231128UpdateTwilioIntegrationResponse { @@ -158,11 +161,13 @@ func (o *UpdateTwilioIntegrationDefault) Code() int { } func (o *UpdateTwilioIntegrationDefault) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config/{name}][%d] UpdateTwilioIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config/{name}][%d] UpdateTwilioIntegration default %s", o._statusCode, payload) } func (o *UpdateTwilioIntegrationDefault) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config/{name}][%d] UpdateTwilioIntegration default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/integrations/twilio/config/{name}][%d] UpdateTwilioIntegration default %s", o._statusCode, payload) } func (o *UpdateTwilioIntegrationDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_twilio_rotating_secret_responses.go b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_twilio_rotating_secret_responses.go index ba4dc025..33e17c0a 100644 --- a/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_twilio_rotating_secret_responses.go +++ b/clients/cloud-vault-secrets/stable/2023-11-28/client/secret_service/update_twilio_rotating_secret_responses.go @@ -6,6 +6,7 @@ package secret_service // Editing this file might prove futile when you re-run the swagger generate command import ( + "encoding/json" "fmt" "io" @@ -86,11 +87,13 @@ func (o *UpdateTwilioRotatingSecretOK) Code() int { } func (o *UpdateTwilioRotatingSecretOK) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/twilio/secret/{name}][%d] updateTwilioRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/twilio/secret/{name}][%d] updateTwilioRotatingSecretOK %s", 200, payload) } func (o *UpdateTwilioRotatingSecretOK) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/twilio/secret/{name}][%d] updateTwilioRotatingSecretOK %+v", 200, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/twilio/secret/{name}][%d] updateTwilioRotatingSecretOK %s", 200, payload) } func (o *UpdateTwilioRotatingSecretOK) GetPayload() *models.Secrets20231128UpdateTwilioRotatingSecretResponse { @@ -158,11 +161,13 @@ func (o *UpdateTwilioRotatingSecretDefault) Code() int { } func (o *UpdateTwilioRotatingSecretDefault) Error() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/twilio/secret/{name}][%d] UpdateTwilioRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/twilio/secret/{name}][%d] UpdateTwilioRotatingSecret default %s", o._statusCode, payload) } func (o *UpdateTwilioRotatingSecretDefault) String() string { - return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/twilio/secret/{name}][%d] UpdateTwilioRotatingSecret default %+v", o._statusCode, o.Payload) + payload, _ := json.Marshal(o.Payload) + return fmt.Sprintf("[PUT /secrets/2023-11-28/organizations/{organization_id}/projects/{project_id}/apps/{app_name}/rotating/twilio/secret/{name}][%d] UpdateTwilioRotatingSecret default %s", o._statusCode, payload) } func (o *UpdateTwilioRotatingSecretDefault) GetPayload() *models.GooglerpcStatus { diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/models/protobuf_null_value.go b/clients/cloud-vault-secrets/stable/2023-11-28/models/protobuf_null_value.go new file mode 100644 index 00000000..b3099621 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/models/protobuf_null_value.go @@ -0,0 +1,80 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "encoding/json" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/validate" +) + +// ProtobufNullValue `NullValue` is a singleton enumeration to represent the null value for the +// `Value` type union. +// +// The JSON representation for `NullValue` is JSON `null`. +// +// - NULL_VALUE: Null value. +// +// swagger:model protobufNullValue +type ProtobufNullValue string + +func NewProtobufNullValue(value ProtobufNullValue) *ProtobufNullValue { + return &value +} + +// Pointer returns a pointer to a freshly-allocated ProtobufNullValue. +func (m ProtobufNullValue) Pointer() *ProtobufNullValue { + return &m +} + +const ( + + // ProtobufNullValueNULLVALUE captures enum value "NULL_VALUE" + ProtobufNullValueNULLVALUE ProtobufNullValue = "NULL_VALUE" +) + +// for schema +var protobufNullValueEnum []interface{} + +func init() { + var res []ProtobufNullValue + if err := json.Unmarshal([]byte(`["NULL_VALUE"]`), &res); err != nil { + panic(err) + } + for _, v := range res { + protobufNullValueEnum = append(protobufNullValueEnum, v) + } +} + +func (m ProtobufNullValue) validateProtobufNullValueEnum(path, location string, value ProtobufNullValue) error { + if err := validate.EnumCase(path, location, value, protobufNullValueEnum, true); err != nil { + return err + } + return nil +} + +// Validate validates this protobuf null value +func (m ProtobufNullValue) Validate(formats strfmt.Registry) error { + var res []error + + // value enum + if err := m.validateProtobufNullValueEnum("", "body", m); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +// ContextValidate validates this protobuf null value based on context it is used +func (m ProtobufNullValue) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/models/secret_service_create_app_rotating_secret_body.go b/clients/cloud-vault-secrets/stable/2023-11-28/models/secret_service_create_app_rotating_secret_body.go new file mode 100644 index 00000000..0e98bdab --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/models/secret_service_create_app_rotating_secret_body.go @@ -0,0 +1,59 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// SecretServiceCreateAppRotatingSecretBody secret service create app rotating secret body +// +// swagger:model SecretServiceCreateAppRotatingSecretBody +type SecretServiceCreateAppRotatingSecretBody struct { + + // integration name + IntegrationName string `json:"integration_name,omitempty"` + + // name + Name string `json:"name,omitempty"` + + // rotation policy name + RotationPolicyName string `json:"rotation_policy_name,omitempty"` + + // secret details + SecretDetails interface{} `json:"secret_details,omitempty"` +} + +// Validate validates this secret service create app rotating secret body +func (m *SecretServiceCreateAppRotatingSecretBody) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this secret service create app rotating secret body based on context it is used +func (m *SecretServiceCreateAppRotatingSecretBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *SecretServiceCreateAppRotatingSecretBody) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *SecretServiceCreateAppRotatingSecretBody) UnmarshalBinary(b []byte) error { + var res SecretServiceCreateAppRotatingSecretBody + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/models/secret_service_create_random_integration_body.go b/clients/cloud-vault-secrets/stable/2023-11-28/models/secret_service_create_random_integration_body.go new file mode 100644 index 00000000..2c009917 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/models/secret_service_create_random_integration_body.go @@ -0,0 +1,124 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// SecretServiceCreateRandomIntegrationBody secret service create random integration body +// +// swagger:model SecretServiceCreateRandomIntegrationBody +type SecretServiceCreateRandomIntegrationBody struct { + + // capabilities + Capabilities []*Secrets20231128Capability `json:"capabilities"` + + // name + Name string `json:"name,omitempty"` +} + +// Validate validates this secret service create random integration body +func (m *SecretServiceCreateRandomIntegrationBody) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateCapabilities(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *SecretServiceCreateRandomIntegrationBody) validateCapabilities(formats strfmt.Registry) error { + if swag.IsZero(m.Capabilities) { // not required + return nil + } + + for i := 0; i < len(m.Capabilities); i++ { + if swag.IsZero(m.Capabilities[i]) { // not required + continue + } + + if m.Capabilities[i] != nil { + if err := m.Capabilities[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("capabilities" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capabilities" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this secret service create random integration body based on the context it is used +func (m *SecretServiceCreateRandomIntegrationBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateCapabilities(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *SecretServiceCreateRandomIntegrationBody) contextValidateCapabilities(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Capabilities); i++ { + + if m.Capabilities[i] != nil { + + if swag.IsZero(m.Capabilities[i]) { // not required + return nil + } + + if err := m.Capabilities[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("capabilities" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capabilities" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *SecretServiceCreateRandomIntegrationBody) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *SecretServiceCreateRandomIntegrationBody) UnmarshalBinary(b []byte) error { + var res SecretServiceCreateRandomIntegrationBody + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/models/secret_service_create_random_rotating_secret_body.go b/clients/cloud-vault-secrets/stable/2023-11-28/models/secret_service_create_random_rotating_secret_body.go new file mode 100644 index 00000000..6c424333 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/models/secret_service_create_random_rotating_secret_body.go @@ -0,0 +1,118 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// SecretServiceCreateRandomRotatingSecretBody secret service create random rotating secret body +// +// swagger:model SecretServiceCreateRandomRotatingSecretBody +type SecretServiceCreateRandomRotatingSecretBody struct { + + // integration name + IntegrationName string `json:"integration_name,omitempty"` + + // name + Name string `json:"name,omitempty"` + + // params + Params *Secrets20231128RandomParams `json:"params,omitempty"` + + // rotation policy name + RotationPolicyName string `json:"rotation_policy_name,omitempty"` +} + +// Validate validates this secret service create random rotating secret body +func (m *SecretServiceCreateRandomRotatingSecretBody) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateParams(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *SecretServiceCreateRandomRotatingSecretBody) validateParams(formats strfmt.Registry) error { + if swag.IsZero(m.Params) { // not required + return nil + } + + if m.Params != nil { + if err := m.Params.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("params") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("params") + } + return err + } + } + + return nil +} + +// ContextValidate validate this secret service create random rotating secret body based on the context it is used +func (m *SecretServiceCreateRandomRotatingSecretBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateParams(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *SecretServiceCreateRandomRotatingSecretBody) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { + + if m.Params != nil { + + if swag.IsZero(m.Params) { // not required + return nil + } + + if err := m.Params.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("params") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("params") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *SecretServiceCreateRandomRotatingSecretBody) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *SecretServiceCreateRandomRotatingSecretBody) UnmarshalBinary(b []byte) error { + var res SecretServiceCreateRandomRotatingSecretBody + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/models/secret_service_update_app_rotating_secret_body.go b/clients/cloud-vault-secrets/stable/2023-11-28/models/secret_service_update_app_rotating_secret_body.go new file mode 100644 index 00000000..4e695dc5 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/models/secret_service_update_app_rotating_secret_body.go @@ -0,0 +1,56 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// SecretServiceUpdateAppRotatingSecretBody secret service update app rotating secret body +// +// swagger:model SecretServiceUpdateAppRotatingSecretBody +type SecretServiceUpdateAppRotatingSecretBody struct { + + // integration name + IntegrationName string `json:"integration_name,omitempty"` + + // rotation policy name + RotationPolicyName string `json:"rotation_policy_name,omitempty"` + + // secret details + SecretDetails interface{} `json:"secret_details,omitempty"` +} + +// Validate validates this secret service update app rotating secret body +func (m *SecretServiceUpdateAppRotatingSecretBody) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this secret service update app rotating secret body based on context it is used +func (m *SecretServiceUpdateAppRotatingSecretBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *SecretServiceUpdateAppRotatingSecretBody) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *SecretServiceUpdateAppRotatingSecretBody) UnmarshalBinary(b []byte) error { + var res SecretServiceUpdateAppRotatingSecretBody + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/models/secret_service_update_random_integration_body.go b/clients/cloud-vault-secrets/stable/2023-11-28/models/secret_service_update_random_integration_body.go new file mode 100644 index 00000000..f2378e29 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/models/secret_service_update_random_integration_body.go @@ -0,0 +1,124 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// SecretServiceUpdateRandomIntegrationBody secret service update random integration body +// +// swagger:model SecretServiceUpdateRandomIntegrationBody +type SecretServiceUpdateRandomIntegrationBody struct { + + // capabilities + Capabilities []*Secrets20231128Capability `json:"capabilities"` + + // rotate on update + RotateOnUpdate bool `json:"rotate_on_update,omitempty"` +} + +// Validate validates this secret service update random integration body +func (m *SecretServiceUpdateRandomIntegrationBody) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateCapabilities(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *SecretServiceUpdateRandomIntegrationBody) validateCapabilities(formats strfmt.Registry) error { + if swag.IsZero(m.Capabilities) { // not required + return nil + } + + for i := 0; i < len(m.Capabilities); i++ { + if swag.IsZero(m.Capabilities[i]) { // not required + continue + } + + if m.Capabilities[i] != nil { + if err := m.Capabilities[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("capabilities" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capabilities" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this secret service update random integration body based on the context it is used +func (m *SecretServiceUpdateRandomIntegrationBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateCapabilities(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *SecretServiceUpdateRandomIntegrationBody) contextValidateCapabilities(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Capabilities); i++ { + + if m.Capabilities[i] != nil { + + if swag.IsZero(m.Capabilities[i]) { // not required + return nil + } + + if err := m.Capabilities[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("capabilities" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capabilities" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *SecretServiceUpdateRandomIntegrationBody) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *SecretServiceUpdateRandomIntegrationBody) UnmarshalBinary(b []byte) error { + var res SecretServiceUpdateRandomIntegrationBody + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/models/secret_service_update_random_rotating_secret_body.go b/clients/cloud-vault-secrets/stable/2023-11-28/models/secret_service_update_random_rotating_secret_body.go new file mode 100644 index 00000000..20d12ff4 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/models/secret_service_update_random_rotating_secret_body.go @@ -0,0 +1,115 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// SecretServiceUpdateRandomRotatingSecretBody secret service update random rotating secret body +// +// swagger:model SecretServiceUpdateRandomRotatingSecretBody +type SecretServiceUpdateRandomRotatingSecretBody struct { + + // params + Params *Secrets20231128RandomParams `json:"params,omitempty"` + + // rotate on update + RotateOnUpdate bool `json:"rotate_on_update,omitempty"` + + // rotation policy name + RotationPolicyName string `json:"rotation_policy_name,omitempty"` +} + +// Validate validates this secret service update random rotating secret body +func (m *SecretServiceUpdateRandomRotatingSecretBody) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateParams(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *SecretServiceUpdateRandomRotatingSecretBody) validateParams(formats strfmt.Registry) error { + if swag.IsZero(m.Params) { // not required + return nil + } + + if m.Params != nil { + if err := m.Params.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("params") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("params") + } + return err + } + } + + return nil +} + +// ContextValidate validate this secret service update random rotating secret body based on the context it is used +func (m *SecretServiceUpdateRandomRotatingSecretBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateParams(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *SecretServiceUpdateRandomRotatingSecretBody) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { + + if m.Params != nil { + + if swag.IsZero(m.Params) { // not required + return nil + } + + if err := m.Params.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("params") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("params") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *SecretServiceUpdateRandomRotatingSecretBody) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *SecretServiceUpdateRandomRotatingSecretBody) UnmarshalBinary(b []byte) error { + var res SecretServiceUpdateRandomRotatingSecretBody + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_create_app_rotating_secret_response.go b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_create_app_rotating_secret_response.go new file mode 100644 index 00000000..90f68a3a --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_create_app_rotating_secret_response.go @@ -0,0 +1,109 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// Secrets20231128CreateAppRotatingSecretResponse secrets 20231128 create app rotating secret response +// +// swagger:model secrets_20231128CreateAppRotatingSecretResponse +type Secrets20231128CreateAppRotatingSecretResponse struct { + + // secret + Secret *Secrets20231128RotatingSecret `json:"secret,omitempty"` +} + +// Validate validates this secrets 20231128 create app rotating secret response +func (m *Secrets20231128CreateAppRotatingSecretResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateSecret(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128CreateAppRotatingSecretResponse) validateSecret(formats strfmt.Registry) error { + if swag.IsZero(m.Secret) { // not required + return nil + } + + if m.Secret != nil { + if err := m.Secret.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("secret") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("secret") + } + return err + } + } + + return nil +} + +// ContextValidate validate this secrets 20231128 create app rotating secret response based on the context it is used +func (m *Secrets20231128CreateAppRotatingSecretResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateSecret(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128CreateAppRotatingSecretResponse) contextValidateSecret(ctx context.Context, formats strfmt.Registry) error { + + if m.Secret != nil { + + if swag.IsZero(m.Secret) { // not required + return nil + } + + if err := m.Secret.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("secret") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("secret") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *Secrets20231128CreateAppRotatingSecretResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Secrets20231128CreateAppRotatingSecretResponse) UnmarshalBinary(b []byte) error { + var res Secrets20231128CreateAppRotatingSecretResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_create_random_integration_response.go b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_create_random_integration_response.go new file mode 100644 index 00000000..b9b2e09a --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_create_random_integration_response.go @@ -0,0 +1,109 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// Secrets20231128CreateRandomIntegrationResponse secrets 20231128 create random integration response +// +// swagger:model secrets_20231128CreateRandomIntegrationResponse +type Secrets20231128CreateRandomIntegrationResponse struct { + + // integration + Integration *Secrets20231128RandomIntegration `json:"integration,omitempty"` +} + +// Validate validates this secrets 20231128 create random integration response +func (m *Secrets20231128CreateRandomIntegrationResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateIntegration(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128CreateRandomIntegrationResponse) validateIntegration(formats strfmt.Registry) error { + if swag.IsZero(m.Integration) { // not required + return nil + } + + if m.Integration != nil { + if err := m.Integration.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("integration") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("integration") + } + return err + } + } + + return nil +} + +// ContextValidate validate this secrets 20231128 create random integration response based on the context it is used +func (m *Secrets20231128CreateRandomIntegrationResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateIntegration(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128CreateRandomIntegrationResponse) contextValidateIntegration(ctx context.Context, formats strfmt.Registry) error { + + if m.Integration != nil { + + if swag.IsZero(m.Integration) { // not required + return nil + } + + if err := m.Integration.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("integration") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("integration") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *Secrets20231128CreateRandomIntegrationResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Secrets20231128CreateRandomIntegrationResponse) UnmarshalBinary(b []byte) error { + var res Secrets20231128CreateRandomIntegrationResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_create_random_rotating_secret_response.go b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_create_random_rotating_secret_response.go new file mode 100644 index 00000000..be9f51ec --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_create_random_rotating_secret_response.go @@ -0,0 +1,109 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// Secrets20231128CreateRandomRotatingSecretResponse secrets 20231128 create random rotating secret response +// +// swagger:model secrets_20231128CreateRandomRotatingSecretResponse +type Secrets20231128CreateRandomRotatingSecretResponse struct { + + // config + Config *Secrets20231128RandomRotatingSecretConfig `json:"config,omitempty"` +} + +// Validate validates this secrets 20231128 create random rotating secret response +func (m *Secrets20231128CreateRandomRotatingSecretResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateConfig(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128CreateRandomRotatingSecretResponse) validateConfig(formats strfmt.Registry) error { + if swag.IsZero(m.Config) { // not required + return nil + } + + if m.Config != nil { + if err := m.Config.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("config") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("config") + } + return err + } + } + + return nil +} + +// ContextValidate validate this secrets 20231128 create random rotating secret response based on the context it is used +func (m *Secrets20231128CreateRandomRotatingSecretResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateConfig(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128CreateRandomRotatingSecretResponse) contextValidateConfig(ctx context.Context, formats strfmt.Registry) error { + + if m.Config != nil { + + if swag.IsZero(m.Config) { // not required + return nil + } + + if err := m.Config.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("config") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("config") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *Secrets20231128CreateRandomRotatingSecretResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Secrets20231128CreateRandomRotatingSecretResponse) UnmarshalBinary(b []byte) error { + var res Secrets20231128CreateRandomRotatingSecretResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_delete_random_integration_response.go b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_delete_random_integration_response.go new file mode 100644 index 00000000..2e8c26c0 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_delete_random_integration_response.go @@ -0,0 +1,11 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +// Secrets20231128DeleteRandomIntegrationResponse secrets 20231128 delete random integration response +// +// swagger:model secrets_20231128DeleteRandomIntegrationResponse +type Secrets20231128DeleteRandomIntegrationResponse interface{} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_get_app_rotating_secret_response.go b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_get_app_rotating_secret_response.go new file mode 100644 index 00000000..7b23e0c9 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_get_app_rotating_secret_response.go @@ -0,0 +1,109 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// Secrets20231128GetAppRotatingSecretResponse secrets 20231128 get app rotating secret response +// +// swagger:model secrets_20231128GetAppRotatingSecretResponse +type Secrets20231128GetAppRotatingSecretResponse struct { + + // secret + Secret *Secrets20231128RotatingSecret `json:"secret,omitempty"` +} + +// Validate validates this secrets 20231128 get app rotating secret response +func (m *Secrets20231128GetAppRotatingSecretResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateSecret(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128GetAppRotatingSecretResponse) validateSecret(formats strfmt.Registry) error { + if swag.IsZero(m.Secret) { // not required + return nil + } + + if m.Secret != nil { + if err := m.Secret.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("secret") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("secret") + } + return err + } + } + + return nil +} + +// ContextValidate validate this secrets 20231128 get app rotating secret response based on the context it is used +func (m *Secrets20231128GetAppRotatingSecretResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateSecret(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128GetAppRotatingSecretResponse) contextValidateSecret(ctx context.Context, formats strfmt.Registry) error { + + if m.Secret != nil { + + if swag.IsZero(m.Secret) { // not required + return nil + } + + if err := m.Secret.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("secret") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("secret") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *Secrets20231128GetAppRotatingSecretResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Secrets20231128GetAppRotatingSecretResponse) UnmarshalBinary(b []byte) error { + var res Secrets20231128GetAppRotatingSecretResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_get_random_integration_response.go b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_get_random_integration_response.go new file mode 100644 index 00000000..2ec44f92 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_get_random_integration_response.go @@ -0,0 +1,109 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// Secrets20231128GetRandomIntegrationResponse secrets 20231128 get random integration response +// +// swagger:model secrets_20231128GetRandomIntegrationResponse +type Secrets20231128GetRandomIntegrationResponse struct { + + // integration + Integration *Secrets20231128RandomIntegration `json:"integration,omitempty"` +} + +// Validate validates this secrets 20231128 get random integration response +func (m *Secrets20231128GetRandomIntegrationResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateIntegration(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128GetRandomIntegrationResponse) validateIntegration(formats strfmt.Registry) error { + if swag.IsZero(m.Integration) { // not required + return nil + } + + if m.Integration != nil { + if err := m.Integration.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("integration") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("integration") + } + return err + } + } + + return nil +} + +// ContextValidate validate this secrets 20231128 get random integration response based on the context it is used +func (m *Secrets20231128GetRandomIntegrationResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateIntegration(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128GetRandomIntegrationResponse) contextValidateIntegration(ctx context.Context, formats strfmt.Registry) error { + + if m.Integration != nil { + + if swag.IsZero(m.Integration) { // not required + return nil + } + + if err := m.Integration.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("integration") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("integration") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *Secrets20231128GetRandomIntegrationResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Secrets20231128GetRandomIntegrationResponse) UnmarshalBinary(b []byte) error { + var res Secrets20231128GetRandomIntegrationResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_get_random_rotating_secret_config_response.go b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_get_random_rotating_secret_config_response.go new file mode 100644 index 00000000..87b82d92 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_get_random_rotating_secret_config_response.go @@ -0,0 +1,109 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// Secrets20231128GetRandomRotatingSecretConfigResponse secrets 20231128 get random rotating secret config response +// +// swagger:model secrets_20231128GetRandomRotatingSecretConfigResponse +type Secrets20231128GetRandomRotatingSecretConfigResponse struct { + + // config + Config *Secrets20231128RandomRotatingSecretConfig `json:"config,omitempty"` +} + +// Validate validates this secrets 20231128 get random rotating secret config response +func (m *Secrets20231128GetRandomRotatingSecretConfigResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateConfig(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128GetRandomRotatingSecretConfigResponse) validateConfig(formats strfmt.Registry) error { + if swag.IsZero(m.Config) { // not required + return nil + } + + if m.Config != nil { + if err := m.Config.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("config") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("config") + } + return err + } + } + + return nil +} + +// ContextValidate validate this secrets 20231128 get random rotating secret config response based on the context it is used +func (m *Secrets20231128GetRandomRotatingSecretConfigResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateConfig(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128GetRandomRotatingSecretConfigResponse) contextValidateConfig(ctx context.Context, formats strfmt.Registry) error { + + if m.Config != nil { + + if swag.IsZero(m.Config) { // not required + return nil + } + + if err := m.Config.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("config") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("config") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *Secrets20231128GetRandomRotatingSecretConfigResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Secrets20231128GetRandomRotatingSecretConfigResponse) UnmarshalBinary(b []byte) error { + var res Secrets20231128GetRandomRotatingSecretConfigResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_list_random_integrations_response.go b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_list_random_integrations_response.go new file mode 100644 index 00000000..25b266dd --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_list_random_integrations_response.go @@ -0,0 +1,172 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// Secrets20231128ListRandomIntegrationsResponse secrets 20231128 list random integrations response +// +// swagger:model secrets_20231128ListRandomIntegrationsResponse +type Secrets20231128ListRandomIntegrationsResponse struct { + + // integrations + Integrations []*Secrets20231128RandomIntegration `json:"integrations"` + + // pagination + Pagination *CommonPaginationResponse `json:"pagination,omitempty"` +} + +// Validate validates this secrets 20231128 list random integrations response +func (m *Secrets20231128ListRandomIntegrationsResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateIntegrations(formats); err != nil { + res = append(res, err) + } + + if err := m.validatePagination(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128ListRandomIntegrationsResponse) validateIntegrations(formats strfmt.Registry) error { + if swag.IsZero(m.Integrations) { // not required + return nil + } + + for i := 0; i < len(m.Integrations); i++ { + if swag.IsZero(m.Integrations[i]) { // not required + continue + } + + if m.Integrations[i] != nil { + if err := m.Integrations[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("integrations" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("integrations" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *Secrets20231128ListRandomIntegrationsResponse) validatePagination(formats strfmt.Registry) error { + if swag.IsZero(m.Pagination) { // not required + return nil + } + + if m.Pagination != nil { + if err := m.Pagination.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("pagination") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pagination") + } + return err + } + } + + return nil +} + +// ContextValidate validate this secrets 20231128 list random integrations response based on the context it is used +func (m *Secrets20231128ListRandomIntegrationsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateIntegrations(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidatePagination(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128ListRandomIntegrationsResponse) contextValidateIntegrations(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Integrations); i++ { + + if m.Integrations[i] != nil { + + if swag.IsZero(m.Integrations[i]) { // not required + return nil + } + + if err := m.Integrations[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("integrations" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("integrations" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *Secrets20231128ListRandomIntegrationsResponse) contextValidatePagination(ctx context.Context, formats strfmt.Registry) error { + + if m.Pagination != nil { + + if swag.IsZero(m.Pagination) { // not required + return nil + } + + if err := m.Pagination.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("pagination") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pagination") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *Secrets20231128ListRandomIntegrationsResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Secrets20231128ListRandomIntegrationsResponse) UnmarshalBinary(b []byte) error { + var res Secrets20231128ListRandomIntegrationsResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_random_integration.go b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_random_integration.go new file mode 100644 index 00000000..581d8485 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_random_integration.go @@ -0,0 +1,229 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// Secrets20231128RandomIntegration secrets 20231128 random integration +// +// swagger:model secrets_20231128RandomIntegration +type Secrets20231128RandomIntegration struct { + + // capabilities + Capabilities []*Secrets20231128Capability `json:"capabilities"` + + // created at + // Format: date-time + CreatedAt strfmt.DateTime `json:"created_at,omitempty"` + + // created by id + CreatedByID string `json:"created_by_id,omitempty"` + + // name + Name string `json:"name,omitempty"` + + // resource id + ResourceID string `json:"resource_id,omitempty"` + + // resource name + ResourceName string `json:"resource_name,omitempty"` + + // updated at + // Format: date-time + UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"` + + // updated by id + UpdatedByID string `json:"updated_by_id,omitempty"` + + // used by + UsedBy map[string]Secrets20231128IntegrationUsage `json:"used_by,omitempty"` +} + +// Validate validates this secrets 20231128 random integration +func (m *Secrets20231128RandomIntegration) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateCapabilities(formats); err != nil { + res = append(res, err) + } + + if err := m.validateCreatedAt(formats); err != nil { + res = append(res, err) + } + + if err := m.validateUpdatedAt(formats); err != nil { + res = append(res, err) + } + + if err := m.validateUsedBy(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128RandomIntegration) validateCapabilities(formats strfmt.Registry) error { + if swag.IsZero(m.Capabilities) { // not required + return nil + } + + for i := 0; i < len(m.Capabilities); i++ { + if swag.IsZero(m.Capabilities[i]) { // not required + continue + } + + if m.Capabilities[i] != nil { + if err := m.Capabilities[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("capabilities" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capabilities" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *Secrets20231128RandomIntegration) validateCreatedAt(formats strfmt.Registry) error { + if swag.IsZero(m.CreatedAt) { // not required + return nil + } + + if err := validate.FormatOf("created_at", "body", "date-time", m.CreatedAt.String(), formats); err != nil { + return err + } + + return nil +} + +func (m *Secrets20231128RandomIntegration) validateUpdatedAt(formats strfmt.Registry) error { + if swag.IsZero(m.UpdatedAt) { // not required + return nil + } + + if err := validate.FormatOf("updated_at", "body", "date-time", m.UpdatedAt.String(), formats); err != nil { + return err + } + + return nil +} + +func (m *Secrets20231128RandomIntegration) validateUsedBy(formats strfmt.Registry) error { + if swag.IsZero(m.UsedBy) { // not required + return nil + } + + for k := range m.UsedBy { + + if err := validate.Required("used_by"+"."+k, "body", m.UsedBy[k]); err != nil { + return err + } + if val, ok := m.UsedBy[k]; ok { + if err := val.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("used_by" + "." + k) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("used_by" + "." + k) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this secrets 20231128 random integration based on the context it is used +func (m *Secrets20231128RandomIntegration) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateCapabilities(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateUsedBy(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128RandomIntegration) contextValidateCapabilities(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Capabilities); i++ { + + if m.Capabilities[i] != nil { + + if swag.IsZero(m.Capabilities[i]) { // not required + return nil + } + + if err := m.Capabilities[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("capabilities" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("capabilities" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *Secrets20231128RandomIntegration) contextValidateUsedBy(ctx context.Context, formats strfmt.Registry) error { + + for k := range m.UsedBy { + + if val, ok := m.UsedBy[k]; ok { + if err := val.ContextValidate(ctx, formats); err != nil { + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *Secrets20231128RandomIntegration) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Secrets20231128RandomIntegration) UnmarshalBinary(b []byte) error { + var res Secrets20231128RandomIntegration + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_random_params.go b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_random_params.go new file mode 100644 index 00000000..3f047833 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_random_params.go @@ -0,0 +1,50 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// Secrets20231128RandomParams secrets 20231128 random params +// +// swagger:model secrets_20231128RandomParams +type Secrets20231128RandomParams struct { + + // username template + UsernameTemplate string `json:"username_template,omitempty"` +} + +// Validate validates this secrets 20231128 random params +func (m *Secrets20231128RandomParams) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this secrets 20231128 random params based on context it is used +func (m *Secrets20231128RandomParams) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *Secrets20231128RandomParams) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Secrets20231128RandomParams) UnmarshalBinary(b []byte) error { + var res Secrets20231128RandomParams + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_random_rotating_secret_config.go b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_random_rotating_secret_config.go new file mode 100644 index 00000000..27bec52b --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_random_rotating_secret_config.go @@ -0,0 +1,168 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// Secrets20231128RandomRotatingSecretConfig secrets 20231128 random rotating secret config +// +// swagger:model secrets_20231128RandomRotatingSecretConfig +type Secrets20231128RandomRotatingSecretConfig struct { + + // app name + AppName string `json:"app_name,omitempty"` + + // created at + // Format: date-time + CreatedAt strfmt.DateTime `json:"created_at,omitempty"` + + // created by id + CreatedByID string `json:"created_by_id,omitempty"` + + // integration name + IntegrationName string `json:"integration_name,omitempty"` + + // name + Name string `json:"name,omitempty"` + + // params + Params *Secrets20231128RandomParams `json:"params,omitempty"` + + // rotation policy name + RotationPolicyName string `json:"rotation_policy_name,omitempty"` + + // updated at + // Format: date-time + UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"` + + // updated by id + UpdatedByID string `json:"updated_by_id,omitempty"` +} + +// Validate validates this secrets 20231128 random rotating secret config +func (m *Secrets20231128RandomRotatingSecretConfig) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateCreatedAt(formats); err != nil { + res = append(res, err) + } + + if err := m.validateParams(formats); err != nil { + res = append(res, err) + } + + if err := m.validateUpdatedAt(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128RandomRotatingSecretConfig) validateCreatedAt(formats strfmt.Registry) error { + if swag.IsZero(m.CreatedAt) { // not required + return nil + } + + if err := validate.FormatOf("created_at", "body", "date-time", m.CreatedAt.String(), formats); err != nil { + return err + } + + return nil +} + +func (m *Secrets20231128RandomRotatingSecretConfig) validateParams(formats strfmt.Registry) error { + if swag.IsZero(m.Params) { // not required + return nil + } + + if m.Params != nil { + if err := m.Params.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("params") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("params") + } + return err + } + } + + return nil +} + +func (m *Secrets20231128RandomRotatingSecretConfig) validateUpdatedAt(formats strfmt.Registry) error { + if swag.IsZero(m.UpdatedAt) { // not required + return nil + } + + if err := validate.FormatOf("updated_at", "body", "date-time", m.UpdatedAt.String(), formats); err != nil { + return err + } + + return nil +} + +// ContextValidate validate this secrets 20231128 random rotating secret config based on the context it is used +func (m *Secrets20231128RandomRotatingSecretConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateParams(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128RandomRotatingSecretConfig) contextValidateParams(ctx context.Context, formats strfmt.Registry) error { + + if m.Params != nil { + + if swag.IsZero(m.Params) { // not required + return nil + } + + if err := m.Params.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("params") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("params") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *Secrets20231128RandomRotatingSecretConfig) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Secrets20231128RandomRotatingSecretConfig) UnmarshalBinary(b []byte) error { + var res Secrets20231128RandomRotatingSecretConfig + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_rotating_secret.go b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_rotating_secret.go new file mode 100644 index 00000000..79531816 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_rotating_secret.go @@ -0,0 +1,115 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// Secrets20231128RotatingSecret secrets 20231128 rotating secret +// +// swagger:model secrets_20231128RotatingSecret +type Secrets20231128RotatingSecret struct { + + // app name + AppName string `json:"app_name,omitempty"` + + // created at + // Format: date-time + CreatedAt strfmt.DateTime `json:"created_at,omitempty"` + + // created by id + CreatedByID string `json:"created_by_id,omitempty"` + + // integration name + IntegrationName string `json:"integration_name,omitempty"` + + // name + Name string `json:"name,omitempty"` + + // rotation policy name + RotationPolicyName string `json:"rotation_policy_name,omitempty"` + + // secret details + SecretDetails interface{} `json:"secret_details,omitempty"` + + // updated at + // Format: date-time + UpdatedAt strfmt.DateTime `json:"updated_at,omitempty"` + + // updated by id + UpdatedByID string `json:"updated_by_id,omitempty"` +} + +// Validate validates this secrets 20231128 rotating secret +func (m *Secrets20231128RotatingSecret) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateCreatedAt(formats); err != nil { + res = append(res, err) + } + + if err := m.validateUpdatedAt(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128RotatingSecret) validateCreatedAt(formats strfmt.Registry) error { + if swag.IsZero(m.CreatedAt) { // not required + return nil + } + + if err := validate.FormatOf("created_at", "body", "date-time", m.CreatedAt.String(), formats); err != nil { + return err + } + + return nil +} + +func (m *Secrets20231128RotatingSecret) validateUpdatedAt(formats strfmt.Registry) error { + if swag.IsZero(m.UpdatedAt) { // not required + return nil + } + + if err := validate.FormatOf("updated_at", "body", "date-time", m.UpdatedAt.String(), formats); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this secrets 20231128 rotating secret based on context it is used +func (m *Secrets20231128RotatingSecret) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *Secrets20231128RotatingSecret) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Secrets20231128RotatingSecret) UnmarshalBinary(b []byte) error { + var res Secrets20231128RotatingSecret + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_update_app_rotating_secret_response.go b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_update_app_rotating_secret_response.go new file mode 100644 index 00000000..d8bfe8e8 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_update_app_rotating_secret_response.go @@ -0,0 +1,109 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// Secrets20231128UpdateAppRotatingSecretResponse secrets 20231128 update app rotating secret response +// +// swagger:model secrets_20231128UpdateAppRotatingSecretResponse +type Secrets20231128UpdateAppRotatingSecretResponse struct { + + // secret + Secret *Secrets20231128RotatingSecret `json:"secret,omitempty"` +} + +// Validate validates this secrets 20231128 update app rotating secret response +func (m *Secrets20231128UpdateAppRotatingSecretResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateSecret(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128UpdateAppRotatingSecretResponse) validateSecret(formats strfmt.Registry) error { + if swag.IsZero(m.Secret) { // not required + return nil + } + + if m.Secret != nil { + if err := m.Secret.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("secret") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("secret") + } + return err + } + } + + return nil +} + +// ContextValidate validate this secrets 20231128 update app rotating secret response based on the context it is used +func (m *Secrets20231128UpdateAppRotatingSecretResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateSecret(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128UpdateAppRotatingSecretResponse) contextValidateSecret(ctx context.Context, formats strfmt.Registry) error { + + if m.Secret != nil { + + if swag.IsZero(m.Secret) { // not required + return nil + } + + if err := m.Secret.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("secret") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("secret") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *Secrets20231128UpdateAppRotatingSecretResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Secrets20231128UpdateAppRotatingSecretResponse) UnmarshalBinary(b []byte) error { + var res Secrets20231128UpdateAppRotatingSecretResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_update_random_integration_response.go b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_update_random_integration_response.go new file mode 100644 index 00000000..d8424b4f --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_update_random_integration_response.go @@ -0,0 +1,109 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// Secrets20231128UpdateRandomIntegrationResponse secrets 20231128 update random integration response +// +// swagger:model secrets_20231128UpdateRandomIntegrationResponse +type Secrets20231128UpdateRandomIntegrationResponse struct { + + // integration + Integration *Secrets20231128RandomIntegration `json:"integration,omitempty"` +} + +// Validate validates this secrets 20231128 update random integration response +func (m *Secrets20231128UpdateRandomIntegrationResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateIntegration(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128UpdateRandomIntegrationResponse) validateIntegration(formats strfmt.Registry) error { + if swag.IsZero(m.Integration) { // not required + return nil + } + + if m.Integration != nil { + if err := m.Integration.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("integration") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("integration") + } + return err + } + } + + return nil +} + +// ContextValidate validate this secrets 20231128 update random integration response based on the context it is used +func (m *Secrets20231128UpdateRandomIntegrationResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateIntegration(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128UpdateRandomIntegrationResponse) contextValidateIntegration(ctx context.Context, formats strfmt.Registry) error { + + if m.Integration != nil { + + if swag.IsZero(m.Integration) { // not required + return nil + } + + if err := m.Integration.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("integration") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("integration") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *Secrets20231128UpdateRandomIntegrationResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Secrets20231128UpdateRandomIntegrationResponse) UnmarshalBinary(b []byte) error { + var res Secrets20231128UpdateRandomIntegrationResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_update_random_rotating_secret_response.go b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_update_random_rotating_secret_response.go new file mode 100644 index 00000000..932ea562 --- /dev/null +++ b/clients/cloud-vault-secrets/stable/2023-11-28/models/secrets20231128_update_random_rotating_secret_response.go @@ -0,0 +1,109 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// Secrets20231128UpdateRandomRotatingSecretResponse secrets 20231128 update random rotating secret response +// +// swagger:model secrets_20231128UpdateRandomRotatingSecretResponse +type Secrets20231128UpdateRandomRotatingSecretResponse struct { + + // config + Config *Secrets20231128RandomRotatingSecretConfig `json:"config,omitempty"` +} + +// Validate validates this secrets 20231128 update random rotating secret response +func (m *Secrets20231128UpdateRandomRotatingSecretResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateConfig(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128UpdateRandomRotatingSecretResponse) validateConfig(formats strfmt.Registry) error { + if swag.IsZero(m.Config) { // not required + return nil + } + + if m.Config != nil { + if err := m.Config.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("config") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("config") + } + return err + } + } + + return nil +} + +// ContextValidate validate this secrets 20231128 update random rotating secret response based on the context it is used +func (m *Secrets20231128UpdateRandomRotatingSecretResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateConfig(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *Secrets20231128UpdateRandomRotatingSecretResponse) contextValidateConfig(ctx context.Context, formats strfmt.Registry) error { + + if m.Config != nil { + + if swag.IsZero(m.Config) { // not required + return nil + } + + if err := m.Config.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("config") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("config") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *Secrets20231128UpdateRandomRotatingSecretResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *Secrets20231128UpdateRandomRotatingSecretResponse) UnmarshalBinary(b []byte) error { + var res Secrets20231128UpdateRandomRotatingSecretResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +}