From a63622e1be87dc281283dfe2fcf4a6fcabdb9eff Mon Sep 17 00:00:00 2001 From: Andreas Creten Date: Wed, 29 Mar 2023 09:15:06 +0200 Subject: [PATCH] Change version number --- README.md | 4 +- api/swagger.yaml | 2 +- api_default.go | 3165 ++++++++--------- client.go | 24 +- configuration.go | 4 +- model_backup.go | 20 +- ...kupconfigs_backup_configuration_id_body.go | 14 +- model_backups_backup_id_body.go | 2 +- model_blackfire_install_body.go | 4 +- model_certificate.go | 12 +- model_command.go | 22 +- model_credential.go | 6 +- model_daemon.go | 22 +- model_database.go | 8 +- model_databaseusers_user_id_body.go | 2 +- model_deployment.go | 22 +- model_deployment_script_body.go | 4 +- model_id_install_body.go | 4 +- model_inline_response_200.go | 10 +- model_inline_response_200_1.go | 14 +- model_job.go | 12 +- model_key.go | 10 +- model_monitor.go | 16 +- model_nginx_templates_body.go | 4 +- model_node.go | 12 +- model_papertrail_install_body.go | 2 +- model_php_reboot_body.go | 2 +- model_recipe.go | 10 +- model_recipe_id_run_body.go | 4 +- model_recipes_body.go | 6 +- model_recipes_recipe_id_body.go | 6 +- model_redirect_rule.go | 10 +- model_regions.go | 8 +- model_rule.go | 12 +- model_security_rule.go | 10 +- model_server.go | 38 +- model_server_id_backupconfigs_body.go | 14 +- model_server_id_daemons_body.go | 6 +- model_server_id_databasepassword_body.go | 2 +- model_server_id_databases_body.go | 4 +- model_server_id_databaseusers_body.go | 4 +- model_server_id_firewallrules_body.go | 8 +- model_server_id_jobs_body.go | 12 +- model_server_id_keys_body.go | 6 +- model_server_id_monitors_body.go | 10 +- model_server_id_sites_body.go | 18 +- model_servers_body.go | 42 +- model_servers_events_body.go | 2 +- model_servers_id_body.go | 14 +- model_site.go | 44 +- model_site_id_aliases_body.go | 2 +- model_site_id_balancing_body.go | 4 +- model_site_id_certificates_body.go | 4 +- model_site_id_commands_body.go | 2 +- model_site_id_env_body.go | 2 +- model_site_id_git_body.go | 6 +- model_site_id_git_body_1.go | 2 +- model_site_id_nginx_body.go | 2 +- model_site_id_php_body.go | 2 +- model_site_id_phpmyadmin_body.go | 4 +- model_site_id_redirectrules_body.go | 6 +- model_site_id_securityrules_body.go | 6 +- model_site_id_wordpress_body.go | 4 +- model_site_id_workers_body.go | 20 +- model_sites_site_id_body.go | 10 +- model_template.go | 10 +- model_user.go | 10 +- model_webhook.go | 6 +- model_worker.go | 30 +- response.go | 2 +- 70 files changed, 1907 insertions(+), 1940 deletions(-) diff --git a/README.md b/README.md index 03d5504..7ef5f4c 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ The Laravel Forge API allows you to create and interact with servers and sites o ## Overview This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client. -- API version: 1.0.0 -- Package version: 1.0.0 +- API version: 0.0.2 +- Package version: 0.0.2 - Build package: io.swagger.codegen.v3.generators.go.GoClientCodegen ## Installation diff --git a/api/swagger.yaml b/api/swagger.yaml index f4353b4..1e65d8e 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -3,7 +3,7 @@ info: title: Laravel Forge description: The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. - version: 1.0.0 + version: 0.0.2 servers: - url: https://forge.laravel.com/api/v1 security: diff --git a/api_default.go b/api_default.go index 461d255..24d37e6 100644 --- a/api_default.go +++ b/api_default.go @@ -1,21 +1,20 @@ - /* * Laravel Forge * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge import ( "context" + "fmt" "io/ioutil" "net/http" "net/url" "strings" - "fmt" ) // Linger please @@ -24,13 +23,13 @@ var ( ) type DefaultApiService service + /* DefaultApiService Activate Certificate - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + - @param id The ID of the resource. */ func (a *DefaultApiService) ActivateCertificate(ctx context.Context, serverId int32, siteId int32, id int32) (*http.Response, error) { var ( @@ -38,7 +37,6 @@ func (a *DefaultApiService) ActivateCertificate(ctx context.Context, serverId in localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -84,10 +82,9 @@ func (a *DefaultApiService) ActivateCertificate(ctx context.Context, serverId in return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -95,20 +92,22 @@ func (a *DefaultApiService) ActivateCertificate(ctx context.Context, serverId in return localVarHttpResponse, nil } + /* DefaultApiService Add Site Aliases - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. - * @param siteId The ID of the site. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + - @param siteId The ID of the site. + @return Site */ func (a *DefaultApiService) AddSiteAliases(ctx context.Context, body SiteIdAliasesBody, serverId int32, siteId int32) (Site, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Put") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Site ) @@ -158,39 +157,39 @@ func (a *DefaultApiService) AddSiteAliases(ctx context.Context, body SiteIdAlias if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Site - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Change Site PHP Version - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) ChangeSitePHPVersion(ctx context.Context, body SiteIdPhpBody, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -198,7 +197,6 @@ func (a *DefaultApiService) ChangeSitePHPVersion(ctx context.Context, body SiteI localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -245,10 +243,9 @@ func (a *DefaultApiService) ChangeSitePHPVersion(ctx context.Context, body SiteI return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -256,20 +253,22 @@ func (a *DefaultApiService) ChangeSitePHPVersion(ctx context.Context, body SiteI return localVarHttpResponse, nil } + /* DefaultApiService Cloning An Existing Certificate - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. - * @param siteId The ID of the site. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + - @param siteId The ID of the site. + @return Certificate */ func (a *DefaultApiService) CloningAnExistingCertificate(ctx context.Context, body SiteIdCertificatesBody, serverId int32, siteId int32) (Certificate, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Certificate ) @@ -319,45 +318,47 @@ func (a *DefaultApiService) CloningAnExistingCertificate(ctx context.Context, bo if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Certificate - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Create Backup Configuration - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + @return Backup */ func (a *DefaultApiService) CreateBackupConfiguration(ctx context.Context, body ServerIdBackupconfigsBody, serverId int32) (Backup, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Backup ) @@ -406,45 +407,47 @@ func (a *DefaultApiService) CreateBackupConfiguration(ctx context.Context, body if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Backup - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Create Daemon - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + @return Daemon */ func (a *DefaultApiService) CreateDaemon(ctx context.Context, body ServerIdDaemonsBody, serverId int32) (Daemon, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Daemon ) @@ -493,45 +496,47 @@ func (a *DefaultApiService) CreateDaemon(ctx context.Context, body ServerIdDaemo if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Daemon - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Create Database - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + @return Database */ func (a *DefaultApiService) CreateDatabase(ctx context.Context, body ServerIdDatabasesBody, serverId int32) (Database, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Database ) @@ -580,45 +585,47 @@ func (a *DefaultApiService) CreateDatabase(ctx context.Context, body ServerIdDat if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Database - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Create Database User - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + @return User */ func (a *DefaultApiService) CreateDatabaseUser(ctx context.Context, body ServerIdDatabaseusersBody, serverId int32) (User, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue User ) @@ -667,38 +674,38 @@ func (a *DefaultApiService) CreateDatabaseUser(ctx context.Context, body ServerI if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v User - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Create Deploy Key - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) CreateDeployKey(ctx context.Context, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -706,7 +713,6 @@ func (a *DefaultApiService) CreateDeployKey(ctx context.Context, serverId int32, localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -751,10 +757,9 @@ func (a *DefaultApiService) CreateDeployKey(ctx context.Context, serverId int32, return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -762,19 +767,21 @@ func (a *DefaultApiService) CreateDeployKey(ctx context.Context, serverId int32, return localVarHttpResponse, nil } + /* DefaultApiService Create Firewall Rule - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + @return Rule */ func (a *DefaultApiService) CreateFirewallRule(ctx context.Context, body ServerIdFirewallrulesBody, serverId int32) (Rule, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Rule ) @@ -823,45 +830,47 @@ func (a *DefaultApiService) CreateFirewallRule(ctx context.Context, body ServerI if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Rule - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Create Job - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + @return Job */ func (a *DefaultApiService) CreateJob(ctx context.Context, body ServerIdJobsBody, serverId int32) (Job, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Job ) @@ -910,45 +919,47 @@ func (a *DefaultApiService) CreateJob(ctx context.Context, body ServerIdJobsBody if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Job - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Create Key - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + @return Key */ func (a *DefaultApiService) CreateKey(ctx context.Context, body ServerIdKeysBody, serverId int32) (Key, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Key ) @@ -997,45 +1008,47 @@ func (a *DefaultApiService) CreateKey(ctx context.Context, body ServerIdKeysBody if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Key - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Create Monitor - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + @return Monitor */ func (a *DefaultApiService) CreateMonitor(ctx context.Context, body ServerIdMonitorsBody, serverId int32) (Monitor, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Monitor ) @@ -1084,44 +1097,46 @@ func (a *DefaultApiService) CreateMonitor(ctx context.Context, body ServerIdMoni if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Monitor - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Create Recipe - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + @return Recipe */ func (a *DefaultApiService) CreateRecipe(ctx context.Context, body RecipesBody) (Recipe, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Recipe ) @@ -1169,46 +1184,48 @@ func (a *DefaultApiService) CreateRecipe(ctx context.Context, body RecipesBody) if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Recipe - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Create Redirect Rule - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. - * @param siteId The ID of the site. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + - @param siteId The ID of the site. + @return RedirectRule */ func (a *DefaultApiService) CreateRedirectRule(ctx context.Context, body SiteIdRedirectrulesBody, serverId int32, siteId int32) (RedirectRule, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue RedirectRule ) @@ -1258,46 +1275,48 @@ func (a *DefaultApiService) CreateRedirectRule(ctx context.Context, body SiteIdR if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v RedirectRule - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Create Security Rule - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. - * @param siteId The ID of the site. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + - @param siteId The ID of the site. + @return SecurityRule */ func (a *DefaultApiService) CreateSecurityRule(ctx context.Context, body SiteIdSecurityrulesBody, serverId int32, siteId int32) (SecurityRule, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue SecurityRule ) @@ -1347,44 +1366,46 @@ func (a *DefaultApiService) CreateSecurityRule(ctx context.Context, body SiteIdS if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v SecurityRule - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Create Server - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + @return Server */ func (a *DefaultApiService) CreateServer(ctx context.Context, body ServersBody) (Server, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Server ) @@ -1432,45 +1453,47 @@ func (a *DefaultApiService) CreateServer(ctx context.Context, body ServersBody) if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Server - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Create Site - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + @return Site */ func (a *DefaultApiService) CreateSite(ctx context.Context, body ServerIdSitesBody, serverId int32) (Site, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Site ) @@ -1519,45 +1542,47 @@ func (a *DefaultApiService) CreateSite(ctx context.Context, body ServerIdSitesBo if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Site - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Create Template - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + @return Template */ func (a *DefaultApiService) CreateTemplate(ctx context.Context, body NginxTemplatesBody, serverId int32) (Template, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Template ) @@ -1606,38 +1631,38 @@ func (a *DefaultApiService) CreateTemplate(ctx context.Context, body NginxTempla if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Template - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Create Webhook - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) CreateWebhook(ctx context.Context, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -1645,7 +1670,6 @@ func (a *DefaultApiService) CreateWebhook(ctx context.Context, serverId int32, s localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -1690,10 +1714,9 @@ func (a *DefaultApiService) CreateWebhook(ctx context.Context, serverId int32, s return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -1701,20 +1724,22 @@ func (a *DefaultApiService) CreateWebhook(ctx context.Context, serverId int32, s return localVarHttpResponse, nil } + /* DefaultApiService Create Worker - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. - * @param siteId The ID of the site. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + - @param siteId The ID of the site. + @return Worker */ func (a *DefaultApiService) CreateWorker(ctx context.Context, body SiteIdWorkersBody, serverId int32, siteId int32) (Worker, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Worker ) @@ -1764,39 +1789,39 @@ func (a *DefaultApiService) CreateWorker(ctx context.Context, body SiteIdWorkers if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Worker - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Delete Backup - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param backupConfigurationId The ID of the backup configuration. - * @param backupId The ID of the backup. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param backupConfigurationId The ID of the backup configuration. + - @param backupId The ID of the backup. */ func (a *DefaultApiService) DeleteBackup(ctx context.Context, serverId int32, backupConfigurationId int32, backupId int32) (*http.Response, error) { var ( @@ -1804,7 +1829,6 @@ func (a *DefaultApiService) DeleteBackup(ctx context.Context, serverId int32, ba localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -1850,10 +1874,9 @@ func (a *DefaultApiService) DeleteBackup(ctx context.Context, serverId int32, ba return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -1861,12 +1884,12 @@ func (a *DefaultApiService) DeleteBackup(ctx context.Context, serverId int32, ba return localVarHttpResponse, nil } + /* DefaultApiService Delete Backup Configuration - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param backupConfigurationId The ID of the backup configuration. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param backupConfigurationId The ID of the backup configuration. */ func (a *DefaultApiService) DeleteBackupConfiguration(ctx context.Context, serverId int32, backupConfigurationId int32) (*http.Response, error) { var ( @@ -1874,7 +1897,6 @@ func (a *DefaultApiService) DeleteBackupConfiguration(ctx context.Context, serve localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -1919,10 +1941,9 @@ func (a *DefaultApiService) DeleteBackupConfiguration(ctx context.Context, serve return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -1930,13 +1951,13 @@ func (a *DefaultApiService) DeleteBackupConfiguration(ctx context.Context, serve return localVarHttpResponse, nil } + /* DefaultApiService Delete Certificate - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + - @param id The ID of the resource. */ func (a *DefaultApiService) DeleteCertificate(ctx context.Context, serverId int32, siteId int32, id int32) (*http.Response, error) { var ( @@ -1944,7 +1965,6 @@ func (a *DefaultApiService) DeleteCertificate(ctx context.Context, serverId int3 localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -1990,10 +2010,9 @@ func (a *DefaultApiService) DeleteCertificate(ctx context.Context, serverId int3 return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -2001,12 +2020,12 @@ func (a *DefaultApiService) DeleteCertificate(ctx context.Context, serverId int3 return localVarHttpResponse, nil } + /* DefaultApiService Delete Daemon - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param daemonId The ID of the daemon. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param daemonId The ID of the daemon. */ func (a *DefaultApiService) DeleteDaemon(ctx context.Context, serverId int32, daemonId int32) (*http.Response, error) { var ( @@ -2014,7 +2033,6 @@ func (a *DefaultApiService) DeleteDaemon(ctx context.Context, serverId int32, da localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -2059,10 +2077,9 @@ func (a *DefaultApiService) DeleteDaemon(ctx context.Context, serverId int32, da return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -2070,12 +2087,12 @@ func (a *DefaultApiService) DeleteDaemon(ctx context.Context, serverId int32, da return localVarHttpResponse, nil } + /* DefaultApiService Delete Database - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param databaseId The ID of the database. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param databaseId The ID of the database. */ func (a *DefaultApiService) DeleteDatabase(ctx context.Context, serverId int32, databaseId int32) (*http.Response, error) { var ( @@ -2083,7 +2100,6 @@ func (a *DefaultApiService) DeleteDatabase(ctx context.Context, serverId int32, localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -2128,10 +2144,9 @@ func (a *DefaultApiService) DeleteDatabase(ctx context.Context, serverId int32, return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -2139,12 +2154,12 @@ func (a *DefaultApiService) DeleteDatabase(ctx context.Context, serverId int32, return localVarHttpResponse, nil } + /* DefaultApiService Delete Database User - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param userId The ID of the user. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param userId The ID of the user. */ func (a *DefaultApiService) DeleteDatabaseUser(ctx context.Context, serverId int32, userId int32) (*http.Response, error) { var ( @@ -2152,7 +2167,6 @@ func (a *DefaultApiService) DeleteDatabaseUser(ctx context.Context, serverId int localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -2197,10 +2211,9 @@ func (a *DefaultApiService) DeleteDatabaseUser(ctx context.Context, serverId int return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -2208,12 +2221,12 @@ func (a *DefaultApiService) DeleteDatabaseUser(ctx context.Context, serverId int return localVarHttpResponse, nil } + /* DefaultApiService Delete Deploy Key - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) DeleteDeployKey(ctx context.Context, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -2221,7 +2234,6 @@ func (a *DefaultApiService) DeleteDeployKey(ctx context.Context, serverId int32, localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -2266,10 +2278,9 @@ func (a *DefaultApiService) DeleteDeployKey(ctx context.Context, serverId int32, return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -2277,12 +2288,12 @@ func (a *DefaultApiService) DeleteDeployKey(ctx context.Context, serverId int32, return localVarHttpResponse, nil } + /* DefaultApiService Delete Firewall Rule - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param ruleId The ID of the rule. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param ruleId The ID of the rule. */ func (a *DefaultApiService) DeleteFirewallRule(ctx context.Context, serverId int32, ruleId int32) (*http.Response, error) { var ( @@ -2290,7 +2301,6 @@ func (a *DefaultApiService) DeleteFirewallRule(ctx context.Context, serverId int localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -2335,10 +2345,9 @@ func (a *DefaultApiService) DeleteFirewallRule(ctx context.Context, serverId int return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -2346,12 +2355,12 @@ func (a *DefaultApiService) DeleteFirewallRule(ctx context.Context, serverId int return localVarHttpResponse, nil } + /* DefaultApiService Delete Job - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param jobId The ID of the job. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param jobId The ID of the job. */ func (a *DefaultApiService) DeleteJob(ctx context.Context, serverId int32, jobId int32) (*http.Response, error) { var ( @@ -2359,7 +2368,6 @@ func (a *DefaultApiService) DeleteJob(ctx context.Context, serverId int32, jobId localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -2404,10 +2412,9 @@ func (a *DefaultApiService) DeleteJob(ctx context.Context, serverId int32, jobId return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -2415,12 +2422,12 @@ func (a *DefaultApiService) DeleteJob(ctx context.Context, serverId int32, jobId return localVarHttpResponse, nil } + /* DefaultApiService Delete Key - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param keyId The ID of the key. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param keyId The ID of the key. */ func (a *DefaultApiService) DeleteKey(ctx context.Context, serverId int32, keyId int32) (*http.Response, error) { var ( @@ -2428,7 +2435,6 @@ func (a *DefaultApiService) DeleteKey(ctx context.Context, serverId int32, keyId localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -2473,10 +2479,9 @@ func (a *DefaultApiService) DeleteKey(ctx context.Context, serverId int32, keyId return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -2484,12 +2489,12 @@ func (a *DefaultApiService) DeleteKey(ctx context.Context, serverId int32, keyId return localVarHttpResponse, nil } + /* DefaultApiService Delete Monitor - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param monitorId The ID of the monitor. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param monitorId The ID of the monitor. */ func (a *DefaultApiService) DeleteMonitor(ctx context.Context, serverId int32, monitorId int32) (*http.Response, error) { var ( @@ -2497,7 +2502,6 @@ func (a *DefaultApiService) DeleteMonitor(ctx context.Context, serverId int32, m localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -2542,10 +2546,9 @@ func (a *DefaultApiService) DeleteMonitor(ctx context.Context, serverId int32, m return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -2553,12 +2556,12 @@ func (a *DefaultApiService) DeleteMonitor(ctx context.Context, serverId int32, m return localVarHttpResponse, nil } + /* DefaultApiService Delete Nginx Template - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param templateId The ID of the template. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param templateId The ID of the template. */ func (a *DefaultApiService) DeleteNginxTemplate(ctx context.Context, serverId int32, templateId int32) (*http.Response, error) { var ( @@ -2566,7 +2569,6 @@ func (a *DefaultApiService) DeleteNginxTemplate(ctx context.Context, serverId in localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -2611,10 +2613,9 @@ func (a *DefaultApiService) DeleteNginxTemplate(ctx context.Context, serverId in return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -2622,11 +2623,11 @@ func (a *DefaultApiService) DeleteNginxTemplate(ctx context.Context, serverId in return localVarHttpResponse, nil } + /* DefaultApiService Delete Recipe - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param recipeId The ID of the recipe. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param recipeId The ID of the recipe. */ func (a *DefaultApiService) DeleteRecipe(ctx context.Context, recipeId int32) (*http.Response, error) { var ( @@ -2634,7 +2635,6 @@ func (a *DefaultApiService) DeleteRecipe(ctx context.Context, recipeId int32) (* localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -2678,10 +2678,9 @@ func (a *DefaultApiService) DeleteRecipe(ctx context.Context, recipeId int32) (* return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -2689,13 +2688,13 @@ func (a *DefaultApiService) DeleteRecipe(ctx context.Context, recipeId int32) (* return localVarHttpResponse, nil } + /* DefaultApiService Delete Redirect Rule - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + - @param id The ID of the resource. */ func (a *DefaultApiService) DeleteRedirectRule(ctx context.Context, serverId int32, siteId int32, id int32) (*http.Response, error) { var ( @@ -2703,7 +2702,6 @@ func (a *DefaultApiService) DeleteRedirectRule(ctx context.Context, serverId int localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -2749,10 +2747,9 @@ func (a *DefaultApiService) DeleteRedirectRule(ctx context.Context, serverId int return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -2760,13 +2757,13 @@ func (a *DefaultApiService) DeleteRedirectRule(ctx context.Context, serverId int return localVarHttpResponse, nil } + /* DefaultApiService Delete Security Rule - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + - @param id The ID of the resource. */ func (a *DefaultApiService) DeleteSecurityRule(ctx context.Context, serverId int32, siteId int32, id int32) (*http.Response, error) { var ( @@ -2774,7 +2771,6 @@ func (a *DefaultApiService) DeleteSecurityRule(ctx context.Context, serverId int localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -2820,10 +2816,9 @@ func (a *DefaultApiService) DeleteSecurityRule(ctx context.Context, serverId int return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -2831,11 +2826,11 @@ func (a *DefaultApiService) DeleteSecurityRule(ctx context.Context, serverId int return localVarHttpResponse, nil } + /* DefaultApiService Delete Server - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param id The ID of the resource. */ func (a *DefaultApiService) DeleteServer(ctx context.Context, id int32) (*http.Response, error) { var ( @@ -2843,7 +2838,6 @@ func (a *DefaultApiService) DeleteServer(ctx context.Context, id int32) (*http.R localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -2887,10 +2881,9 @@ func (a *DefaultApiService) DeleteServer(ctx context.Context, id int32) (*http.R return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -2898,12 +2891,12 @@ func (a *DefaultApiService) DeleteServer(ctx context.Context, id int32) (*http.R return localVarHttpResponse, nil } + /* DefaultApiService Delete Site - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) DeleteSite(ctx context.Context, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -2911,7 +2904,6 @@ func (a *DefaultApiService) DeleteSite(ctx context.Context, serverId int32, site localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -2956,10 +2948,9 @@ func (a *DefaultApiService) DeleteSite(ctx context.Context, serverId int32, site return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -2967,13 +2958,13 @@ func (a *DefaultApiService) DeleteSite(ctx context.Context, serverId int32, site return localVarHttpResponse, nil } + /* DefaultApiService Delete Webhook - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + - @param id The ID of the resource. */ func (a *DefaultApiService) DeleteWebhook(ctx context.Context, serverId int32, siteId int32, id int32) (*http.Response, error) { var ( @@ -2981,7 +2972,6 @@ func (a *DefaultApiService) DeleteWebhook(ctx context.Context, serverId int32, s localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -3027,10 +3017,9 @@ func (a *DefaultApiService) DeleteWebhook(ctx context.Context, serverId int32, s return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -3038,13 +3027,13 @@ func (a *DefaultApiService) DeleteWebhook(ctx context.Context, serverId int32, s return localVarHttpResponse, nil } + /* DefaultApiService Delete Worker - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + - @param id The ID of the resource. */ func (a *DefaultApiService) DeleteWorker(ctx context.Context, serverId int32, siteId int32, id int32) (*http.Response, error) { var ( @@ -3052,7 +3041,6 @@ func (a *DefaultApiService) DeleteWorker(ctx context.Context, serverId int32, si localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -3098,10 +3086,9 @@ func (a *DefaultApiService) DeleteWorker(ctx context.Context, serverId int32, si return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -3109,12 +3096,12 @@ func (a *DefaultApiService) DeleteWorker(ctx context.Context, serverId int32, si return localVarHttpResponse, nil } + /* DefaultApiService Deploy Now - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) DeployNow(ctx context.Context, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -3122,7 +3109,6 @@ func (a *DefaultApiService) DeployNow(ctx context.Context, serverId int32, siteI localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -3167,10 +3153,9 @@ func (a *DefaultApiService) DeployNow(ctx context.Context, serverId int32, siteI return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -3178,11 +3163,11 @@ func (a *DefaultApiService) DeployNow(ctx context.Context, serverId int32, siteI return localVarHttpResponse, nil } + /* DefaultApiService Disable OPCache - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. */ func (a *DefaultApiService) DisableOPCache(ctx context.Context, serverId int32) (*http.Response, error) { var ( @@ -3190,7 +3175,6 @@ func (a *DefaultApiService) DisableOPCache(ctx context.Context, serverId int32) localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -3234,10 +3218,9 @@ func (a *DefaultApiService) DisableOPCache(ctx context.Context, serverId int32) return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -3245,12 +3228,12 @@ func (a *DefaultApiService) DisableOPCache(ctx context.Context, serverId int32) return localVarHttpResponse, nil } + /* DefaultApiService Disable Quick Deployment - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) DisableQuickDeployment(ctx context.Context, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -3258,7 +3241,6 @@ func (a *DefaultApiService) DisableQuickDeployment(ctx context.Context, serverId localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -3303,10 +3285,9 @@ func (a *DefaultApiService) DisableQuickDeployment(ctx context.Context, serverId return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -3314,11 +3295,11 @@ func (a *DefaultApiService) DisableQuickDeployment(ctx context.Context, serverId return localVarHttpResponse, nil } + /* DefaultApiService Enable OPCache - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. */ func (a *DefaultApiService) EnableOPCache(ctx context.Context, serverId int32) (*http.Response, error) { var ( @@ -3326,7 +3307,6 @@ func (a *DefaultApiService) EnableOPCache(ctx context.Context, serverId int32) ( localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -3370,10 +3350,9 @@ func (a *DefaultApiService) EnableOPCache(ctx context.Context, serverId int32) ( return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -3381,12 +3360,12 @@ func (a *DefaultApiService) EnableOPCache(ctx context.Context, serverId int32) ( return localVarHttpResponse, nil } + /* DefaultApiService Enable Quick Deployment - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) EnableQuickDeployment(ctx context.Context, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -3394,7 +3373,6 @@ func (a *DefaultApiService) EnableQuickDeployment(ctx context.Context, serverId localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -3439,10 +3417,9 @@ func (a *DefaultApiService) EnableQuickDeployment(ctx context.Context, serverId return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -3450,13 +3427,13 @@ func (a *DefaultApiService) EnableQuickDeployment(ctx context.Context, serverId return localVarHttpResponse, nil } + /* DefaultApiService Execute Command - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) ExecuteCommand(ctx context.Context, body SiteIdCommandsBody, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -3464,7 +3441,6 @@ func (a *DefaultApiService) ExecuteCommand(ctx context.Context, body SiteIdComma localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -3511,10 +3487,9 @@ func (a *DefaultApiService) ExecuteCommand(ctx context.Context, body SiteIdComma return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -3522,19 +3497,21 @@ func (a *DefaultApiService) ExecuteCommand(ctx context.Context, body SiteIdComma return localVarHttpResponse, nil } + /* DefaultApiService Get Backup Configuration - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param backupConfigurationId The ID of the backup configuration. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param backupConfigurationId The ID of the backup configuration. + @return Backup */ func (a *DefaultApiService) GetBackupConfiguration(ctx context.Context, serverId int32, backupConfigurationId int32) (Backup, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Backup ) @@ -3582,46 +3559,48 @@ func (a *DefaultApiService) GetBackupConfiguration(ctx context.Context, serverId if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Backup - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Get Certificate - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - * @param id The ID of the resource. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + - @param id The ID of the resource. + @return Certificate */ func (a *DefaultApiService) GetCertificate(ctx context.Context, serverId int32, siteId int32, id int32) (Certificate, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Certificate ) @@ -3670,46 +3649,48 @@ func (a *DefaultApiService) GetCertificate(ctx context.Context, serverId int32, if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Certificate - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Get Command - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - * @param commandId The ID of the command. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + - @param commandId The ID of the command. + @return Command */ func (a *DefaultApiService) GetCommand(ctx context.Context, serverId int32, siteId int32, commandId int32) (Command, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Command ) @@ -3758,43 +3739,45 @@ func (a *DefaultApiService) GetCommand(ctx context.Context, serverId int32, site if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Command - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Get Credentials - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return []Credential */ func (a *DefaultApiService) GetCredentials(ctx context.Context) ([]Credential, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []Credential ) @@ -3840,45 +3823,47 @@ func (a *DefaultApiService) GetCredentials(ctx context.Context) ([]Credential, * if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v []Credential - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Get Daemon - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param daemonId The ID of the daemon. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param daemonId The ID of the daemon. + @return Daemon */ func (a *DefaultApiService) GetDaemon(ctx context.Context, serverId int32, daemonId int32) (Daemon, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Daemon ) @@ -3926,45 +3911,47 @@ func (a *DefaultApiService) GetDaemon(ctx context.Context, serverId int32, daemo if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Daemon - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Get Database - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param databaseId The ID of the database. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param databaseId The ID of the database. + @return Database */ func (a *DefaultApiService) GetDatabase(ctx context.Context, serverId int32, databaseId int32) (Database, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Database ) @@ -4012,45 +3999,47 @@ func (a *DefaultApiService) GetDatabase(ctx context.Context, serverId int32, dat if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Database - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Get Database User - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param userId The ID of the user. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param userId The ID of the user. + @return User */ func (a *DefaultApiService) GetDatabaseUser(ctx context.Context, serverId int32, userId int32) (User, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue User ) @@ -4098,46 +4087,48 @@ func (a *DefaultApiService) GetDatabaseUser(ctx context.Context, serverId int32, if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v User - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Get Deployment - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - * @param deploymentId The ID of the deployment. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + - @param deploymentId The ID of the deployment. + @return Deployment */ func (a *DefaultApiService) GetDeployment(ctx context.Context, serverId int32, siteId int32, deploymentId int32) (Deployment, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Deployment ) @@ -4186,38 +4177,38 @@ func (a *DefaultApiService) GetDeployment(ctx context.Context, serverId int32, s if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Deployment - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Get Deployment Log - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) GetDeploymentLog(ctx context.Context, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -4225,7 +4216,6 @@ func (a *DefaultApiService) GetDeploymentLog(ctx context.Context, serverId int32 localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -4270,10 +4260,9 @@ func (a *DefaultApiService) GetDeploymentLog(ctx context.Context, serverId int32 return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -4281,13 +4270,13 @@ func (a *DefaultApiService) GetDeploymentLog(ctx context.Context, serverId int32 return localVarHttpResponse, nil } + /* DefaultApiService Get Deployment Output - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - * @param deploymentId The ID of the deployment. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + - @param deploymentId The ID of the deployment. */ func (a *DefaultApiService) GetDeploymentOutput(ctx context.Context, serverId int32, siteId int32, deploymentId int32) (*http.Response, error) { var ( @@ -4295,7 +4284,6 @@ func (a *DefaultApiService) GetDeploymentOutput(ctx context.Context, serverId in localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -4341,10 +4329,9 @@ func (a *DefaultApiService) GetDeploymentOutput(ctx context.Context, serverId in return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -4352,12 +4339,12 @@ func (a *DefaultApiService) GetDeploymentOutput(ctx context.Context, serverId in return localVarHttpResponse, nil } + /* DefaultApiService Get Deployment Script - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) GetDeploymentScript(ctx context.Context, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -4365,7 +4352,6 @@ func (a *DefaultApiService) GetDeploymentScript(ctx context.Context, serverId in localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -4410,10 +4396,9 @@ func (a *DefaultApiService) GetDeploymentScript(ctx context.Context, serverId in return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -4421,12 +4406,12 @@ func (a *DefaultApiService) GetDeploymentScript(ctx context.Context, serverId in return localVarHttpResponse, nil } + /* DefaultApiService Get .env File - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) GetEnvFile(ctx context.Context, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -4434,7 +4419,6 @@ func (a *DefaultApiService) GetEnvFile(ctx context.Context, serverId int32, site localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -4479,10 +4463,9 @@ func (a *DefaultApiService) GetEnvFile(ctx context.Context, serverId int32, site return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -4490,19 +4473,21 @@ func (a *DefaultApiService) GetEnvFile(ctx context.Context, serverId int32, site return localVarHttpResponse, nil } + /* DefaultApiService Get Firewall Rule - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param ruleId The ID of the rule. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param ruleId The ID of the rule. + @return Rule */ func (a *DefaultApiService) GetFirewallRule(ctx context.Context, serverId int32, ruleId int32) (Rule, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Rule ) @@ -4550,45 +4535,47 @@ func (a *DefaultApiService) GetFirewallRule(ctx context.Context, serverId int32, if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Rule - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Get Job - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param jobId The ID of the job. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param jobId The ID of the job. + @return Job */ func (a *DefaultApiService) GetJob(ctx context.Context, serverId int32, jobId int32) (Job, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Job ) @@ -4636,45 +4623,47 @@ func (a *DefaultApiService) GetJob(ctx context.Context, serverId int32, jobId in if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Job - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Get Key - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param keyId The ID of the key. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param keyId The ID of the key. + @return Key */ func (a *DefaultApiService) GetKey(ctx context.Context, serverId int32, keyId int32) (Key, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Key ) @@ -4722,37 +4711,37 @@ func (a *DefaultApiService) GetKey(ctx context.Context, serverId int32, keyId in if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Key - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Get Log - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. */ func (a *DefaultApiService) GetLog(ctx context.Context, serverId int32) (*http.Response, error) { var ( @@ -4760,7 +4749,6 @@ func (a *DefaultApiService) GetLog(ctx context.Context, serverId int32) (*http.R localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -4804,10 +4792,9 @@ func (a *DefaultApiService) GetLog(ctx context.Context, serverId int32) (*http.R return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -4815,12 +4802,12 @@ func (a *DefaultApiService) GetLog(ctx context.Context, serverId int32) (*http.R return localVarHttpResponse, nil } + /* DefaultApiService Get Monitor - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param monitorId The ID of the monitor. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param monitorId The ID of the monitor. */ func (a *DefaultApiService) GetMonitor(ctx context.Context, serverId int32, monitorId int32) (*http.Response, error) { var ( @@ -4828,7 +4815,6 @@ func (a *DefaultApiService) GetMonitor(ctx context.Context, serverId int32, moni localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -4873,10 +4859,9 @@ func (a *DefaultApiService) GetMonitor(ctx context.Context, serverId int32, moni return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -4884,12 +4869,12 @@ func (a *DefaultApiService) GetMonitor(ctx context.Context, serverId int32, moni return localVarHttpResponse, nil } + /* DefaultApiService Get Nginx Configuration - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) GetNginxConfiguration(ctx context.Context, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -4897,7 +4882,6 @@ func (a *DefaultApiService) GetNginxConfiguration(ctx context.Context, serverId localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -4942,10 +4926,9 @@ func (a *DefaultApiService) GetNginxConfiguration(ctx context.Context, serverId return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -4953,19 +4936,21 @@ func (a *DefaultApiService) GetNginxConfiguration(ctx context.Context, serverId return localVarHttpResponse, nil } + /* DefaultApiService Get Nginx Template - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param templateId The ID of the template. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param templateId The ID of the template. + @return Template */ func (a *DefaultApiService) GetNginxTemplate(ctx context.Context, serverId int32, templateId int32) (Template, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Template ) @@ -5013,44 +4998,46 @@ func (a *DefaultApiService) GetNginxTemplate(ctx context.Context, serverId int32 if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Template - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Get Recent Events - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + @return []InlineResponse200 */ func (a *DefaultApiService) GetRecentEvents(ctx context.Context, body ServersEventsBody) ([]InlineResponse200, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []InlineResponse200 ) @@ -5098,44 +5085,46 @@ func (a *DefaultApiService) GetRecentEvents(ctx context.Context, body ServersEve if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v []InlineResponse200 - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Get Recipe - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param recipeId The ID of the recipe. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param recipeId The ID of the recipe. + @return Recipe */ func (a *DefaultApiService) GetRecipe(ctx context.Context, recipeId int32) (Recipe, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Recipe ) @@ -5182,46 +5171,48 @@ func (a *DefaultApiService) GetRecipe(ctx context.Context, recipeId int32) (Reci if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Recipe - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Get Redirect Rule - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - * @param id The ID of the resource. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + - @param id The ID of the resource. + @return RedirectRule */ func (a *DefaultApiService) GetRedirectRule(ctx context.Context, serverId int32, siteId int32, id int32) (RedirectRule, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue RedirectRule ) @@ -5270,43 +5261,45 @@ func (a *DefaultApiService) GetRedirectRule(ctx context.Context, serverId int32, if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v RedirectRule - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Get Regions - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return Regions */ func (a *DefaultApiService) GetRegions(ctx context.Context) (Regions, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Regions ) @@ -5352,46 +5345,48 @@ func (a *DefaultApiService) GetRegions(ctx context.Context) (Regions, *http.Resp if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Regions - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Get Security Rule - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - * @param id The ID of the resource. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + - @param id The ID of the resource. + @return SecurityRule */ func (a *DefaultApiService) GetSecurityRule(ctx context.Context, serverId int32, siteId int32, id int32) (SecurityRule, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue SecurityRule ) @@ -5440,44 +5435,46 @@ func (a *DefaultApiService) GetSecurityRule(ctx context.Context, serverId int32, if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v SecurityRule - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Get Server - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of the resource. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param id The ID of the resource. + @return Server */ func (a *DefaultApiService) GetServer(ctx context.Context, id int32) (Server, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Server ) @@ -5524,39 +5521,39 @@ func (a *DefaultApiService) GetServer(ctx context.Context, id int32) (Server, *h if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Server - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Get Signing Request - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + - @param id The ID of the resource. */ func (a *DefaultApiService) GetSigningRequest(ctx context.Context, serverId int32, siteId int32, id int32) (*http.Response, error) { var ( @@ -5564,7 +5561,6 @@ func (a *DefaultApiService) GetSigningRequest(ctx context.Context, serverId int3 localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -5610,10 +5606,9 @@ func (a *DefaultApiService) GetSigningRequest(ctx context.Context, serverId int3 return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -5621,19 +5616,21 @@ func (a *DefaultApiService) GetSigningRequest(ctx context.Context, serverId int3 return localVarHttpResponse, nil } + /* DefaultApiService Get Site - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + @return Site */ func (a *DefaultApiService) GetSite(ctx context.Context, serverId int32, siteId int32) (Site, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Site ) @@ -5681,43 +5678,45 @@ func (a *DefaultApiService) GetSite(ctx context.Context, serverId int32, siteId if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Site - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Get User - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return User */ func (a *DefaultApiService) GetUser(ctx context.Context) (User, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue User ) @@ -5763,46 +5762,48 @@ func (a *DefaultApiService) GetUser(ctx context.Context) (User, *http.Response, if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v User - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Get Webhook - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - * @param id The ID of the resource. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + - @param id The ID of the resource. + @return Webhook */ func (a *DefaultApiService) GetWebhook(ctx context.Context, serverId int32, siteId int32, id int32) (Webhook, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Webhook ) @@ -5851,45 +5852,47 @@ func (a *DefaultApiService) GetWebhook(ctx context.Context, serverId int32, site if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Webhook - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Get Webhooks - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + @return []Webhook */ func (a *DefaultApiService) GetWebhooks(ctx context.Context, serverId int32, siteId int32) ([]Webhook, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []Webhook ) @@ -5937,46 +5940,48 @@ func (a *DefaultApiService) GetWebhooks(ctx context.Context, serverId int32, sit if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v []Webhook - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Get Worker - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - * @param id The ID of the resource. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + - @param id The ID of the resource. + @return Worker */ func (a *DefaultApiService) GetWorker(ctx context.Context, serverId int32, siteId int32, id int32) (Worker, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Worker ) @@ -6025,38 +6030,38 @@ func (a *DefaultApiService) GetWorker(ctx context.Context, serverId int32, siteI if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Worker - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Install Blackfire - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param id The ID of the resource. */ func (a *DefaultApiService) InstallBlackfire(ctx context.Context, body BlackfireInstallBody, id int32) (*http.Response, error) { var ( @@ -6064,7 +6069,6 @@ func (a *DefaultApiService) InstallBlackfire(ctx context.Context, body Blackfire localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -6110,10 +6114,9 @@ func (a *DefaultApiService) InstallBlackfire(ctx context.Context, body Blackfire return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -6121,14 +6124,14 @@ func (a *DefaultApiService) InstallBlackfire(ctx context.Context, body Blackfire return localVarHttpResponse, nil } + /* DefaultApiService Install Certificate - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. - * @param siteId The ID of the site. - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + - @param siteId The ID of the site. + - @param id The ID of the resource. */ func (a *DefaultApiService) InstallCertificate(ctx context.Context, body IdInstallBody, serverId int32, siteId int32, id int32) (*http.Response, error) { var ( @@ -6136,7 +6139,6 @@ func (a *DefaultApiService) InstallCertificate(ctx context.Context, body IdInsta localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -6184,10 +6186,9 @@ func (a *DefaultApiService) InstallCertificate(ctx context.Context, body IdInsta return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -6195,13 +6196,13 @@ func (a *DefaultApiService) InstallCertificate(ctx context.Context, body IdInsta return localVarHttpResponse, nil } + /* DefaultApiService Install New Git Project - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) InstallNewGitProject(ctx context.Context, body SiteIdGitBody1, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -6209,7 +6210,6 @@ func (a *DefaultApiService) InstallNewGitProject(ctx context.Context, body SiteI localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -6256,10 +6256,9 @@ func (a *DefaultApiService) InstallNewGitProject(ctx context.Context, body SiteI return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -6267,11 +6266,11 @@ func (a *DefaultApiService) InstallNewGitProject(ctx context.Context, body SiteI return localVarHttpResponse, nil } + /* DefaultApiService Install PHP Version - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. */ func (a *DefaultApiService) InstallPHPVersion(ctx context.Context, serverId int32) (*http.Response, error) { var ( @@ -6279,7 +6278,6 @@ func (a *DefaultApiService) InstallPHPVersion(ctx context.Context, serverId int3 localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -6323,10 +6321,9 @@ func (a *DefaultApiService) InstallPHPVersion(ctx context.Context, serverId int3 return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -6334,12 +6331,12 @@ func (a *DefaultApiService) InstallPHPVersion(ctx context.Context, serverId int3 return localVarHttpResponse, nil } + /* DefaultApiService Install Papertrail - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param id The ID of the resource. */ func (a *DefaultApiService) InstallPapertrail(ctx context.Context, body PapertrailInstallBody, id int32) (*http.Response, error) { var ( @@ -6347,7 +6344,6 @@ func (a *DefaultApiService) InstallPapertrail(ctx context.Context, body Papertra localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -6393,10 +6389,9 @@ func (a *DefaultApiService) InstallPapertrail(ctx context.Context, body Papertra return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -6404,13 +6399,13 @@ func (a *DefaultApiService) InstallPapertrail(ctx context.Context, body Papertra return localVarHttpResponse, nil } + /* DefaultApiService Install phpMyAdmin - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) InstallPhpMyAdmin(ctx context.Context, body SiteIdPhpmyadminBody, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -6418,7 +6413,6 @@ func (a *DefaultApiService) InstallPhpMyAdmin(ctx context.Context, body SiteIdPh localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -6465,10 +6459,9 @@ func (a *DefaultApiService) InstallPhpMyAdmin(ctx context.Context, body SiteIdPh return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -6476,13 +6469,13 @@ func (a *DefaultApiService) InstallPhpMyAdmin(ctx context.Context, body SiteIdPh return localVarHttpResponse, nil } + /* DefaultApiService Install WordPress - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) InstallWordPress(ctx context.Context, body SiteIdWordpressBody, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -6490,7 +6483,6 @@ func (a *DefaultApiService) InstallWordPress(ctx context.Context, body SiteIdWor localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -6537,10 +6529,9 @@ func (a *DefaultApiService) InstallWordPress(ctx context.Context, body SiteIdWor return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -6548,11 +6539,11 @@ func (a *DefaultApiService) InstallWordPress(ctx context.Context, body SiteIdWor return localVarHttpResponse, nil } + /* DefaultApiService List Backup Configurations - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. */ func (a *DefaultApiService) ListBackupConfigurations(ctx context.Context, serverId int32) (*http.Response, error) { var ( @@ -6560,7 +6551,6 @@ func (a *DefaultApiService) ListBackupConfigurations(ctx context.Context, server localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -6604,10 +6594,9 @@ func (a *DefaultApiService) ListBackupConfigurations(ctx context.Context, server return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -6615,19 +6604,21 @@ func (a *DefaultApiService) ListBackupConfigurations(ctx context.Context, server return localVarHttpResponse, nil } + /* DefaultApiService List Certificates - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + @return []Certificate */ func (a *DefaultApiService) ListCertificates(ctx context.Context, serverId int32, siteId int32) ([]Certificate, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []Certificate ) @@ -6675,45 +6666,47 @@ func (a *DefaultApiService) ListCertificates(ctx context.Context, serverId int32 if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v []Certificate - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService List Command History - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + @return []Command */ func (a *DefaultApiService) ListCommandHistory(ctx context.Context, serverId int32, siteId int32) ([]Command, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []Command ) @@ -6761,44 +6754,46 @@ func (a *DefaultApiService) ListCommandHistory(ctx context.Context, serverId int if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v []Command - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService List Daemons - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + @return []Daemon */ func (a *DefaultApiService) ListDaemons(ctx context.Context, serverId int32) ([]Daemon, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []Daemon ) @@ -6845,44 +6840,46 @@ func (a *DefaultApiService) ListDaemons(ctx context.Context, serverId int32) ([] if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v []Daemon - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService List Database Users - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + @return []User */ func (a *DefaultApiService) ListDatabaseUsers(ctx context.Context, serverId int32) ([]User, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []User ) @@ -6929,44 +6926,46 @@ func (a *DefaultApiService) ListDatabaseUsers(ctx context.Context, serverId int3 if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v []User - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService List Databases - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + @return []Database */ func (a *DefaultApiService) ListDatabases(ctx context.Context, serverId int32) ([]Database, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []Database ) @@ -7013,45 +7012,47 @@ func (a *DefaultApiService) ListDatabases(ctx context.Context, serverId int32) ( if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v []Database - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService List Deployments - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + @return []Deployment */ func (a *DefaultApiService) ListDeployments(ctx context.Context, serverId int32, siteId int32) ([]Deployment, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []Deployment ) @@ -7099,44 +7100,46 @@ func (a *DefaultApiService) ListDeployments(ctx context.Context, serverId int32, if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v []Deployment - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService List Firewall Rules - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + @return []Rule */ func (a *DefaultApiService) ListFirewallRules(ctx context.Context, serverId int32) ([]Rule, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []Rule ) @@ -7183,44 +7186,46 @@ func (a *DefaultApiService) ListFirewallRules(ctx context.Context, serverId int3 if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v []Rule - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService List Jobs - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + @return []Job */ func (a *DefaultApiService) ListJobs(ctx context.Context, serverId int32) ([]Job, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []Job ) @@ -7267,44 +7272,46 @@ func (a *DefaultApiService) ListJobs(ctx context.Context, serverId int32) ([]Job if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v []Job - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService List Keys - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + @return []Key */ func (a *DefaultApiService) ListKeys(ctx context.Context, serverId int32) ([]Key, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []Key ) @@ -7351,37 +7358,37 @@ func (a *DefaultApiService) ListKeys(ctx context.Context, serverId int32) ([]Key if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v []Key - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService List Monitors - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. */ func (a *DefaultApiService) ListMonitors(ctx context.Context, serverId int32) (*http.Response, error) { var ( @@ -7389,7 +7396,6 @@ func (a *DefaultApiService) ListMonitors(ctx context.Context, serverId int32) (* localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -7433,10 +7439,9 @@ func (a *DefaultApiService) ListMonitors(ctx context.Context, serverId int32) (* return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -7444,18 +7449,20 @@ func (a *DefaultApiService) ListMonitors(ctx context.Context, serverId int32) (* return localVarHttpResponse, nil } + /* DefaultApiService List Nginx Templates - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + @return []Template */ func (a *DefaultApiService) ListNginxTemplates(ctx context.Context, serverId int32) ([]Template, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []Template ) @@ -7502,44 +7509,46 @@ func (a *DefaultApiService) ListNginxTemplates(ctx context.Context, serverId int if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v []Template - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService List PHP Versions - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + @return []InlineResponse2001 */ func (a *DefaultApiService) ListPHPVersions(ctx context.Context, serverId int32) ([]InlineResponse2001, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []InlineResponse2001 ) @@ -7586,43 +7595,45 @@ func (a *DefaultApiService) ListPHPVersions(ctx context.Context, serverId int32) if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v []InlineResponse2001 - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService List Recipes - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return []Recipe */ func (a *DefaultApiService) ListRecipes(ctx context.Context) ([]Recipe, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []Recipe ) @@ -7668,45 +7679,47 @@ func (a *DefaultApiService) ListRecipes(ctx context.Context) ([]Recipe, *http.Re if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v []Recipe - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService List Redirect Rules - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + @return []RedirectRule */ func (a *DefaultApiService) ListRedirectRules(ctx context.Context, serverId int32, siteId int32) ([]RedirectRule, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []RedirectRule ) @@ -7754,45 +7767,47 @@ func (a *DefaultApiService) ListRedirectRules(ctx context.Context, serverId int3 if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v []RedirectRule - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService List Security Rules - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + @return []SecurityRule */ func (a *DefaultApiService) ListSecurityRules(ctx context.Context, serverId int32, siteId int32) ([]SecurityRule, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []SecurityRule ) @@ -7840,43 +7855,45 @@ func (a *DefaultApiService) ListSecurityRules(ctx context.Context, serverId int3 if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v []SecurityRule - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService List Servers - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return []Server */ func (a *DefaultApiService) ListServers(ctx context.Context) ([]Server, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []Server ) @@ -7922,44 +7939,46 @@ func (a *DefaultApiService) ListServers(ctx context.Context) ([]Server, *http.Re if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v []Server - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService List Sites - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + @return []Site */ func (a *DefaultApiService) ListSites(ctx context.Context, serverId int32) ([]Site, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []Site ) @@ -8006,45 +8025,47 @@ func (a *DefaultApiService) ListSites(ctx context.Context, serverId int32) ([]Si if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v []Site - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService List Workers - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + @return []Worker */ func (a *DefaultApiService) ListWorkers(ctx context.Context, serverId int32, siteId int32) ([]Worker, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []Worker ) @@ -8092,45 +8113,47 @@ func (a *DefaultApiService) ListWorkers(ctx context.Context, serverId int32, sit if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v []Worker - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Load Balancing - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + @return []Node */ func (a *DefaultApiService) LoadBalancing(ctx context.Context, serverId int32, siteId int32) ([]Node, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Get") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue []Node ) @@ -8178,45 +8201,47 @@ func (a *DefaultApiService) LoadBalancing(ctx context.Context, serverId int32, s if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v []Node - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Obtain A LetsEncrypt Certificate - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + @return Certificate */ func (a *DefaultApiService) ObtainALetsEncryptCertificate(ctx context.Context, serverId int32, siteId int32) (Certificate, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Post") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Certificate ) @@ -8264,37 +8289,37 @@ func (a *DefaultApiService) ObtainALetsEncryptCertificate(ctx context.Context, s if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Certificate - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Reactivate revoked server - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param id The ID of the resource. */ func (a *DefaultApiService) ReactivateRevokedServer(ctx context.Context, id int32) (*http.Response, error) { var ( @@ -8302,7 +8327,6 @@ func (a *DefaultApiService) ReactivateRevokedServer(ctx context.Context, id int3 localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -8346,10 +8370,9 @@ func (a *DefaultApiService) ReactivateRevokedServer(ctx context.Context, id int3 return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -8357,11 +8380,11 @@ func (a *DefaultApiService) ReactivateRevokedServer(ctx context.Context, id int3 return localVarHttpResponse, nil } + /* DefaultApiService Reboot MySQL - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param id The ID of the resource. */ func (a *DefaultApiService) RebootMySQL(ctx context.Context, id int32) (*http.Response, error) { var ( @@ -8369,7 +8392,6 @@ func (a *DefaultApiService) RebootMySQL(ctx context.Context, id int32) (*http.Re localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -8413,10 +8435,9 @@ func (a *DefaultApiService) RebootMySQL(ctx context.Context, id int32) (*http.Re return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -8424,11 +8445,11 @@ func (a *DefaultApiService) RebootMySQL(ctx context.Context, id int32) (*http.Re return localVarHttpResponse, nil } + /* DefaultApiService Reboot Nginx - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param id The ID of the resource. */ func (a *DefaultApiService) RebootNginx(ctx context.Context, id int32) (*http.Response, error) { var ( @@ -8436,7 +8457,6 @@ func (a *DefaultApiService) RebootNginx(ctx context.Context, id int32) (*http.Re localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -8480,10 +8500,9 @@ func (a *DefaultApiService) RebootNginx(ctx context.Context, id int32) (*http.Re return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -8491,12 +8510,12 @@ func (a *DefaultApiService) RebootNginx(ctx context.Context, id int32) (*http.Re return localVarHttpResponse, nil } + /* DefaultApiService Reboot PHP - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param id The ID of the resource. */ func (a *DefaultApiService) RebootPHP(ctx context.Context, body PhpRebootBody, id int32) (*http.Response, error) { var ( @@ -8504,7 +8523,6 @@ func (a *DefaultApiService) RebootPHP(ctx context.Context, body PhpRebootBody, i localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -8550,10 +8568,9 @@ func (a *DefaultApiService) RebootPHP(ctx context.Context, body PhpRebootBody, i return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -8561,11 +8578,11 @@ func (a *DefaultApiService) RebootPHP(ctx context.Context, body PhpRebootBody, i return localVarHttpResponse, nil } + /* DefaultApiService Reboot Postgres - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param id The ID of the resource. */ func (a *DefaultApiService) RebootPostgres(ctx context.Context, id int32) (*http.Response, error) { var ( @@ -8573,7 +8590,6 @@ func (a *DefaultApiService) RebootPostgres(ctx context.Context, id int32) (*http localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -8617,10 +8633,9 @@ func (a *DefaultApiService) RebootPostgres(ctx context.Context, id int32) (*http return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -8628,11 +8643,11 @@ func (a *DefaultApiService) RebootPostgres(ctx context.Context, id int32) (*http return localVarHttpResponse, nil } + /* DefaultApiService Reboot Server - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param id The ID of the resource. */ func (a *DefaultApiService) RebootServer(ctx context.Context, id int32) (*http.Response, error) { var ( @@ -8640,7 +8655,6 @@ func (a *DefaultApiService) RebootServer(ctx context.Context, id int32) (*http.R localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -8684,10 +8698,9 @@ func (a *DefaultApiService) RebootServer(ctx context.Context, id int32) (*http.R return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -8695,11 +8708,11 @@ func (a *DefaultApiService) RebootServer(ctx context.Context, id int32) (*http.R return localVarHttpResponse, nil } + /* DefaultApiService Reconnect revoked server - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param id The ID of the resource. */ func (a *DefaultApiService) ReconnectRevokedServer(ctx context.Context, id int32) (*http.Response, error) { var ( @@ -8707,7 +8720,6 @@ func (a *DefaultApiService) ReconnectRevokedServer(ctx context.Context, id int32 localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -8751,10 +8763,9 @@ func (a *DefaultApiService) ReconnectRevokedServer(ctx context.Context, id int32 return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -8762,11 +8773,11 @@ func (a *DefaultApiService) ReconnectRevokedServer(ctx context.Context, id int32 return localVarHttpResponse, nil } + /* DefaultApiService Remove Blackfire - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param id The ID of the resource. */ func (a *DefaultApiService) RemoveBlackfire(ctx context.Context, id int32) (*http.Response, error) { var ( @@ -8774,7 +8785,6 @@ func (a *DefaultApiService) RemoveBlackfire(ctx context.Context, id int32) (*htt localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -8818,10 +8828,9 @@ func (a *DefaultApiService) RemoveBlackfire(ctx context.Context, id int32) (*htt return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -8829,11 +8838,11 @@ func (a *DefaultApiService) RemoveBlackfire(ctx context.Context, id int32) (*htt return localVarHttpResponse, nil } + /* DefaultApiService Remove Papertrail - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param id The ID of the resource. */ func (a *DefaultApiService) RemovePapertrail(ctx context.Context, id int32) (*http.Response, error) { var ( @@ -8841,7 +8850,6 @@ func (a *DefaultApiService) RemovePapertrail(ctx context.Context, id int32) (*ht localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -8885,10 +8893,9 @@ func (a *DefaultApiService) RemovePapertrail(ctx context.Context, id int32) (*ht return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -8896,12 +8903,12 @@ func (a *DefaultApiService) RemovePapertrail(ctx context.Context, id int32) (*ht return localVarHttpResponse, nil } + /* DefaultApiService Remove Project - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) RemoveProject(ctx context.Context, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -8909,7 +8916,6 @@ func (a *DefaultApiService) RemoveProject(ctx context.Context, serverId int32, s localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -8954,10 +8960,9 @@ func (a *DefaultApiService) RemoveProject(ctx context.Context, serverId int32, s return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -8965,12 +8970,12 @@ func (a *DefaultApiService) RemoveProject(ctx context.Context, serverId int32, s return localVarHttpResponse, nil } + /* DefaultApiService Reset Deployment Status - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) ResetDeploymentStatus(ctx context.Context, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -8978,7 +8983,6 @@ func (a *DefaultApiService) ResetDeploymentStatus(ctx context.Context, serverId localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -9023,10 +9027,9 @@ func (a *DefaultApiService) ResetDeploymentStatus(ctx context.Context, serverId return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -9034,12 +9037,12 @@ func (a *DefaultApiService) ResetDeploymentStatus(ctx context.Context, serverId return localVarHttpResponse, nil } + /* DefaultApiService Restart Daemon - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param daemonId The ID of the daemon. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param daemonId The ID of the daemon. */ func (a *DefaultApiService) RestartDaemon(ctx context.Context, serverId int32, daemonId int32) (*http.Response, error) { var ( @@ -9047,7 +9050,6 @@ func (a *DefaultApiService) RestartDaemon(ctx context.Context, serverId int32, d localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -9092,10 +9094,9 @@ func (a *DefaultApiService) RestartDaemon(ctx context.Context, serverId int32, d return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -9103,11 +9104,11 @@ func (a *DefaultApiService) RestartDaemon(ctx context.Context, serverId int32, d return localVarHttpResponse, nil } + /* DefaultApiService Restart Service - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param id The ID of the resource. */ func (a *DefaultApiService) RestartService(ctx context.Context, id int32) (*http.Response, error) { var ( @@ -9115,7 +9116,6 @@ func (a *DefaultApiService) RestartService(ctx context.Context, id int32) (*http localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -9159,10 +9159,9 @@ func (a *DefaultApiService) RestartService(ctx context.Context, id int32) (*http return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -9170,13 +9169,13 @@ func (a *DefaultApiService) RestartService(ctx context.Context, id int32) (*http return localVarHttpResponse, nil } + /* DefaultApiService Restart Worker - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. + - @param id The ID of the resource. */ func (a *DefaultApiService) RestartWorker(ctx context.Context, serverId int32, siteId int32, id int32) (*http.Response, error) { var ( @@ -9184,7 +9183,6 @@ func (a *DefaultApiService) RestartWorker(ctx context.Context, serverId int32, s localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -9230,10 +9228,9 @@ func (a *DefaultApiService) RestartWorker(ctx context.Context, serverId int32, s return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -9241,14 +9238,14 @@ func (a *DefaultApiService) RestartWorker(ctx context.Context, serverId int32, s return localVarHttpResponse, nil } + /* DefaultApiService Restore Backup - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. - * @param backupConfigurationId The ID of the backup configuration. - * @param backupId The ID of the backup. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + - @param backupConfigurationId The ID of the backup configuration. + - @param backupId The ID of the backup. */ func (a *DefaultApiService) RestoreBackup(ctx context.Context, body BackupsBackupIdBody, serverId int32, backupConfigurationId int32, backupId int32) (*http.Response, error) { var ( @@ -9256,7 +9253,6 @@ func (a *DefaultApiService) RestoreBackup(ctx context.Context, body BackupsBacku localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -9304,10 +9300,9 @@ func (a *DefaultApiService) RestoreBackup(ctx context.Context, body BackupsBacku return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -9315,11 +9310,11 @@ func (a *DefaultApiService) RestoreBackup(ctx context.Context, body BackupsBacku return localVarHttpResponse, nil } + /* DefaultApiService Revoke Forge access to server - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param id The ID of the resource. */ func (a *DefaultApiService) RevokeForgeAccessToServer(ctx context.Context, id int32) (*http.Response, error) { var ( @@ -9327,7 +9322,6 @@ func (a *DefaultApiService) RevokeForgeAccessToServer(ctx context.Context, id in localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -9371,10 +9365,9 @@ func (a *DefaultApiService) RevokeForgeAccessToServer(ctx context.Context, id in return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -9382,12 +9375,12 @@ func (a *DefaultApiService) RevokeForgeAccessToServer(ctx context.Context, id in return localVarHttpResponse, nil } + /* DefaultApiService Run Backup Configuration - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param backupConfigurationId The ID of the backup configuration. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param backupConfigurationId The ID of the backup configuration. */ func (a *DefaultApiService) RunBackupConfiguration(ctx context.Context, serverId int32, backupConfigurationId int32) (*http.Response, error) { var ( @@ -9395,7 +9388,6 @@ func (a *DefaultApiService) RunBackupConfiguration(ctx context.Context, serverId localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -9440,10 +9432,9 @@ func (a *DefaultApiService) RunBackupConfiguration(ctx context.Context, serverId return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -9451,12 +9442,12 @@ func (a *DefaultApiService) RunBackupConfiguration(ctx context.Context, serverId return localVarHttpResponse, nil } + /* DefaultApiService Run Recipe - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param recipeId The ID of the recipe. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param recipeId The ID of the recipe. */ func (a *DefaultApiService) RunRecipe(ctx context.Context, body RecipeIdRunBody, recipeId int32) (*http.Response, error) { var ( @@ -9464,7 +9455,6 @@ func (a *DefaultApiService) RunRecipe(ctx context.Context, body RecipeIdRunBody, localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -9510,10 +9500,9 @@ func (a *DefaultApiService) RunRecipe(ctx context.Context, body RecipeIdRunBody, return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -9521,12 +9510,12 @@ func (a *DefaultApiService) RunRecipe(ctx context.Context, body RecipeIdRunBody, return localVarHttpResponse, nil } + /* DefaultApiService Site Log - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) SiteLog(ctx context.Context, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -9534,7 +9523,6 @@ func (a *DefaultApiService) SiteLog(ctx context.Context, serverId int32, siteId localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -9579,10 +9567,9 @@ func (a *DefaultApiService) SiteLog(ctx context.Context, serverId int32, siteId return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -9590,11 +9577,11 @@ func (a *DefaultApiService) SiteLog(ctx context.Context, serverId int32, siteId return localVarHttpResponse, nil } + /* DefaultApiService Start Service - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param id The ID of the resource. */ func (a *DefaultApiService) StartService(ctx context.Context, id int32) (*http.Response, error) { var ( @@ -9602,7 +9589,6 @@ func (a *DefaultApiService) StartService(ctx context.Context, id int32) (*http.R localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -9646,10 +9632,9 @@ func (a *DefaultApiService) StartService(ctx context.Context, id int32) (*http.R return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -9657,11 +9642,11 @@ func (a *DefaultApiService) StartService(ctx context.Context, id int32) (*http.R return localVarHttpResponse, nil } + /* DefaultApiService Stop MySQL - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param id The ID of the resource. */ func (a *DefaultApiService) StopMySQL(ctx context.Context, id int32) (*http.Response, error) { var ( @@ -9669,7 +9654,6 @@ func (a *DefaultApiService) StopMySQL(ctx context.Context, id int32) (*http.Resp localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -9713,10 +9697,9 @@ func (a *DefaultApiService) StopMySQL(ctx context.Context, id int32) (*http.Resp return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -9724,11 +9707,11 @@ func (a *DefaultApiService) StopMySQL(ctx context.Context, id int32) (*http.Resp return localVarHttpResponse, nil } + /* DefaultApiService Stop Nginx - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param id The ID of the resource. */ func (a *DefaultApiService) StopNginx(ctx context.Context, id int32) (*http.Response, error) { var ( @@ -9736,7 +9719,6 @@ func (a *DefaultApiService) StopNginx(ctx context.Context, id int32) (*http.Resp localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -9780,10 +9762,9 @@ func (a *DefaultApiService) StopNginx(ctx context.Context, id int32) (*http.Resp return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -9791,11 +9772,11 @@ func (a *DefaultApiService) StopNginx(ctx context.Context, id int32) (*http.Resp return localVarHttpResponse, nil } + /* DefaultApiService Stop Postgres - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param id The ID of the resource. */ func (a *DefaultApiService) StopPostgres(ctx context.Context, id int32) (*http.Response, error) { var ( @@ -9803,7 +9784,6 @@ func (a *DefaultApiService) StopPostgres(ctx context.Context, id int32) (*http.R localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -9847,10 +9827,9 @@ func (a *DefaultApiService) StopPostgres(ctx context.Context, id int32) (*http.R return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -9858,11 +9837,11 @@ func (a *DefaultApiService) StopPostgres(ctx context.Context, id int32) (*http.R return localVarHttpResponse, nil } + /* DefaultApiService Stop Service - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param id The ID of the resource. */ func (a *DefaultApiService) StopService(ctx context.Context, id int32) (*http.Response, error) { var ( @@ -9870,7 +9849,6 @@ func (a *DefaultApiService) StopService(ctx context.Context, id int32) (*http.Re localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -9914,10 +9892,9 @@ func (a *DefaultApiService) StopService(ctx context.Context, id int32) (*http.Re return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -9925,11 +9902,11 @@ func (a *DefaultApiService) StopService(ctx context.Context, id int32) (*http.Re return localVarHttpResponse, nil } + /* DefaultApiService Sync Database - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. */ func (a *DefaultApiService) SyncDatabase(ctx context.Context, serverId int32) (*http.Response, error) { var ( @@ -9937,7 +9914,6 @@ func (a *DefaultApiService) SyncDatabase(ctx context.Context, serverId int32) (* localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -9981,10 +9957,9 @@ func (a *DefaultApiService) SyncDatabase(ctx context.Context, serverId int32) (* return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -9992,11 +9967,11 @@ func (a *DefaultApiService) SyncDatabase(ctx context.Context, serverId int32) (* return localVarHttpResponse, nil } + /* DefaultApiService Test Nginx - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id The ID of the resource. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param id The ID of the resource. */ func (a *DefaultApiService) TestNginx(ctx context.Context, id int32) (*http.Response, error) { var ( @@ -10004,7 +9979,6 @@ func (a *DefaultApiService) TestNginx(ctx context.Context, id int32) (*http.Resp localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -10048,10 +10022,9 @@ func (a *DefaultApiService) TestNginx(ctx context.Context, id int32) (*http.Resp return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -10059,12 +10032,12 @@ func (a *DefaultApiService) TestNginx(ctx context.Context, id int32) (*http.Resp return localVarHttpResponse, nil } + /* DefaultApiService Uninstall phpMyAdmin - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) UninstallPhpMyAdmin(ctx context.Context, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -10072,7 +10045,6 @@ func (a *DefaultApiService) UninstallPhpMyAdmin(ctx context.Context, serverId in localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -10117,10 +10089,9 @@ func (a *DefaultApiService) UninstallPhpMyAdmin(ctx context.Context, serverId in return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -10128,12 +10099,12 @@ func (a *DefaultApiService) UninstallPhpMyAdmin(ctx context.Context, serverId in return localVarHttpResponse, nil } + /* DefaultApiService Uninstall WordPress - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) UninstallWordPress(ctx context.Context, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -10141,7 +10112,6 @@ func (a *DefaultApiService) UninstallWordPress(ctx context.Context, serverId int localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -10186,10 +10156,9 @@ func (a *DefaultApiService) UninstallWordPress(ctx context.Context, serverId int return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -10197,20 +10166,22 @@ func (a *DefaultApiService) UninstallWordPress(ctx context.Context, serverId int return localVarHttpResponse, nil } + /* DefaultApiService Update Backup Configuration - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. - * @param backupConfigurationId The ID of the backup configuration. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + - @param backupConfigurationId The ID of the backup configuration. + @return Backup */ func (a *DefaultApiService) UpdateBackupConfiguration(ctx context.Context, body BackupconfigsBackupConfigurationIdBody, serverId int32, backupConfigurationId int32) (Backup, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Put") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Backup ) @@ -10260,38 +10231,38 @@ func (a *DefaultApiService) UpdateBackupConfiguration(ctx context.Context, body if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Backup - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Update Database Password - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. */ func (a *DefaultApiService) UpdateDatabasePassword(ctx context.Context, body ServerIdDatabasepasswordBody, serverId int32) (*http.Response, error) { var ( @@ -10299,7 +10270,6 @@ func (a *DefaultApiService) UpdateDatabasePassword(ctx context.Context, body Ser localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -10345,10 +10315,9 @@ func (a *DefaultApiService) UpdateDatabasePassword(ctx context.Context, body Ser return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -10356,20 +10325,22 @@ func (a *DefaultApiService) UpdateDatabasePassword(ctx context.Context, body Ser return localVarHttpResponse, nil } + /* DefaultApiService Update Database User - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. - * @param userId The ID of the user. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + - @param userId The ID of the user. + @return User */ func (a *DefaultApiService) UpdateDatabaseUser(ctx context.Context, body DatabaseusersUserIdBody, serverId int32, userId int32) (User, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Put") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue User ) @@ -10419,39 +10390,39 @@ func (a *DefaultApiService) UpdateDatabaseUser(ctx context.Context, body Databas if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v User - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Update Deployment Script - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) UpdateDeploymentScript(ctx context.Context, body DeploymentScriptBody, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -10459,7 +10430,6 @@ func (a *DefaultApiService) UpdateDeploymentScript(ctx context.Context, body Dep localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -10506,10 +10476,9 @@ func (a *DefaultApiService) UpdateDeploymentScript(ctx context.Context, body Dep return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -10517,13 +10486,13 @@ func (a *DefaultApiService) UpdateDeploymentScript(ctx context.Context, body Dep return localVarHttpResponse, nil } + /* DefaultApiService Update .env File - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) UpdateEnvFile(ctx context.Context, body SiteIdEnvBody, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -10531,7 +10500,6 @@ func (a *DefaultApiService) UpdateEnvFile(ctx context.Context, body SiteIdEnvBod localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -10578,10 +10546,9 @@ func (a *DefaultApiService) UpdateEnvFile(ctx context.Context, body SiteIdEnvBod return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -10589,13 +10556,13 @@ func (a *DefaultApiService) UpdateEnvFile(ctx context.Context, body SiteIdEnvBod return localVarHttpResponse, nil } + /* DefaultApiService Update Load Balancing - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) UpdateLoadBalancing(ctx context.Context, body SiteIdBalancingBody, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -10603,7 +10570,6 @@ func (a *DefaultApiService) UpdateLoadBalancing(ctx context.Context, body SiteId localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -10650,10 +10616,9 @@ func (a *DefaultApiService) UpdateLoadBalancing(ctx context.Context, body SiteId return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -10661,13 +10626,13 @@ func (a *DefaultApiService) UpdateLoadBalancing(ctx context.Context, body SiteId return localVarHttpResponse, nil } + /* DefaultApiService Update Nginx Configuration - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) UpdateNginxConfiguration(ctx context.Context, body SiteIdNginxBody, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -10675,7 +10640,6 @@ func (a *DefaultApiService) UpdateNginxConfiguration(ctx context.Context, body S localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -10722,10 +10686,9 @@ func (a *DefaultApiService) UpdateNginxConfiguration(ctx context.Context, body S return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -10733,19 +10696,21 @@ func (a *DefaultApiService) UpdateNginxConfiguration(ctx context.Context, body S return localVarHttpResponse, nil } + /* DefaultApiService Update Nginx Template - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - * @param templateId The ID of the template. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. + - @param templateId The ID of the template. + @return Template */ func (a *DefaultApiService) UpdateNginxTemplate(ctx context.Context, serverId int32, templateId int32) (Template, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Put") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Template ) @@ -10793,45 +10758,47 @@ func (a *DefaultApiService) UpdateNginxTemplate(ctx context.Context, serverId in if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Template - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Update Recipe - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param recipeId The ID of the recipe. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param recipeId The ID of the recipe. + @return Recipe */ func (a *DefaultApiService) UpdateRecipe(ctx context.Context, body RecipesRecipeIdBody, recipeId int32) (Recipe, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Put") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Recipe ) @@ -10880,39 +10847,39 @@ func (a *DefaultApiService) UpdateRecipe(ctx context.Context, body RecipesRecipe if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Recipe - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Update Repository - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. - * @param siteId The ID of the site. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + - @param siteId The ID of the site. */ func (a *DefaultApiService) UpdateRepository(ctx context.Context, body SiteIdGitBody, serverId int32, siteId int32) (*http.Response, error) { var ( @@ -10920,7 +10887,6 @@ func (a *DefaultApiService) UpdateRepository(ctx context.Context, body SiteIdGit localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -10967,10 +10933,9 @@ func (a *DefaultApiService) UpdateRepository(ctx context.Context, body SiteIdGit return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr @@ -10978,19 +10943,21 @@ func (a *DefaultApiService) UpdateRepository(ctx context.Context, body SiteIdGit return localVarHttpResponse, nil } + /* DefaultApiService Update Server - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param id The ID of the resource. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param id The ID of the resource. + @return Server */ func (a *DefaultApiService) UpdateServer(ctx context.Context, body ServersIdBody, id int32) (Server, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Put") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Server ) @@ -11039,46 +11006,48 @@ func (a *DefaultApiService) UpdateServer(ctx context.Context, body ServersIdBody if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Server - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Update Site - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - * @param serverId The ID of the server. - * @param siteId The ID of the site. + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param body + - @param serverId The ID of the server. + - @param siteId The ID of the site. + @return Site */ func (a *DefaultApiService) UpdateSite(ctx context.Context, body SitesSiteIdBody, serverId int32, siteId int32) (Site, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Put") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte + localVarHttpMethod = strings.ToUpper("Put") + localVarPostBody interface{} + localVarFileName string + localVarFileBytes []byte localVarReturnValue Site ) @@ -11128,37 +11097,37 @@ func (a *DefaultApiService) UpdateSite(ctx context.Context, body SitesSiteIdBody if localVarHttpResponse.StatusCode < 300 { // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err == nil { return localVarReturnValue, localVarHttpResponse, err } } if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } if localVarHttpResponse.StatusCode == 200 { var v Site - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, newErr } return localVarReturnValue, localVarHttpResponse, nil } + /* DefaultApiService Upgrade PHP Patch Version - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param serverId The ID of the server. - + - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + - @param serverId The ID of the server. */ func (a *DefaultApiService) UpgradePHPPatchVersion(ctx context.Context, serverId int32) (*http.Response, error) { var ( @@ -11166,7 +11135,6 @@ func (a *DefaultApiService) UpgradePHPPatchVersion(ctx context.Context, serverId localVarPostBody interface{} localVarFileName string localVarFileBytes []byte - ) // create path and map variables @@ -11210,10 +11178,9 @@ func (a *DefaultApiService) UpgradePHPPatchVersion(ctx context.Context, serverId return localVarHttpResponse, err } - if localVarHttpResponse.StatusCode >= 300 { newErr := GenericSwaggerError{ - body: localVarBody, + body: localVarBody, error: localVarHttpResponse.Status, } return localVarHttpResponse, newErr diff --git a/client.go b/client.go index 2ee76e3..c3d8679 100644 --- a/client.go +++ b/client.go @@ -3,7 +3,7 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge @@ -36,7 +36,7 @@ var ( xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)") ) -// APIClient manages communication with the Laravel Forge API v1.0.0 +// APIClient manages communication with the Laravel Forge API v0.0.2 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -309,17 +309,17 @@ func (c *APIClient) prepareRequest( } func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { - if strings.Contains(contentType, "application/xml") { - if err = xml.Unmarshal(b, v); err != nil { - return err - } - return nil - } else if strings.Contains(contentType, "application/json") { - if err = json.Unmarshal(b, v); err != nil { - return err - } - return nil + if strings.Contains(contentType, "application/xml") { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } else if strings.Contains(contentType, "application/json") { + if err = json.Unmarshal(b, v); err != nil { + return err } + return nil + } return errors.New("undefined response type") } diff --git a/configuration.go b/configuration.go index 0b14be1..899e84c 100644 --- a/configuration.go +++ b/configuration.go @@ -3,7 +3,7 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge @@ -61,7 +61,7 @@ func NewConfiguration() *Configuration { cfg := &Configuration{ BasePath: "https://forge.laravel.com/api/v1", DefaultHeader: make(map[string]string), - UserAgent: "Swagger-Codegen/1.0.0/go", + UserAgent: "Swagger-Codegen/0.0.2/go", } return cfg } diff --git a/model_backup.go b/model_backup.go index fbad44f..c6bd62c 100644 --- a/model_backup.go +++ b/model_backup.go @@ -3,19 +3,19 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type Backup struct { - Id int32 `json:"id,omitempty"` - DayOfWeek string `json:"day_of_week,omitempty"` - Time string `json:"time,omitempty"` - Provider string `json:"provider,omitempty"` - ProviderName string `json:"provider_name,omitempty"` - Status string `json:"status,omitempty"` - Databases []string `json:"databases,omitempty"` - Backups []int32 `json:"backups,omitempty"` - LastBackupTime string `json:"last_backup_time,omitempty"` + Id int32 `json:"id,omitempty"` + DayOfWeek string `json:"day_of_week,omitempty"` + Time string `json:"time,omitempty"` + Provider string `json:"provider,omitempty"` + ProviderName string `json:"provider_name,omitempty"` + Status string `json:"status,omitempty"` + Databases []string `json:"databases,omitempty"` + Backups []int32 `json:"backups,omitempty"` + LastBackupTime string `json:"last_backup_time,omitempty"` } diff --git a/model_backupconfigs_backup_configuration_id_body.go b/model_backupconfigs_backup_configuration_id_body.go index b40cd9d..1e9d4cc 100644 --- a/model_backupconfigs_backup_configuration_id_body.go +++ b/model_backupconfigs_backup_configuration_id_body.go @@ -3,17 +3,17 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type BackupconfigsBackupConfigurationIdBody struct { - Provider string `json:"provider,omitempty"` + Provider string `json:"provider,omitempty"` Credentials string `json:"credentials,omitempty"` - Frequency string `json:"frequency,omitempty"` - Directory string `json:"directory,omitempty"` - Email string `json:"email,omitempty"` - Retention string `json:"retention,omitempty"` - Databases string `json:"databases,omitempty"` + Frequency string `json:"frequency,omitempty"` + Directory string `json:"directory,omitempty"` + Email string `json:"email,omitempty"` + Retention string `json:"retention,omitempty"` + Databases string `json:"databases,omitempty"` } diff --git a/model_backups_backup_id_body.go b/model_backups_backup_id_body.go index 4e518b3..04ec883 100644 --- a/model_backups_backup_id_body.go +++ b/model_backups_backup_id_body.go @@ -3,7 +3,7 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge diff --git a/model_blackfire_install_body.go b/model_blackfire_install_body.go index 3d40be4..a671b6c 100644 --- a/model_blackfire_install_body.go +++ b/model_blackfire_install_body.go @@ -3,12 +3,12 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type BlackfireInstallBody struct { - ServerId string `json:"server_id,omitempty"` + ServerId string `json:"server_id,omitempty"` ServerToken string `json:"server_token,omitempty"` } diff --git a/model_certificate.go b/model_certificate.go index 9d70781..b105a73 100644 --- a/model_certificate.go +++ b/model_certificate.go @@ -3,16 +3,16 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type Certificate struct { - Domain string `json:"domain,omitempty"` + Domain string `json:"domain,omitempty"` RequestStatus string `json:"request_status,omitempty"` - CreatedAt string `json:"created_at,omitempty"` - Id int32 `json:"id,omitempty"` - Existing string `json:"existing,omitempty"` - Active string `json:"active,omitempty"` + CreatedAt string `json:"created_at,omitempty"` + Id int32 `json:"id,omitempty"` + Existing string `json:"existing,omitempty"` + Active string `json:"active,omitempty"` } diff --git a/model_command.go b/model_command.go index 9ecee9a..ff26f5a 100644 --- a/model_command.go +++ b/model_command.go @@ -3,21 +3,21 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type Command struct { - Id int32 `json:"id,omitempty"` - ServerId int32 `json:"server_id,omitempty"` - SiteId int32 `json:"site_id,omitempty"` - UserId int32 `json:"user_id,omitempty"` - EventId int32 `json:"event_id,omitempty"` - Command string `json:"command,omitempty"` - Status string `json:"status,omitempty"` - CreatedAt string `json:"created_at,omitempty"` - UpdatedAt string `json:"updated_at,omitempty"` + Id int32 `json:"id,omitempty"` + ServerId int32 `json:"server_id,omitempty"` + SiteId int32 `json:"site_id,omitempty"` + UserId int32 `json:"user_id,omitempty"` + EventId int32 `json:"event_id,omitempty"` + Command string `json:"command,omitempty"` + Status string `json:"status,omitempty"` + CreatedAt string `json:"created_at,omitempty"` + UpdatedAt string `json:"updated_at,omitempty"` ProfilePhotoUrl string `json:"profile_photo_url,omitempty"` - UserName string `json:"user_name,omitempty"` + UserName string `json:"user_name,omitempty"` } diff --git a/model_credential.go b/model_credential.go index 8538cf7..1510d75 100644 --- a/model_credential.go +++ b/model_credential.go @@ -3,13 +3,13 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type Credential struct { - Id int32 `json:"id,omitempty"` + Id int32 `json:"id,omitempty"` Type_ string `json:"type,omitempty"` - Name string `json:"name,omitempty"` + Name string `json:"name,omitempty"` } diff --git a/model_daemon.go b/model_daemon.go index 3f66f11..d1e7f13 100644 --- a/model_daemon.go +++ b/model_daemon.go @@ -3,20 +3,20 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type Daemon struct { - Id int32 `json:"id,omitempty"` - Command string `json:"command,omitempty"` - User string `json:"user,omitempty"` - Directory string `json:"directory,omitempty"` - Processes int32 `json:"processes,omitempty"` - Startsecs int32 `json:"startsecs,omitempty"` - Stopwaitsecs int32 `json:"stopwaitsecs,omitempty"` - Stopsignal string `json:"stopsignal,omitempty"` - Status string `json:"status,omitempty"` - CreatedAt string `json:"created_at,omitempty"` + Id int32 `json:"id,omitempty"` + Command string `json:"command,omitempty"` + User string `json:"user,omitempty"` + Directory string `json:"directory,omitempty"` + Processes int32 `json:"processes,omitempty"` + Startsecs int32 `json:"startsecs,omitempty"` + Stopwaitsecs int32 `json:"stopwaitsecs,omitempty"` + Stopsignal string `json:"stopsignal,omitempty"` + Status string `json:"status,omitempty"` + CreatedAt string `json:"created_at,omitempty"` } diff --git a/model_database.go b/model_database.go index b10badf..419285c 100644 --- a/model_database.go +++ b/model_database.go @@ -3,14 +3,14 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type Database struct { - Id int32 `json:"id,omitempty"` - Name string `json:"name,omitempty"` - Status string `json:"status,omitempty"` + Id int32 `json:"id,omitempty"` + Name string `json:"name,omitempty"` + Status string `json:"status,omitempty"` CreatedAt string `json:"created_at,omitempty"` } diff --git a/model_databaseusers_user_id_body.go b/model_databaseusers_user_id_body.go index 7679d07..256eb36 100644 --- a/model_databaseusers_user_id_body.go +++ b/model_databaseusers_user_id_body.go @@ -3,7 +3,7 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge diff --git a/model_deployment.go b/model_deployment.go index ea96ec3..277bb55 100644 --- a/model_deployment.go +++ b/model_deployment.go @@ -3,21 +3,21 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type Deployment struct { - Id int32 `json:"id,omitempty"` - ServerId int32 `json:"server_id,omitempty"` - SiteId int32 `json:"site_id,omitempty"` - Type_ int32 `json:"type,omitempty"` - CommitHash string `json:"commit_hash,omitempty"` - CommitAuthor string `json:"commit_author,omitempty"` - CommitMessage string `json:"commit_message,omitempty"` - StartedAt string `json:"started_at,omitempty"` - EndedAt string `json:"ended_at,omitempty"` - Status string `json:"status,omitempty"` + Id int32 `json:"id,omitempty"` + ServerId int32 `json:"server_id,omitempty"` + SiteId int32 `json:"site_id,omitempty"` + Type_ int32 `json:"type,omitempty"` + CommitHash string `json:"commit_hash,omitempty"` + CommitAuthor string `json:"commit_author,omitempty"` + CommitMessage string `json:"commit_message,omitempty"` + StartedAt string `json:"started_at,omitempty"` + EndedAt string `json:"ended_at,omitempty"` + Status string `json:"status,omitempty"` DisplayableType string `json:"displayable_type,omitempty"` } diff --git a/model_deployment_script_body.go b/model_deployment_script_body.go index 83f27b5..9fe13b9 100644 --- a/model_deployment_script_body.go +++ b/model_deployment_script_body.go @@ -3,11 +3,11 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type DeploymentScriptBody struct { - string `json:",omitempty"` + string `json:",omitempty"` } diff --git a/model_id_install_body.go b/model_id_install_body.go index 9758f5f..35f8278 100644 --- a/model_id_install_body.go +++ b/model_id_install_body.go @@ -3,12 +3,12 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type IdInstallBody struct { - Certificate string `json:"certificate,omitempty"` + Certificate string `json:"certificate,omitempty"` AddIntermediates string `json:"add_intermediates,omitempty"` } diff --git a/model_inline_response_200.go b/model_inline_response_200.go index 88c98c0..77ef28d 100644 --- a/model_inline_response_200.go +++ b/model_inline_response_200.go @@ -3,15 +3,15 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type InlineResponse200 struct { - ServerId int32 `json:"server_id,omitempty"` - RanAs string `json:"ran_as,omitempty"` - ServerName string `json:"server_name,omitempty"` + ServerId int32 `json:"server_id,omitempty"` + RanAs string `json:"ran_as,omitempty"` + ServerName string `json:"server_name,omitempty"` Description string `json:"description,omitempty"` - CreatedAt string `json:"created_at,omitempty"` + CreatedAt string `json:"created_at,omitempty"` } diff --git a/model_inline_response_200_1.go b/model_inline_response_200_1.go index 9f1ae03..c497ddc 100644 --- a/model_inline_response_200_1.go +++ b/model_inline_response_200_1.go @@ -3,17 +3,17 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type InlineResponse2001 struct { - Id int32 `json:"id,omitempty"` - Version string `json:"version,omitempty"` - Status string `json:"status,omitempty"` + Id int32 `json:"id,omitempty"` + Version string `json:"version,omitempty"` + Status string `json:"status,omitempty"` DisplayableVersion string `json:"displayable_version,omitempty"` - BinaryName string `json:"binary_name,omitempty"` - UsedAsDefault string `json:"used_as_default,omitempty"` - UsedOnCli string `json:"used_on_cli,omitempty"` + BinaryName string `json:"binary_name,omitempty"` + UsedAsDefault string `json:"used_as_default,omitempty"` + UsedOnCli string `json:"used_on_cli,omitempty"` } diff --git a/model_job.go b/model_job.go index bad52ce..96a7ae8 100644 --- a/model_job.go +++ b/model_job.go @@ -3,17 +3,17 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type Job struct { - Id int32 `json:"id,omitempty"` - Command string `json:"command,omitempty"` - User string `json:"user,omitempty"` + Id int32 `json:"id,omitempty"` + Command string `json:"command,omitempty"` + User string `json:"user,omitempty"` Frequency string `json:"frequency,omitempty"` - Cron string `json:"cron,omitempty"` - Status string `json:"status,omitempty"` + Cron string `json:"cron,omitempty"` + Status string `json:"status,omitempty"` CreatedAt string `json:"created_at,omitempty"` } diff --git a/model_key.go b/model_key.go index 4f7513d..40235af 100644 --- a/model_key.go +++ b/model_key.go @@ -3,15 +3,15 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type Key struct { - Id int32 `json:"id,omitempty"` - Name string `json:"name,omitempty"` - Username string `json:"username,omitempty"` - Status string `json:"status,omitempty"` + Id int32 `json:"id,omitempty"` + Name string `json:"name,omitempty"` + Username string `json:"username,omitempty"` + Status string `json:"status,omitempty"` CreatedAt string `json:"created_at,omitempty"` } diff --git a/model_monitor.go b/model_monitor.go index 5ca04e1..5839b93 100644 --- a/model_monitor.go +++ b/model_monitor.go @@ -3,18 +3,18 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type Monitor struct { - Id int32 `json:"id,omitempty"` - Status string `json:"status,omitempty"` - Type_ string `json:"type,omitempty"` - Operator string `json:"operator,omitempty"` - Threshold int32 `json:"threshold,omitempty"` - Minutes int32 `json:"minutes,omitempty"` - State string `json:"state,omitempty"` + Id int32 `json:"id,omitempty"` + Status string `json:"status,omitempty"` + Type_ string `json:"type,omitempty"` + Operator string `json:"operator,omitempty"` + Threshold int32 `json:"threshold,omitempty"` + Minutes int32 `json:"minutes,omitempty"` + State string `json:"state,omitempty"` StateChangedAt string `json:"state_changed_at,omitempty"` } diff --git a/model_nginx_templates_body.go b/model_nginx_templates_body.go index 39e5e0a..3f191d7 100644 --- a/model_nginx_templates_body.go +++ b/model_nginx_templates_body.go @@ -3,12 +3,12 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type NginxTemplatesBody struct { - Name string `json:"name,omitempty"` + Name string `json:"name,omitempty"` Content string `json:"content,omitempty"` } diff --git a/model_node.go b/model_node.go index bbd5163..523a995 100644 --- a/model_node.go +++ b/model_node.go @@ -3,15 +3,15 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type Node struct { - ServerId int32 `json:"server_id,omitempty"` - Weight int32 `json:"weight,omitempty"` - Down string `json:"down,omitempty"` - Backup string `json:"backup,omitempty"` - Port int32 `json:"port,omitempty"` + ServerId int32 `json:"server_id,omitempty"` + Weight int32 `json:"weight,omitempty"` + Down string `json:"down,omitempty"` + Backup string `json:"backup,omitempty"` + Port int32 `json:"port,omitempty"` } diff --git a/model_papertrail_install_body.go b/model_papertrail_install_body.go index 76bfe33..37fbe5b 100644 --- a/model_papertrail_install_body.go +++ b/model_papertrail_install_body.go @@ -3,7 +3,7 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge diff --git a/model_php_reboot_body.go b/model_php_reboot_body.go index 799677a..c43c63e 100644 --- a/model_php_reboot_body.go +++ b/model_php_reboot_body.go @@ -3,7 +3,7 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge diff --git a/model_recipe.go b/model_recipe.go index 36fe164..71053e4 100644 --- a/model_recipe.go +++ b/model_recipe.go @@ -3,15 +3,15 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type Recipe struct { - Id int32 `json:"id,omitempty"` - Name string `json:"name,omitempty"` - User string `json:"user,omitempty"` - Script string `json:"script,omitempty"` + Id int32 `json:"id,omitempty"` + Name string `json:"name,omitempty"` + User string `json:"user,omitempty"` + Script string `json:"script,omitempty"` CreatedAt string `json:"created_at,omitempty"` } diff --git a/model_recipe_id_run_body.go b/model_recipe_id_run_body.go index b0afb7e..b7485ab 100644 --- a/model_recipe_id_run_body.go +++ b/model_recipe_id_run_body.go @@ -3,12 +3,12 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type RecipeIdRunBody struct { Servers string `json:"servers,omitempty"` - Notify string `json:"notify,omitempty"` + Notify string `json:"notify,omitempty"` } diff --git a/model_recipes_body.go b/model_recipes_body.go index 5d1d877..a57c37d 100644 --- a/model_recipes_body.go +++ b/model_recipes_body.go @@ -3,13 +3,13 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type RecipesBody struct { - Name string `json:"name,omitempty"` - User string `json:"user,omitempty"` + Name string `json:"name,omitempty"` + User string `json:"user,omitempty"` Script string `json:"script,omitempty"` } diff --git a/model_recipes_recipe_id_body.go b/model_recipes_recipe_id_body.go index 6bdbc25..f78792f 100644 --- a/model_recipes_recipe_id_body.go +++ b/model_recipes_recipe_id_body.go @@ -3,13 +3,13 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type RecipesRecipeIdBody struct { - Name string `json:"name,omitempty"` - User string `json:"user,omitempty"` + Name string `json:"name,omitempty"` + User string `json:"user,omitempty"` Script string `json:"script,omitempty"` } diff --git a/model_redirect_rule.go b/model_redirect_rule.go index 89e4bd8..a0a22b1 100644 --- a/model_redirect_rule.go +++ b/model_redirect_rule.go @@ -3,15 +3,15 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type RedirectRule struct { - Id int32 `json:"id,omitempty"` - From string `json:"from,omitempty"` - To string `json:"to,omitempty"` - Type_ string `json:"type,omitempty"` + Id int32 `json:"id,omitempty"` + From string `json:"from,omitempty"` + To string `json:"to,omitempty"` + Type_ string `json:"type,omitempty"` CreatedAt string `json:"created_at,omitempty"` } diff --git a/model_regions.go b/model_regions.go index 01e6f8a..92b2b95 100644 --- a/model_regions.go +++ b/model_regions.go @@ -3,14 +3,14 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type Regions struct { Ocean2 []string `json:"ocean2,omitempty"` - Linode []int32 `json:"linode,omitempty"` - Vultr []int32 `json:"vultr,omitempty"` - Aws []int32 `json:"aws,omitempty"` + Linode []int32 `json:"linode,omitempty"` + Vultr []int32 `json:"vultr,omitempty"` + Aws []int32 `json:"aws,omitempty"` } diff --git a/model_rule.go b/model_rule.go index 9a88b87..dd6d955 100644 --- a/model_rule.go +++ b/model_rule.go @@ -3,17 +3,17 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type Rule struct { - Id int32 `json:"id,omitempty"` - Name string `json:"name,omitempty"` - Port int32 `json:"port,omitempty"` - Type_ string `json:"type,omitempty"` + Id int32 `json:"id,omitempty"` + Name string `json:"name,omitempty"` + Port int32 `json:"port,omitempty"` + Type_ string `json:"type,omitempty"` IpAddress string `json:"ip_address,omitempty"` - Status string `json:"status,omitempty"` + Status string `json:"status,omitempty"` CreatedAt string `json:"created_at,omitempty"` } diff --git a/model_security_rule.go b/model_security_rule.go index be41d43..439af79 100644 --- a/model_security_rule.go +++ b/model_security_rule.go @@ -3,15 +3,15 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type SecurityRule struct { - Id int32 `json:"id,omitempty"` - Name string `json:"name,omitempty"` - Path string `json:"path,omitempty"` - CreatedAt string `json:"created_at,omitempty"` + Id int32 `json:"id,omitempty"` + Name string `json:"name,omitempty"` + Path string `json:"path,omitempty"` + CreatedAt string `json:"created_at,omitempty"` Credentials []string `json:"credentials,omitempty"` } diff --git a/model_server.go b/model_server.go index 1ddd8b0..abee254 100644 --- a/model_server.go +++ b/model_server.go @@ -3,28 +3,28 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type Server struct { - Id int32 `json:"id,omitempty"` - CredentialId int32 `json:"credential_id,omitempty"` - Name string `json:"name,omitempty"` - Size string `json:"size,omitempty"` - Region string `json:"region,omitempty"` - PhpVersion string `json:"php_version,omitempty"` - PhpCliVersion string `json:"php_cli_version,omitempty"` - OpcacheStatus string `json:"opcache_status,omitempty"` - DatabaseType string `json:"database_type,omitempty"` - IpAddress string `json:"ip_address,omitempty"` - PrivateIpAddress string `json:"private_ip_address,omitempty"` - BlackfireStatus string `json:"blackfire_status,omitempty"` - PapertrailStatus string `json:"papertrail_status,omitempty"` - Revoked string `json:"revoked,omitempty"` - CreatedAt string `json:"created_at,omitempty"` - IsReady string `json:"is_ready,omitempty"` - Network []int32 `json:"network,omitempty"` - Tags []string `json:"tags,omitempty"` + Id int32 `json:"id,omitempty"` + CredentialId int32 `json:"credential_id,omitempty"` + Name string `json:"name,omitempty"` + Size string `json:"size,omitempty"` + Region string `json:"region,omitempty"` + PhpVersion string `json:"php_version,omitempty"` + PhpCliVersion string `json:"php_cli_version,omitempty"` + OpcacheStatus string `json:"opcache_status,omitempty"` + DatabaseType string `json:"database_type,omitempty"` + IpAddress string `json:"ip_address,omitempty"` + PrivateIpAddress string `json:"private_ip_address,omitempty"` + BlackfireStatus string `json:"blackfire_status,omitempty"` + PapertrailStatus string `json:"papertrail_status,omitempty"` + Revoked string `json:"revoked,omitempty"` + CreatedAt string `json:"created_at,omitempty"` + IsReady string `json:"is_ready,omitempty"` + Network []int32 `json:"network,omitempty"` + Tags []string `json:"tags,omitempty"` } diff --git a/model_server_id_backupconfigs_body.go b/model_server_id_backupconfigs_body.go index 20f2d1b..e5b6152 100644 --- a/model_server_id_backupconfigs_body.go +++ b/model_server_id_backupconfigs_body.go @@ -3,17 +3,17 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type ServerIdBackupconfigsBody struct { - Provider string `json:"provider,omitempty"` + Provider string `json:"provider,omitempty"` Credentials string `json:"credentials,omitempty"` - Frequency string `json:"frequency,omitempty"` - Directory string `json:"directory,omitempty"` - Email string `json:"email,omitempty"` - Retention string `json:"retention,omitempty"` - Databases string `json:"databases,omitempty"` + Frequency string `json:"frequency,omitempty"` + Directory string `json:"directory,omitempty"` + Email string `json:"email,omitempty"` + Retention string `json:"retention,omitempty"` + Databases string `json:"databases,omitempty"` } diff --git a/model_server_id_daemons_body.go b/model_server_id_daemons_body.go index afae187..fb9512d 100644 --- a/model_server_id_daemons_body.go +++ b/model_server_id_daemons_body.go @@ -3,13 +3,13 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type ServerIdDaemonsBody struct { - Command string `json:"command,omitempty"` - User string `json:"user,omitempty"` + Command string `json:"command,omitempty"` + User string `json:"user,omitempty"` Directory string `json:"directory,omitempty"` } diff --git a/model_server_id_databasepassword_body.go b/model_server_id_databasepassword_body.go index f07ac74..98f83e8 100644 --- a/model_server_id_databasepassword_body.go +++ b/model_server_id_databasepassword_body.go @@ -3,7 +3,7 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge diff --git a/model_server_id_databases_body.go b/model_server_id_databases_body.go index 2d552bf..2071524 100644 --- a/model_server_id_databases_body.go +++ b/model_server_id_databases_body.go @@ -3,12 +3,12 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type ServerIdDatabasesBody struct { - User string `json:"user,omitempty"` + User string `json:"user,omitempty"` Password string `json:"password,omitempty"` } diff --git a/model_server_id_databaseusers_body.go b/model_server_id_databaseusers_body.go index b62cb2c..b539c6f 100644 --- a/model_server_id_databaseusers_body.go +++ b/model_server_id_databaseusers_body.go @@ -3,12 +3,12 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type ServerIdDatabaseusersBody struct { Databases string `json:"databases,omitempty"` - Password string `json:"password,omitempty"` + Password string `json:"password,omitempty"` } diff --git a/model_server_id_firewallrules_body.go b/model_server_id_firewallrules_body.go index d450e0c..c42ceef 100644 --- a/model_server_id_firewallrules_body.go +++ b/model_server_id_firewallrules_body.go @@ -3,14 +3,14 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type ServerIdFirewallrulesBody struct { - Name string `json:"name,omitempty"` + Name string `json:"name,omitempty"` IpAddress string `json:"ip_address,omitempty"` - Port string `json:"port,omitempty"` - Type_ string `json:"type,omitempty"` + Port string `json:"port,omitempty"` + Type_ string `json:"type,omitempty"` } diff --git a/model_server_id_jobs_body.go b/model_server_id_jobs_body.go index f62824e..c65f7b4 100644 --- a/model_server_id_jobs_body.go +++ b/model_server_id_jobs_body.go @@ -3,16 +3,16 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type ServerIdJobsBody struct { Frequency string `json:"frequency,omitempty"` - Minute string `json:"minute,omitempty"` - Hour string `json:"hour,omitempty"` - Day string `json:"day,omitempty"` - Month string `json:"month,omitempty"` - Weekday string `json:"weekday,omitempty"` + Minute string `json:"minute,omitempty"` + Hour string `json:"hour,omitempty"` + Day string `json:"day,omitempty"` + Month string `json:"month,omitempty"` + Weekday string `json:"weekday,omitempty"` } diff --git a/model_server_id_keys_body.go b/model_server_id_keys_body.go index 56902f7..8381f21 100644 --- a/model_server_id_keys_body.go +++ b/model_server_id_keys_body.go @@ -3,13 +3,13 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type ServerIdKeysBody struct { - Name string `json:"name,omitempty"` - Key string `json:"key,omitempty"` + Name string `json:"name,omitempty"` + Key string `json:"key,omitempty"` Username string `json:"username,omitempty"` } diff --git a/model_server_id_monitors_body.go b/model_server_id_monitors_body.go index bd0ae56..637a497 100644 --- a/model_server_id_monitors_body.go +++ b/model_server_id_monitors_body.go @@ -3,15 +3,15 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type ServerIdMonitorsBody struct { - Type_ string `json:"type,omitempty"` - Operator string `json:"operator,omitempty"` + Type_ string `json:"type,omitempty"` + Operator string `json:"operator,omitempty"` Threshold string `json:"threshold,omitempty"` - Minutes string `json:"minutes,omitempty"` - Notify string `json:"notify,omitempty"` + Minutes string `json:"minutes,omitempty"` + Notify string `json:"notify,omitempty"` } diff --git a/model_server_id_sites_body.go b/model_server_id_sites_body.go index ff27713..635505a 100644 --- a/model_server_id_sites_body.go +++ b/model_server_id_sites_body.go @@ -3,19 +3,19 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type ServerIdSitesBody struct { - Domain string `json:"domain,omitempty"` - ProjectType string `json:"project_type,omitempty"` - Aliases string `json:"aliases,omitempty"` - Directory string `json:"directory,omitempty"` - Isolated string `json:"isolated,omitempty"` - Username string `json:"username,omitempty"` - Database string `json:"database,omitempty"` - PhpVersion string `json:"php_version,omitempty"` + Domain string `json:"domain,omitempty"` + ProjectType string `json:"project_type,omitempty"` + Aliases string `json:"aliases,omitempty"` + Directory string `json:"directory,omitempty"` + Isolated string `json:"isolated,omitempty"` + Username string `json:"username,omitempty"` + Database string `json:"database,omitempty"` + PhpVersion string `json:"php_version,omitempty"` NginxTemplate string `json:"nginx_template,omitempty"` } diff --git a/model_servers_body.go b/model_servers_body.go index 5bd806e..d82ee1c 100644 --- a/model_servers_body.go +++ b/model_servers_body.go @@ -3,31 +3,31 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type ServersBody struct { - UbuntuVersion string `json:"ubuntu_version,omitempty"` - Type_ string `json:"type,omitempty"` - Provider string `json:"provider,omitempty"` - CredentialId string `json:"credential_id,omitempty"` - Region string `json:"region,omitempty"` - IpAddress string `json:"ip_address,omitempty"` - PrivateIpAddress string `json:"private_ip_address,omitempty"` - PhpVersion string `json:"php_version,omitempty"` - Database string `json:"database,omitempty"` - Maria string `json:"maria,omitempty"` - DatabaseType string `json:"database_type,omitempty"` - Network string `json:"network,omitempty"` - RecipeId string `json:"recipe_id,omitempty"` - AwsVpcId string `json:"aws_vpc_id,omitempty"` - AwsSubnetId string `json:"aws_subnet_id,omitempty"` - AwsVpcName string `json:"aws_vpc_name,omitempty"` - HetznerNetworkId string `json:"hetzner_network_id,omitempty"` - Ocean2VpcUuid string `json:"ocean2_vpc_uuid,omitempty"` - Ocean2VpcName string `json:"ocean2_vpc_name,omitempty"` - Vultr2NetworkId string `json:"vultr2_network_id,omitempty"` + UbuntuVersion string `json:"ubuntu_version,omitempty"` + Type_ string `json:"type,omitempty"` + Provider string `json:"provider,omitempty"` + CredentialId string `json:"credential_id,omitempty"` + Region string `json:"region,omitempty"` + IpAddress string `json:"ip_address,omitempty"` + PrivateIpAddress string `json:"private_ip_address,omitempty"` + PhpVersion string `json:"php_version,omitempty"` + Database string `json:"database,omitempty"` + Maria string `json:"maria,omitempty"` + DatabaseType string `json:"database_type,omitempty"` + Network string `json:"network,omitempty"` + RecipeId string `json:"recipe_id,omitempty"` + AwsVpcId string `json:"aws_vpc_id,omitempty"` + AwsSubnetId string `json:"aws_subnet_id,omitempty"` + AwsVpcName string `json:"aws_vpc_name,omitempty"` + HetznerNetworkId string `json:"hetzner_network_id,omitempty"` + Ocean2VpcUuid string `json:"ocean2_vpc_uuid,omitempty"` + Ocean2VpcName string `json:"ocean2_vpc_name,omitempty"` + Vultr2NetworkId string `json:"vultr2_network_id,omitempty"` Vultr2NetworkName string `json:"vultr2_network_name,omitempty"` } diff --git a/model_servers_events_body.go b/model_servers_events_body.go index c68d45e..2ee0f5f 100644 --- a/model_servers_events_body.go +++ b/model_servers_events_body.go @@ -3,7 +3,7 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge diff --git a/model_servers_id_body.go b/model_servers_id_body.go index 8a67dbd..c41318e 100644 --- a/model_servers_id_body.go +++ b/model_servers_id_body.go @@ -3,18 +3,18 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type ServersIdBody struct { - Name string `json:"name,omitempty"` - IpAddress string `json:"ip_address,omitempty"` + Name string `json:"name,omitempty"` + IpAddress string `json:"ip_address,omitempty"` PrivateIpAddress string `json:"private_ip_address,omitempty"` - MaxUploadSize string `json:"max_upload_size,omitempty"` + MaxUploadSize string `json:"max_upload_size,omitempty"` MaxExecutionTime string `json:"max_execution_time,omitempty"` - Network string `json:"network,omitempty"` - Timezone string `json:"timezone,omitempty"` - Tags string `json:"tags,omitempty"` + Network string `json:"network,omitempty"` + Timezone string `json:"timezone,omitempty"` + Tags string `json:"tags,omitempty"` } diff --git a/model_site.go b/model_site.go index 1adef32..5982f7b 100644 --- a/model_site.go +++ b/model_site.go @@ -3,31 +3,31 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type Site struct { - Id int32 `json:"id,omitempty"` - Name string `json:"name,omitempty"` - Aliases []string `json:"aliases,omitempty"` - Username string `json:"username,omitempty"` - Directory string `json:"directory,omitempty"` - Wildcards string `json:"wildcards,omitempty"` - Status string `json:"status,omitempty"` - Repository string `json:"repository,omitempty"` - RepositoryProvider string `json:"repository_provider,omitempty"` - RepositoryBranch string `json:"repository_branch,omitempty"` - RepositoryStatus string `json:"repository_status,omitempty"` - QuickDeploy string `json:"quick_deploy,omitempty"` - ProjectType string `json:"project_type,omitempty"` - App string `json:"app,omitempty"` - AppStatus string `json:"app_status,omitempty"` - SlackChannel string `json:"slack_channel,omitempty"` - TelegramChatId string `json:"telegram_chat_id,omitempty"` - TelegramChatTitle string `json:"telegram_chat_title,omitempty"` - DeploymentUrl string `json:"deployment_url,omitempty"` - CreatedAt string `json:"created_at,omitempty"` - Tags []int32 `json:"tags,omitempty"` + Id int32 `json:"id,omitempty"` + Name string `json:"name,omitempty"` + Aliases []string `json:"aliases,omitempty"` + Username string `json:"username,omitempty"` + Directory string `json:"directory,omitempty"` + Wildcards string `json:"wildcards,omitempty"` + Status string `json:"status,omitempty"` + Repository string `json:"repository,omitempty"` + RepositoryProvider string `json:"repository_provider,omitempty"` + RepositoryBranch string `json:"repository_branch,omitempty"` + RepositoryStatus string `json:"repository_status,omitempty"` + QuickDeploy string `json:"quick_deploy,omitempty"` + ProjectType string `json:"project_type,omitempty"` + App string `json:"app,omitempty"` + AppStatus string `json:"app_status,omitempty"` + SlackChannel string `json:"slack_channel,omitempty"` + TelegramChatId string `json:"telegram_chat_id,omitempty"` + TelegramChatTitle string `json:"telegram_chat_title,omitempty"` + DeploymentUrl string `json:"deployment_url,omitempty"` + CreatedAt string `json:"created_at,omitempty"` + Tags []int32 `json:"tags,omitempty"` } diff --git a/model_site_id_aliases_body.go b/model_site_id_aliases_body.go index bc5ce63..123a88e 100644 --- a/model_site_id_aliases_body.go +++ b/model_site_id_aliases_body.go @@ -3,7 +3,7 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge diff --git a/model_site_id_balancing_body.go b/model_site_id_balancing_body.go index b1045e9..fcd1ef7 100644 --- a/model_site_id_balancing_body.go +++ b/model_site_id_balancing_body.go @@ -3,12 +3,12 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type SiteIdBalancingBody struct { Servers string `json:"servers,omitempty"` - Method string `json:"method,omitempty"` + Method string `json:"method,omitempty"` } diff --git a/model_site_id_certificates_body.go b/model_site_id_certificates_body.go index 7adeed7..c94fa9a 100644 --- a/model_site_id_certificates_body.go +++ b/model_site_id_certificates_body.go @@ -3,12 +3,12 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type SiteIdCertificatesBody struct { - Type_ string `json:"type,omitempty"` + Type_ string `json:"type,omitempty"` CertificateId string `json:"certificate_id,omitempty"` } diff --git a/model_site_id_commands_body.go b/model_site_id_commands_body.go index 28bd2fa..85a0ca7 100644 --- a/model_site_id_commands_body.go +++ b/model_site_id_commands_body.go @@ -3,7 +3,7 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge diff --git a/model_site_id_env_body.go b/model_site_id_env_body.go index e6008a9..dc23878 100644 --- a/model_site_id_env_body.go +++ b/model_site_id_env_body.go @@ -3,7 +3,7 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge diff --git a/model_site_id_git_body.go b/model_site_id_git_body.go index 68603b5..5136900 100644 --- a/model_site_id_git_body.go +++ b/model_site_id_git_body.go @@ -3,13 +3,13 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type SiteIdGitBody struct { - Provider string `json:"provider,omitempty"` + Provider string `json:"provider,omitempty"` Repository string `json:"repository,omitempty"` - Branch string `json:"branch,omitempty"` + Branch string `json:"branch,omitempty"` } diff --git a/model_site_id_git_body_1.go b/model_site_id_git_body_1.go index ad663ec..6079ee2 100644 --- a/model_site_id_git_body_1.go +++ b/model_site_id_git_body_1.go @@ -3,7 +3,7 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge diff --git a/model_site_id_nginx_body.go b/model_site_id_nginx_body.go index 836c087..1ff478d 100644 --- a/model_site_id_nginx_body.go +++ b/model_site_id_nginx_body.go @@ -3,7 +3,7 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge diff --git a/model_site_id_php_body.go b/model_site_id_php_body.go index df43739..4259231 100644 --- a/model_site_id_php_body.go +++ b/model_site_id_php_body.go @@ -3,7 +3,7 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge diff --git a/model_site_id_phpmyadmin_body.go b/model_site_id_phpmyadmin_body.go index af252c9..caed751 100644 --- a/model_site_id_phpmyadmin_body.go +++ b/model_site_id_phpmyadmin_body.go @@ -3,12 +3,12 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type SiteIdPhpmyadminBody struct { Database string `json:"database,omitempty"` - User string `json:"user,omitempty"` + User string `json:"user,omitempty"` } diff --git a/model_site_id_redirectrules_body.go b/model_site_id_redirectrules_body.go index 636cb67..a594d99 100644 --- a/model_site_id_redirectrules_body.go +++ b/model_site_id_redirectrules_body.go @@ -3,13 +3,13 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type SiteIdRedirectrulesBody struct { - From string `json:"from,omitempty"` - To string `json:"to,omitempty"` + From string `json:"from,omitempty"` + To string `json:"to,omitempty"` Type_ string `json:"type,omitempty"` } diff --git a/model_site_id_securityrules_body.go b/model_site_id_securityrules_body.go index 245c41c..481d32b 100644 --- a/model_site_id_securityrules_body.go +++ b/model_site_id_securityrules_body.go @@ -3,13 +3,13 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type SiteIdSecurityrulesBody struct { - Name string `json:"name,omitempty"` - Path string `json:"path,omitempty"` + Name string `json:"name,omitempty"` + Path string `json:"path,omitempty"` Credentials string `json:"credentials,omitempty"` } diff --git a/model_site_id_wordpress_body.go b/model_site_id_wordpress_body.go index 4c82f30..9035292 100644 --- a/model_site_id_wordpress_body.go +++ b/model_site_id_wordpress_body.go @@ -3,12 +3,12 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type SiteIdWordpressBody struct { Database string `json:"database,omitempty"` - User string `json:"user,omitempty"` + User string `json:"user,omitempty"` } diff --git a/model_site_id_workers_body.go b/model_site_id_workers_body.go index 6809b6d..741e151 100644 --- a/model_site_id_workers_body.go +++ b/model_site_id_workers_body.go @@ -3,20 +3,20 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type SiteIdWorkersBody struct { - Connection string `json:"connection,omitempty"` - Timeout string `json:"timeout,omitempty"` - Sleep string `json:"sleep,omitempty"` - Tries string `json:"tries,omitempty"` - Processes string `json:"processes,omitempty"` + Connection string `json:"connection,omitempty"` + Timeout string `json:"timeout,omitempty"` + Sleep string `json:"sleep,omitempty"` + Tries string `json:"tries,omitempty"` + Processes string `json:"processes,omitempty"` Stopwaitsecs string `json:"stopwaitsecs,omitempty"` - Daemon string `json:"daemon,omitempty"` - Force string `json:"force,omitempty"` - PhpVersion string `json:"php_version,omitempty"` - Queue string `json:"queue,omitempty"` + Daemon string `json:"daemon,omitempty"` + Force string `json:"force,omitempty"` + PhpVersion string `json:"php_version,omitempty"` + Queue string `json:"queue,omitempty"` } diff --git a/model_sites_site_id_body.go b/model_sites_site_id_body.go index 1792885..54dc255 100644 --- a/model_sites_site_id_body.go +++ b/model_sites_site_id_body.go @@ -3,15 +3,15 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type SitesSiteIdBody struct { - Directory string `json:"directory,omitempty"` - Name string `json:"name,omitempty"` + Directory string `json:"directory,omitempty"` + Name string `json:"name,omitempty"` PhpVersion string `json:"php_version,omitempty"` - Aliases string `json:"aliases,omitempty"` - Wildcards string `json:"wildcards,omitempty"` + Aliases string `json:"aliases,omitempty"` + Wildcards string `json:"wildcards,omitempty"` } diff --git a/model_template.go b/model_template.go index cc1e8df..d41f743 100644 --- a/model_template.go +++ b/model_template.go @@ -3,14 +3,14 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type Template struct { - Id int32 `json:"id,omitempty"` - ServerId int32 `json:"server_id,omitempty"` - Name string `json:"name,omitempty"` - Content string `json:"content,omitempty"` + Id int32 `json:"id,omitempty"` + ServerId int32 `json:"server_id,omitempty"` + Name string `json:"name,omitempty"` + Content string `json:"content,omitempty"` } diff --git a/model_user.go b/model_user.go index b841033..59b0e8a 100644 --- a/model_user.go +++ b/model_user.go @@ -3,15 +3,15 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type User struct { - Id int32 `json:"id,omitempty"` - Name string `json:"name,omitempty"` - Status string `json:"status,omitempty"` - CreatedAt string `json:"created_at,omitempty"` + Id int32 `json:"id,omitempty"` + Name string `json:"name,omitempty"` + Status string `json:"status,omitempty"` + CreatedAt string `json:"created_at,omitempty"` Databases []int32 `json:"databases,omitempty"` } diff --git a/model_webhook.go b/model_webhook.go index d3a95d6..8d6c016 100644 --- a/model_webhook.go +++ b/model_webhook.go @@ -3,13 +3,13 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type Webhook struct { - Id int32 `json:"id,omitempty"` - Url string `json:"url,omitempty"` + Id int32 `json:"id,omitempty"` + Url string `json:"url,omitempty"` CreatedAt string `json:"created_at,omitempty"` } diff --git a/model_worker.go b/model_worker.go index e08b842..28006b1 100644 --- a/model_worker.go +++ b/model_worker.go @@ -3,25 +3,25 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge type Worker struct { - Id int32 `json:"id,omitempty"` - Connection string `json:"connection,omitempty"` - Command string `json:"command,omitempty"` - Queue string `json:"queue,omitempty"` - Timeout int32 `json:"timeout,omitempty"` - Sleep int32 `json:"sleep,omitempty"` - Tries string `json:"tries,omitempty"` - Processes int32 `json:"processes,omitempty"` + Id int32 `json:"id,omitempty"` + Connection string `json:"connection,omitempty"` + Command string `json:"command,omitempty"` + Queue string `json:"queue,omitempty"` + Timeout int32 `json:"timeout,omitempty"` + Sleep int32 `json:"sleep,omitempty"` + Tries string `json:"tries,omitempty"` + Processes int32 `json:"processes,omitempty"` Stopwaitsecs string `json:"stopwaitsecs,omitempty"` - Environment string `json:"environment,omitempty"` - PhpVersion string `json:"php_version,omitempty"` - Daemon int32 `json:"daemon,omitempty"` - Force int32 `json:"force,omitempty"` - Status string `json:"status,omitempty"` - CreatedAt string `json:"created_at,omitempty"` + Environment string `json:"environment,omitempty"` + PhpVersion string `json:"php_version,omitempty"` + Daemon int32 `json:"daemon,omitempty"` + Force int32 `json:"force,omitempty"` + Status string `json:"status,omitempty"` + CreatedAt string `json:"created_at,omitempty"` } diff --git a/response.go b/response.go index b583c7c..e3aa5f5 100644 --- a/response.go +++ b/response.go @@ -3,7 +3,7 @@ * * The Forge API allows you to create and interact with servers and sites on Laravel Forge through a simple REST API. * - * API version: 1.0.0 + * API version: 0.0.2 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package forge