From eb9dc64a647b3c60e37e64c72a20f11235b77b33 Mon Sep 17 00:00:00 2001 From: David Calavera Date: Fri, 11 Jan 2019 09:47:47 -0800 Subject: [PATCH 1/2] Replace old context package. The latest version of go-swagger finally uses the stdlib context. Signed-off-by: David Calavera --- go/plumbing/operations/add_member_to_account_parameters.go | 3 +-- go/plumbing/operations/cancel_account_parameters.go | 3 +-- go/plumbing/operations/configure_dns_for_site_parameters.go | 3 +-- go/plumbing/operations/create_account_parameters.go | 3 +-- go/plumbing/operations/create_deploy_key_parameters.go | 3 +-- go/plumbing/operations/create_hook_by_site_id_parameters.go | 3 +-- go/plumbing/operations/create_site_asset_parameters.go | 3 +-- go/plumbing/operations/create_site_build_hook_parameters.go | 3 +-- go/plumbing/operations/create_site_deploy_parameters.go | 3 +-- go/plumbing/operations/create_site_in_team_parameters.go | 3 +-- go/plumbing/operations/create_site_parameters.go | 3 +-- go/plumbing/operations/create_site_snippet_parameters.go | 3 +-- go/plumbing/operations/create_ticket_parameters.go | 3 +-- go/plumbing/operations/delete_deploy_key_parameters.go | 3 +-- go/plumbing/operations/delete_hook_by_site_id_parameters.go | 3 +-- go/plumbing/operations/delete_site_asset_parameters.go | 3 +-- go/plumbing/operations/delete_site_build_hook_parameters.go | 3 +-- go/plumbing/operations/delete_site_parameters.go | 3 +-- go/plumbing/operations/delete_site_snippet_parameters.go | 3 +-- go/plumbing/operations/delete_submission_parameters.go | 3 +-- go/plumbing/operations/enable_hook_parameters.go | 3 +-- go/plumbing/operations/exchange_ticket_parameters.go | 3 +-- go/plumbing/operations/get_account_parameters.go | 3 +-- go/plumbing/operations/get_current_user_parameters.go | 3 +-- go/plumbing/operations/get_deploy_key_parameters.go | 3 +-- go/plumbing/operations/get_deploy_parameters.go | 3 +-- go/plumbing/operations/get_dns_for_site_parameters.go | 3 +-- go/plumbing/operations/get_hook_parameters.go | 3 +-- go/plumbing/operations/get_site_asset_info_parameters.go | 3 +-- .../operations/get_site_asset_public_signature_parameters.go | 3 +-- go/plumbing/operations/get_site_build_hook_parameters.go | 3 +-- go/plumbing/operations/get_site_build_parameters.go | 3 +-- go/plumbing/operations/get_site_deploy_parameters.go | 3 +-- .../operations/get_site_file_by_path_name_parameters.go | 3 +-- go/plumbing/operations/get_site_metadata_parameters.go | 3 +-- go/plumbing/operations/get_site_parameters.go | 3 +-- go/plumbing/operations/get_site_snippet_parameters.go | 3 +-- go/plumbing/operations/list_account_audit_events_parameters.go | 3 +-- .../operations/list_account_types_for_user_parameters.go | 3 +-- go/plumbing/operations/list_accounts_for_user_parameters.go | 3 +-- go/plumbing/operations/list_deploy_keys_parameters.go | 3 +-- go/plumbing/operations/list_form_submission_parameters.go | 3 +-- go/plumbing/operations/list_form_submissions_parameters.go | 3 +-- go/plumbing/operations/list_forms_parameters.go | 3 +-- go/plumbing/operations/list_hook_types_parameters.go | 3 +-- go/plumbing/operations/list_hooks_by_site_id_parameters.go | 3 +-- go/plumbing/operations/list_members_for_account_parameters.go | 3 +-- .../operations/list_payment_methods_for_user_parameters.go | 3 +-- go/plumbing/operations/list_site_assets_parameters.go | 3 +-- go/plumbing/operations/list_site_build_hooks_parameters.go | 3 +-- go/plumbing/operations/list_site_builds_parameters.go | 3 +-- .../operations/list_site_deployed_branches_parameters.go | 3 +-- go/plumbing/operations/list_site_deploys_parameters.go | 3 +-- go/plumbing/operations/list_site_files_parameters.go | 3 +-- go/plumbing/operations/list_site_forms_parameters.go | 3 +-- go/plumbing/operations/list_site_snippets_parameters.go | 3 +-- go/plumbing/operations/list_site_submissions_parameters.go | 3 +-- go/plumbing/operations/list_sites_for_account_parameters.go | 3 +-- go/plumbing/operations/list_sites_parameters.go | 3 +-- go/plumbing/operations/lock_deploy_parameters.go | 3 +-- go/plumbing/operations/notify_build_start_parameters.go | 3 +-- .../operations/provision_site_tls_certificate_parameters.go | 3 +-- go/plumbing/operations/restore_site_deploy_parameters.go | 3 +-- go/plumbing/operations/show_site_tls_certificate_parameters.go | 3 +-- go/plumbing/operations/show_ticket_parameters.go | 3 +-- go/plumbing/operations/unlock_deploy_parameters.go | 3 +-- go/plumbing/operations/update_account_parameters.go | 3 +-- go/plumbing/operations/update_hook_parameters.go | 3 +-- go/plumbing/operations/update_site_asset_parameters.go | 3 +-- go/plumbing/operations/update_site_build_hook_parameters.go | 3 +-- go/plumbing/operations/update_site_build_log_parameters.go | 3 +-- go/plumbing/operations/update_site_deploy_parameters.go | 3 +-- go/plumbing/operations/update_site_metadata_parameters.go | 3 +-- go/plumbing/operations/update_site_parameters.go | 3 +-- go/plumbing/operations/update_site_snippet_parameters.go | 3 +-- go/plumbing/operations/upload_deploy_file_parameters.go | 3 +-- go/plumbing/operations/upload_deploy_function_parameters.go | 2 +- 77 files changed, 77 insertions(+), 153 deletions(-) diff --git a/go/plumbing/operations/add_member_to_account_parameters.go b/go/plumbing/operations/add_member_to_account_parameters.go index 4183ebf7..6a37c061 100644 --- a/go/plumbing/operations/add_member_to_account_parameters.go +++ b/go/plumbing/operations/add_member_to_account_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/cancel_account_parameters.go b/go/plumbing/operations/cancel_account_parameters.go index 2946cdd3..de933ff7 100644 --- a/go/plumbing/operations/cancel_account_parameters.go +++ b/go/plumbing/operations/cancel_account_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/configure_dns_for_site_parameters.go b/go/plumbing/operations/configure_dns_for_site_parameters.go index aaf42cc2..716dcd6d 100644 --- a/go/plumbing/operations/configure_dns_for_site_parameters.go +++ b/go/plumbing/operations/configure_dns_for_site_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/create_account_parameters.go b/go/plumbing/operations/create_account_parameters.go index 7459d636..62850c1d 100644 --- a/go/plumbing/operations/create_account_parameters.go +++ b/go/plumbing/operations/create_account_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/create_deploy_key_parameters.go b/go/plumbing/operations/create_deploy_key_parameters.go index c21aea78..7e6b2840 100644 --- a/go/plumbing/operations/create_deploy_key_parameters.go +++ b/go/plumbing/operations/create_deploy_key_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/create_hook_by_site_id_parameters.go b/go/plumbing/operations/create_hook_by_site_id_parameters.go index baaa6281..f7e969b2 100644 --- a/go/plumbing/operations/create_hook_by_site_id_parameters.go +++ b/go/plumbing/operations/create_hook_by_site_id_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/create_site_asset_parameters.go b/go/plumbing/operations/create_site_asset_parameters.go index 2b3a54bb..8e783d7f 100644 --- a/go/plumbing/operations/create_site_asset_parameters.go +++ b/go/plumbing/operations/create_site_asset_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/create_site_build_hook_parameters.go b/go/plumbing/operations/create_site_build_hook_parameters.go index 52170daa..077a7040 100644 --- a/go/plumbing/operations/create_site_build_hook_parameters.go +++ b/go/plumbing/operations/create_site_build_hook_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/create_site_deploy_parameters.go b/go/plumbing/operations/create_site_deploy_parameters.go index 87586917..10e3e1d7 100644 --- a/go/plumbing/operations/create_site_deploy_parameters.go +++ b/go/plumbing/operations/create_site_deploy_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/create_site_in_team_parameters.go b/go/plumbing/operations/create_site_in_team_parameters.go index e759dbfe..ee9dc3a6 100644 --- a/go/plumbing/operations/create_site_in_team_parameters.go +++ b/go/plumbing/operations/create_site_in_team_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/create_site_parameters.go b/go/plumbing/operations/create_site_parameters.go index a85689bf..50785bd2 100644 --- a/go/plumbing/operations/create_site_parameters.go +++ b/go/plumbing/operations/create_site_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/create_site_snippet_parameters.go b/go/plumbing/operations/create_site_snippet_parameters.go index 512ca52f..3415fc98 100644 --- a/go/plumbing/operations/create_site_snippet_parameters.go +++ b/go/plumbing/operations/create_site_snippet_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/create_ticket_parameters.go b/go/plumbing/operations/create_ticket_parameters.go index a463709b..16233d5f 100644 --- a/go/plumbing/operations/create_ticket_parameters.go +++ b/go/plumbing/operations/create_ticket_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/delete_deploy_key_parameters.go b/go/plumbing/operations/delete_deploy_key_parameters.go index 9041d5b7..ea81677f 100644 --- a/go/plumbing/operations/delete_deploy_key_parameters.go +++ b/go/plumbing/operations/delete_deploy_key_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/delete_hook_by_site_id_parameters.go b/go/plumbing/operations/delete_hook_by_site_id_parameters.go index 9bd6aa6e..33938584 100644 --- a/go/plumbing/operations/delete_hook_by_site_id_parameters.go +++ b/go/plumbing/operations/delete_hook_by_site_id_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/delete_site_asset_parameters.go b/go/plumbing/operations/delete_site_asset_parameters.go index 2e2c5de7..e4a30365 100644 --- a/go/plumbing/operations/delete_site_asset_parameters.go +++ b/go/plumbing/operations/delete_site_asset_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/delete_site_build_hook_parameters.go b/go/plumbing/operations/delete_site_build_hook_parameters.go index 8082d7e1..7965b6cb 100644 --- a/go/plumbing/operations/delete_site_build_hook_parameters.go +++ b/go/plumbing/operations/delete_site_build_hook_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/delete_site_parameters.go b/go/plumbing/operations/delete_site_parameters.go index 5ad86aa7..18ed7a2a 100644 --- a/go/plumbing/operations/delete_site_parameters.go +++ b/go/plumbing/operations/delete_site_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/delete_site_snippet_parameters.go b/go/plumbing/operations/delete_site_snippet_parameters.go index bd9c48c6..8abaf516 100644 --- a/go/plumbing/operations/delete_site_snippet_parameters.go +++ b/go/plumbing/operations/delete_site_snippet_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/delete_submission_parameters.go b/go/plumbing/operations/delete_submission_parameters.go index 3807d247..de951413 100644 --- a/go/plumbing/operations/delete_submission_parameters.go +++ b/go/plumbing/operations/delete_submission_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/enable_hook_parameters.go b/go/plumbing/operations/enable_hook_parameters.go index 14d88854..21fc27e7 100644 --- a/go/plumbing/operations/enable_hook_parameters.go +++ b/go/plumbing/operations/enable_hook_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/exchange_ticket_parameters.go b/go/plumbing/operations/exchange_ticket_parameters.go index 20499998..03ef939e 100644 --- a/go/plumbing/operations/exchange_ticket_parameters.go +++ b/go/plumbing/operations/exchange_ticket_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/get_account_parameters.go b/go/plumbing/operations/get_account_parameters.go index 155278db..e22a7937 100644 --- a/go/plumbing/operations/get_account_parameters.go +++ b/go/plumbing/operations/get_account_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/get_current_user_parameters.go b/go/plumbing/operations/get_current_user_parameters.go index 8310e26b..4a6a3b72 100644 --- a/go/plumbing/operations/get_current_user_parameters.go +++ b/go/plumbing/operations/get_current_user_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/get_deploy_key_parameters.go b/go/plumbing/operations/get_deploy_key_parameters.go index 3bfbcac7..0a432f91 100644 --- a/go/plumbing/operations/get_deploy_key_parameters.go +++ b/go/plumbing/operations/get_deploy_key_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/get_deploy_parameters.go b/go/plumbing/operations/get_deploy_parameters.go index 9acd1898..a0666a88 100644 --- a/go/plumbing/operations/get_deploy_parameters.go +++ b/go/plumbing/operations/get_deploy_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/get_dns_for_site_parameters.go b/go/plumbing/operations/get_dns_for_site_parameters.go index 7f15f924..020e183c 100644 --- a/go/plumbing/operations/get_dns_for_site_parameters.go +++ b/go/plumbing/operations/get_dns_for_site_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/get_hook_parameters.go b/go/plumbing/operations/get_hook_parameters.go index 0d92cf54..bc2641c9 100644 --- a/go/plumbing/operations/get_hook_parameters.go +++ b/go/plumbing/operations/get_hook_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/get_site_asset_info_parameters.go b/go/plumbing/operations/get_site_asset_info_parameters.go index 9447289d..202d011f 100644 --- a/go/plumbing/operations/get_site_asset_info_parameters.go +++ b/go/plumbing/operations/get_site_asset_info_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/get_site_asset_public_signature_parameters.go b/go/plumbing/operations/get_site_asset_public_signature_parameters.go index 349c1fe1..7691ae62 100644 --- a/go/plumbing/operations/get_site_asset_public_signature_parameters.go +++ b/go/plumbing/operations/get_site_asset_public_signature_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/get_site_build_hook_parameters.go b/go/plumbing/operations/get_site_build_hook_parameters.go index 78667914..0b4ee4fb 100644 --- a/go/plumbing/operations/get_site_build_hook_parameters.go +++ b/go/plumbing/operations/get_site_build_hook_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/get_site_build_parameters.go b/go/plumbing/operations/get_site_build_parameters.go index cdeb5a48..204a08f7 100644 --- a/go/plumbing/operations/get_site_build_parameters.go +++ b/go/plumbing/operations/get_site_build_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/get_site_deploy_parameters.go b/go/plumbing/operations/get_site_deploy_parameters.go index 15cd1ed5..3f8a7dd7 100644 --- a/go/plumbing/operations/get_site_deploy_parameters.go +++ b/go/plumbing/operations/get_site_deploy_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/get_site_file_by_path_name_parameters.go b/go/plumbing/operations/get_site_file_by_path_name_parameters.go index 6bf1e486..4f936471 100644 --- a/go/plumbing/operations/get_site_file_by_path_name_parameters.go +++ b/go/plumbing/operations/get_site_file_by_path_name_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/get_site_metadata_parameters.go b/go/plumbing/operations/get_site_metadata_parameters.go index 303f9561..77f2147c 100644 --- a/go/plumbing/operations/get_site_metadata_parameters.go +++ b/go/plumbing/operations/get_site_metadata_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/get_site_parameters.go b/go/plumbing/operations/get_site_parameters.go index bf6bc021..d1e0cf03 100644 --- a/go/plumbing/operations/get_site_parameters.go +++ b/go/plumbing/operations/get_site_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/get_site_snippet_parameters.go b/go/plumbing/operations/get_site_snippet_parameters.go index 0c391966..e2592a4c 100644 --- a/go/plumbing/operations/get_site_snippet_parameters.go +++ b/go/plumbing/operations/get_site_snippet_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/list_account_audit_events_parameters.go b/go/plumbing/operations/list_account_audit_events_parameters.go index 1ac106f5..fc7597e2 100644 --- a/go/plumbing/operations/list_account_audit_events_parameters.go +++ b/go/plumbing/operations/list_account_audit_events_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/list_account_types_for_user_parameters.go b/go/plumbing/operations/list_account_types_for_user_parameters.go index 7b8c72f8..6dec9662 100644 --- a/go/plumbing/operations/list_account_types_for_user_parameters.go +++ b/go/plumbing/operations/list_account_types_for_user_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/list_accounts_for_user_parameters.go b/go/plumbing/operations/list_accounts_for_user_parameters.go index f377e74c..d20f50a5 100644 --- a/go/plumbing/operations/list_accounts_for_user_parameters.go +++ b/go/plumbing/operations/list_accounts_for_user_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/list_deploy_keys_parameters.go b/go/plumbing/operations/list_deploy_keys_parameters.go index 9f42b7d7..033381d5 100644 --- a/go/plumbing/operations/list_deploy_keys_parameters.go +++ b/go/plumbing/operations/list_deploy_keys_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/list_form_submission_parameters.go b/go/plumbing/operations/list_form_submission_parameters.go index 5c3d0c31..183c7c73 100644 --- a/go/plumbing/operations/list_form_submission_parameters.go +++ b/go/plumbing/operations/list_form_submission_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/list_form_submissions_parameters.go b/go/plumbing/operations/list_form_submissions_parameters.go index 1a991a09..64ae6137 100644 --- a/go/plumbing/operations/list_form_submissions_parameters.go +++ b/go/plumbing/operations/list_form_submissions_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/list_forms_parameters.go b/go/plumbing/operations/list_forms_parameters.go index fd340249..3c850d8a 100644 --- a/go/plumbing/operations/list_forms_parameters.go +++ b/go/plumbing/operations/list_forms_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/list_hook_types_parameters.go b/go/plumbing/operations/list_hook_types_parameters.go index 871d3dcb..f69c8866 100644 --- a/go/plumbing/operations/list_hook_types_parameters.go +++ b/go/plumbing/operations/list_hook_types_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/list_hooks_by_site_id_parameters.go b/go/plumbing/operations/list_hooks_by_site_id_parameters.go index 3685f929..9981b348 100644 --- a/go/plumbing/operations/list_hooks_by_site_id_parameters.go +++ b/go/plumbing/operations/list_hooks_by_site_id_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/list_members_for_account_parameters.go b/go/plumbing/operations/list_members_for_account_parameters.go index 5f0d95ea..87f1e1cc 100644 --- a/go/plumbing/operations/list_members_for_account_parameters.go +++ b/go/plumbing/operations/list_members_for_account_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/list_payment_methods_for_user_parameters.go b/go/plumbing/operations/list_payment_methods_for_user_parameters.go index 2e606330..2627f29a 100644 --- a/go/plumbing/operations/list_payment_methods_for_user_parameters.go +++ b/go/plumbing/operations/list_payment_methods_for_user_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/list_site_assets_parameters.go b/go/plumbing/operations/list_site_assets_parameters.go index 56ec5c9a..8cbe74ad 100644 --- a/go/plumbing/operations/list_site_assets_parameters.go +++ b/go/plumbing/operations/list_site_assets_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/list_site_build_hooks_parameters.go b/go/plumbing/operations/list_site_build_hooks_parameters.go index e7a4feb8..44dac724 100644 --- a/go/plumbing/operations/list_site_build_hooks_parameters.go +++ b/go/plumbing/operations/list_site_build_hooks_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/list_site_builds_parameters.go b/go/plumbing/operations/list_site_builds_parameters.go index acc4e104..c47fedea 100644 --- a/go/plumbing/operations/list_site_builds_parameters.go +++ b/go/plumbing/operations/list_site_builds_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/list_site_deployed_branches_parameters.go b/go/plumbing/operations/list_site_deployed_branches_parameters.go index e2f5ceee..8dd503c7 100644 --- a/go/plumbing/operations/list_site_deployed_branches_parameters.go +++ b/go/plumbing/operations/list_site_deployed_branches_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/list_site_deploys_parameters.go b/go/plumbing/operations/list_site_deploys_parameters.go index d9dfbc71..68036bef 100644 --- a/go/plumbing/operations/list_site_deploys_parameters.go +++ b/go/plumbing/operations/list_site_deploys_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/list_site_files_parameters.go b/go/plumbing/operations/list_site_files_parameters.go index b49c8381..5e1be1c1 100644 --- a/go/plumbing/operations/list_site_files_parameters.go +++ b/go/plumbing/operations/list_site_files_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/list_site_forms_parameters.go b/go/plumbing/operations/list_site_forms_parameters.go index 71bd4867..51aba2a6 100644 --- a/go/plumbing/operations/list_site_forms_parameters.go +++ b/go/plumbing/operations/list_site_forms_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/list_site_snippets_parameters.go b/go/plumbing/operations/list_site_snippets_parameters.go index c32ba1e4..23dc47fa 100644 --- a/go/plumbing/operations/list_site_snippets_parameters.go +++ b/go/plumbing/operations/list_site_snippets_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/list_site_submissions_parameters.go b/go/plumbing/operations/list_site_submissions_parameters.go index 319ab313..7daa46ea 100644 --- a/go/plumbing/operations/list_site_submissions_parameters.go +++ b/go/plumbing/operations/list_site_submissions_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/list_sites_for_account_parameters.go b/go/plumbing/operations/list_sites_for_account_parameters.go index 1ddd3c57..28b2bb36 100644 --- a/go/plumbing/operations/list_sites_for_account_parameters.go +++ b/go/plumbing/operations/list_sites_for_account_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/list_sites_parameters.go b/go/plumbing/operations/list_sites_parameters.go index c900a94a..c8cdbd1a 100644 --- a/go/plumbing/operations/list_sites_parameters.go +++ b/go/plumbing/operations/list_sites_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/lock_deploy_parameters.go b/go/plumbing/operations/lock_deploy_parameters.go index 9bb65c83..82c69a4f 100644 --- a/go/plumbing/operations/lock_deploy_parameters.go +++ b/go/plumbing/operations/lock_deploy_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/notify_build_start_parameters.go b/go/plumbing/operations/notify_build_start_parameters.go index 7967cddb..f94f80b6 100644 --- a/go/plumbing/operations/notify_build_start_parameters.go +++ b/go/plumbing/operations/notify_build_start_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/provision_site_tls_certificate_parameters.go b/go/plumbing/operations/provision_site_tls_certificate_parameters.go index 0da33b63..4d234e68 100644 --- a/go/plumbing/operations/provision_site_tls_certificate_parameters.go +++ b/go/plumbing/operations/provision_site_tls_certificate_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/restore_site_deploy_parameters.go b/go/plumbing/operations/restore_site_deploy_parameters.go index 598c0f70..ca38d5bc 100644 --- a/go/plumbing/operations/restore_site_deploy_parameters.go +++ b/go/plumbing/operations/restore_site_deploy_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/show_site_tls_certificate_parameters.go b/go/plumbing/operations/show_site_tls_certificate_parameters.go index 7ab6330f..658e7f60 100644 --- a/go/plumbing/operations/show_site_tls_certificate_parameters.go +++ b/go/plumbing/operations/show_site_tls_certificate_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/show_ticket_parameters.go b/go/plumbing/operations/show_ticket_parameters.go index d0102a7a..60109e23 100644 --- a/go/plumbing/operations/show_ticket_parameters.go +++ b/go/plumbing/operations/show_ticket_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/unlock_deploy_parameters.go b/go/plumbing/operations/unlock_deploy_parameters.go index 18186d53..a4a64c94 100644 --- a/go/plumbing/operations/unlock_deploy_parameters.go +++ b/go/plumbing/operations/unlock_deploy_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/update_account_parameters.go b/go/plumbing/operations/update_account_parameters.go index 245b7433..ad31d60a 100644 --- a/go/plumbing/operations/update_account_parameters.go +++ b/go/plumbing/operations/update_account_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/update_hook_parameters.go b/go/plumbing/operations/update_hook_parameters.go index 8a83311e..c3ae093f 100644 --- a/go/plumbing/operations/update_hook_parameters.go +++ b/go/plumbing/operations/update_hook_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/update_site_asset_parameters.go b/go/plumbing/operations/update_site_asset_parameters.go index 4ed42d8a..43eb4202 100644 --- a/go/plumbing/operations/update_site_asset_parameters.go +++ b/go/plumbing/operations/update_site_asset_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/update_site_build_hook_parameters.go b/go/plumbing/operations/update_site_build_hook_parameters.go index a6b2cc38..12644dc8 100644 --- a/go/plumbing/operations/update_site_build_hook_parameters.go +++ b/go/plumbing/operations/update_site_build_hook_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/update_site_build_log_parameters.go b/go/plumbing/operations/update_site_build_log_parameters.go index 18a4f492..ef57a51b 100644 --- a/go/plumbing/operations/update_site_build_log_parameters.go +++ b/go/plumbing/operations/update_site_build_log_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/update_site_deploy_parameters.go b/go/plumbing/operations/update_site_deploy_parameters.go index b9b1f18d..2c3610f1 100644 --- a/go/plumbing/operations/update_site_deploy_parameters.go +++ b/go/plumbing/operations/update_site_deploy_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/update_site_metadata_parameters.go b/go/plumbing/operations/update_site_metadata_parameters.go index 04437fc7..8d2924fa 100644 --- a/go/plumbing/operations/update_site_metadata_parameters.go +++ b/go/plumbing/operations/update_site_metadata_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/update_site_parameters.go b/go/plumbing/operations/update_site_parameters.go index a75505fb..514c8945 100644 --- a/go/plumbing/operations/update_site_parameters.go +++ b/go/plumbing/operations/update_site_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/update_site_snippet_parameters.go b/go/plumbing/operations/update_site_snippet_parameters.go index 9fed8eab..86e1a9d9 100644 --- a/go/plumbing/operations/update_site_snippet_parameters.go +++ b/go/plumbing/operations/update_site_snippet_parameters.go @@ -6,11 +6,10 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/upload_deploy_file_parameters.go b/go/plumbing/operations/upload_deploy_file_parameters.go index ee8c0616..6826805a 100644 --- a/go/plumbing/operations/upload_deploy_file_parameters.go +++ b/go/plumbing/operations/upload_deploy_file_parameters.go @@ -6,12 +6,11 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "io" "net/http" "time" - "golang.org/x/net/context" - "github.com/go-openapi/errors" "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" diff --git a/go/plumbing/operations/upload_deploy_function_parameters.go b/go/plumbing/operations/upload_deploy_function_parameters.go index 7999d76a..9e10865a 100644 --- a/go/plumbing/operations/upload_deploy_function_parameters.go +++ b/go/plumbing/operations/upload_deploy_function_parameters.go @@ -6,6 +6,7 @@ package operations // Editing this file might prove futile when you re-run the swagger generate command import ( + "context" "io" "net/http" "time" @@ -14,7 +15,6 @@ import ( "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/swag" - "golang.org/x/net/context" strfmt "github.com/go-openapi/strfmt" ) From cdebb1ada179d641009d966dbe2c0833c41b64ef Mon Sep 17 00:00:00 2001 From: David Calavera Date: Fri, 11 Jan 2019 09:48:27 -0800 Subject: [PATCH 2/2] Add enpoint to start a new build. Signed-off-by: David Calavera --- .../create_site_build_parameters.go | 133 ++++++++++++++++++ .../operations/create_site_build_responses.go | 112 +++++++++++++++ go/plumbing/operations/operations_client.go | 29 ++++ 3 files changed, 274 insertions(+) create mode 100644 go/plumbing/operations/create_site_build_parameters.go create mode 100644 go/plumbing/operations/create_site_build_responses.go diff --git a/go/plumbing/operations/create_site_build_parameters.go b/go/plumbing/operations/create_site_build_parameters.go new file mode 100644 index 00000000..4f952ba2 --- /dev/null +++ b/go/plumbing/operations/create_site_build_parameters.go @@ -0,0 +1,133 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "net/http" + "time" + + "github.com/go-openapi/errors" + "github.com/go-openapi/runtime" + cr "github.com/go-openapi/runtime/client" + + strfmt "github.com/go-openapi/strfmt" +) + +// NewCreateSiteBuildParams creates a new CreateSiteBuildParams object +// with the default values initialized. +func NewCreateSiteBuildParams() *CreateSiteBuildParams { + var () + return &CreateSiteBuildParams{ + + timeout: cr.DefaultTimeout, + } +} + +// NewCreateSiteBuildParamsWithTimeout creates a new CreateSiteBuildParams object +// with the default values initialized, and the ability to set a timeout on a request +func NewCreateSiteBuildParamsWithTimeout(timeout time.Duration) *CreateSiteBuildParams { + var () + return &CreateSiteBuildParams{ + + timeout: timeout, + } +} + +// NewCreateSiteBuildParamsWithContext creates a new CreateSiteBuildParams object +// with the default values initialized, and the ability to set a context for a request +func NewCreateSiteBuildParamsWithContext(ctx context.Context) *CreateSiteBuildParams { + var () + return &CreateSiteBuildParams{ + + Context: ctx, + } +} + +// NewCreateSiteBuildParamsWithHTTPClient creates a new CreateSiteBuildParams object +// with the default values initialized, and the ability to set a custom HTTPClient for a request +func NewCreateSiteBuildParamsWithHTTPClient(client *http.Client) *CreateSiteBuildParams { + var () + return &CreateSiteBuildParams{ + HTTPClient: client, + } +} + +/*CreateSiteBuildParams contains all the parameters to send to the API endpoint +for the create site build operation typically these are written to a http.Request +*/ +type CreateSiteBuildParams struct { + + /*SiteID*/ + SiteID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithTimeout adds the timeout to the create site build params +func (o *CreateSiteBuildParams) WithTimeout(timeout time.Duration) *CreateSiteBuildParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the create site build params +func (o *CreateSiteBuildParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the create site build params +func (o *CreateSiteBuildParams) WithContext(ctx context.Context) *CreateSiteBuildParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the create site build params +func (o *CreateSiteBuildParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the create site build params +func (o *CreateSiteBuildParams) WithHTTPClient(client *http.Client) *CreateSiteBuildParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the create site build params +func (o *CreateSiteBuildParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithSiteID adds the siteID to the create site build params +func (o *CreateSiteBuildParams) WithSiteID(siteID string) *CreateSiteBuildParams { + o.SetSiteID(siteID) + return o +} + +// SetSiteID adds the siteId to the create site build params +func (o *CreateSiteBuildParams) SetSiteID(siteID string) { + o.SiteID = siteID +} + +// WriteToRequest writes these params to a swagger request +func (o *CreateSiteBuildParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param site_id + if err := r.SetPathParam("site_id", o.SiteID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/go/plumbing/operations/create_site_build_responses.go b/go/plumbing/operations/create_site_build_responses.go new file mode 100644 index 00000000..1ee3ca8f --- /dev/null +++ b/go/plumbing/operations/create_site_build_responses.go @@ -0,0 +1,112 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package operations + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "fmt" + "io" + + "github.com/go-openapi/runtime" + + strfmt "github.com/go-openapi/strfmt" + + models "github.com/netlify/open-api/go/models" +) + +// CreateSiteBuildReader is a Reader for the CreateSiteBuild structure. +type CreateSiteBuildReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CreateSiteBuildReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + + case 200: + result := NewCreateSiteBuildOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + + default: + result := NewCreateSiteBuildDefault(response.Code()) + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + if response.Code()/100 == 2 { + return result, nil + } + return nil, result + } +} + +// NewCreateSiteBuildOK creates a CreateSiteBuildOK with default headers values +func NewCreateSiteBuildOK() *CreateSiteBuildOK { + return &CreateSiteBuildOK{} +} + +/*CreateSiteBuildOK handles this case with default header values. + +OK +*/ +type CreateSiteBuildOK struct { + Payload *models.Build +} + +func (o *CreateSiteBuildOK) Error() string { + return fmt.Sprintf("[POST /sites/{site_id}/builds][%d] createSiteBuildOK %+v", 200, o.Payload) +} + +func (o *CreateSiteBuildOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Build) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewCreateSiteBuildDefault creates a CreateSiteBuildDefault with default headers values +func NewCreateSiteBuildDefault(code int) *CreateSiteBuildDefault { + return &CreateSiteBuildDefault{ + _statusCode: code, + } +} + +/*CreateSiteBuildDefault handles this case with default header values. + +error +*/ +type CreateSiteBuildDefault struct { + _statusCode int + + Payload *models.Error +} + +// Code gets the status code for the create site build default response +func (o *CreateSiteBuildDefault) Code() int { + return o._statusCode +} + +func (o *CreateSiteBuildDefault) Error() string { + return fmt.Sprintf("[POST /sites/{site_id}/builds][%d] createSiteBuild default %+v", o._statusCode, o.Payload) +} + +func (o *CreateSiteBuildDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.Error) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/go/plumbing/operations/operations_client.go b/go/plumbing/operations/operations_client.go index 369f7fbb..081dd155 100644 --- a/go/plumbing/operations/operations_client.go +++ b/go/plumbing/operations/operations_client.go @@ -256,6 +256,35 @@ func (a *Client) CreateSiteAsset(params *CreateSiteAssetParams, authInfo runtime } +/* +CreateSiteBuild create site build API +*/ +func (a *Client) CreateSiteBuild(params *CreateSiteBuildParams, authInfo runtime.ClientAuthInfoWriter) (*CreateSiteBuildOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewCreateSiteBuildParams() + } + + result, err := a.transport.Submit(&runtime.ClientOperation{ + ID: "createSiteBuild", + Method: "POST", + PathPattern: "/sites/{site_id}/builds", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &CreateSiteBuildReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + }) + if err != nil { + return nil, err + } + return result.(*CreateSiteBuildOK), nil + +} + /* CreateSiteBuildHook create site build hook API */