From eeea90b70a58bc1f9f06842ce8cbf8820af0617e Mon Sep 17 00:00:00 2001 From: Christian Staude Date: Wed, 2 Nov 2022 14:50:47 +0100 Subject: [PATCH] upgrade (#50) * upgrade go-swagger version * adjust patch * generate new version --- Makefile | 2 +- .../operations/activity_list_parameters.go | 8 +- .../operations/activity_list_responses.go | 165 +- .../addon_list_by_app_parameters.go | 8 +- .../operations/addon_list_by_app_responses.go | 165 +- .../addon_list_by_organization_parameters.go | 8 +- .../addon_list_by_organization_responses.go | 165 +- .../addon_list_by_user_parameters.go | 8 +- .../addon_list_by_user_responses.go | 165 +- .../operations/addons_list_parameters.go | 8 +- go/client/operations/addons_list_responses.go | 165 +- .../operations/addons_show_parameters.go | 8 +- go/client/operations/addons_show_responses.go | 165 +- ...ndroid_keystore_file_confirm_parameters.go | 173 + ...android_keystore_file_confirm_responses.go | 374 ++ ...android_keystore_file_create_parameters.go | 8 +- .../android_keystore_file_create_responses.go | 165 +- ...android_keystore_file_delete_parameters.go | 173 + .../android_keystore_file_delete_responses.go | 374 ++ .../android_keystore_file_list_parameters.go | 8 +- .../android_keystore_file_list_responses.go | 165 +- .../app_config_create_parameters.go | 8 +- .../operations/app_config_create_responses.go | 165 +- .../app_config_datastore_show_parameters.go | 8 +- .../app_config_datastore_show_responses.go | 165 +- go/client/operations/app_create_parameters.go | 8 +- go/client/operations/app_create_responses.go | 165 +- go/client/operations/app_finish_parameters.go | 8 +- go/client/operations/app_finish_responses.go | 165 +- .../app_list_by_organization_parameters.go | 76 +- .../app_list_by_organization_responses.go | 165 +- .../operations/app_list_by_user_parameters.go | 76 +- .../operations/app_list_by_user_responses.go | 165 +- go/client/operations/app_list_parameters.go | 76 +- go/client/operations/app_list_responses.go | 165 +- go/client/operations/app_show_parameters.go | 8 +- go/client/operations/app_show_responses.go | 165 +- go/client/operations/app_update_parameters.go | 175 + go/client/operations/app_update_responses.go | 374 ++ .../app_webhook_create_parameters.go | 8 +- .../app_webhook_create_responses.go | 165 +- .../apple_api_credential_list_parameters.go | 8 +- .../apple_api_credential_list_responses.go | 165 +- .../archived_builds_list_parameters.go | 206 + .../archived_builds_list_responses.go | 374 ++ .../operations/artifact_delete_parameters.go | 8 +- .../operations/artifact_delete_responses.go | 165 +- .../operations/artifact_list_parameters.go | 8 +- .../operations/artifact_list_responses.go | 165 +- .../operations/artifact_show_parameters.go | 8 +- .../operations/artifact_show_responses.go | 165 +- .../operations/artifact_update_parameters.go | 8 +- .../operations/artifact_update_responses.go | 165 +- .../avatar_candidate_create_parameters.go | 8 +- .../avatar_candidate_create_responses.go | 165 +- .../avatar_candidate_list_parameters.go | 8 +- .../avatar_candidate_list_responses.go | 165 +- .../avatar_candidate_promote_parameters.go | 8 +- .../avatar_candidate_promote_responses.go | 165 +- .../operations/branch_list_parameters.go | 8 +- go/client/operations/branch_list_responses.go | 165 +- .../operations/build_abort_parameters.go | 8 +- go/client/operations/build_abort_responses.go | 198 +- .../build_bitrise_yml_show_parameters.go | 8 +- .../build_bitrise_yml_show_responses.go | 165 +- .../build_certificate_confirm_parameters.go | 8 +- .../build_certificate_confirm_responses.go | 165 +- .../build_certificate_create_parameters.go | 8 +- .../build_certificate_create_responses.go | 165 +- .../build_certificate_delete_parameters.go | 8 +- .../build_certificate_delete_responses.go | 165 +- .../build_certificate_list_parameters.go | 8 +- .../build_certificate_list_responses.go | 165 +- .../build_certificate_show_parameters.go | 8 +- .../build_certificate_show_responses.go | 165 +- .../build_certificate_update_parameters.go | 8 +- .../build_certificate_update_responses.go | 165 +- .../operations/build_list_all_parameters.go | 8 +- .../operations/build_list_all_responses.go | 165 +- go/client/operations/build_list_parameters.go | 42 +- go/client/operations/build_list_responses.go | 165 +- go/client/operations/build_log_parameters.go | 8 +- go/client/operations/build_log_responses.go | 164 +- .../build_request_list_parameters.go | 8 +- .../build_request_list_responses.go | 165 +- .../build_request_update_parameters.go | 8 +- .../build_request_update_responses.go | 165 +- go/client/operations/build_show_parameters.go | 8 +- go/client/operations/build_show_responses.go | 165 +- .../operations/build_trigger_parameters.go | 8 +- .../operations/build_trigger_responses.go | 165 +- .../build_workflow_list_parameters.go | 8 +- .../build_workflow_list_responses.go | 165 +- .../cache_item_delete_all_parameters.go | 151 + .../cache_item_delete_all_responses.go | 362 ++ .../cache_item_delete_parameters.go | 173 + .../operations/cache_item_delete_responses.go | 362 ++ .../cache_item_download_parameters.go | 173 + .../cache_item_download_responses.go | 374 ++ go/client/operations/cache_list_parameters.go | 186 + go/client/operations/cache_list_responses.go | 374 ++ ...generic_project_file_confirm_parameters.go | 8 +- .../generic_project_file_confirm_responses.go | 165 +- .../generic_project_file_delete_parameters.go | 8 +- .../generic_project_file_delete_responses.go | 165 +- .../generic_project_file_list_parameters.go | 8 +- .../generic_project_file_list_responses.go | 165 +- .../generic_project_file_show_parameters.go | 8 +- .../generic_project_file_show_responses.go | 165 +- .../generic_project_file_update_parameters.go | 8 +- .../generic_project_file_update_responses.go | 165 +- ...generic_project_files_create_parameters.go | 8 +- .../generic_project_files_create_responses.go | 165 +- go/client/operations/operations_client.go | 1246 +++++- go/client/operations/org_list_parameters.go | 8 +- go/client/operations/org_list_responses.go | 165 +- go/client/operations/org_show_parameters.go | 8 +- go/client/operations/org_show_responses.go | 165 +- .../outgoing_webhook_create_parameters.go | 8 +- .../outgoing_webhook_create_responses.go | 165 +- .../outgoing_webhook_delete_parameters.go | 8 +- .../outgoing_webhook_delete_responses.go | 165 +- .../outgoing_webhook_list_parameters.go | 8 +- .../outgoing_webhook_list_responses.go | 132 +- .../outgoing_webhook_update_parameters.go | 8 +- .../outgoing_webhook_update_responses.go | 165 +- .../operations/pipeline_abort_parameters.go | 197 + .../operations/pipeline_abort_responses.go | 362 ++ .../pipeline_list_all_parameters.go | 266 ++ .../operations/pipeline_list_all_responses.go | 374 ++ .../operations/pipeline_list_parameters.go | 424 ++ .../operations/pipeline_list_responses.go | 374 ++ .../operations/pipeline_rebuild_parameters.go | 197 + .../operations/pipeline_rebuild_responses.go | 431 ++ .../operations/pipeline_show_parameters.go | 173 + .../operations/pipeline_show_responses.go | 374 ++ ...provisioning_profile_confirm_parameters.go | 8 +- .../provisioning_profile_confirm_responses.go | 165 +- .../provisioning_profile_create_parameters.go | 8 +- .../provisioning_profile_create_responses.go | 165 +- .../provisioning_profile_delete_parameters.go | 8 +- .../provisioning_profile_delete_responses.go | 165 +- .../provisioning_profile_list_parameters.go | 8 +- .../provisioning_profile_list_responses.go | 165 +- .../provisioning_profile_show_parameters.go | 8 +- .../provisioning_profile_show_responses.go | 165 +- .../provisioning_profile_update_parameters.go | 8 +- .../provisioning_profile_update_responses.go | 165 +- .../operations/secret_delete_parameters.go | 173 + .../operations/secret_delete_responses.go | 362 ++ .../operations/secret_list_parameters.go | 151 + go/client/operations/secret_list_responses.go | 374 ++ .../operations/secret_upsert_parameters.go | 197 + .../operations/secret_upsert_responses.go | 362 ++ .../operations/secret_value_get_parameters.go | 173 + .../operations/secret_value_get_responses.go | 374 ++ .../operations/ssh_key_create_parameters.go | 8 +- .../operations/ssh_key_create_responses.go | 165 +- .../operations/test_device_list_parameters.go | 8 +- .../operations/test_device_list_responses.go | 165 +- .../user_addon_tokens_delete_parameters.go | 151 + .../user_addon_tokens_delete_responses.go | 362 ++ .../user_addon_tokens_parameters.go | 128 + .../operations/user_addon_tokens_responses.go | 372 ++ go/client/operations/user_plan_parameters.go | 8 +- go/client/operations/user_plan_responses.go | 165 +- .../operations/user_profile_parameters.go | 8 +- .../operations/user_profile_responses.go | 132 +- go/client/operations/user_show_parameters.go | 8 +- go/client/operations/user_show_responses.go | 165 +- .../webhook_delivery_item_list_parameters.go | 8 +- .../webhook_delivery_item_list_responses.go | 132 +- ...hook_delivery_item_redeliver_parameters.go | 8 +- ...bhook_delivery_item_redeliver_responses.go | 132 +- .../webhook_delivery_item_show_parameters.go | 8 +- .../webhook_delivery_item_show_responses.go | 132 +- go/models/addons_addon.go | 12 + go/models/addons_plan.go | 4 + go/models/addons_setup_guide.go | 4 + go/models/github_com_gobuffalo_nulls_int64.go | 53 + .../github_com_gobuffalo_nulls_string.go | 53 + .../github_com_markbates_pop_nulls_int64.go | 53 + .../github_com_markbates_pop_nulls_string.go | 53 + go/models/pipelineabledomain_environments.go | 56 + .../pipelineabledomain_trigger_params.go | 155 + .../v0_activity_event_list_response_model.go | 8 + .../v0_activity_event_response_item_model.go | 30 +- .../v0_add_on_app_response_item_model.go | 10 +- go/models/v0_addons_list_response_model.go | 4 + go/models/v0_addons_show_response_model.go | 4 + .../v0_android_keystore_file_upload_params.go | 3 + .../v0_app_add_on_response_item_model.go | 20 + .../v0_app_add_ons_list_response_model.go | 4 + go/models/v0_app_config_request_param.go | 2 +- go/models/v0_app_finish_params.go | 2 +- go/models/v0_app_list_response_model.go | 8 + go/models/v0_app_response_item_model.go | 238 +- go/models/v0_app_secret.go | 59 + go/models/v0_app_secret_get_value_response.go | 50 + go/models/v0_app_secret_list_response.go | 116 + go/models/v0_app_secret_upsert_params.go | 59 + go/models/v0_app_show_response_model.go | 4 + go/models/v0_app_update_params.go | 68 + go/models/v0_app_update_resp_model.go | 50 + go/models/v0_app_upload_params.go | 8 +- .../v0_app_webhook_created_response_model.go | 4 + .../v0_app_webhook_deleted_response_model.go | 4 + .../v0_app_webhook_list_response_model.go | 8 + go/models/v0_app_webhook_response_model.go | 4 + .../v0_apple_api_credentials_list_response.go | 4 + go/models/v0_archived_build_artifact.go | 71 + .../v0_archived_build_list_response_model.go | 162 + .../v0_archived_build_response_item_model.go | 179 + .../v0_artifact_delete_response_model.go | 4 + ...v0_artifact_list_element_response_model.go | 15 +- go/models/v0_artifact_list_response_model.go | 8 + go/models/v0_artifact_response_item_model.go | 15 +- go/models/v0_artifact_show_response_model.go | 4 + go/models/v0_avatar_promote_response_model.go | 4 + ...0_build_certificate_list_response_model.go | 8 + .../v0_build_certificate_response_model.go | 4 + .../v0_build_list_all_response_item_model.go | 119 +- go/models/v0_build_list_all_response_model.go | 8 + go/models/v0_build_list_response_model.go | 8 + .../v0_build_request_list_response_model.go | 4 + .../v0_build_request_update_response_model.go | 4 + go/models/v0_build_response_item_model.go | 121 +- go/models/v0_build_show_response_model.go | 4 + go/models/v0_build_trigger_params.go | 8 + .../v0_build_trigger_params_build_params.go | 11 + .../v0_cache_item_download_response_model.go | 104 + ..._cache_item_download_url_response_model.go | 50 + .../v0_cache_item_list_response_item_model.go | 68 + .../v0_cache_item_list_response_model.go | 162 + .../v0_find_avatar_candidate_response.go | 4 + go/models/v0_organization_data_model.go | 10 +- go/models/v0_organization_list_resp_model.go | 4 + go/models/v0_organization_resp_model.go | 4 + .../v0_owner_add_on_response_item_model.go | 4 + .../v0_owner_add_ons_list_response_model.go | 4 + go/models/v0_pipeline_abort_params.go | 105 + ...0_pipeline_list_all_response_item_model.go | 413 ++ .../v0_pipeline_list_all_response_model.go | 162 + .../v0_pipeline_list_response_item_model.go | 459 ++ go/models/v0_pipeline_list_response_model.go | 162 + go/models/v0_pipeline_rebuild_params.go | 53 + .../v0_pipeline_show_app_response_model.go | 50 + ...v0_pipeline_show_attempt_response_model.go | 59 + ...peline_show_environments_response_model.go | 56 + go/models/v0_pipeline_show_response_model.go | 301 ++ .../v0_pipeline_show_stage_response_model.go | 122 + ...line_show_trigger_params_response_model.go | 155 + ...0_pipeline_show_workflow_response_model.go | 68 + go/models/v0_plan_data_model.go | 6 +- ...roject_file_storage_list_response_model.go | 8 + .../v0_project_file_storage_response_model.go | 4 + ...0_provision_profile_list_response_model.go | 8 + .../v0_provision_profile_response_model.go | 4 + .../v0_test_device_list_response_model.go | 4 + go/models/v0_user_plan_data_model.go | 8 + go/models/v0_user_plan_resp_model.go | 4 + go/models/v0_user_profile_resp_model.go | 4 + ...v0_webhook_delivery_item_response_model.go | 24 +- ...bhook_delivery_item_show_response_model.go | 4 + staffbase.patch | 69 +- swagger.json | 3938 +++++++++++++---- swagger_patched.json | 3937 ++++++++++++---- 267 files changed, 33691 insertions(+), 2731 deletions(-) create mode 100644 go/client/operations/android_keystore_file_confirm_parameters.go create mode 100644 go/client/operations/android_keystore_file_confirm_responses.go create mode 100644 go/client/operations/android_keystore_file_delete_parameters.go create mode 100644 go/client/operations/android_keystore_file_delete_responses.go create mode 100644 go/client/operations/app_update_parameters.go create mode 100644 go/client/operations/app_update_responses.go create mode 100644 go/client/operations/archived_builds_list_parameters.go create mode 100644 go/client/operations/archived_builds_list_responses.go create mode 100644 go/client/operations/cache_item_delete_all_parameters.go create mode 100644 go/client/operations/cache_item_delete_all_responses.go create mode 100644 go/client/operations/cache_item_delete_parameters.go create mode 100644 go/client/operations/cache_item_delete_responses.go create mode 100644 go/client/operations/cache_item_download_parameters.go create mode 100644 go/client/operations/cache_item_download_responses.go create mode 100644 go/client/operations/cache_list_parameters.go create mode 100644 go/client/operations/cache_list_responses.go create mode 100644 go/client/operations/pipeline_abort_parameters.go create mode 100644 go/client/operations/pipeline_abort_responses.go create mode 100644 go/client/operations/pipeline_list_all_parameters.go create mode 100644 go/client/operations/pipeline_list_all_responses.go create mode 100644 go/client/operations/pipeline_list_parameters.go create mode 100644 go/client/operations/pipeline_list_responses.go create mode 100644 go/client/operations/pipeline_rebuild_parameters.go create mode 100644 go/client/operations/pipeline_rebuild_responses.go create mode 100644 go/client/operations/pipeline_show_parameters.go create mode 100644 go/client/operations/pipeline_show_responses.go create mode 100644 go/client/operations/secret_delete_parameters.go create mode 100644 go/client/operations/secret_delete_responses.go create mode 100644 go/client/operations/secret_list_parameters.go create mode 100644 go/client/operations/secret_list_responses.go create mode 100644 go/client/operations/secret_upsert_parameters.go create mode 100644 go/client/operations/secret_upsert_responses.go create mode 100644 go/client/operations/secret_value_get_parameters.go create mode 100644 go/client/operations/secret_value_get_responses.go create mode 100644 go/client/operations/user_addon_tokens_delete_parameters.go create mode 100644 go/client/operations/user_addon_tokens_delete_responses.go create mode 100644 go/client/operations/user_addon_tokens_parameters.go create mode 100644 go/client/operations/user_addon_tokens_responses.go create mode 100644 go/models/github_com_gobuffalo_nulls_int64.go create mode 100644 go/models/github_com_gobuffalo_nulls_string.go create mode 100644 go/models/github_com_markbates_pop_nulls_int64.go create mode 100644 go/models/github_com_markbates_pop_nulls_string.go create mode 100644 go/models/pipelineabledomain_environments.go create mode 100644 go/models/pipelineabledomain_trigger_params.go create mode 100644 go/models/v0_app_secret.go create mode 100644 go/models/v0_app_secret_get_value_response.go create mode 100644 go/models/v0_app_secret_list_response.go create mode 100644 go/models/v0_app_secret_upsert_params.go create mode 100644 go/models/v0_app_update_params.go create mode 100644 go/models/v0_app_update_resp_model.go create mode 100644 go/models/v0_archived_build_artifact.go create mode 100644 go/models/v0_archived_build_list_response_model.go create mode 100644 go/models/v0_archived_build_response_item_model.go create mode 100644 go/models/v0_cache_item_download_response_model.go create mode 100644 go/models/v0_cache_item_download_url_response_model.go create mode 100644 go/models/v0_cache_item_list_response_item_model.go create mode 100644 go/models/v0_cache_item_list_response_model.go create mode 100644 go/models/v0_pipeline_abort_params.go create mode 100644 go/models/v0_pipeline_list_all_response_item_model.go create mode 100644 go/models/v0_pipeline_list_all_response_model.go create mode 100644 go/models/v0_pipeline_list_response_item_model.go create mode 100644 go/models/v0_pipeline_list_response_model.go create mode 100644 go/models/v0_pipeline_rebuild_params.go create mode 100644 go/models/v0_pipeline_show_app_response_model.go create mode 100644 go/models/v0_pipeline_show_attempt_response_model.go create mode 100644 go/models/v0_pipeline_show_environments_response_model.go create mode 100644 go/models/v0_pipeline_show_response_model.go create mode 100644 go/models/v0_pipeline_show_stage_response_model.go create mode 100644 go/models/v0_pipeline_show_trigger_params_response_model.go create mode 100644 go/models/v0_pipeline_show_workflow_response_model.go diff --git a/Makefile b/Makefile index a5ec823..f34b2f3 100644 --- a/Makefile +++ b/Makefile @@ -42,4 +42,4 @@ generate: validate ## Generate the API Go client and the JSON document for the U go generate validate: deps ## Check that the swagger spec is valid. - gobin -m -run github.com/go-swagger/go-swagger/cmd/swagger@v0.27.0 validate $(PATCHED_SWAGGER_SPEC) + gobin -m -run github.com/go-swagger/go-swagger/cmd/swagger@v0.30.3 validate $(PATCHED_SWAGGER_SPEC) diff --git a/go/client/operations/activity_list_parameters.go b/go/client/operations/activity_list_parameters.go index a2214f7..fce92cb 100644 --- a/go/client/operations/activity_list_parameters.go +++ b/go/client/operations/activity_list_parameters.go @@ -53,10 +53,12 @@ func NewActivityListParamsWithHTTPClient(client *http.Client) *ActivityListParam } } -/* ActivityListParams contains all the parameters to send to the API endpoint - for the activity list operation. +/* +ActivityListParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the activity list operation. + + Typically these are written to a http.Request. */ type ActivityListParams struct { diff --git a/go/client/operations/activity_list_responses.go b/go/client/operations/activity_list_responses.go index 25a023f..5dc16a3 100644 --- a/go/client/operations/activity_list_responses.go +++ b/go/client/operations/activity_list_responses.go @@ -63,7 +63,8 @@ func NewActivityListOK() *ActivityListOK { return &ActivityListOK{} } -/* ActivityListOK describes a response with status code 200, with default header values. +/* +ActivityListOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type ActivityListOK struct { Payload *models.V0ActivityEventListResponseModel } +// IsSuccess returns true when this activity list o k response has a 2xx status code +func (o *ActivityListOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this activity list o k response has a 3xx status code +func (o *ActivityListOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this activity list o k response has a 4xx status code +func (o *ActivityListOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this activity list o k response has a 5xx status code +func (o *ActivityListOK) IsServerError() bool { + return false +} + +// IsCode returns true when this activity list o k response a status code equal to that given +func (o *ActivityListOK) IsCode(code int) bool { + return code == 200 +} + func (o *ActivityListOK) Error() string { return fmt.Sprintf("[GET /me/activities][%d] activityListOK %+v", 200, o.Payload) } + +func (o *ActivityListOK) String() string { + return fmt.Sprintf("[GET /me/activities][%d] activityListOK %+v", 200, o.Payload) +} + func (o *ActivityListOK) GetPayload() *models.V0ActivityEventListResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewActivityListBadRequest() *ActivityListBadRequest { return &ActivityListBadRequest{} } -/* ActivityListBadRequest describes a response with status code 400, with default header values. +/* +ActivityListBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type ActivityListBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this activity list bad request response has a 2xx status code +func (o *ActivityListBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this activity list bad request response has a 3xx status code +func (o *ActivityListBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this activity list bad request response has a 4xx status code +func (o *ActivityListBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this activity list bad request response has a 5xx status code +func (o *ActivityListBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this activity list bad request response a status code equal to that given +func (o *ActivityListBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *ActivityListBadRequest) Error() string { return fmt.Sprintf("[GET /me/activities][%d] activityListBadRequest %+v", 400, o.Payload) } + +func (o *ActivityListBadRequest) String() string { + return fmt.Sprintf("[GET /me/activities][%d] activityListBadRequest %+v", 400, o.Payload) +} + func (o *ActivityListBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewActivityListUnauthorized() *ActivityListUnauthorized { return &ActivityListUnauthorized{} } -/* ActivityListUnauthorized describes a response with status code 401, with default header values. +/* +ActivityListUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type ActivityListUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this activity list unauthorized response has a 2xx status code +func (o *ActivityListUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this activity list unauthorized response has a 3xx status code +func (o *ActivityListUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this activity list unauthorized response has a 4xx status code +func (o *ActivityListUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this activity list unauthorized response has a 5xx status code +func (o *ActivityListUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this activity list unauthorized response a status code equal to that given +func (o *ActivityListUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *ActivityListUnauthorized) Error() string { return fmt.Sprintf("[GET /me/activities][%d] activityListUnauthorized %+v", 401, o.Payload) } + +func (o *ActivityListUnauthorized) String() string { + return fmt.Sprintf("[GET /me/activities][%d] activityListUnauthorized %+v", 401, o.Payload) +} + func (o *ActivityListUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewActivityListNotFound() *ActivityListNotFound { return &ActivityListNotFound{} } -/* ActivityListNotFound describes a response with status code 404, with default header values. +/* +ActivityListNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type ActivityListNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this activity list not found response has a 2xx status code +func (o *ActivityListNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this activity list not found response has a 3xx status code +func (o *ActivityListNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this activity list not found response has a 4xx status code +func (o *ActivityListNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this activity list not found response has a 5xx status code +func (o *ActivityListNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this activity list not found response a status code equal to that given +func (o *ActivityListNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *ActivityListNotFound) Error() string { return fmt.Sprintf("[GET /me/activities][%d] activityListNotFound %+v", 404, o.Payload) } + +func (o *ActivityListNotFound) String() string { + return fmt.Sprintf("[GET /me/activities][%d] activityListNotFound %+v", 404, o.Payload) +} + func (o *ActivityListNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewActivityListInternalServerError() *ActivityListInternalServerError { return &ActivityListInternalServerError{} } -/* ActivityListInternalServerError describes a response with status code 500, with default header values. +/* +ActivityListInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type ActivityListInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this activity list internal server error response has a 2xx status code +func (o *ActivityListInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this activity list internal server error response has a 3xx status code +func (o *ActivityListInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this activity list internal server error response has a 4xx status code +func (o *ActivityListInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this activity list internal server error response has a 5xx status code +func (o *ActivityListInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this activity list internal server error response a status code equal to that given +func (o *ActivityListInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *ActivityListInternalServerError) Error() string { return fmt.Sprintf("[GET /me/activities][%d] activityListInternalServerError %+v", 500, o.Payload) } + +func (o *ActivityListInternalServerError) String() string { + return fmt.Sprintf("[GET /me/activities][%d] activityListInternalServerError %+v", 500, o.Payload) +} + func (o *ActivityListInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/addon_list_by_app_parameters.go b/go/client/operations/addon_list_by_app_parameters.go index fe3f3df..53b8dc3 100644 --- a/go/client/operations/addon_list_by_app_parameters.go +++ b/go/client/operations/addon_list_by_app_parameters.go @@ -52,10 +52,12 @@ func NewAddonListByAppParamsWithHTTPClient(client *http.Client) *AddonListByAppP } } -/* AddonListByAppParams contains all the parameters to send to the API endpoint - for the addon list by app operation. +/* +AddonListByAppParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the addon list by app operation. + + Typically these are written to a http.Request. */ type AddonListByAppParams struct { diff --git a/go/client/operations/addon_list_by_app_responses.go b/go/client/operations/addon_list_by_app_responses.go index 20762f5..6a4b6ae 100644 --- a/go/client/operations/addon_list_by_app_responses.go +++ b/go/client/operations/addon_list_by_app_responses.go @@ -63,7 +63,8 @@ func NewAddonListByAppOK() *AddonListByAppOK { return &AddonListByAppOK{} } -/* AddonListByAppOK describes a response with status code 200, with default header values. +/* +AddonListByAppOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type AddonListByAppOK struct { Payload *models.V0AppAddOnsListResponseModel } +// IsSuccess returns true when this addon list by app o k response has a 2xx status code +func (o *AddonListByAppOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this addon list by app o k response has a 3xx status code +func (o *AddonListByAppOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addon list by app o k response has a 4xx status code +func (o *AddonListByAppOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this addon list by app o k response has a 5xx status code +func (o *AddonListByAppOK) IsServerError() bool { + return false +} + +// IsCode returns true when this addon list by app o k response a status code equal to that given +func (o *AddonListByAppOK) IsCode(code int) bool { + return code == 200 +} + func (o *AddonListByAppOK) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/addons][%d] addonListByAppOK %+v", 200, o.Payload) } + +func (o *AddonListByAppOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/addons][%d] addonListByAppOK %+v", 200, o.Payload) +} + func (o *AddonListByAppOK) GetPayload() *models.V0AppAddOnsListResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewAddonListByAppBadRequest() *AddonListByAppBadRequest { return &AddonListByAppBadRequest{} } -/* AddonListByAppBadRequest describes a response with status code 400, with default header values. +/* +AddonListByAppBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type AddonListByAppBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this addon list by app bad request response has a 2xx status code +func (o *AddonListByAppBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this addon list by app bad request response has a 3xx status code +func (o *AddonListByAppBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addon list by app bad request response has a 4xx status code +func (o *AddonListByAppBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this addon list by app bad request response has a 5xx status code +func (o *AddonListByAppBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this addon list by app bad request response a status code equal to that given +func (o *AddonListByAppBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *AddonListByAppBadRequest) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/addons][%d] addonListByAppBadRequest %+v", 400, o.Payload) } + +func (o *AddonListByAppBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/addons][%d] addonListByAppBadRequest %+v", 400, o.Payload) +} + func (o *AddonListByAppBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewAddonListByAppUnauthorized() *AddonListByAppUnauthorized { return &AddonListByAppUnauthorized{} } -/* AddonListByAppUnauthorized describes a response with status code 401, with default header values. +/* +AddonListByAppUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type AddonListByAppUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this addon list by app unauthorized response has a 2xx status code +func (o *AddonListByAppUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this addon list by app unauthorized response has a 3xx status code +func (o *AddonListByAppUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addon list by app unauthorized response has a 4xx status code +func (o *AddonListByAppUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this addon list by app unauthorized response has a 5xx status code +func (o *AddonListByAppUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this addon list by app unauthorized response a status code equal to that given +func (o *AddonListByAppUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *AddonListByAppUnauthorized) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/addons][%d] addonListByAppUnauthorized %+v", 401, o.Payload) } + +func (o *AddonListByAppUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/addons][%d] addonListByAppUnauthorized %+v", 401, o.Payload) +} + func (o *AddonListByAppUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewAddonListByAppNotFound() *AddonListByAppNotFound { return &AddonListByAppNotFound{} } -/* AddonListByAppNotFound describes a response with status code 404, with default header values. +/* +AddonListByAppNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type AddonListByAppNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this addon list by app not found response has a 2xx status code +func (o *AddonListByAppNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this addon list by app not found response has a 3xx status code +func (o *AddonListByAppNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addon list by app not found response has a 4xx status code +func (o *AddonListByAppNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this addon list by app not found response has a 5xx status code +func (o *AddonListByAppNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this addon list by app not found response a status code equal to that given +func (o *AddonListByAppNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *AddonListByAppNotFound) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/addons][%d] addonListByAppNotFound %+v", 404, o.Payload) } + +func (o *AddonListByAppNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/addons][%d] addonListByAppNotFound %+v", 404, o.Payload) +} + func (o *AddonListByAppNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewAddonListByAppInternalServerError() *AddonListByAppInternalServerError { return &AddonListByAppInternalServerError{} } -/* AddonListByAppInternalServerError describes a response with status code 500, with default header values. +/* +AddonListByAppInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type AddonListByAppInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this addon list by app internal server error response has a 2xx status code +func (o *AddonListByAppInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this addon list by app internal server error response has a 3xx status code +func (o *AddonListByAppInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addon list by app internal server error response has a 4xx status code +func (o *AddonListByAppInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this addon list by app internal server error response has a 5xx status code +func (o *AddonListByAppInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this addon list by app internal server error response a status code equal to that given +func (o *AddonListByAppInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *AddonListByAppInternalServerError) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/addons][%d] addonListByAppInternalServerError %+v", 500, o.Payload) } + +func (o *AddonListByAppInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/addons][%d] addonListByAppInternalServerError %+v", 500, o.Payload) +} + func (o *AddonListByAppInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/addon_list_by_organization_parameters.go b/go/client/operations/addon_list_by_organization_parameters.go index b3e754e..080c636 100644 --- a/go/client/operations/addon_list_by_organization_parameters.go +++ b/go/client/operations/addon_list_by_organization_parameters.go @@ -52,10 +52,12 @@ func NewAddonListByOrganizationParamsWithHTTPClient(client *http.Client) *AddonL } } -/* AddonListByOrganizationParams contains all the parameters to send to the API endpoint - for the addon list by organization operation. +/* +AddonListByOrganizationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the addon list by organization operation. + + Typically these are written to a http.Request. */ type AddonListByOrganizationParams struct { diff --git a/go/client/operations/addon_list_by_organization_responses.go b/go/client/operations/addon_list_by_organization_responses.go index e730028..389ad34 100644 --- a/go/client/operations/addon_list_by_organization_responses.go +++ b/go/client/operations/addon_list_by_organization_responses.go @@ -63,7 +63,8 @@ func NewAddonListByOrganizationOK() *AddonListByOrganizationOK { return &AddonListByOrganizationOK{} } -/* AddonListByOrganizationOK describes a response with status code 200, with default header values. +/* +AddonListByOrganizationOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type AddonListByOrganizationOK struct { Payload *models.V0OwnerAddOnsListResponseModel } +// IsSuccess returns true when this addon list by organization o k response has a 2xx status code +func (o *AddonListByOrganizationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this addon list by organization o k response has a 3xx status code +func (o *AddonListByOrganizationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addon list by organization o k response has a 4xx status code +func (o *AddonListByOrganizationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this addon list by organization o k response has a 5xx status code +func (o *AddonListByOrganizationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this addon list by organization o k response a status code equal to that given +func (o *AddonListByOrganizationOK) IsCode(code int) bool { + return code == 200 +} + func (o *AddonListByOrganizationOK) Error() string { return fmt.Sprintf("[GET /organizations/{organization-slug}/addons][%d] addonListByOrganizationOK %+v", 200, o.Payload) } + +func (o *AddonListByOrganizationOK) String() string { + return fmt.Sprintf("[GET /organizations/{organization-slug}/addons][%d] addonListByOrganizationOK %+v", 200, o.Payload) +} + func (o *AddonListByOrganizationOK) GetPayload() *models.V0OwnerAddOnsListResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewAddonListByOrganizationBadRequest() *AddonListByOrganizationBadRequest { return &AddonListByOrganizationBadRequest{} } -/* AddonListByOrganizationBadRequest describes a response with status code 400, with default header values. +/* +AddonListByOrganizationBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type AddonListByOrganizationBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this addon list by organization bad request response has a 2xx status code +func (o *AddonListByOrganizationBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this addon list by organization bad request response has a 3xx status code +func (o *AddonListByOrganizationBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addon list by organization bad request response has a 4xx status code +func (o *AddonListByOrganizationBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this addon list by organization bad request response has a 5xx status code +func (o *AddonListByOrganizationBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this addon list by organization bad request response a status code equal to that given +func (o *AddonListByOrganizationBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *AddonListByOrganizationBadRequest) Error() string { return fmt.Sprintf("[GET /organizations/{organization-slug}/addons][%d] addonListByOrganizationBadRequest %+v", 400, o.Payload) } + +func (o *AddonListByOrganizationBadRequest) String() string { + return fmt.Sprintf("[GET /organizations/{organization-slug}/addons][%d] addonListByOrganizationBadRequest %+v", 400, o.Payload) +} + func (o *AddonListByOrganizationBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewAddonListByOrganizationUnauthorized() *AddonListByOrganizationUnauthoriz return &AddonListByOrganizationUnauthorized{} } -/* AddonListByOrganizationUnauthorized describes a response with status code 401, with default header values. +/* +AddonListByOrganizationUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type AddonListByOrganizationUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this addon list by organization unauthorized response has a 2xx status code +func (o *AddonListByOrganizationUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this addon list by organization unauthorized response has a 3xx status code +func (o *AddonListByOrganizationUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addon list by organization unauthorized response has a 4xx status code +func (o *AddonListByOrganizationUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this addon list by organization unauthorized response has a 5xx status code +func (o *AddonListByOrganizationUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this addon list by organization unauthorized response a status code equal to that given +func (o *AddonListByOrganizationUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *AddonListByOrganizationUnauthorized) Error() string { return fmt.Sprintf("[GET /organizations/{organization-slug}/addons][%d] addonListByOrganizationUnauthorized %+v", 401, o.Payload) } + +func (o *AddonListByOrganizationUnauthorized) String() string { + return fmt.Sprintf("[GET /organizations/{organization-slug}/addons][%d] addonListByOrganizationUnauthorized %+v", 401, o.Payload) +} + func (o *AddonListByOrganizationUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewAddonListByOrganizationNotFound() *AddonListByOrganizationNotFound { return &AddonListByOrganizationNotFound{} } -/* AddonListByOrganizationNotFound describes a response with status code 404, with default header values. +/* +AddonListByOrganizationNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type AddonListByOrganizationNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this addon list by organization not found response has a 2xx status code +func (o *AddonListByOrganizationNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this addon list by organization not found response has a 3xx status code +func (o *AddonListByOrganizationNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addon list by organization not found response has a 4xx status code +func (o *AddonListByOrganizationNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this addon list by organization not found response has a 5xx status code +func (o *AddonListByOrganizationNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this addon list by organization not found response a status code equal to that given +func (o *AddonListByOrganizationNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *AddonListByOrganizationNotFound) Error() string { return fmt.Sprintf("[GET /organizations/{organization-slug}/addons][%d] addonListByOrganizationNotFound %+v", 404, o.Payload) } + +func (o *AddonListByOrganizationNotFound) String() string { + return fmt.Sprintf("[GET /organizations/{organization-slug}/addons][%d] addonListByOrganizationNotFound %+v", 404, o.Payload) +} + func (o *AddonListByOrganizationNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewAddonListByOrganizationInternalServerError() *AddonListByOrganizationInt return &AddonListByOrganizationInternalServerError{} } -/* AddonListByOrganizationInternalServerError describes a response with status code 500, with default header values. +/* +AddonListByOrganizationInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type AddonListByOrganizationInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this addon list by organization internal server error response has a 2xx status code +func (o *AddonListByOrganizationInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this addon list by organization internal server error response has a 3xx status code +func (o *AddonListByOrganizationInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addon list by organization internal server error response has a 4xx status code +func (o *AddonListByOrganizationInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this addon list by organization internal server error response has a 5xx status code +func (o *AddonListByOrganizationInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this addon list by organization internal server error response a status code equal to that given +func (o *AddonListByOrganizationInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *AddonListByOrganizationInternalServerError) Error() string { return fmt.Sprintf("[GET /organizations/{organization-slug}/addons][%d] addonListByOrganizationInternalServerError %+v", 500, o.Payload) } + +func (o *AddonListByOrganizationInternalServerError) String() string { + return fmt.Sprintf("[GET /organizations/{organization-slug}/addons][%d] addonListByOrganizationInternalServerError %+v", 500, o.Payload) +} + func (o *AddonListByOrganizationInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/addon_list_by_user_parameters.go b/go/client/operations/addon_list_by_user_parameters.go index 9517b61..e815920 100644 --- a/go/client/operations/addon_list_by_user_parameters.go +++ b/go/client/operations/addon_list_by_user_parameters.go @@ -52,10 +52,12 @@ func NewAddonListByUserParamsWithHTTPClient(client *http.Client) *AddonListByUse } } -/* AddonListByUserParams contains all the parameters to send to the API endpoint - for the addon list by user operation. +/* +AddonListByUserParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the addon list by user operation. + + Typically these are written to a http.Request. */ type AddonListByUserParams struct { diff --git a/go/client/operations/addon_list_by_user_responses.go b/go/client/operations/addon_list_by_user_responses.go index 94c7c8f..1927c91 100644 --- a/go/client/operations/addon_list_by_user_responses.go +++ b/go/client/operations/addon_list_by_user_responses.go @@ -63,7 +63,8 @@ func NewAddonListByUserOK() *AddonListByUserOK { return &AddonListByUserOK{} } -/* AddonListByUserOK describes a response with status code 200, with default header values. +/* +AddonListByUserOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type AddonListByUserOK struct { Payload *models.V0OwnerAddOnsListResponseModel } +// IsSuccess returns true when this addon list by user o k response has a 2xx status code +func (o *AddonListByUserOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this addon list by user o k response has a 3xx status code +func (o *AddonListByUserOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addon list by user o k response has a 4xx status code +func (o *AddonListByUserOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this addon list by user o k response has a 5xx status code +func (o *AddonListByUserOK) IsServerError() bool { + return false +} + +// IsCode returns true when this addon list by user o k response a status code equal to that given +func (o *AddonListByUserOK) IsCode(code int) bool { + return code == 200 +} + func (o *AddonListByUserOK) Error() string { return fmt.Sprintf("[GET /users/{user-slug}/addons][%d] addonListByUserOK %+v", 200, o.Payload) } + +func (o *AddonListByUserOK) String() string { + return fmt.Sprintf("[GET /users/{user-slug}/addons][%d] addonListByUserOK %+v", 200, o.Payload) +} + func (o *AddonListByUserOK) GetPayload() *models.V0OwnerAddOnsListResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewAddonListByUserBadRequest() *AddonListByUserBadRequest { return &AddonListByUserBadRequest{} } -/* AddonListByUserBadRequest describes a response with status code 400, with default header values. +/* +AddonListByUserBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type AddonListByUserBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this addon list by user bad request response has a 2xx status code +func (o *AddonListByUserBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this addon list by user bad request response has a 3xx status code +func (o *AddonListByUserBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addon list by user bad request response has a 4xx status code +func (o *AddonListByUserBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this addon list by user bad request response has a 5xx status code +func (o *AddonListByUserBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this addon list by user bad request response a status code equal to that given +func (o *AddonListByUserBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *AddonListByUserBadRequest) Error() string { return fmt.Sprintf("[GET /users/{user-slug}/addons][%d] addonListByUserBadRequest %+v", 400, o.Payload) } + +func (o *AddonListByUserBadRequest) String() string { + return fmt.Sprintf("[GET /users/{user-slug}/addons][%d] addonListByUserBadRequest %+v", 400, o.Payload) +} + func (o *AddonListByUserBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewAddonListByUserUnauthorized() *AddonListByUserUnauthorized { return &AddonListByUserUnauthorized{} } -/* AddonListByUserUnauthorized describes a response with status code 401, with default header values. +/* +AddonListByUserUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type AddonListByUserUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this addon list by user unauthorized response has a 2xx status code +func (o *AddonListByUserUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this addon list by user unauthorized response has a 3xx status code +func (o *AddonListByUserUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addon list by user unauthorized response has a 4xx status code +func (o *AddonListByUserUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this addon list by user unauthorized response has a 5xx status code +func (o *AddonListByUserUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this addon list by user unauthorized response a status code equal to that given +func (o *AddonListByUserUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *AddonListByUserUnauthorized) Error() string { return fmt.Sprintf("[GET /users/{user-slug}/addons][%d] addonListByUserUnauthorized %+v", 401, o.Payload) } + +func (o *AddonListByUserUnauthorized) String() string { + return fmt.Sprintf("[GET /users/{user-slug}/addons][%d] addonListByUserUnauthorized %+v", 401, o.Payload) +} + func (o *AddonListByUserUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewAddonListByUserNotFound() *AddonListByUserNotFound { return &AddonListByUserNotFound{} } -/* AddonListByUserNotFound describes a response with status code 404, with default header values. +/* +AddonListByUserNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type AddonListByUserNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this addon list by user not found response has a 2xx status code +func (o *AddonListByUserNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this addon list by user not found response has a 3xx status code +func (o *AddonListByUserNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addon list by user not found response has a 4xx status code +func (o *AddonListByUserNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this addon list by user not found response has a 5xx status code +func (o *AddonListByUserNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this addon list by user not found response a status code equal to that given +func (o *AddonListByUserNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *AddonListByUserNotFound) Error() string { return fmt.Sprintf("[GET /users/{user-slug}/addons][%d] addonListByUserNotFound %+v", 404, o.Payload) } + +func (o *AddonListByUserNotFound) String() string { + return fmt.Sprintf("[GET /users/{user-slug}/addons][%d] addonListByUserNotFound %+v", 404, o.Payload) +} + func (o *AddonListByUserNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewAddonListByUserInternalServerError() *AddonListByUserInternalServerError return &AddonListByUserInternalServerError{} } -/* AddonListByUserInternalServerError describes a response with status code 500, with default header values. +/* +AddonListByUserInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type AddonListByUserInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this addon list by user internal server error response has a 2xx status code +func (o *AddonListByUserInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this addon list by user internal server error response has a 3xx status code +func (o *AddonListByUserInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addon list by user internal server error response has a 4xx status code +func (o *AddonListByUserInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this addon list by user internal server error response has a 5xx status code +func (o *AddonListByUserInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this addon list by user internal server error response a status code equal to that given +func (o *AddonListByUserInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *AddonListByUserInternalServerError) Error() string { return fmt.Sprintf("[GET /users/{user-slug}/addons][%d] addonListByUserInternalServerError %+v", 500, o.Payload) } + +func (o *AddonListByUserInternalServerError) String() string { + return fmt.Sprintf("[GET /users/{user-slug}/addons][%d] addonListByUserInternalServerError %+v", 500, o.Payload) +} + func (o *AddonListByUserInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/addons_list_parameters.go b/go/client/operations/addons_list_parameters.go index 5bbdf1b..8710175 100644 --- a/go/client/operations/addons_list_parameters.go +++ b/go/client/operations/addons_list_parameters.go @@ -52,10 +52,12 @@ func NewAddonsListParamsWithHTTPClient(client *http.Client) *AddonsListParams { } } -/* AddonsListParams contains all the parameters to send to the API endpoint - for the addons list operation. +/* +AddonsListParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the addons list operation. + + Typically these are written to a http.Request. */ type AddonsListParams struct { timeout time.Duration diff --git a/go/client/operations/addons_list_responses.go b/go/client/operations/addons_list_responses.go index 7873298..ca887b9 100644 --- a/go/client/operations/addons_list_responses.go +++ b/go/client/operations/addons_list_responses.go @@ -63,7 +63,8 @@ func NewAddonsListOK() *AddonsListOK { return &AddonsListOK{} } -/* AddonsListOK describes a response with status code 200, with default header values. +/* +AddonsListOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type AddonsListOK struct { Payload *models.V0AddonsListResponseModel } +// IsSuccess returns true when this addons list o k response has a 2xx status code +func (o *AddonsListOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this addons list o k response has a 3xx status code +func (o *AddonsListOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addons list o k response has a 4xx status code +func (o *AddonsListOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this addons list o k response has a 5xx status code +func (o *AddonsListOK) IsServerError() bool { + return false +} + +// IsCode returns true when this addons list o k response a status code equal to that given +func (o *AddonsListOK) IsCode(code int) bool { + return code == 200 +} + func (o *AddonsListOK) Error() string { return fmt.Sprintf("[GET /addons][%d] addonsListOK %+v", 200, o.Payload) } + +func (o *AddonsListOK) String() string { + return fmt.Sprintf("[GET /addons][%d] addonsListOK %+v", 200, o.Payload) +} + func (o *AddonsListOK) GetPayload() *models.V0AddonsListResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewAddonsListBadRequest() *AddonsListBadRequest { return &AddonsListBadRequest{} } -/* AddonsListBadRequest describes a response with status code 400, with default header values. +/* +AddonsListBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type AddonsListBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this addons list bad request response has a 2xx status code +func (o *AddonsListBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this addons list bad request response has a 3xx status code +func (o *AddonsListBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addons list bad request response has a 4xx status code +func (o *AddonsListBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this addons list bad request response has a 5xx status code +func (o *AddonsListBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this addons list bad request response a status code equal to that given +func (o *AddonsListBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *AddonsListBadRequest) Error() string { return fmt.Sprintf("[GET /addons][%d] addonsListBadRequest %+v", 400, o.Payload) } + +func (o *AddonsListBadRequest) String() string { + return fmt.Sprintf("[GET /addons][%d] addonsListBadRequest %+v", 400, o.Payload) +} + func (o *AddonsListBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewAddonsListUnauthorized() *AddonsListUnauthorized { return &AddonsListUnauthorized{} } -/* AddonsListUnauthorized describes a response with status code 401, with default header values. +/* +AddonsListUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type AddonsListUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this addons list unauthorized response has a 2xx status code +func (o *AddonsListUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this addons list unauthorized response has a 3xx status code +func (o *AddonsListUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addons list unauthorized response has a 4xx status code +func (o *AddonsListUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this addons list unauthorized response has a 5xx status code +func (o *AddonsListUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this addons list unauthorized response a status code equal to that given +func (o *AddonsListUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *AddonsListUnauthorized) Error() string { return fmt.Sprintf("[GET /addons][%d] addonsListUnauthorized %+v", 401, o.Payload) } + +func (o *AddonsListUnauthorized) String() string { + return fmt.Sprintf("[GET /addons][%d] addonsListUnauthorized %+v", 401, o.Payload) +} + func (o *AddonsListUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewAddonsListNotFound() *AddonsListNotFound { return &AddonsListNotFound{} } -/* AddonsListNotFound describes a response with status code 404, with default header values. +/* +AddonsListNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type AddonsListNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this addons list not found response has a 2xx status code +func (o *AddonsListNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this addons list not found response has a 3xx status code +func (o *AddonsListNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addons list not found response has a 4xx status code +func (o *AddonsListNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this addons list not found response has a 5xx status code +func (o *AddonsListNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this addons list not found response a status code equal to that given +func (o *AddonsListNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *AddonsListNotFound) Error() string { return fmt.Sprintf("[GET /addons][%d] addonsListNotFound %+v", 404, o.Payload) } + +func (o *AddonsListNotFound) String() string { + return fmt.Sprintf("[GET /addons][%d] addonsListNotFound %+v", 404, o.Payload) +} + func (o *AddonsListNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewAddonsListInternalServerError() *AddonsListInternalServerError { return &AddonsListInternalServerError{} } -/* AddonsListInternalServerError describes a response with status code 500, with default header values. +/* +AddonsListInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type AddonsListInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this addons list internal server error response has a 2xx status code +func (o *AddonsListInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this addons list internal server error response has a 3xx status code +func (o *AddonsListInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addons list internal server error response has a 4xx status code +func (o *AddonsListInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this addons list internal server error response has a 5xx status code +func (o *AddonsListInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this addons list internal server error response a status code equal to that given +func (o *AddonsListInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *AddonsListInternalServerError) Error() string { return fmt.Sprintf("[GET /addons][%d] addonsListInternalServerError %+v", 500, o.Payload) } + +func (o *AddonsListInternalServerError) String() string { + return fmt.Sprintf("[GET /addons][%d] addonsListInternalServerError %+v", 500, o.Payload) +} + func (o *AddonsListInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/addons_show_parameters.go b/go/client/operations/addons_show_parameters.go index 40acaec..a1bb075 100644 --- a/go/client/operations/addons_show_parameters.go +++ b/go/client/operations/addons_show_parameters.go @@ -52,10 +52,12 @@ func NewAddonsShowParamsWithHTTPClient(client *http.Client) *AddonsShowParams { } } -/* AddonsShowParams contains all the parameters to send to the API endpoint - for the addons show operation. +/* +AddonsShowParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the addons show operation. + + Typically these are written to a http.Request. */ type AddonsShowParams struct { diff --git a/go/client/operations/addons_show_responses.go b/go/client/operations/addons_show_responses.go index 190ea83..91e4655 100644 --- a/go/client/operations/addons_show_responses.go +++ b/go/client/operations/addons_show_responses.go @@ -63,7 +63,8 @@ func NewAddonsShowOK() *AddonsShowOK { return &AddonsShowOK{} } -/* AddonsShowOK describes a response with status code 200, with default header values. +/* +AddonsShowOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type AddonsShowOK struct { Payload *models.V0AddonsShowResponseModel } +// IsSuccess returns true when this addons show o k response has a 2xx status code +func (o *AddonsShowOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this addons show o k response has a 3xx status code +func (o *AddonsShowOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addons show o k response has a 4xx status code +func (o *AddonsShowOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this addons show o k response has a 5xx status code +func (o *AddonsShowOK) IsServerError() bool { + return false +} + +// IsCode returns true when this addons show o k response a status code equal to that given +func (o *AddonsShowOK) IsCode(code int) bool { + return code == 200 +} + func (o *AddonsShowOK) Error() string { return fmt.Sprintf("[GET /addons/{addon-id}][%d] addonsShowOK %+v", 200, o.Payload) } + +func (o *AddonsShowOK) String() string { + return fmt.Sprintf("[GET /addons/{addon-id}][%d] addonsShowOK %+v", 200, o.Payload) +} + func (o *AddonsShowOK) GetPayload() *models.V0AddonsShowResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewAddonsShowBadRequest() *AddonsShowBadRequest { return &AddonsShowBadRequest{} } -/* AddonsShowBadRequest describes a response with status code 400, with default header values. +/* +AddonsShowBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type AddonsShowBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this addons show bad request response has a 2xx status code +func (o *AddonsShowBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this addons show bad request response has a 3xx status code +func (o *AddonsShowBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addons show bad request response has a 4xx status code +func (o *AddonsShowBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this addons show bad request response has a 5xx status code +func (o *AddonsShowBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this addons show bad request response a status code equal to that given +func (o *AddonsShowBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *AddonsShowBadRequest) Error() string { return fmt.Sprintf("[GET /addons/{addon-id}][%d] addonsShowBadRequest %+v", 400, o.Payload) } + +func (o *AddonsShowBadRequest) String() string { + return fmt.Sprintf("[GET /addons/{addon-id}][%d] addonsShowBadRequest %+v", 400, o.Payload) +} + func (o *AddonsShowBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewAddonsShowUnauthorized() *AddonsShowUnauthorized { return &AddonsShowUnauthorized{} } -/* AddonsShowUnauthorized describes a response with status code 401, with default header values. +/* +AddonsShowUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type AddonsShowUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this addons show unauthorized response has a 2xx status code +func (o *AddonsShowUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this addons show unauthorized response has a 3xx status code +func (o *AddonsShowUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addons show unauthorized response has a 4xx status code +func (o *AddonsShowUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this addons show unauthorized response has a 5xx status code +func (o *AddonsShowUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this addons show unauthorized response a status code equal to that given +func (o *AddonsShowUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *AddonsShowUnauthorized) Error() string { return fmt.Sprintf("[GET /addons/{addon-id}][%d] addonsShowUnauthorized %+v", 401, o.Payload) } + +func (o *AddonsShowUnauthorized) String() string { + return fmt.Sprintf("[GET /addons/{addon-id}][%d] addonsShowUnauthorized %+v", 401, o.Payload) +} + func (o *AddonsShowUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewAddonsShowNotFound() *AddonsShowNotFound { return &AddonsShowNotFound{} } -/* AddonsShowNotFound describes a response with status code 404, with default header values. +/* +AddonsShowNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type AddonsShowNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this addons show not found response has a 2xx status code +func (o *AddonsShowNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this addons show not found response has a 3xx status code +func (o *AddonsShowNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addons show not found response has a 4xx status code +func (o *AddonsShowNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this addons show not found response has a 5xx status code +func (o *AddonsShowNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this addons show not found response a status code equal to that given +func (o *AddonsShowNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *AddonsShowNotFound) Error() string { return fmt.Sprintf("[GET /addons/{addon-id}][%d] addonsShowNotFound %+v", 404, o.Payload) } + +func (o *AddonsShowNotFound) String() string { + return fmt.Sprintf("[GET /addons/{addon-id}][%d] addonsShowNotFound %+v", 404, o.Payload) +} + func (o *AddonsShowNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewAddonsShowInternalServerError() *AddonsShowInternalServerError { return &AddonsShowInternalServerError{} } -/* AddonsShowInternalServerError describes a response with status code 500, with default header values. +/* +AddonsShowInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type AddonsShowInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this addons show internal server error response has a 2xx status code +func (o *AddonsShowInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this addons show internal server error response has a 3xx status code +func (o *AddonsShowInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this addons show internal server error response has a 4xx status code +func (o *AddonsShowInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this addons show internal server error response has a 5xx status code +func (o *AddonsShowInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this addons show internal server error response a status code equal to that given +func (o *AddonsShowInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *AddonsShowInternalServerError) Error() string { return fmt.Sprintf("[GET /addons/{addon-id}][%d] addonsShowInternalServerError %+v", 500, o.Payload) } + +func (o *AddonsShowInternalServerError) String() string { + return fmt.Sprintf("[GET /addons/{addon-id}][%d] addonsShowInternalServerError %+v", 500, o.Payload) +} + func (o *AddonsShowInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/android_keystore_file_confirm_parameters.go b/go/client/operations/android_keystore_file_confirm_parameters.go new file mode 100644 index 0000000..61cb1ba --- /dev/null +++ b/go/client/operations/android_keystore_file_confirm_parameters.go @@ -0,0 +1,173 @@ +// 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" + "github.com/go-openapi/strfmt" +) + +// NewAndroidKeystoreFileConfirmParams creates a new AndroidKeystoreFileConfirmParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewAndroidKeystoreFileConfirmParams() *AndroidKeystoreFileConfirmParams { + return &AndroidKeystoreFileConfirmParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewAndroidKeystoreFileConfirmParamsWithTimeout creates a new AndroidKeystoreFileConfirmParams object +// with the ability to set a timeout on a request. +func NewAndroidKeystoreFileConfirmParamsWithTimeout(timeout time.Duration) *AndroidKeystoreFileConfirmParams { + return &AndroidKeystoreFileConfirmParams{ + timeout: timeout, + } +} + +// NewAndroidKeystoreFileConfirmParamsWithContext creates a new AndroidKeystoreFileConfirmParams object +// with the ability to set a context for a request. +func NewAndroidKeystoreFileConfirmParamsWithContext(ctx context.Context) *AndroidKeystoreFileConfirmParams { + return &AndroidKeystoreFileConfirmParams{ + Context: ctx, + } +} + +// NewAndroidKeystoreFileConfirmParamsWithHTTPClient creates a new AndroidKeystoreFileConfirmParams object +// with the ability to set a custom HTTPClient for a request. +func NewAndroidKeystoreFileConfirmParamsWithHTTPClient(client *http.Client) *AndroidKeystoreFileConfirmParams { + return &AndroidKeystoreFileConfirmParams{ + HTTPClient: client, + } +} + +/* +AndroidKeystoreFileConfirmParams contains all the parameters to send to the API endpoint + + for the android keystore file confirm operation. + + Typically these are written to a http.Request. +*/ +type AndroidKeystoreFileConfirmParams struct { + + /* AndroidKeystoreFileSlug. + + Android keystore file slug + */ + AndroidKeystoreFileSlug string + + /* AppSlug. + + App slug + */ + AppSlug string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the android keystore file confirm params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *AndroidKeystoreFileConfirmParams) WithDefaults() *AndroidKeystoreFileConfirmParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the android keystore file confirm params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *AndroidKeystoreFileConfirmParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the android keystore file confirm params +func (o *AndroidKeystoreFileConfirmParams) WithTimeout(timeout time.Duration) *AndroidKeystoreFileConfirmParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the android keystore file confirm params +func (o *AndroidKeystoreFileConfirmParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the android keystore file confirm params +func (o *AndroidKeystoreFileConfirmParams) WithContext(ctx context.Context) *AndroidKeystoreFileConfirmParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the android keystore file confirm params +func (o *AndroidKeystoreFileConfirmParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the android keystore file confirm params +func (o *AndroidKeystoreFileConfirmParams) WithHTTPClient(client *http.Client) *AndroidKeystoreFileConfirmParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the android keystore file confirm params +func (o *AndroidKeystoreFileConfirmParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAndroidKeystoreFileSlug adds the androidKeystoreFileSlug to the android keystore file confirm params +func (o *AndroidKeystoreFileConfirmParams) WithAndroidKeystoreFileSlug(androidKeystoreFileSlug string) *AndroidKeystoreFileConfirmParams { + o.SetAndroidKeystoreFileSlug(androidKeystoreFileSlug) + return o +} + +// SetAndroidKeystoreFileSlug adds the androidKeystoreFileSlug to the android keystore file confirm params +func (o *AndroidKeystoreFileConfirmParams) SetAndroidKeystoreFileSlug(androidKeystoreFileSlug string) { + o.AndroidKeystoreFileSlug = androidKeystoreFileSlug +} + +// WithAppSlug adds the appSlug to the android keystore file confirm params +func (o *AndroidKeystoreFileConfirmParams) WithAppSlug(appSlug string) *AndroidKeystoreFileConfirmParams { + o.SetAppSlug(appSlug) + return o +} + +// SetAppSlug adds the appSlug to the android keystore file confirm params +func (o *AndroidKeystoreFileConfirmParams) SetAppSlug(appSlug string) { + o.AppSlug = appSlug +} + +// WriteToRequest writes these params to a swagger request +func (o *AndroidKeystoreFileConfirmParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param android-keystore-file-slug + if err := r.SetPathParam("android-keystore-file-slug", o.AndroidKeystoreFileSlug); err != nil { + return err + } + + // path param app-slug + if err := r.SetPathParam("app-slug", o.AppSlug); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/go/client/operations/android_keystore_file_confirm_responses.go b/go/client/operations/android_keystore_file_confirm_responses.go new file mode 100644 index 0000000..fb4e15a --- /dev/null +++ b/go/client/operations/android_keystore_file_confirm_responses.go @@ -0,0 +1,374 @@ +// 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" + "github.com/go-openapi/strfmt" + + "github.com/Staffbase/bitrise-api/go/models" +) + +// AndroidKeystoreFileConfirmReader is a Reader for the AndroidKeystoreFileConfirm structure. +type AndroidKeystoreFileConfirmReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *AndroidKeystoreFileConfirmReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewAndroidKeystoreFileConfirmOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 400: + result := NewAndroidKeystoreFileConfirmBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 401: + result := NewAndroidKeystoreFileConfirmUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewAndroidKeystoreFileConfirmNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewAndroidKeystoreFileConfirmInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewAndroidKeystoreFileConfirmOK creates a AndroidKeystoreFileConfirmOK with default headers values +func NewAndroidKeystoreFileConfirmOK() *AndroidKeystoreFileConfirmOK { + return &AndroidKeystoreFileConfirmOK{} +} + +/* +AndroidKeystoreFileConfirmOK describes a response with status code 200, with default header values. + +OK +*/ +type AndroidKeystoreFileConfirmOK struct { + Payload *models.V0ProjectFileStorageResponseModel +} + +// IsSuccess returns true when this android keystore file confirm o k response has a 2xx status code +func (o *AndroidKeystoreFileConfirmOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this android keystore file confirm o k response has a 3xx status code +func (o *AndroidKeystoreFileConfirmOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this android keystore file confirm o k response has a 4xx status code +func (o *AndroidKeystoreFileConfirmOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this android keystore file confirm o k response has a 5xx status code +func (o *AndroidKeystoreFileConfirmOK) IsServerError() bool { + return false +} + +// IsCode returns true when this android keystore file confirm o k response a status code equal to that given +func (o *AndroidKeystoreFileConfirmOK) IsCode(code int) bool { + return code == 200 +} + +func (o *AndroidKeystoreFileConfirmOK) Error() string { + return fmt.Sprintf("[POST /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}][%d] androidKeystoreFileConfirmOK %+v", 200, o.Payload) +} + +func (o *AndroidKeystoreFileConfirmOK) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}][%d] androidKeystoreFileConfirmOK %+v", 200, o.Payload) +} + +func (o *AndroidKeystoreFileConfirmOK) GetPayload() *models.V0ProjectFileStorageResponseModel { + return o.Payload +} + +func (o *AndroidKeystoreFileConfirmOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.V0ProjectFileStorageResponseModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewAndroidKeystoreFileConfirmBadRequest creates a AndroidKeystoreFileConfirmBadRequest with default headers values +func NewAndroidKeystoreFileConfirmBadRequest() *AndroidKeystoreFileConfirmBadRequest { + return &AndroidKeystoreFileConfirmBadRequest{} +} + +/* +AndroidKeystoreFileConfirmBadRequest describes a response with status code 400, with default header values. + +Bad Request +*/ +type AndroidKeystoreFileConfirmBadRequest struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this android keystore file confirm bad request response has a 2xx status code +func (o *AndroidKeystoreFileConfirmBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this android keystore file confirm bad request response has a 3xx status code +func (o *AndroidKeystoreFileConfirmBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this android keystore file confirm bad request response has a 4xx status code +func (o *AndroidKeystoreFileConfirmBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this android keystore file confirm bad request response has a 5xx status code +func (o *AndroidKeystoreFileConfirmBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this android keystore file confirm bad request response a status code equal to that given +func (o *AndroidKeystoreFileConfirmBadRequest) IsCode(code int) bool { + return code == 400 +} + +func (o *AndroidKeystoreFileConfirmBadRequest) Error() string { + return fmt.Sprintf("[POST /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}][%d] androidKeystoreFileConfirmBadRequest %+v", 400, o.Payload) +} + +func (o *AndroidKeystoreFileConfirmBadRequest) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}][%d] androidKeystoreFileConfirmBadRequest %+v", 400, o.Payload) +} + +func (o *AndroidKeystoreFileConfirmBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *AndroidKeystoreFileConfirmBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewAndroidKeystoreFileConfirmUnauthorized creates a AndroidKeystoreFileConfirmUnauthorized with default headers values +func NewAndroidKeystoreFileConfirmUnauthorized() *AndroidKeystoreFileConfirmUnauthorized { + return &AndroidKeystoreFileConfirmUnauthorized{} +} + +/* +AndroidKeystoreFileConfirmUnauthorized describes a response with status code 401, with default header values. + +Unauthorized +*/ +type AndroidKeystoreFileConfirmUnauthorized struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this android keystore file confirm unauthorized response has a 2xx status code +func (o *AndroidKeystoreFileConfirmUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this android keystore file confirm unauthorized response has a 3xx status code +func (o *AndroidKeystoreFileConfirmUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this android keystore file confirm unauthorized response has a 4xx status code +func (o *AndroidKeystoreFileConfirmUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this android keystore file confirm unauthorized response has a 5xx status code +func (o *AndroidKeystoreFileConfirmUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this android keystore file confirm unauthorized response a status code equal to that given +func (o *AndroidKeystoreFileConfirmUnauthorized) IsCode(code int) bool { + return code == 401 +} + +func (o *AndroidKeystoreFileConfirmUnauthorized) Error() string { + return fmt.Sprintf("[POST /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}][%d] androidKeystoreFileConfirmUnauthorized %+v", 401, o.Payload) +} + +func (o *AndroidKeystoreFileConfirmUnauthorized) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}][%d] androidKeystoreFileConfirmUnauthorized %+v", 401, o.Payload) +} + +func (o *AndroidKeystoreFileConfirmUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *AndroidKeystoreFileConfirmUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewAndroidKeystoreFileConfirmNotFound creates a AndroidKeystoreFileConfirmNotFound with default headers values +func NewAndroidKeystoreFileConfirmNotFound() *AndroidKeystoreFileConfirmNotFound { + return &AndroidKeystoreFileConfirmNotFound{} +} + +/* +AndroidKeystoreFileConfirmNotFound describes a response with status code 404, with default header values. + +Not Found +*/ +type AndroidKeystoreFileConfirmNotFound struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this android keystore file confirm not found response has a 2xx status code +func (o *AndroidKeystoreFileConfirmNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this android keystore file confirm not found response has a 3xx status code +func (o *AndroidKeystoreFileConfirmNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this android keystore file confirm not found response has a 4xx status code +func (o *AndroidKeystoreFileConfirmNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this android keystore file confirm not found response has a 5xx status code +func (o *AndroidKeystoreFileConfirmNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this android keystore file confirm not found response a status code equal to that given +func (o *AndroidKeystoreFileConfirmNotFound) IsCode(code int) bool { + return code == 404 +} + +func (o *AndroidKeystoreFileConfirmNotFound) Error() string { + return fmt.Sprintf("[POST /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}][%d] androidKeystoreFileConfirmNotFound %+v", 404, o.Payload) +} + +func (o *AndroidKeystoreFileConfirmNotFound) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}][%d] androidKeystoreFileConfirmNotFound %+v", 404, o.Payload) +} + +func (o *AndroidKeystoreFileConfirmNotFound) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *AndroidKeystoreFileConfirmNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewAndroidKeystoreFileConfirmInternalServerError creates a AndroidKeystoreFileConfirmInternalServerError with default headers values +func NewAndroidKeystoreFileConfirmInternalServerError() *AndroidKeystoreFileConfirmInternalServerError { + return &AndroidKeystoreFileConfirmInternalServerError{} +} + +/* +AndroidKeystoreFileConfirmInternalServerError describes a response with status code 500, with default header values. + +Internal Server Error +*/ +type AndroidKeystoreFileConfirmInternalServerError struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this android keystore file confirm internal server error response has a 2xx status code +func (o *AndroidKeystoreFileConfirmInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this android keystore file confirm internal server error response has a 3xx status code +func (o *AndroidKeystoreFileConfirmInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this android keystore file confirm internal server error response has a 4xx status code +func (o *AndroidKeystoreFileConfirmInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this android keystore file confirm internal server error response has a 5xx status code +func (o *AndroidKeystoreFileConfirmInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this android keystore file confirm internal server error response a status code equal to that given +func (o *AndroidKeystoreFileConfirmInternalServerError) IsCode(code int) bool { + return code == 500 +} + +func (o *AndroidKeystoreFileConfirmInternalServerError) Error() string { + return fmt.Sprintf("[POST /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}][%d] androidKeystoreFileConfirmInternalServerError %+v", 500, o.Payload) +} + +func (o *AndroidKeystoreFileConfirmInternalServerError) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}][%d] androidKeystoreFileConfirmInternalServerError %+v", 500, o.Payload) +} + +func (o *AndroidKeystoreFileConfirmInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *AndroidKeystoreFileConfirmInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/go/client/operations/android_keystore_file_create_parameters.go b/go/client/operations/android_keystore_file_create_parameters.go index 3f6fa23..3a3078b 100644 --- a/go/client/operations/android_keystore_file_create_parameters.go +++ b/go/client/operations/android_keystore_file_create_parameters.go @@ -54,10 +54,12 @@ func NewAndroidKeystoreFileCreateParamsWithHTTPClient(client *http.Client) *Andr } } -/* AndroidKeystoreFileCreateParams contains all the parameters to send to the API endpoint - for the android keystore file create operation. +/* +AndroidKeystoreFileCreateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the android keystore file create operation. + + Typically these are written to a http.Request. */ type AndroidKeystoreFileCreateParams struct { diff --git a/go/client/operations/android_keystore_file_create_responses.go b/go/client/operations/android_keystore_file_create_responses.go index 5dac2d4..549b0fa 100644 --- a/go/client/operations/android_keystore_file_create_responses.go +++ b/go/client/operations/android_keystore_file_create_responses.go @@ -63,7 +63,8 @@ func NewAndroidKeystoreFileCreateCreated() *AndroidKeystoreFileCreateCreated { return &AndroidKeystoreFileCreateCreated{} } -/* AndroidKeystoreFileCreateCreated describes a response with status code 201, with default header values. +/* +AndroidKeystoreFileCreateCreated describes a response with status code 201, with default header values. Created */ @@ -71,9 +72,39 @@ type AndroidKeystoreFileCreateCreated struct { Payload *models.V0ProjectFileStorageResponseModel } +// IsSuccess returns true when this android keystore file create created response has a 2xx status code +func (o *AndroidKeystoreFileCreateCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this android keystore file create created response has a 3xx status code +func (o *AndroidKeystoreFileCreateCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this android keystore file create created response has a 4xx status code +func (o *AndroidKeystoreFileCreateCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this android keystore file create created response has a 5xx status code +func (o *AndroidKeystoreFileCreateCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this android keystore file create created response a status code equal to that given +func (o *AndroidKeystoreFileCreateCreated) IsCode(code int) bool { + return code == 201 +} + func (o *AndroidKeystoreFileCreateCreated) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/android-keystore-files][%d] androidKeystoreFileCreateCreated %+v", 201, o.Payload) } + +func (o *AndroidKeystoreFileCreateCreated) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/android-keystore-files][%d] androidKeystoreFileCreateCreated %+v", 201, o.Payload) +} + func (o *AndroidKeystoreFileCreateCreated) GetPayload() *models.V0ProjectFileStorageResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewAndroidKeystoreFileCreateBadRequest() *AndroidKeystoreFileCreateBadReque return &AndroidKeystoreFileCreateBadRequest{} } -/* AndroidKeystoreFileCreateBadRequest describes a response with status code 400, with default header values. +/* +AndroidKeystoreFileCreateBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type AndroidKeystoreFileCreateBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this android keystore file create bad request response has a 2xx status code +func (o *AndroidKeystoreFileCreateBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this android keystore file create bad request response has a 3xx status code +func (o *AndroidKeystoreFileCreateBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this android keystore file create bad request response has a 4xx status code +func (o *AndroidKeystoreFileCreateBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this android keystore file create bad request response has a 5xx status code +func (o *AndroidKeystoreFileCreateBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this android keystore file create bad request response a status code equal to that given +func (o *AndroidKeystoreFileCreateBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *AndroidKeystoreFileCreateBadRequest) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/android-keystore-files][%d] androidKeystoreFileCreateBadRequest %+v", 400, o.Payload) } + +func (o *AndroidKeystoreFileCreateBadRequest) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/android-keystore-files][%d] androidKeystoreFileCreateBadRequest %+v", 400, o.Payload) +} + func (o *AndroidKeystoreFileCreateBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewAndroidKeystoreFileCreateUnauthorized() *AndroidKeystoreFileCreateUnauth return &AndroidKeystoreFileCreateUnauthorized{} } -/* AndroidKeystoreFileCreateUnauthorized describes a response with status code 401, with default header values. +/* +AndroidKeystoreFileCreateUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type AndroidKeystoreFileCreateUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this android keystore file create unauthorized response has a 2xx status code +func (o *AndroidKeystoreFileCreateUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this android keystore file create unauthorized response has a 3xx status code +func (o *AndroidKeystoreFileCreateUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this android keystore file create unauthorized response has a 4xx status code +func (o *AndroidKeystoreFileCreateUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this android keystore file create unauthorized response has a 5xx status code +func (o *AndroidKeystoreFileCreateUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this android keystore file create unauthorized response a status code equal to that given +func (o *AndroidKeystoreFileCreateUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *AndroidKeystoreFileCreateUnauthorized) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/android-keystore-files][%d] androidKeystoreFileCreateUnauthorized %+v", 401, o.Payload) } + +func (o *AndroidKeystoreFileCreateUnauthorized) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/android-keystore-files][%d] androidKeystoreFileCreateUnauthorized %+v", 401, o.Payload) +} + func (o *AndroidKeystoreFileCreateUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewAndroidKeystoreFileCreateNotFound() *AndroidKeystoreFileCreateNotFound { return &AndroidKeystoreFileCreateNotFound{} } -/* AndroidKeystoreFileCreateNotFound describes a response with status code 404, with default header values. +/* +AndroidKeystoreFileCreateNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type AndroidKeystoreFileCreateNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this android keystore file create not found response has a 2xx status code +func (o *AndroidKeystoreFileCreateNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this android keystore file create not found response has a 3xx status code +func (o *AndroidKeystoreFileCreateNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this android keystore file create not found response has a 4xx status code +func (o *AndroidKeystoreFileCreateNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this android keystore file create not found response has a 5xx status code +func (o *AndroidKeystoreFileCreateNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this android keystore file create not found response a status code equal to that given +func (o *AndroidKeystoreFileCreateNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *AndroidKeystoreFileCreateNotFound) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/android-keystore-files][%d] androidKeystoreFileCreateNotFound %+v", 404, o.Payload) } + +func (o *AndroidKeystoreFileCreateNotFound) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/android-keystore-files][%d] androidKeystoreFileCreateNotFound %+v", 404, o.Payload) +} + func (o *AndroidKeystoreFileCreateNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewAndroidKeystoreFileCreateInternalServerError() *AndroidKeystoreFileCreat return &AndroidKeystoreFileCreateInternalServerError{} } -/* AndroidKeystoreFileCreateInternalServerError describes a response with status code 500, with default header values. +/* +AndroidKeystoreFileCreateInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type AndroidKeystoreFileCreateInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this android keystore file create internal server error response has a 2xx status code +func (o *AndroidKeystoreFileCreateInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this android keystore file create internal server error response has a 3xx status code +func (o *AndroidKeystoreFileCreateInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this android keystore file create internal server error response has a 4xx status code +func (o *AndroidKeystoreFileCreateInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this android keystore file create internal server error response has a 5xx status code +func (o *AndroidKeystoreFileCreateInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this android keystore file create internal server error response a status code equal to that given +func (o *AndroidKeystoreFileCreateInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *AndroidKeystoreFileCreateInternalServerError) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/android-keystore-files][%d] androidKeystoreFileCreateInternalServerError %+v", 500, o.Payload) } + +func (o *AndroidKeystoreFileCreateInternalServerError) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/android-keystore-files][%d] androidKeystoreFileCreateInternalServerError %+v", 500, o.Payload) +} + func (o *AndroidKeystoreFileCreateInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/android_keystore_file_delete_parameters.go b/go/client/operations/android_keystore_file_delete_parameters.go new file mode 100644 index 0000000..76f43bd --- /dev/null +++ b/go/client/operations/android_keystore_file_delete_parameters.go @@ -0,0 +1,173 @@ +// 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" + "github.com/go-openapi/strfmt" +) + +// NewAndroidKeystoreFileDeleteParams creates a new AndroidKeystoreFileDeleteParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewAndroidKeystoreFileDeleteParams() *AndroidKeystoreFileDeleteParams { + return &AndroidKeystoreFileDeleteParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewAndroidKeystoreFileDeleteParamsWithTimeout creates a new AndroidKeystoreFileDeleteParams object +// with the ability to set a timeout on a request. +func NewAndroidKeystoreFileDeleteParamsWithTimeout(timeout time.Duration) *AndroidKeystoreFileDeleteParams { + return &AndroidKeystoreFileDeleteParams{ + timeout: timeout, + } +} + +// NewAndroidKeystoreFileDeleteParamsWithContext creates a new AndroidKeystoreFileDeleteParams object +// with the ability to set a context for a request. +func NewAndroidKeystoreFileDeleteParamsWithContext(ctx context.Context) *AndroidKeystoreFileDeleteParams { + return &AndroidKeystoreFileDeleteParams{ + Context: ctx, + } +} + +// NewAndroidKeystoreFileDeleteParamsWithHTTPClient creates a new AndroidKeystoreFileDeleteParams object +// with the ability to set a custom HTTPClient for a request. +func NewAndroidKeystoreFileDeleteParamsWithHTTPClient(client *http.Client) *AndroidKeystoreFileDeleteParams { + return &AndroidKeystoreFileDeleteParams{ + HTTPClient: client, + } +} + +/* +AndroidKeystoreFileDeleteParams contains all the parameters to send to the API endpoint + + for the android keystore file delete operation. + + Typically these are written to a http.Request. +*/ +type AndroidKeystoreFileDeleteParams struct { + + /* AndroidKeystoreFileSlug. + + Android keystore file slug + */ + AndroidKeystoreFileSlug string + + /* AppSlug. + + App slug + */ + AppSlug string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the android keystore file delete params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *AndroidKeystoreFileDeleteParams) WithDefaults() *AndroidKeystoreFileDeleteParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the android keystore file delete params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *AndroidKeystoreFileDeleteParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the android keystore file delete params +func (o *AndroidKeystoreFileDeleteParams) WithTimeout(timeout time.Duration) *AndroidKeystoreFileDeleteParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the android keystore file delete params +func (o *AndroidKeystoreFileDeleteParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the android keystore file delete params +func (o *AndroidKeystoreFileDeleteParams) WithContext(ctx context.Context) *AndroidKeystoreFileDeleteParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the android keystore file delete params +func (o *AndroidKeystoreFileDeleteParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the android keystore file delete params +func (o *AndroidKeystoreFileDeleteParams) WithHTTPClient(client *http.Client) *AndroidKeystoreFileDeleteParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the android keystore file delete params +func (o *AndroidKeystoreFileDeleteParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAndroidKeystoreFileSlug adds the androidKeystoreFileSlug to the android keystore file delete params +func (o *AndroidKeystoreFileDeleteParams) WithAndroidKeystoreFileSlug(androidKeystoreFileSlug string) *AndroidKeystoreFileDeleteParams { + o.SetAndroidKeystoreFileSlug(androidKeystoreFileSlug) + return o +} + +// SetAndroidKeystoreFileSlug adds the androidKeystoreFileSlug to the android keystore file delete params +func (o *AndroidKeystoreFileDeleteParams) SetAndroidKeystoreFileSlug(androidKeystoreFileSlug string) { + o.AndroidKeystoreFileSlug = androidKeystoreFileSlug +} + +// WithAppSlug adds the appSlug to the android keystore file delete params +func (o *AndroidKeystoreFileDeleteParams) WithAppSlug(appSlug string) *AndroidKeystoreFileDeleteParams { + o.SetAppSlug(appSlug) + return o +} + +// SetAppSlug adds the appSlug to the android keystore file delete params +func (o *AndroidKeystoreFileDeleteParams) SetAppSlug(appSlug string) { + o.AppSlug = appSlug +} + +// WriteToRequest writes these params to a swagger request +func (o *AndroidKeystoreFileDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param android-keystore-file-slug + if err := r.SetPathParam("android-keystore-file-slug", o.AndroidKeystoreFileSlug); err != nil { + return err + } + + // path param app-slug + if err := r.SetPathParam("app-slug", o.AppSlug); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/go/client/operations/android_keystore_file_delete_responses.go b/go/client/operations/android_keystore_file_delete_responses.go new file mode 100644 index 0000000..daa05e8 --- /dev/null +++ b/go/client/operations/android_keystore_file_delete_responses.go @@ -0,0 +1,374 @@ +// 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" + "github.com/go-openapi/strfmt" + + "github.com/Staffbase/bitrise-api/go/models" +) + +// AndroidKeystoreFileDeleteReader is a Reader for the AndroidKeystoreFileDelete structure. +type AndroidKeystoreFileDeleteReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *AndroidKeystoreFileDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewAndroidKeystoreFileDeleteOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 400: + result := NewAndroidKeystoreFileDeleteBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 401: + result := NewAndroidKeystoreFileDeleteUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewAndroidKeystoreFileDeleteNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewAndroidKeystoreFileDeleteInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewAndroidKeystoreFileDeleteOK creates a AndroidKeystoreFileDeleteOK with default headers values +func NewAndroidKeystoreFileDeleteOK() *AndroidKeystoreFileDeleteOK { + return &AndroidKeystoreFileDeleteOK{} +} + +/* +AndroidKeystoreFileDeleteOK describes a response with status code 200, with default header values. + +OK +*/ +type AndroidKeystoreFileDeleteOK struct { + Payload *models.V0ProjectFileStorageResponseModel +} + +// IsSuccess returns true when this android keystore file delete o k response has a 2xx status code +func (o *AndroidKeystoreFileDeleteOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this android keystore file delete o k response has a 3xx status code +func (o *AndroidKeystoreFileDeleteOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this android keystore file delete o k response has a 4xx status code +func (o *AndroidKeystoreFileDeleteOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this android keystore file delete o k response has a 5xx status code +func (o *AndroidKeystoreFileDeleteOK) IsServerError() bool { + return false +} + +// IsCode returns true when this android keystore file delete o k response a status code equal to that given +func (o *AndroidKeystoreFileDeleteOK) IsCode(code int) bool { + return code == 200 +} + +func (o *AndroidKeystoreFileDeleteOK) Error() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}][%d] androidKeystoreFileDeleteOK %+v", 200, o.Payload) +} + +func (o *AndroidKeystoreFileDeleteOK) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}][%d] androidKeystoreFileDeleteOK %+v", 200, o.Payload) +} + +func (o *AndroidKeystoreFileDeleteOK) GetPayload() *models.V0ProjectFileStorageResponseModel { + return o.Payload +} + +func (o *AndroidKeystoreFileDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.V0ProjectFileStorageResponseModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewAndroidKeystoreFileDeleteBadRequest creates a AndroidKeystoreFileDeleteBadRequest with default headers values +func NewAndroidKeystoreFileDeleteBadRequest() *AndroidKeystoreFileDeleteBadRequest { + return &AndroidKeystoreFileDeleteBadRequest{} +} + +/* +AndroidKeystoreFileDeleteBadRequest describes a response with status code 400, with default header values. + +Bad Request +*/ +type AndroidKeystoreFileDeleteBadRequest struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this android keystore file delete bad request response has a 2xx status code +func (o *AndroidKeystoreFileDeleteBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this android keystore file delete bad request response has a 3xx status code +func (o *AndroidKeystoreFileDeleteBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this android keystore file delete bad request response has a 4xx status code +func (o *AndroidKeystoreFileDeleteBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this android keystore file delete bad request response has a 5xx status code +func (o *AndroidKeystoreFileDeleteBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this android keystore file delete bad request response a status code equal to that given +func (o *AndroidKeystoreFileDeleteBadRequest) IsCode(code int) bool { + return code == 400 +} + +func (o *AndroidKeystoreFileDeleteBadRequest) Error() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}][%d] androidKeystoreFileDeleteBadRequest %+v", 400, o.Payload) +} + +func (o *AndroidKeystoreFileDeleteBadRequest) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}][%d] androidKeystoreFileDeleteBadRequest %+v", 400, o.Payload) +} + +func (o *AndroidKeystoreFileDeleteBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *AndroidKeystoreFileDeleteBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewAndroidKeystoreFileDeleteUnauthorized creates a AndroidKeystoreFileDeleteUnauthorized with default headers values +func NewAndroidKeystoreFileDeleteUnauthorized() *AndroidKeystoreFileDeleteUnauthorized { + return &AndroidKeystoreFileDeleteUnauthorized{} +} + +/* +AndroidKeystoreFileDeleteUnauthorized describes a response with status code 401, with default header values. + +Unauthorized +*/ +type AndroidKeystoreFileDeleteUnauthorized struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this android keystore file delete unauthorized response has a 2xx status code +func (o *AndroidKeystoreFileDeleteUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this android keystore file delete unauthorized response has a 3xx status code +func (o *AndroidKeystoreFileDeleteUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this android keystore file delete unauthorized response has a 4xx status code +func (o *AndroidKeystoreFileDeleteUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this android keystore file delete unauthorized response has a 5xx status code +func (o *AndroidKeystoreFileDeleteUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this android keystore file delete unauthorized response a status code equal to that given +func (o *AndroidKeystoreFileDeleteUnauthorized) IsCode(code int) bool { + return code == 401 +} + +func (o *AndroidKeystoreFileDeleteUnauthorized) Error() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}][%d] androidKeystoreFileDeleteUnauthorized %+v", 401, o.Payload) +} + +func (o *AndroidKeystoreFileDeleteUnauthorized) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}][%d] androidKeystoreFileDeleteUnauthorized %+v", 401, o.Payload) +} + +func (o *AndroidKeystoreFileDeleteUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *AndroidKeystoreFileDeleteUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewAndroidKeystoreFileDeleteNotFound creates a AndroidKeystoreFileDeleteNotFound with default headers values +func NewAndroidKeystoreFileDeleteNotFound() *AndroidKeystoreFileDeleteNotFound { + return &AndroidKeystoreFileDeleteNotFound{} +} + +/* +AndroidKeystoreFileDeleteNotFound describes a response with status code 404, with default header values. + +Not Found +*/ +type AndroidKeystoreFileDeleteNotFound struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this android keystore file delete not found response has a 2xx status code +func (o *AndroidKeystoreFileDeleteNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this android keystore file delete not found response has a 3xx status code +func (o *AndroidKeystoreFileDeleteNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this android keystore file delete not found response has a 4xx status code +func (o *AndroidKeystoreFileDeleteNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this android keystore file delete not found response has a 5xx status code +func (o *AndroidKeystoreFileDeleteNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this android keystore file delete not found response a status code equal to that given +func (o *AndroidKeystoreFileDeleteNotFound) IsCode(code int) bool { + return code == 404 +} + +func (o *AndroidKeystoreFileDeleteNotFound) Error() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}][%d] androidKeystoreFileDeleteNotFound %+v", 404, o.Payload) +} + +func (o *AndroidKeystoreFileDeleteNotFound) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}][%d] androidKeystoreFileDeleteNotFound %+v", 404, o.Payload) +} + +func (o *AndroidKeystoreFileDeleteNotFound) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *AndroidKeystoreFileDeleteNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewAndroidKeystoreFileDeleteInternalServerError creates a AndroidKeystoreFileDeleteInternalServerError with default headers values +func NewAndroidKeystoreFileDeleteInternalServerError() *AndroidKeystoreFileDeleteInternalServerError { + return &AndroidKeystoreFileDeleteInternalServerError{} +} + +/* +AndroidKeystoreFileDeleteInternalServerError describes a response with status code 500, with default header values. + +Internal Server Error +*/ +type AndroidKeystoreFileDeleteInternalServerError struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this android keystore file delete internal server error response has a 2xx status code +func (o *AndroidKeystoreFileDeleteInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this android keystore file delete internal server error response has a 3xx status code +func (o *AndroidKeystoreFileDeleteInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this android keystore file delete internal server error response has a 4xx status code +func (o *AndroidKeystoreFileDeleteInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this android keystore file delete internal server error response has a 5xx status code +func (o *AndroidKeystoreFileDeleteInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this android keystore file delete internal server error response a status code equal to that given +func (o *AndroidKeystoreFileDeleteInternalServerError) IsCode(code int) bool { + return code == 500 +} + +func (o *AndroidKeystoreFileDeleteInternalServerError) Error() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}][%d] androidKeystoreFileDeleteInternalServerError %+v", 500, o.Payload) +} + +func (o *AndroidKeystoreFileDeleteInternalServerError) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}][%d] androidKeystoreFileDeleteInternalServerError %+v", 500, o.Payload) +} + +func (o *AndroidKeystoreFileDeleteInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *AndroidKeystoreFileDeleteInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/go/client/operations/android_keystore_file_list_parameters.go b/go/client/operations/android_keystore_file_list_parameters.go index fe1af3a..f823a77 100644 --- a/go/client/operations/android_keystore_file_list_parameters.go +++ b/go/client/operations/android_keystore_file_list_parameters.go @@ -53,10 +53,12 @@ func NewAndroidKeystoreFileListParamsWithHTTPClient(client *http.Client) *Androi } } -/* AndroidKeystoreFileListParams contains all the parameters to send to the API endpoint - for the android keystore file list operation. +/* +AndroidKeystoreFileListParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the android keystore file list operation. + + Typically these are written to a http.Request. */ type AndroidKeystoreFileListParams struct { diff --git a/go/client/operations/android_keystore_file_list_responses.go b/go/client/operations/android_keystore_file_list_responses.go index 96bdbdc..790a181 100644 --- a/go/client/operations/android_keystore_file_list_responses.go +++ b/go/client/operations/android_keystore_file_list_responses.go @@ -63,7 +63,8 @@ func NewAndroidKeystoreFileListOK() *AndroidKeystoreFileListOK { return &AndroidKeystoreFileListOK{} } -/* AndroidKeystoreFileListOK describes a response with status code 200, with default header values. +/* +AndroidKeystoreFileListOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type AndroidKeystoreFileListOK struct { Payload *models.V0ProjectFileStorageListResponseModel } +// IsSuccess returns true when this android keystore file list o k response has a 2xx status code +func (o *AndroidKeystoreFileListOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this android keystore file list o k response has a 3xx status code +func (o *AndroidKeystoreFileListOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this android keystore file list o k response has a 4xx status code +func (o *AndroidKeystoreFileListOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this android keystore file list o k response has a 5xx status code +func (o *AndroidKeystoreFileListOK) IsServerError() bool { + return false +} + +// IsCode returns true when this android keystore file list o k response a status code equal to that given +func (o *AndroidKeystoreFileListOK) IsCode(code int) bool { + return code == 200 +} + func (o *AndroidKeystoreFileListOK) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/android-keystore-files][%d] androidKeystoreFileListOK %+v", 200, o.Payload) } + +func (o *AndroidKeystoreFileListOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/android-keystore-files][%d] androidKeystoreFileListOK %+v", 200, o.Payload) +} + func (o *AndroidKeystoreFileListOK) GetPayload() *models.V0ProjectFileStorageListResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewAndroidKeystoreFileListBadRequest() *AndroidKeystoreFileListBadRequest { return &AndroidKeystoreFileListBadRequest{} } -/* AndroidKeystoreFileListBadRequest describes a response with status code 400, with default header values. +/* +AndroidKeystoreFileListBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type AndroidKeystoreFileListBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this android keystore file list bad request response has a 2xx status code +func (o *AndroidKeystoreFileListBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this android keystore file list bad request response has a 3xx status code +func (o *AndroidKeystoreFileListBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this android keystore file list bad request response has a 4xx status code +func (o *AndroidKeystoreFileListBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this android keystore file list bad request response has a 5xx status code +func (o *AndroidKeystoreFileListBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this android keystore file list bad request response a status code equal to that given +func (o *AndroidKeystoreFileListBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *AndroidKeystoreFileListBadRequest) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/android-keystore-files][%d] androidKeystoreFileListBadRequest %+v", 400, o.Payload) } + +func (o *AndroidKeystoreFileListBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/android-keystore-files][%d] androidKeystoreFileListBadRequest %+v", 400, o.Payload) +} + func (o *AndroidKeystoreFileListBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewAndroidKeystoreFileListUnauthorized() *AndroidKeystoreFileListUnauthoriz return &AndroidKeystoreFileListUnauthorized{} } -/* AndroidKeystoreFileListUnauthorized describes a response with status code 401, with default header values. +/* +AndroidKeystoreFileListUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type AndroidKeystoreFileListUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this android keystore file list unauthorized response has a 2xx status code +func (o *AndroidKeystoreFileListUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this android keystore file list unauthorized response has a 3xx status code +func (o *AndroidKeystoreFileListUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this android keystore file list unauthorized response has a 4xx status code +func (o *AndroidKeystoreFileListUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this android keystore file list unauthorized response has a 5xx status code +func (o *AndroidKeystoreFileListUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this android keystore file list unauthorized response a status code equal to that given +func (o *AndroidKeystoreFileListUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *AndroidKeystoreFileListUnauthorized) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/android-keystore-files][%d] androidKeystoreFileListUnauthorized %+v", 401, o.Payload) } + +func (o *AndroidKeystoreFileListUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/android-keystore-files][%d] androidKeystoreFileListUnauthorized %+v", 401, o.Payload) +} + func (o *AndroidKeystoreFileListUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewAndroidKeystoreFileListNotFound() *AndroidKeystoreFileListNotFound { return &AndroidKeystoreFileListNotFound{} } -/* AndroidKeystoreFileListNotFound describes a response with status code 404, with default header values. +/* +AndroidKeystoreFileListNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type AndroidKeystoreFileListNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this android keystore file list not found response has a 2xx status code +func (o *AndroidKeystoreFileListNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this android keystore file list not found response has a 3xx status code +func (o *AndroidKeystoreFileListNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this android keystore file list not found response has a 4xx status code +func (o *AndroidKeystoreFileListNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this android keystore file list not found response has a 5xx status code +func (o *AndroidKeystoreFileListNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this android keystore file list not found response a status code equal to that given +func (o *AndroidKeystoreFileListNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *AndroidKeystoreFileListNotFound) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/android-keystore-files][%d] androidKeystoreFileListNotFound %+v", 404, o.Payload) } + +func (o *AndroidKeystoreFileListNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/android-keystore-files][%d] androidKeystoreFileListNotFound %+v", 404, o.Payload) +} + func (o *AndroidKeystoreFileListNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewAndroidKeystoreFileListInternalServerError() *AndroidKeystoreFileListInt return &AndroidKeystoreFileListInternalServerError{} } -/* AndroidKeystoreFileListInternalServerError describes a response with status code 500, with default header values. +/* +AndroidKeystoreFileListInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type AndroidKeystoreFileListInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this android keystore file list internal server error response has a 2xx status code +func (o *AndroidKeystoreFileListInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this android keystore file list internal server error response has a 3xx status code +func (o *AndroidKeystoreFileListInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this android keystore file list internal server error response has a 4xx status code +func (o *AndroidKeystoreFileListInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this android keystore file list internal server error response has a 5xx status code +func (o *AndroidKeystoreFileListInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this android keystore file list internal server error response a status code equal to that given +func (o *AndroidKeystoreFileListInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *AndroidKeystoreFileListInternalServerError) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/android-keystore-files][%d] androidKeystoreFileListInternalServerError %+v", 500, o.Payload) } + +func (o *AndroidKeystoreFileListInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/android-keystore-files][%d] androidKeystoreFileListInternalServerError %+v", 500, o.Payload) +} + func (o *AndroidKeystoreFileListInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/app_config_create_parameters.go b/go/client/operations/app_config_create_parameters.go index 2131a7b..452ce83 100644 --- a/go/client/operations/app_config_create_parameters.go +++ b/go/client/operations/app_config_create_parameters.go @@ -54,10 +54,12 @@ func NewAppConfigCreateParamsWithHTTPClient(client *http.Client) *AppConfigCreat } } -/* AppConfigCreateParams contains all the parameters to send to the API endpoint - for the app config create operation. +/* +AppConfigCreateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the app config create operation. + + Typically these are written to a http.Request. */ type AppConfigCreateParams struct { diff --git a/go/client/operations/app_config_create_responses.go b/go/client/operations/app_config_create_responses.go index 66e0216..e3f2d8d 100644 --- a/go/client/operations/app_config_create_responses.go +++ b/go/client/operations/app_config_create_responses.go @@ -63,7 +63,8 @@ func NewAppConfigCreateOK() *AppConfigCreateOK { return &AppConfigCreateOK{} } -/* AppConfigCreateOK describes a response with status code 200, with default header values. +/* +AppConfigCreateOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type AppConfigCreateOK struct { Payload models.V0AppConfigRespModel } +// IsSuccess returns true when this app config create o k response has a 2xx status code +func (o *AppConfigCreateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this app config create o k response has a 3xx status code +func (o *AppConfigCreateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app config create o k response has a 4xx status code +func (o *AppConfigCreateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this app config create o k response has a 5xx status code +func (o *AppConfigCreateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this app config create o k response a status code equal to that given +func (o *AppConfigCreateOK) IsCode(code int) bool { + return code == 200 +} + func (o *AppConfigCreateOK) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/bitrise.yml][%d] appConfigCreateOK %+v", 200, o.Payload) } + +func (o *AppConfigCreateOK) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/bitrise.yml][%d] appConfigCreateOK %+v", 200, o.Payload) +} + func (o *AppConfigCreateOK) GetPayload() models.V0AppConfigRespModel { return o.Payload } @@ -93,7 +124,8 @@ func NewAppConfigCreateBadRequest() *AppConfigCreateBadRequest { return &AppConfigCreateBadRequest{} } -/* AppConfigCreateBadRequest describes a response with status code 400, with default header values. +/* +AppConfigCreateBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -101,9 +133,39 @@ type AppConfigCreateBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app config create bad request response has a 2xx status code +func (o *AppConfigCreateBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app config create bad request response has a 3xx status code +func (o *AppConfigCreateBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app config create bad request response has a 4xx status code +func (o *AppConfigCreateBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this app config create bad request response has a 5xx status code +func (o *AppConfigCreateBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this app config create bad request response a status code equal to that given +func (o *AppConfigCreateBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *AppConfigCreateBadRequest) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/bitrise.yml][%d] appConfigCreateBadRequest %+v", 400, o.Payload) } + +func (o *AppConfigCreateBadRequest) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/bitrise.yml][%d] appConfigCreateBadRequest %+v", 400, o.Payload) +} + func (o *AppConfigCreateBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -125,7 +187,8 @@ func NewAppConfigCreateUnauthorized() *AppConfigCreateUnauthorized { return &AppConfigCreateUnauthorized{} } -/* AppConfigCreateUnauthorized describes a response with status code 401, with default header values. +/* +AppConfigCreateUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -133,9 +196,39 @@ type AppConfigCreateUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app config create unauthorized response has a 2xx status code +func (o *AppConfigCreateUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app config create unauthorized response has a 3xx status code +func (o *AppConfigCreateUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app config create unauthorized response has a 4xx status code +func (o *AppConfigCreateUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this app config create unauthorized response has a 5xx status code +func (o *AppConfigCreateUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this app config create unauthorized response a status code equal to that given +func (o *AppConfigCreateUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *AppConfigCreateUnauthorized) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/bitrise.yml][%d] appConfigCreateUnauthorized %+v", 401, o.Payload) } + +func (o *AppConfigCreateUnauthorized) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/bitrise.yml][%d] appConfigCreateUnauthorized %+v", 401, o.Payload) +} + func (o *AppConfigCreateUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -157,7 +250,8 @@ func NewAppConfigCreateNotFound() *AppConfigCreateNotFound { return &AppConfigCreateNotFound{} } -/* AppConfigCreateNotFound describes a response with status code 404, with default header values. +/* +AppConfigCreateNotFound describes a response with status code 404, with default header values. Not Found */ @@ -165,9 +259,39 @@ type AppConfigCreateNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app config create not found response has a 2xx status code +func (o *AppConfigCreateNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app config create not found response has a 3xx status code +func (o *AppConfigCreateNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app config create not found response has a 4xx status code +func (o *AppConfigCreateNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this app config create not found response has a 5xx status code +func (o *AppConfigCreateNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this app config create not found response a status code equal to that given +func (o *AppConfigCreateNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *AppConfigCreateNotFound) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/bitrise.yml][%d] appConfigCreateNotFound %+v", 404, o.Payload) } + +func (o *AppConfigCreateNotFound) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/bitrise.yml][%d] appConfigCreateNotFound %+v", 404, o.Payload) +} + func (o *AppConfigCreateNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -189,7 +313,8 @@ func NewAppConfigCreateInternalServerError() *AppConfigCreateInternalServerError return &AppConfigCreateInternalServerError{} } -/* AppConfigCreateInternalServerError describes a response with status code 500, with default header values. +/* +AppConfigCreateInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -197,9 +322,39 @@ type AppConfigCreateInternalServerError struct { Payload *models.V0ProxyErrorRespModel } +// IsSuccess returns true when this app config create internal server error response has a 2xx status code +func (o *AppConfigCreateInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app config create internal server error response has a 3xx status code +func (o *AppConfigCreateInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app config create internal server error response has a 4xx status code +func (o *AppConfigCreateInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this app config create internal server error response has a 5xx status code +func (o *AppConfigCreateInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this app config create internal server error response a status code equal to that given +func (o *AppConfigCreateInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *AppConfigCreateInternalServerError) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/bitrise.yml][%d] appConfigCreateInternalServerError %+v", 500, o.Payload) } + +func (o *AppConfigCreateInternalServerError) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/bitrise.yml][%d] appConfigCreateInternalServerError %+v", 500, o.Payload) +} + func (o *AppConfigCreateInternalServerError) GetPayload() *models.V0ProxyErrorRespModel { return o.Payload } diff --git a/go/client/operations/app_config_datastore_show_parameters.go b/go/client/operations/app_config_datastore_show_parameters.go index dd5c777..6227629 100644 --- a/go/client/operations/app_config_datastore_show_parameters.go +++ b/go/client/operations/app_config_datastore_show_parameters.go @@ -52,10 +52,12 @@ func NewAppConfigDatastoreShowParamsWithHTTPClient(client *http.Client) *AppConf } } -/* AppConfigDatastoreShowParams contains all the parameters to send to the API endpoint - for the app config datastore show operation. +/* +AppConfigDatastoreShowParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the app config datastore show operation. + + Typically these are written to a http.Request. */ type AppConfigDatastoreShowParams struct { diff --git a/go/client/operations/app_config_datastore_show_responses.go b/go/client/operations/app_config_datastore_show_responses.go index a9da318..2d14280 100644 --- a/go/client/operations/app_config_datastore_show_responses.go +++ b/go/client/operations/app_config_datastore_show_responses.go @@ -63,7 +63,8 @@ func NewAppConfigDatastoreShowOK() *AppConfigDatastoreShowOK { return &AppConfigDatastoreShowOK{} } -/* AppConfigDatastoreShowOK describes a response with status code 200, with default header values. +/* +AppConfigDatastoreShowOK describes a response with status code 200, with default header values. {the bitrise.yml in yml format} */ @@ -71,9 +72,39 @@ type AppConfigDatastoreShowOK struct { Payload string } +// IsSuccess returns true when this app config datastore show o k response has a 2xx status code +func (o *AppConfigDatastoreShowOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this app config datastore show o k response has a 3xx status code +func (o *AppConfigDatastoreShowOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app config datastore show o k response has a 4xx status code +func (o *AppConfigDatastoreShowOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this app config datastore show o k response has a 5xx status code +func (o *AppConfigDatastoreShowOK) IsServerError() bool { + return false +} + +// IsCode returns true when this app config datastore show o k response a status code equal to that given +func (o *AppConfigDatastoreShowOK) IsCode(code int) bool { + return code == 200 +} + func (o *AppConfigDatastoreShowOK) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/bitrise.yml][%d] appConfigDatastoreShowOK %+v", 200, o.Payload) } + +func (o *AppConfigDatastoreShowOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/bitrise.yml][%d] appConfigDatastoreShowOK %+v", 200, o.Payload) +} + func (o *AppConfigDatastoreShowOK) GetPayload() string { return o.Payload } @@ -93,7 +124,8 @@ func NewAppConfigDatastoreShowBadRequest() *AppConfigDatastoreShowBadRequest { return &AppConfigDatastoreShowBadRequest{} } -/* AppConfigDatastoreShowBadRequest describes a response with status code 400, with default header values. +/* +AppConfigDatastoreShowBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -101,9 +133,39 @@ type AppConfigDatastoreShowBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app config datastore show bad request response has a 2xx status code +func (o *AppConfigDatastoreShowBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app config datastore show bad request response has a 3xx status code +func (o *AppConfigDatastoreShowBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app config datastore show bad request response has a 4xx status code +func (o *AppConfigDatastoreShowBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this app config datastore show bad request response has a 5xx status code +func (o *AppConfigDatastoreShowBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this app config datastore show bad request response a status code equal to that given +func (o *AppConfigDatastoreShowBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *AppConfigDatastoreShowBadRequest) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/bitrise.yml][%d] appConfigDatastoreShowBadRequest %+v", 400, o.Payload) } + +func (o *AppConfigDatastoreShowBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/bitrise.yml][%d] appConfigDatastoreShowBadRequest %+v", 400, o.Payload) +} + func (o *AppConfigDatastoreShowBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -125,7 +187,8 @@ func NewAppConfigDatastoreShowUnauthorized() *AppConfigDatastoreShowUnauthorized return &AppConfigDatastoreShowUnauthorized{} } -/* AppConfigDatastoreShowUnauthorized describes a response with status code 401, with default header values. +/* +AppConfigDatastoreShowUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -133,9 +196,39 @@ type AppConfigDatastoreShowUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app config datastore show unauthorized response has a 2xx status code +func (o *AppConfigDatastoreShowUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app config datastore show unauthorized response has a 3xx status code +func (o *AppConfigDatastoreShowUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app config datastore show unauthorized response has a 4xx status code +func (o *AppConfigDatastoreShowUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this app config datastore show unauthorized response has a 5xx status code +func (o *AppConfigDatastoreShowUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this app config datastore show unauthorized response a status code equal to that given +func (o *AppConfigDatastoreShowUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *AppConfigDatastoreShowUnauthorized) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/bitrise.yml][%d] appConfigDatastoreShowUnauthorized %+v", 401, o.Payload) } + +func (o *AppConfigDatastoreShowUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/bitrise.yml][%d] appConfigDatastoreShowUnauthorized %+v", 401, o.Payload) +} + func (o *AppConfigDatastoreShowUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -157,7 +250,8 @@ func NewAppConfigDatastoreShowNotFound() *AppConfigDatastoreShowNotFound { return &AppConfigDatastoreShowNotFound{} } -/* AppConfigDatastoreShowNotFound describes a response with status code 404, with default header values. +/* +AppConfigDatastoreShowNotFound describes a response with status code 404, with default header values. Not Found */ @@ -165,9 +259,39 @@ type AppConfigDatastoreShowNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app config datastore show not found response has a 2xx status code +func (o *AppConfigDatastoreShowNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app config datastore show not found response has a 3xx status code +func (o *AppConfigDatastoreShowNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app config datastore show not found response has a 4xx status code +func (o *AppConfigDatastoreShowNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this app config datastore show not found response has a 5xx status code +func (o *AppConfigDatastoreShowNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this app config datastore show not found response a status code equal to that given +func (o *AppConfigDatastoreShowNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *AppConfigDatastoreShowNotFound) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/bitrise.yml][%d] appConfigDatastoreShowNotFound %+v", 404, o.Payload) } + +func (o *AppConfigDatastoreShowNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/bitrise.yml][%d] appConfigDatastoreShowNotFound %+v", 404, o.Payload) +} + func (o *AppConfigDatastoreShowNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -189,7 +313,8 @@ func NewAppConfigDatastoreShowInternalServerError() *AppConfigDatastoreShowInter return &AppConfigDatastoreShowInternalServerError{} } -/* AppConfigDatastoreShowInternalServerError describes a response with status code 500, with default header values. +/* +AppConfigDatastoreShowInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -197,9 +322,39 @@ type AppConfigDatastoreShowInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app config datastore show internal server error response has a 2xx status code +func (o *AppConfigDatastoreShowInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app config datastore show internal server error response has a 3xx status code +func (o *AppConfigDatastoreShowInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app config datastore show internal server error response has a 4xx status code +func (o *AppConfigDatastoreShowInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this app config datastore show internal server error response has a 5xx status code +func (o *AppConfigDatastoreShowInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this app config datastore show internal server error response a status code equal to that given +func (o *AppConfigDatastoreShowInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *AppConfigDatastoreShowInternalServerError) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/bitrise.yml][%d] appConfigDatastoreShowInternalServerError %+v", 500, o.Payload) } + +func (o *AppConfigDatastoreShowInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/bitrise.yml][%d] appConfigDatastoreShowInternalServerError %+v", 500, o.Payload) +} + func (o *AppConfigDatastoreShowInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/app_create_parameters.go b/go/client/operations/app_create_parameters.go index 820f230..312b986 100644 --- a/go/client/operations/app_create_parameters.go +++ b/go/client/operations/app_create_parameters.go @@ -54,10 +54,12 @@ func NewAppCreateParamsWithHTTPClient(client *http.Client) *AppCreateParams { } } -/* AppCreateParams contains all the parameters to send to the API endpoint - for the app create operation. +/* +AppCreateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the app create operation. + + Typically these are written to a http.Request. */ type AppCreateParams struct { diff --git a/go/client/operations/app_create_responses.go b/go/client/operations/app_create_responses.go index ff87634..72090d1 100644 --- a/go/client/operations/app_create_responses.go +++ b/go/client/operations/app_create_responses.go @@ -63,7 +63,8 @@ func NewAppCreateOK() *AppCreateOK { return &AppCreateOK{} } -/* AppCreateOK describes a response with status code 200, with default header values. +/* +AppCreateOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type AppCreateOK struct { Payload *models.V0AppRespModel } +// IsSuccess returns true when this app create o k response has a 2xx status code +func (o *AppCreateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this app create o k response has a 3xx status code +func (o *AppCreateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app create o k response has a 4xx status code +func (o *AppCreateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this app create o k response has a 5xx status code +func (o *AppCreateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this app create o k response a status code equal to that given +func (o *AppCreateOK) IsCode(code int) bool { + return code == 200 +} + func (o *AppCreateOK) Error() string { return fmt.Sprintf("[POST /apps/register][%d] appCreateOK %+v", 200, o.Payload) } + +func (o *AppCreateOK) String() string { + return fmt.Sprintf("[POST /apps/register][%d] appCreateOK %+v", 200, o.Payload) +} + func (o *AppCreateOK) GetPayload() *models.V0AppRespModel { return o.Payload } @@ -95,7 +126,8 @@ func NewAppCreateBadRequest() *AppCreateBadRequest { return &AppCreateBadRequest{} } -/* AppCreateBadRequest describes a response with status code 400, with default header values. +/* +AppCreateBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type AppCreateBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app create bad request response has a 2xx status code +func (o *AppCreateBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app create bad request response has a 3xx status code +func (o *AppCreateBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app create bad request response has a 4xx status code +func (o *AppCreateBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this app create bad request response has a 5xx status code +func (o *AppCreateBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this app create bad request response a status code equal to that given +func (o *AppCreateBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *AppCreateBadRequest) Error() string { return fmt.Sprintf("[POST /apps/register][%d] appCreateBadRequest %+v", 400, o.Payload) } + +func (o *AppCreateBadRequest) String() string { + return fmt.Sprintf("[POST /apps/register][%d] appCreateBadRequest %+v", 400, o.Payload) +} + func (o *AppCreateBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewAppCreateUnauthorized() *AppCreateUnauthorized { return &AppCreateUnauthorized{} } -/* AppCreateUnauthorized describes a response with status code 401, with default header values. +/* +AppCreateUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type AppCreateUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app create unauthorized response has a 2xx status code +func (o *AppCreateUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app create unauthorized response has a 3xx status code +func (o *AppCreateUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app create unauthorized response has a 4xx status code +func (o *AppCreateUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this app create unauthorized response has a 5xx status code +func (o *AppCreateUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this app create unauthorized response a status code equal to that given +func (o *AppCreateUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *AppCreateUnauthorized) Error() string { return fmt.Sprintf("[POST /apps/register][%d] appCreateUnauthorized %+v", 401, o.Payload) } + +func (o *AppCreateUnauthorized) String() string { + return fmt.Sprintf("[POST /apps/register][%d] appCreateUnauthorized %+v", 401, o.Payload) +} + func (o *AppCreateUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewAppCreateNotFound() *AppCreateNotFound { return &AppCreateNotFound{} } -/* AppCreateNotFound describes a response with status code 404, with default header values. +/* +AppCreateNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type AppCreateNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app create not found response has a 2xx status code +func (o *AppCreateNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app create not found response has a 3xx status code +func (o *AppCreateNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app create not found response has a 4xx status code +func (o *AppCreateNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this app create not found response has a 5xx status code +func (o *AppCreateNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this app create not found response a status code equal to that given +func (o *AppCreateNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *AppCreateNotFound) Error() string { return fmt.Sprintf("[POST /apps/register][%d] appCreateNotFound %+v", 404, o.Payload) } + +func (o *AppCreateNotFound) String() string { + return fmt.Sprintf("[POST /apps/register][%d] appCreateNotFound %+v", 404, o.Payload) +} + func (o *AppCreateNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewAppCreateInternalServerError() *AppCreateInternalServerError { return &AppCreateInternalServerError{} } -/* AppCreateInternalServerError describes a response with status code 500, with default header values. +/* +AppCreateInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type AppCreateInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app create internal server error response has a 2xx status code +func (o *AppCreateInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app create internal server error response has a 3xx status code +func (o *AppCreateInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app create internal server error response has a 4xx status code +func (o *AppCreateInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this app create internal server error response has a 5xx status code +func (o *AppCreateInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this app create internal server error response a status code equal to that given +func (o *AppCreateInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *AppCreateInternalServerError) Error() string { return fmt.Sprintf("[POST /apps/register][%d] appCreateInternalServerError %+v", 500, o.Payload) } + +func (o *AppCreateInternalServerError) String() string { + return fmt.Sprintf("[POST /apps/register][%d] appCreateInternalServerError %+v", 500, o.Payload) +} + func (o *AppCreateInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/app_finish_parameters.go b/go/client/operations/app_finish_parameters.go index 2dcf8c8..c41656e 100644 --- a/go/client/operations/app_finish_parameters.go +++ b/go/client/operations/app_finish_parameters.go @@ -54,10 +54,12 @@ func NewAppFinishParamsWithHTTPClient(client *http.Client) *AppFinishParams { } } -/* AppFinishParams contains all the parameters to send to the API endpoint - for the app finish operation. +/* +AppFinishParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the app finish operation. + + Typically these are written to a http.Request. */ type AppFinishParams struct { diff --git a/go/client/operations/app_finish_responses.go b/go/client/operations/app_finish_responses.go index 229bc29..42037d9 100644 --- a/go/client/operations/app_finish_responses.go +++ b/go/client/operations/app_finish_responses.go @@ -63,7 +63,8 @@ func NewAppFinishOK() *AppFinishOK { return &AppFinishOK{} } -/* AppFinishOK describes a response with status code 200, with default header values. +/* +AppFinishOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type AppFinishOK struct { Payload *models.V0AppFinishRespModel } +// IsSuccess returns true when this app finish o k response has a 2xx status code +func (o *AppFinishOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this app finish o k response has a 3xx status code +func (o *AppFinishOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app finish o k response has a 4xx status code +func (o *AppFinishOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this app finish o k response has a 5xx status code +func (o *AppFinishOK) IsServerError() bool { + return false +} + +// IsCode returns true when this app finish o k response a status code equal to that given +func (o *AppFinishOK) IsCode(code int) bool { + return code == 200 +} + func (o *AppFinishOK) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/finish][%d] appFinishOK %+v", 200, o.Payload) } + +func (o *AppFinishOK) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/finish][%d] appFinishOK %+v", 200, o.Payload) +} + func (o *AppFinishOK) GetPayload() *models.V0AppFinishRespModel { return o.Payload } @@ -95,7 +126,8 @@ func NewAppFinishBadRequest() *AppFinishBadRequest { return &AppFinishBadRequest{} } -/* AppFinishBadRequest describes a response with status code 400, with default header values. +/* +AppFinishBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type AppFinishBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app finish bad request response has a 2xx status code +func (o *AppFinishBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app finish bad request response has a 3xx status code +func (o *AppFinishBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app finish bad request response has a 4xx status code +func (o *AppFinishBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this app finish bad request response has a 5xx status code +func (o *AppFinishBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this app finish bad request response a status code equal to that given +func (o *AppFinishBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *AppFinishBadRequest) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/finish][%d] appFinishBadRequest %+v", 400, o.Payload) } + +func (o *AppFinishBadRequest) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/finish][%d] appFinishBadRequest %+v", 400, o.Payload) +} + func (o *AppFinishBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewAppFinishUnauthorized() *AppFinishUnauthorized { return &AppFinishUnauthorized{} } -/* AppFinishUnauthorized describes a response with status code 401, with default header values. +/* +AppFinishUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type AppFinishUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app finish unauthorized response has a 2xx status code +func (o *AppFinishUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app finish unauthorized response has a 3xx status code +func (o *AppFinishUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app finish unauthorized response has a 4xx status code +func (o *AppFinishUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this app finish unauthorized response has a 5xx status code +func (o *AppFinishUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this app finish unauthorized response a status code equal to that given +func (o *AppFinishUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *AppFinishUnauthorized) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/finish][%d] appFinishUnauthorized %+v", 401, o.Payload) } + +func (o *AppFinishUnauthorized) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/finish][%d] appFinishUnauthorized %+v", 401, o.Payload) +} + func (o *AppFinishUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewAppFinishNotFound() *AppFinishNotFound { return &AppFinishNotFound{} } -/* AppFinishNotFound describes a response with status code 404, with default header values. +/* +AppFinishNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type AppFinishNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app finish not found response has a 2xx status code +func (o *AppFinishNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app finish not found response has a 3xx status code +func (o *AppFinishNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app finish not found response has a 4xx status code +func (o *AppFinishNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this app finish not found response has a 5xx status code +func (o *AppFinishNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this app finish not found response a status code equal to that given +func (o *AppFinishNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *AppFinishNotFound) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/finish][%d] appFinishNotFound %+v", 404, o.Payload) } + +func (o *AppFinishNotFound) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/finish][%d] appFinishNotFound %+v", 404, o.Payload) +} + func (o *AppFinishNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewAppFinishInternalServerError() *AppFinishInternalServerError { return &AppFinishInternalServerError{} } -/* AppFinishInternalServerError describes a response with status code 500, with default header values. +/* +AppFinishInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type AppFinishInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app finish internal server error response has a 2xx status code +func (o *AppFinishInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app finish internal server error response has a 3xx status code +func (o *AppFinishInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app finish internal server error response has a 4xx status code +func (o *AppFinishInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this app finish internal server error response has a 5xx status code +func (o *AppFinishInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this app finish internal server error response a status code equal to that given +func (o *AppFinishInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *AppFinishInternalServerError) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/finish][%d] appFinishInternalServerError %+v", 500, o.Payload) } + +func (o *AppFinishInternalServerError) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/finish][%d] appFinishInternalServerError %+v", 500, o.Payload) +} + func (o *AppFinishInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/app_list_by_organization_parameters.go b/go/client/operations/app_list_by_organization_parameters.go index 6e2d8c8..db740b3 100644 --- a/go/client/operations/app_list_by_organization_parameters.go +++ b/go/client/operations/app_list_by_organization_parameters.go @@ -53,10 +53,12 @@ func NewAppListByOrganizationParamsWithHTTPClient(client *http.Client) *AppListB } } -/* AppListByOrganizationParams contains all the parameters to send to the API endpoint - for the app list by organization operation. +/* +AppListByOrganizationParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the app list by organization operation. + + Typically these are written to a http.Request. */ type AppListByOrganizationParams struct { @@ -78,12 +80,24 @@ type AppListByOrganizationParams struct { */ OrgSlug string + /* ProjectType. + + The project type of the app (eg. 'ios', 'android') + */ + ProjectType *string + /* SortBy. Order of applications: sort them based on when they were created or the time of their last build */ SortBy *string + /* Title. + + The title of the app + */ + Title *string + timeout time.Duration Context context.Context HTTPClient *http.Client @@ -170,6 +184,17 @@ func (o *AppListByOrganizationParams) SetOrgSlug(orgSlug string) { o.OrgSlug = orgSlug } +// WithProjectType adds the projectType to the app list by organization params +func (o *AppListByOrganizationParams) WithProjectType(projectType *string) *AppListByOrganizationParams { + o.SetProjectType(projectType) + return o +} + +// SetProjectType adds the projectType to the app list by organization params +func (o *AppListByOrganizationParams) SetProjectType(projectType *string) { + o.ProjectType = projectType +} + // WithSortBy adds the sortBy to the app list by organization params func (o *AppListByOrganizationParams) WithSortBy(sortBy *string) *AppListByOrganizationParams { o.SetSortBy(sortBy) @@ -181,6 +206,17 @@ func (o *AppListByOrganizationParams) SetSortBy(sortBy *string) { o.SortBy = sortBy } +// WithTitle adds the title to the app list by organization params +func (o *AppListByOrganizationParams) WithTitle(title *string) *AppListByOrganizationParams { + o.SetTitle(title) + return o +} + +// SetTitle adds the title to the app list by organization params +func (o *AppListByOrganizationParams) SetTitle(title *string) { + o.Title = title +} + // WriteToRequest writes these params to a swagger request func (o *AppListByOrganizationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -228,6 +264,23 @@ func (o *AppListByOrganizationParams) WriteToRequest(r runtime.ClientRequest, re return err } + if o.ProjectType != nil { + + // query param project_type + var qrProjectType string + + if o.ProjectType != nil { + qrProjectType = *o.ProjectType + } + qProjectType := qrProjectType + if qProjectType != "" { + + if err := r.SetQueryParam("project_type", qProjectType); err != nil { + return err + } + } + } + if o.SortBy != nil { // query param sort_by @@ -245,6 +298,23 @@ func (o *AppListByOrganizationParams) WriteToRequest(r runtime.ClientRequest, re } } + if o.Title != nil { + + // query param title + var qrTitle string + + if o.Title != nil { + qrTitle = *o.Title + } + qTitle := qrTitle + if qTitle != "" { + + if err := r.SetQueryParam("title", qTitle); err != nil { + return err + } + } + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/go/client/operations/app_list_by_organization_responses.go b/go/client/operations/app_list_by_organization_responses.go index 6091115..566a2b5 100644 --- a/go/client/operations/app_list_by_organization_responses.go +++ b/go/client/operations/app_list_by_organization_responses.go @@ -63,7 +63,8 @@ func NewAppListByOrganizationOK() *AppListByOrganizationOK { return &AppListByOrganizationOK{} } -/* AppListByOrganizationOK describes a response with status code 200, with default header values. +/* +AppListByOrganizationOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type AppListByOrganizationOK struct { Payload *models.V0AppListResponseModel } +// IsSuccess returns true when this app list by organization o k response has a 2xx status code +func (o *AppListByOrganizationOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this app list by organization o k response has a 3xx status code +func (o *AppListByOrganizationOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app list by organization o k response has a 4xx status code +func (o *AppListByOrganizationOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this app list by organization o k response has a 5xx status code +func (o *AppListByOrganizationOK) IsServerError() bool { + return false +} + +// IsCode returns true when this app list by organization o k response a status code equal to that given +func (o *AppListByOrganizationOK) IsCode(code int) bool { + return code == 200 +} + func (o *AppListByOrganizationOK) Error() string { return fmt.Sprintf("[GET /organizations/{org-slug}/apps][%d] appListByOrganizationOK %+v", 200, o.Payload) } + +func (o *AppListByOrganizationOK) String() string { + return fmt.Sprintf("[GET /organizations/{org-slug}/apps][%d] appListByOrganizationOK %+v", 200, o.Payload) +} + func (o *AppListByOrganizationOK) GetPayload() *models.V0AppListResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewAppListByOrganizationBadRequest() *AppListByOrganizationBadRequest { return &AppListByOrganizationBadRequest{} } -/* AppListByOrganizationBadRequest describes a response with status code 400, with default header values. +/* +AppListByOrganizationBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type AppListByOrganizationBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app list by organization bad request response has a 2xx status code +func (o *AppListByOrganizationBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app list by organization bad request response has a 3xx status code +func (o *AppListByOrganizationBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app list by organization bad request response has a 4xx status code +func (o *AppListByOrganizationBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this app list by organization bad request response has a 5xx status code +func (o *AppListByOrganizationBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this app list by organization bad request response a status code equal to that given +func (o *AppListByOrganizationBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *AppListByOrganizationBadRequest) Error() string { return fmt.Sprintf("[GET /organizations/{org-slug}/apps][%d] appListByOrganizationBadRequest %+v", 400, o.Payload) } + +func (o *AppListByOrganizationBadRequest) String() string { + return fmt.Sprintf("[GET /organizations/{org-slug}/apps][%d] appListByOrganizationBadRequest %+v", 400, o.Payload) +} + func (o *AppListByOrganizationBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewAppListByOrganizationUnauthorized() *AppListByOrganizationUnauthorized { return &AppListByOrganizationUnauthorized{} } -/* AppListByOrganizationUnauthorized describes a response with status code 401, with default header values. +/* +AppListByOrganizationUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type AppListByOrganizationUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app list by organization unauthorized response has a 2xx status code +func (o *AppListByOrganizationUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app list by organization unauthorized response has a 3xx status code +func (o *AppListByOrganizationUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app list by organization unauthorized response has a 4xx status code +func (o *AppListByOrganizationUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this app list by organization unauthorized response has a 5xx status code +func (o *AppListByOrganizationUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this app list by organization unauthorized response a status code equal to that given +func (o *AppListByOrganizationUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *AppListByOrganizationUnauthorized) Error() string { return fmt.Sprintf("[GET /organizations/{org-slug}/apps][%d] appListByOrganizationUnauthorized %+v", 401, o.Payload) } + +func (o *AppListByOrganizationUnauthorized) String() string { + return fmt.Sprintf("[GET /organizations/{org-slug}/apps][%d] appListByOrganizationUnauthorized %+v", 401, o.Payload) +} + func (o *AppListByOrganizationUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewAppListByOrganizationNotFound() *AppListByOrganizationNotFound { return &AppListByOrganizationNotFound{} } -/* AppListByOrganizationNotFound describes a response with status code 404, with default header values. +/* +AppListByOrganizationNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type AppListByOrganizationNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app list by organization not found response has a 2xx status code +func (o *AppListByOrganizationNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app list by organization not found response has a 3xx status code +func (o *AppListByOrganizationNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app list by organization not found response has a 4xx status code +func (o *AppListByOrganizationNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this app list by organization not found response has a 5xx status code +func (o *AppListByOrganizationNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this app list by organization not found response a status code equal to that given +func (o *AppListByOrganizationNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *AppListByOrganizationNotFound) Error() string { return fmt.Sprintf("[GET /organizations/{org-slug}/apps][%d] appListByOrganizationNotFound %+v", 404, o.Payload) } + +func (o *AppListByOrganizationNotFound) String() string { + return fmt.Sprintf("[GET /organizations/{org-slug}/apps][%d] appListByOrganizationNotFound %+v", 404, o.Payload) +} + func (o *AppListByOrganizationNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewAppListByOrganizationInternalServerError() *AppListByOrganizationInterna return &AppListByOrganizationInternalServerError{} } -/* AppListByOrganizationInternalServerError describes a response with status code 500, with default header values. +/* +AppListByOrganizationInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type AppListByOrganizationInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app list by organization internal server error response has a 2xx status code +func (o *AppListByOrganizationInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app list by organization internal server error response has a 3xx status code +func (o *AppListByOrganizationInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app list by organization internal server error response has a 4xx status code +func (o *AppListByOrganizationInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this app list by organization internal server error response has a 5xx status code +func (o *AppListByOrganizationInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this app list by organization internal server error response a status code equal to that given +func (o *AppListByOrganizationInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *AppListByOrganizationInternalServerError) Error() string { return fmt.Sprintf("[GET /organizations/{org-slug}/apps][%d] appListByOrganizationInternalServerError %+v", 500, o.Payload) } + +func (o *AppListByOrganizationInternalServerError) String() string { + return fmt.Sprintf("[GET /organizations/{org-slug}/apps][%d] appListByOrganizationInternalServerError %+v", 500, o.Payload) +} + func (o *AppListByOrganizationInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/app_list_by_user_parameters.go b/go/client/operations/app_list_by_user_parameters.go index 61fcd2b..4684d17 100644 --- a/go/client/operations/app_list_by_user_parameters.go +++ b/go/client/operations/app_list_by_user_parameters.go @@ -53,10 +53,12 @@ func NewAppListByUserParamsWithHTTPClient(client *http.Client) *AppListByUserPar } } -/* AppListByUserParams contains all the parameters to send to the API endpoint - for the app list by user operation. +/* +AppListByUserParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the app list by user operation. + + Typically these are written to a http.Request. */ type AppListByUserParams struct { @@ -72,12 +74,24 @@ type AppListByUserParams struct { */ Next *string + /* ProjectType. + + The project type of the app (eg. 'ios', 'android') + */ + ProjectType *string + /* SortBy. Order of applications */ SortBy *string + /* Title. + + The title of the app + */ + Title *string + /* UserSlug. User slug @@ -159,6 +173,17 @@ func (o *AppListByUserParams) SetNext(next *string) { o.Next = next } +// WithProjectType adds the projectType to the app list by user params +func (o *AppListByUserParams) WithProjectType(projectType *string) *AppListByUserParams { + o.SetProjectType(projectType) + return o +} + +// SetProjectType adds the projectType to the app list by user params +func (o *AppListByUserParams) SetProjectType(projectType *string) { + o.ProjectType = projectType +} + // WithSortBy adds the sortBy to the app list by user params func (o *AppListByUserParams) WithSortBy(sortBy *string) *AppListByUserParams { o.SetSortBy(sortBy) @@ -170,6 +195,17 @@ func (o *AppListByUserParams) SetSortBy(sortBy *string) { o.SortBy = sortBy } +// WithTitle adds the title to the app list by user params +func (o *AppListByUserParams) WithTitle(title *string) *AppListByUserParams { + o.SetTitle(title) + return o +} + +// SetTitle adds the title to the app list by user params +func (o *AppListByUserParams) SetTitle(title *string) { + o.Title = title +} + // WithUserSlug adds the userSlug to the app list by user params func (o *AppListByUserParams) WithUserSlug(userSlug string) *AppListByUserParams { o.SetUserSlug(userSlug) @@ -223,6 +259,23 @@ func (o *AppListByUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } + if o.ProjectType != nil { + + // query param project_type + var qrProjectType string + + if o.ProjectType != nil { + qrProjectType = *o.ProjectType + } + qProjectType := qrProjectType + if qProjectType != "" { + + if err := r.SetQueryParam("project_type", qProjectType); err != nil { + return err + } + } + } + if o.SortBy != nil { // query param sort_by @@ -240,6 +293,23 @@ func (o *AppListByUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt } } + if o.Title != nil { + + // query param title + var qrTitle string + + if o.Title != nil { + qrTitle = *o.Title + } + qTitle := qrTitle + if qTitle != "" { + + if err := r.SetQueryParam("title", qTitle); err != nil { + return err + } + } + } + // path param user-slug if err := r.SetPathParam("user-slug", o.UserSlug); err != nil { return err diff --git a/go/client/operations/app_list_by_user_responses.go b/go/client/operations/app_list_by_user_responses.go index dc36ba3..8011915 100644 --- a/go/client/operations/app_list_by_user_responses.go +++ b/go/client/operations/app_list_by_user_responses.go @@ -63,7 +63,8 @@ func NewAppListByUserOK() *AppListByUserOK { return &AppListByUserOK{} } -/* AppListByUserOK describes a response with status code 200, with default header values. +/* +AppListByUserOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type AppListByUserOK struct { Payload *models.V0AppListResponseModel } +// IsSuccess returns true when this app list by user o k response has a 2xx status code +func (o *AppListByUserOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this app list by user o k response has a 3xx status code +func (o *AppListByUserOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app list by user o k response has a 4xx status code +func (o *AppListByUserOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this app list by user o k response has a 5xx status code +func (o *AppListByUserOK) IsServerError() bool { + return false +} + +// IsCode returns true when this app list by user o k response a status code equal to that given +func (o *AppListByUserOK) IsCode(code int) bool { + return code == 200 +} + func (o *AppListByUserOK) Error() string { return fmt.Sprintf("[GET /users/{user-slug}/apps][%d] appListByUserOK %+v", 200, o.Payload) } + +func (o *AppListByUserOK) String() string { + return fmt.Sprintf("[GET /users/{user-slug}/apps][%d] appListByUserOK %+v", 200, o.Payload) +} + func (o *AppListByUserOK) GetPayload() *models.V0AppListResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewAppListByUserBadRequest() *AppListByUserBadRequest { return &AppListByUserBadRequest{} } -/* AppListByUserBadRequest describes a response with status code 400, with default header values. +/* +AppListByUserBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type AppListByUserBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app list by user bad request response has a 2xx status code +func (o *AppListByUserBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app list by user bad request response has a 3xx status code +func (o *AppListByUserBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app list by user bad request response has a 4xx status code +func (o *AppListByUserBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this app list by user bad request response has a 5xx status code +func (o *AppListByUserBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this app list by user bad request response a status code equal to that given +func (o *AppListByUserBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *AppListByUserBadRequest) Error() string { return fmt.Sprintf("[GET /users/{user-slug}/apps][%d] appListByUserBadRequest %+v", 400, o.Payload) } + +func (o *AppListByUserBadRequest) String() string { + return fmt.Sprintf("[GET /users/{user-slug}/apps][%d] appListByUserBadRequest %+v", 400, o.Payload) +} + func (o *AppListByUserBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewAppListByUserUnauthorized() *AppListByUserUnauthorized { return &AppListByUserUnauthorized{} } -/* AppListByUserUnauthorized describes a response with status code 401, with default header values. +/* +AppListByUserUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type AppListByUserUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app list by user unauthorized response has a 2xx status code +func (o *AppListByUserUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app list by user unauthorized response has a 3xx status code +func (o *AppListByUserUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app list by user unauthorized response has a 4xx status code +func (o *AppListByUserUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this app list by user unauthorized response has a 5xx status code +func (o *AppListByUserUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this app list by user unauthorized response a status code equal to that given +func (o *AppListByUserUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *AppListByUserUnauthorized) Error() string { return fmt.Sprintf("[GET /users/{user-slug}/apps][%d] appListByUserUnauthorized %+v", 401, o.Payload) } + +func (o *AppListByUserUnauthorized) String() string { + return fmt.Sprintf("[GET /users/{user-slug}/apps][%d] appListByUserUnauthorized %+v", 401, o.Payload) +} + func (o *AppListByUserUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewAppListByUserNotFound() *AppListByUserNotFound { return &AppListByUserNotFound{} } -/* AppListByUserNotFound describes a response with status code 404, with default header values. +/* +AppListByUserNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type AppListByUserNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app list by user not found response has a 2xx status code +func (o *AppListByUserNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app list by user not found response has a 3xx status code +func (o *AppListByUserNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app list by user not found response has a 4xx status code +func (o *AppListByUserNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this app list by user not found response has a 5xx status code +func (o *AppListByUserNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this app list by user not found response a status code equal to that given +func (o *AppListByUserNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *AppListByUserNotFound) Error() string { return fmt.Sprintf("[GET /users/{user-slug}/apps][%d] appListByUserNotFound %+v", 404, o.Payload) } + +func (o *AppListByUserNotFound) String() string { + return fmt.Sprintf("[GET /users/{user-slug}/apps][%d] appListByUserNotFound %+v", 404, o.Payload) +} + func (o *AppListByUserNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewAppListByUserInternalServerError() *AppListByUserInternalServerError { return &AppListByUserInternalServerError{} } -/* AppListByUserInternalServerError describes a response with status code 500, with default header values. +/* +AppListByUserInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type AppListByUserInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app list by user internal server error response has a 2xx status code +func (o *AppListByUserInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app list by user internal server error response has a 3xx status code +func (o *AppListByUserInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app list by user internal server error response has a 4xx status code +func (o *AppListByUserInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this app list by user internal server error response has a 5xx status code +func (o *AppListByUserInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this app list by user internal server error response a status code equal to that given +func (o *AppListByUserInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *AppListByUserInternalServerError) Error() string { return fmt.Sprintf("[GET /users/{user-slug}/apps][%d] appListByUserInternalServerError %+v", 500, o.Payload) } + +func (o *AppListByUserInternalServerError) String() string { + return fmt.Sprintf("[GET /users/{user-slug}/apps][%d] appListByUserInternalServerError %+v", 500, o.Payload) +} + func (o *AppListByUserInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/app_list_parameters.go b/go/client/operations/app_list_parameters.go index f71e041..1e3a771 100644 --- a/go/client/operations/app_list_parameters.go +++ b/go/client/operations/app_list_parameters.go @@ -53,10 +53,12 @@ func NewAppListParamsWithHTTPClient(client *http.Client) *AppListParams { } } -/* AppListParams contains all the parameters to send to the API endpoint - for the app list operation. +/* +AppListParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the app list operation. + + Typically these are written to a http.Request. */ type AppListParams struct { @@ -72,12 +74,24 @@ type AppListParams struct { */ Next *string + /* ProjectType. + + The project type of the app (eg. 'ios', 'android') + */ + ProjectType *string + /* SortBy. Order of the applications: sort them based on when they were created or the time of their last build */ SortBy *string + /* Title. + + The title of the app + */ + Title *string + timeout time.Duration Context context.Context HTTPClient *http.Client @@ -153,6 +167,17 @@ func (o *AppListParams) SetNext(next *string) { o.Next = next } +// WithProjectType adds the projectType to the app list params +func (o *AppListParams) WithProjectType(projectType *string) *AppListParams { + o.SetProjectType(projectType) + return o +} + +// SetProjectType adds the projectType to the app list params +func (o *AppListParams) SetProjectType(projectType *string) { + o.ProjectType = projectType +} + // WithSortBy adds the sortBy to the app list params func (o *AppListParams) WithSortBy(sortBy *string) *AppListParams { o.SetSortBy(sortBy) @@ -164,6 +189,17 @@ func (o *AppListParams) SetSortBy(sortBy *string) { o.SortBy = sortBy } +// WithTitle adds the title to the app list params +func (o *AppListParams) WithTitle(title *string) *AppListParams { + o.SetTitle(title) + return o +} + +// SetTitle adds the title to the app list params +func (o *AppListParams) SetTitle(title *string) { + o.Title = title +} + // WriteToRequest writes these params to a swagger request func (o *AppListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -206,6 +242,23 @@ func (o *AppListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Regis } } + if o.ProjectType != nil { + + // query param project_type + var qrProjectType string + + if o.ProjectType != nil { + qrProjectType = *o.ProjectType + } + qProjectType := qrProjectType + if qProjectType != "" { + + if err := r.SetQueryParam("project_type", qProjectType); err != nil { + return err + } + } + } + if o.SortBy != nil { // query param sort_by @@ -223,6 +276,23 @@ func (o *AppListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Regis } } + if o.Title != nil { + + // query param title + var qrTitle string + + if o.Title != nil { + qrTitle = *o.Title + } + qTitle := qrTitle + if qTitle != "" { + + if err := r.SetQueryParam("title", qTitle); err != nil { + return err + } + } + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/go/client/operations/app_list_responses.go b/go/client/operations/app_list_responses.go index 68694b6..7cd6eca 100644 --- a/go/client/operations/app_list_responses.go +++ b/go/client/operations/app_list_responses.go @@ -63,7 +63,8 @@ func NewAppListOK() *AppListOK { return &AppListOK{} } -/* AppListOK describes a response with status code 200, with default header values. +/* +AppListOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type AppListOK struct { Payload *models.V0AppListResponseModel } +// IsSuccess returns true when this app list o k response has a 2xx status code +func (o *AppListOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this app list o k response has a 3xx status code +func (o *AppListOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app list o k response has a 4xx status code +func (o *AppListOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this app list o k response has a 5xx status code +func (o *AppListOK) IsServerError() bool { + return false +} + +// IsCode returns true when this app list o k response a status code equal to that given +func (o *AppListOK) IsCode(code int) bool { + return code == 200 +} + func (o *AppListOK) Error() string { return fmt.Sprintf("[GET /apps][%d] appListOK %+v", 200, o.Payload) } + +func (o *AppListOK) String() string { + return fmt.Sprintf("[GET /apps][%d] appListOK %+v", 200, o.Payload) +} + func (o *AppListOK) GetPayload() *models.V0AppListResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewAppListBadRequest() *AppListBadRequest { return &AppListBadRequest{} } -/* AppListBadRequest describes a response with status code 400, with default header values. +/* +AppListBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type AppListBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app list bad request response has a 2xx status code +func (o *AppListBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app list bad request response has a 3xx status code +func (o *AppListBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app list bad request response has a 4xx status code +func (o *AppListBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this app list bad request response has a 5xx status code +func (o *AppListBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this app list bad request response a status code equal to that given +func (o *AppListBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *AppListBadRequest) Error() string { return fmt.Sprintf("[GET /apps][%d] appListBadRequest %+v", 400, o.Payload) } + +func (o *AppListBadRequest) String() string { + return fmt.Sprintf("[GET /apps][%d] appListBadRequest %+v", 400, o.Payload) +} + func (o *AppListBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewAppListUnauthorized() *AppListUnauthorized { return &AppListUnauthorized{} } -/* AppListUnauthorized describes a response with status code 401, with default header values. +/* +AppListUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type AppListUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app list unauthorized response has a 2xx status code +func (o *AppListUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app list unauthorized response has a 3xx status code +func (o *AppListUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app list unauthorized response has a 4xx status code +func (o *AppListUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this app list unauthorized response has a 5xx status code +func (o *AppListUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this app list unauthorized response a status code equal to that given +func (o *AppListUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *AppListUnauthorized) Error() string { return fmt.Sprintf("[GET /apps][%d] appListUnauthorized %+v", 401, o.Payload) } + +func (o *AppListUnauthorized) String() string { + return fmt.Sprintf("[GET /apps][%d] appListUnauthorized %+v", 401, o.Payload) +} + func (o *AppListUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewAppListNotFound() *AppListNotFound { return &AppListNotFound{} } -/* AppListNotFound describes a response with status code 404, with default header values. +/* +AppListNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type AppListNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app list not found response has a 2xx status code +func (o *AppListNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app list not found response has a 3xx status code +func (o *AppListNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app list not found response has a 4xx status code +func (o *AppListNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this app list not found response has a 5xx status code +func (o *AppListNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this app list not found response a status code equal to that given +func (o *AppListNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *AppListNotFound) Error() string { return fmt.Sprintf("[GET /apps][%d] appListNotFound %+v", 404, o.Payload) } + +func (o *AppListNotFound) String() string { + return fmt.Sprintf("[GET /apps][%d] appListNotFound %+v", 404, o.Payload) +} + func (o *AppListNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewAppListInternalServerError() *AppListInternalServerError { return &AppListInternalServerError{} } -/* AppListInternalServerError describes a response with status code 500, with default header values. +/* +AppListInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type AppListInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app list internal server error response has a 2xx status code +func (o *AppListInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app list internal server error response has a 3xx status code +func (o *AppListInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app list internal server error response has a 4xx status code +func (o *AppListInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this app list internal server error response has a 5xx status code +func (o *AppListInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this app list internal server error response a status code equal to that given +func (o *AppListInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *AppListInternalServerError) Error() string { return fmt.Sprintf("[GET /apps][%d] appListInternalServerError %+v", 500, o.Payload) } + +func (o *AppListInternalServerError) String() string { + return fmt.Sprintf("[GET /apps][%d] appListInternalServerError %+v", 500, o.Payload) +} + func (o *AppListInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/app_show_parameters.go b/go/client/operations/app_show_parameters.go index ea22a85..1ec351d 100644 --- a/go/client/operations/app_show_parameters.go +++ b/go/client/operations/app_show_parameters.go @@ -52,10 +52,12 @@ func NewAppShowParamsWithHTTPClient(client *http.Client) *AppShowParams { } } -/* AppShowParams contains all the parameters to send to the API endpoint - for the app show operation. +/* +AppShowParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the app show operation. + + Typically these are written to a http.Request. */ type AppShowParams struct { diff --git a/go/client/operations/app_show_responses.go b/go/client/operations/app_show_responses.go index 72609d8..c4f819e 100644 --- a/go/client/operations/app_show_responses.go +++ b/go/client/operations/app_show_responses.go @@ -63,7 +63,8 @@ func NewAppShowOK() *AppShowOK { return &AppShowOK{} } -/* AppShowOK describes a response with status code 200, with default header values. +/* +AppShowOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type AppShowOK struct { Payload *models.V0AppShowResponseModel } +// IsSuccess returns true when this app show o k response has a 2xx status code +func (o *AppShowOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this app show o k response has a 3xx status code +func (o *AppShowOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app show o k response has a 4xx status code +func (o *AppShowOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this app show o k response has a 5xx status code +func (o *AppShowOK) IsServerError() bool { + return false +} + +// IsCode returns true when this app show o k response a status code equal to that given +func (o *AppShowOK) IsCode(code int) bool { + return code == 200 +} + func (o *AppShowOK) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}][%d] appShowOK %+v", 200, o.Payload) } + +func (o *AppShowOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}][%d] appShowOK %+v", 200, o.Payload) +} + func (o *AppShowOK) GetPayload() *models.V0AppShowResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewAppShowBadRequest() *AppShowBadRequest { return &AppShowBadRequest{} } -/* AppShowBadRequest describes a response with status code 400, with default header values. +/* +AppShowBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type AppShowBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app show bad request response has a 2xx status code +func (o *AppShowBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app show bad request response has a 3xx status code +func (o *AppShowBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app show bad request response has a 4xx status code +func (o *AppShowBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this app show bad request response has a 5xx status code +func (o *AppShowBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this app show bad request response a status code equal to that given +func (o *AppShowBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *AppShowBadRequest) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}][%d] appShowBadRequest %+v", 400, o.Payload) } + +func (o *AppShowBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}][%d] appShowBadRequest %+v", 400, o.Payload) +} + func (o *AppShowBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewAppShowUnauthorized() *AppShowUnauthorized { return &AppShowUnauthorized{} } -/* AppShowUnauthorized describes a response with status code 401, with default header values. +/* +AppShowUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type AppShowUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app show unauthorized response has a 2xx status code +func (o *AppShowUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app show unauthorized response has a 3xx status code +func (o *AppShowUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app show unauthorized response has a 4xx status code +func (o *AppShowUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this app show unauthorized response has a 5xx status code +func (o *AppShowUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this app show unauthorized response a status code equal to that given +func (o *AppShowUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *AppShowUnauthorized) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}][%d] appShowUnauthorized %+v", 401, o.Payload) } + +func (o *AppShowUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}][%d] appShowUnauthorized %+v", 401, o.Payload) +} + func (o *AppShowUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewAppShowNotFound() *AppShowNotFound { return &AppShowNotFound{} } -/* AppShowNotFound describes a response with status code 404, with default header values. +/* +AppShowNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type AppShowNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app show not found response has a 2xx status code +func (o *AppShowNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app show not found response has a 3xx status code +func (o *AppShowNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app show not found response has a 4xx status code +func (o *AppShowNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this app show not found response has a 5xx status code +func (o *AppShowNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this app show not found response a status code equal to that given +func (o *AppShowNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *AppShowNotFound) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}][%d] appShowNotFound %+v", 404, o.Payload) } + +func (o *AppShowNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}][%d] appShowNotFound %+v", 404, o.Payload) +} + func (o *AppShowNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewAppShowInternalServerError() *AppShowInternalServerError { return &AppShowInternalServerError{} } -/* AppShowInternalServerError describes a response with status code 500, with default header values. +/* +AppShowInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type AppShowInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app show internal server error response has a 2xx status code +func (o *AppShowInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app show internal server error response has a 3xx status code +func (o *AppShowInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app show internal server error response has a 4xx status code +func (o *AppShowInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this app show internal server error response has a 5xx status code +func (o *AppShowInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this app show internal server error response a status code equal to that given +func (o *AppShowInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *AppShowInternalServerError) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}][%d] appShowInternalServerError %+v", 500, o.Payload) } + +func (o *AppShowInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}][%d] appShowInternalServerError %+v", 500, o.Payload) +} + func (o *AppShowInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/app_update_parameters.go b/go/client/operations/app_update_parameters.go new file mode 100644 index 0000000..686d4dd --- /dev/null +++ b/go/client/operations/app_update_parameters.go @@ -0,0 +1,175 @@ +// 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" + "github.com/go-openapi/strfmt" + + "github.com/Staffbase/bitrise-api/go/models" +) + +// NewAppUpdateParams creates a new AppUpdateParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewAppUpdateParams() *AppUpdateParams { + return &AppUpdateParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewAppUpdateParamsWithTimeout creates a new AppUpdateParams object +// with the ability to set a timeout on a request. +func NewAppUpdateParamsWithTimeout(timeout time.Duration) *AppUpdateParams { + return &AppUpdateParams{ + timeout: timeout, + } +} + +// NewAppUpdateParamsWithContext creates a new AppUpdateParams object +// with the ability to set a context for a request. +func NewAppUpdateParamsWithContext(ctx context.Context) *AppUpdateParams { + return &AppUpdateParams{ + Context: ctx, + } +} + +// NewAppUpdateParamsWithHTTPClient creates a new AppUpdateParams object +// with the ability to set a custom HTTPClient for a request. +func NewAppUpdateParamsWithHTTPClient(client *http.Client) *AppUpdateParams { + return &AppUpdateParams{ + HTTPClient: client, + } +} + +/* +AppUpdateParams contains all the parameters to send to the API endpoint + + for the app update operation. + + Typically these are written to a http.Request. +*/ +type AppUpdateParams struct { + + /* App. + + App update params. All fields are optional, omit the fields you don't wish to update. + */ + App *models.V0AppUpdateParams + + /* AppSlug. + + App slug + */ + AppSlug string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the app update params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *AppUpdateParams) WithDefaults() *AppUpdateParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the app update params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *AppUpdateParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the app update params +func (o *AppUpdateParams) WithTimeout(timeout time.Duration) *AppUpdateParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the app update params +func (o *AppUpdateParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the app update params +func (o *AppUpdateParams) WithContext(ctx context.Context) *AppUpdateParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the app update params +func (o *AppUpdateParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the app update params +func (o *AppUpdateParams) WithHTTPClient(client *http.Client) *AppUpdateParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the app update params +func (o *AppUpdateParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithApp adds the app to the app update params +func (o *AppUpdateParams) WithApp(app *models.V0AppUpdateParams) *AppUpdateParams { + o.SetApp(app) + return o +} + +// SetApp adds the app to the app update params +func (o *AppUpdateParams) SetApp(app *models.V0AppUpdateParams) { + o.App = app +} + +// WithAppSlug adds the appSlug to the app update params +func (o *AppUpdateParams) WithAppSlug(appSlug string) *AppUpdateParams { + o.SetAppSlug(appSlug) + return o +} + +// SetAppSlug adds the appSlug to the app update params +func (o *AppUpdateParams) SetAppSlug(appSlug string) { + o.AppSlug = appSlug +} + +// WriteToRequest writes these params to a swagger request +func (o *AppUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.App != nil { + if err := r.SetBodyParam(o.App); err != nil { + return err + } + } + + // path param app-slug + if err := r.SetPathParam("app-slug", o.AppSlug); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/go/client/operations/app_update_responses.go b/go/client/operations/app_update_responses.go new file mode 100644 index 0000000..ee873d2 --- /dev/null +++ b/go/client/operations/app_update_responses.go @@ -0,0 +1,374 @@ +// 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" + "github.com/go-openapi/strfmt" + + "github.com/Staffbase/bitrise-api/go/models" +) + +// AppUpdateReader is a Reader for the AppUpdate structure. +type AppUpdateReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *AppUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewAppUpdateOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 400: + result := NewAppUpdateBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 401: + result := NewAppUpdateUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewAppUpdateNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewAppUpdateInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewAppUpdateOK creates a AppUpdateOK with default headers values +func NewAppUpdateOK() *AppUpdateOK { + return &AppUpdateOK{} +} + +/* +AppUpdateOK describes a response with status code 200, with default header values. + +OK +*/ +type AppUpdateOK struct { + Payload *models.V0AppUpdateRespModel +} + +// IsSuccess returns true when this app update o k response has a 2xx status code +func (o *AppUpdateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this app update o k response has a 3xx status code +func (o *AppUpdateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app update o k response has a 4xx status code +func (o *AppUpdateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this app update o k response has a 5xx status code +func (o *AppUpdateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this app update o k response a status code equal to that given +func (o *AppUpdateOK) IsCode(code int) bool { + return code == 200 +} + +func (o *AppUpdateOK) Error() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}][%d] appUpdateOK %+v", 200, o.Payload) +} + +func (o *AppUpdateOK) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}][%d] appUpdateOK %+v", 200, o.Payload) +} + +func (o *AppUpdateOK) GetPayload() *models.V0AppUpdateRespModel { + return o.Payload +} + +func (o *AppUpdateOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.V0AppUpdateRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewAppUpdateBadRequest creates a AppUpdateBadRequest with default headers values +func NewAppUpdateBadRequest() *AppUpdateBadRequest { + return &AppUpdateBadRequest{} +} + +/* +AppUpdateBadRequest describes a response with status code 400, with default header values. + +Bad Request +*/ +type AppUpdateBadRequest struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this app update bad request response has a 2xx status code +func (o *AppUpdateBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app update bad request response has a 3xx status code +func (o *AppUpdateBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app update bad request response has a 4xx status code +func (o *AppUpdateBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this app update bad request response has a 5xx status code +func (o *AppUpdateBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this app update bad request response a status code equal to that given +func (o *AppUpdateBadRequest) IsCode(code int) bool { + return code == 400 +} + +func (o *AppUpdateBadRequest) Error() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}][%d] appUpdateBadRequest %+v", 400, o.Payload) +} + +func (o *AppUpdateBadRequest) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}][%d] appUpdateBadRequest %+v", 400, o.Payload) +} + +func (o *AppUpdateBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *AppUpdateBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewAppUpdateUnauthorized creates a AppUpdateUnauthorized with default headers values +func NewAppUpdateUnauthorized() *AppUpdateUnauthorized { + return &AppUpdateUnauthorized{} +} + +/* +AppUpdateUnauthorized describes a response with status code 401, with default header values. + +Unauthorized +*/ +type AppUpdateUnauthorized struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this app update unauthorized response has a 2xx status code +func (o *AppUpdateUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app update unauthorized response has a 3xx status code +func (o *AppUpdateUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app update unauthorized response has a 4xx status code +func (o *AppUpdateUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this app update unauthorized response has a 5xx status code +func (o *AppUpdateUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this app update unauthorized response a status code equal to that given +func (o *AppUpdateUnauthorized) IsCode(code int) bool { + return code == 401 +} + +func (o *AppUpdateUnauthorized) Error() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}][%d] appUpdateUnauthorized %+v", 401, o.Payload) +} + +func (o *AppUpdateUnauthorized) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}][%d] appUpdateUnauthorized %+v", 401, o.Payload) +} + +func (o *AppUpdateUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *AppUpdateUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewAppUpdateNotFound creates a AppUpdateNotFound with default headers values +func NewAppUpdateNotFound() *AppUpdateNotFound { + return &AppUpdateNotFound{} +} + +/* +AppUpdateNotFound describes a response with status code 404, with default header values. + +Not Found +*/ +type AppUpdateNotFound struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this app update not found response has a 2xx status code +func (o *AppUpdateNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app update not found response has a 3xx status code +func (o *AppUpdateNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app update not found response has a 4xx status code +func (o *AppUpdateNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this app update not found response has a 5xx status code +func (o *AppUpdateNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this app update not found response a status code equal to that given +func (o *AppUpdateNotFound) IsCode(code int) bool { + return code == 404 +} + +func (o *AppUpdateNotFound) Error() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}][%d] appUpdateNotFound %+v", 404, o.Payload) +} + +func (o *AppUpdateNotFound) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}][%d] appUpdateNotFound %+v", 404, o.Payload) +} + +func (o *AppUpdateNotFound) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *AppUpdateNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewAppUpdateInternalServerError creates a AppUpdateInternalServerError with default headers values +func NewAppUpdateInternalServerError() *AppUpdateInternalServerError { + return &AppUpdateInternalServerError{} +} + +/* +AppUpdateInternalServerError describes a response with status code 500, with default header values. + +Internal Server Error +*/ +type AppUpdateInternalServerError struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this app update internal server error response has a 2xx status code +func (o *AppUpdateInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app update internal server error response has a 3xx status code +func (o *AppUpdateInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app update internal server error response has a 4xx status code +func (o *AppUpdateInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this app update internal server error response has a 5xx status code +func (o *AppUpdateInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this app update internal server error response a status code equal to that given +func (o *AppUpdateInternalServerError) IsCode(code int) bool { + return code == 500 +} + +func (o *AppUpdateInternalServerError) Error() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}][%d] appUpdateInternalServerError %+v", 500, o.Payload) +} + +func (o *AppUpdateInternalServerError) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}][%d] appUpdateInternalServerError %+v", 500, o.Payload) +} + +func (o *AppUpdateInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *AppUpdateInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/go/client/operations/app_webhook_create_parameters.go b/go/client/operations/app_webhook_create_parameters.go index eb188dd..16eef79 100644 --- a/go/client/operations/app_webhook_create_parameters.go +++ b/go/client/operations/app_webhook_create_parameters.go @@ -52,10 +52,12 @@ func NewAppWebhookCreateParamsWithHTTPClient(client *http.Client) *AppWebhookCre } } -/* AppWebhookCreateParams contains all the parameters to send to the API endpoint - for the app webhook create operation. +/* +AppWebhookCreateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the app webhook create operation. + + Typically these are written to a http.Request. */ type AppWebhookCreateParams struct { diff --git a/go/client/operations/app_webhook_create_responses.go b/go/client/operations/app_webhook_create_responses.go index 680ead9..c51cdfc 100644 --- a/go/client/operations/app_webhook_create_responses.go +++ b/go/client/operations/app_webhook_create_responses.go @@ -63,7 +63,8 @@ func NewAppWebhookCreateOK() *AppWebhookCreateOK { return &AppWebhookCreateOK{} } -/* AppWebhookCreateOK describes a response with status code 200, with default header values. +/* +AppWebhookCreateOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type AppWebhookCreateOK struct { Payload *models.V0WebhookRespModel } +// IsSuccess returns true when this app webhook create o k response has a 2xx status code +func (o *AppWebhookCreateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this app webhook create o k response has a 3xx status code +func (o *AppWebhookCreateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app webhook create o k response has a 4xx status code +func (o *AppWebhookCreateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this app webhook create o k response has a 5xx status code +func (o *AppWebhookCreateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this app webhook create o k response a status code equal to that given +func (o *AppWebhookCreateOK) IsCode(code int) bool { + return code == 200 +} + func (o *AppWebhookCreateOK) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/register-webhook][%d] appWebhookCreateOK %+v", 200, o.Payload) } + +func (o *AppWebhookCreateOK) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/register-webhook][%d] appWebhookCreateOK %+v", 200, o.Payload) +} + func (o *AppWebhookCreateOK) GetPayload() *models.V0WebhookRespModel { return o.Payload } @@ -95,7 +126,8 @@ func NewAppWebhookCreateBadRequest() *AppWebhookCreateBadRequest { return &AppWebhookCreateBadRequest{} } -/* AppWebhookCreateBadRequest describes a response with status code 400, with default header values. +/* +AppWebhookCreateBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type AppWebhookCreateBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app webhook create bad request response has a 2xx status code +func (o *AppWebhookCreateBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app webhook create bad request response has a 3xx status code +func (o *AppWebhookCreateBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app webhook create bad request response has a 4xx status code +func (o *AppWebhookCreateBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this app webhook create bad request response has a 5xx status code +func (o *AppWebhookCreateBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this app webhook create bad request response a status code equal to that given +func (o *AppWebhookCreateBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *AppWebhookCreateBadRequest) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/register-webhook][%d] appWebhookCreateBadRequest %+v", 400, o.Payload) } + +func (o *AppWebhookCreateBadRequest) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/register-webhook][%d] appWebhookCreateBadRequest %+v", 400, o.Payload) +} + func (o *AppWebhookCreateBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewAppWebhookCreateUnauthorized() *AppWebhookCreateUnauthorized { return &AppWebhookCreateUnauthorized{} } -/* AppWebhookCreateUnauthorized describes a response with status code 401, with default header values. +/* +AppWebhookCreateUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type AppWebhookCreateUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app webhook create unauthorized response has a 2xx status code +func (o *AppWebhookCreateUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app webhook create unauthorized response has a 3xx status code +func (o *AppWebhookCreateUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app webhook create unauthorized response has a 4xx status code +func (o *AppWebhookCreateUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this app webhook create unauthorized response has a 5xx status code +func (o *AppWebhookCreateUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this app webhook create unauthorized response a status code equal to that given +func (o *AppWebhookCreateUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *AppWebhookCreateUnauthorized) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/register-webhook][%d] appWebhookCreateUnauthorized %+v", 401, o.Payload) } + +func (o *AppWebhookCreateUnauthorized) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/register-webhook][%d] appWebhookCreateUnauthorized %+v", 401, o.Payload) +} + func (o *AppWebhookCreateUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewAppWebhookCreateNotFound() *AppWebhookCreateNotFound { return &AppWebhookCreateNotFound{} } -/* AppWebhookCreateNotFound describes a response with status code 404, with default header values. +/* +AppWebhookCreateNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type AppWebhookCreateNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app webhook create not found response has a 2xx status code +func (o *AppWebhookCreateNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app webhook create not found response has a 3xx status code +func (o *AppWebhookCreateNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app webhook create not found response has a 4xx status code +func (o *AppWebhookCreateNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this app webhook create not found response has a 5xx status code +func (o *AppWebhookCreateNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this app webhook create not found response a status code equal to that given +func (o *AppWebhookCreateNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *AppWebhookCreateNotFound) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/register-webhook][%d] appWebhookCreateNotFound %+v", 404, o.Payload) } + +func (o *AppWebhookCreateNotFound) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/register-webhook][%d] appWebhookCreateNotFound %+v", 404, o.Payload) +} + func (o *AppWebhookCreateNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewAppWebhookCreateInternalServerError() *AppWebhookCreateInternalServerErr return &AppWebhookCreateInternalServerError{} } -/* AppWebhookCreateInternalServerError describes a response with status code 500, with default header values. +/* +AppWebhookCreateInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type AppWebhookCreateInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this app webhook create internal server error response has a 2xx status code +func (o *AppWebhookCreateInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this app webhook create internal server error response has a 3xx status code +func (o *AppWebhookCreateInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this app webhook create internal server error response has a 4xx status code +func (o *AppWebhookCreateInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this app webhook create internal server error response has a 5xx status code +func (o *AppWebhookCreateInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this app webhook create internal server error response a status code equal to that given +func (o *AppWebhookCreateInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *AppWebhookCreateInternalServerError) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/register-webhook][%d] appWebhookCreateInternalServerError %+v", 500, o.Payload) } + +func (o *AppWebhookCreateInternalServerError) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/register-webhook][%d] appWebhookCreateInternalServerError %+v", 500, o.Payload) +} + func (o *AppWebhookCreateInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/apple_api_credential_list_parameters.go b/go/client/operations/apple_api_credential_list_parameters.go index 7baddd2..88f7492 100644 --- a/go/client/operations/apple_api_credential_list_parameters.go +++ b/go/client/operations/apple_api_credential_list_parameters.go @@ -52,10 +52,12 @@ func NewAppleAPICredentialListParamsWithHTTPClient(client *http.Client) *AppleAP } } -/* AppleAPICredentialListParams contains all the parameters to send to the API endpoint - for the apple api credential list operation. +/* +AppleAPICredentialListParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the apple api credential list operation. + + Typically these are written to a http.Request. */ type AppleAPICredentialListParams struct { diff --git a/go/client/operations/apple_api_credential_list_responses.go b/go/client/operations/apple_api_credential_list_responses.go index 6cafdb5..73ccb2f 100644 --- a/go/client/operations/apple_api_credential_list_responses.go +++ b/go/client/operations/apple_api_credential_list_responses.go @@ -63,7 +63,8 @@ func NewAppleAPICredentialListOK() *AppleAPICredentialListOK { return &AppleAPICredentialListOK{} } -/* AppleAPICredentialListOK describes a response with status code 200, with default header values. +/* +AppleAPICredentialListOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type AppleAPICredentialListOK struct { Payload *models.V0AppleAPICredentialsListResponse } +// IsSuccess returns true when this apple Api credential list o k response has a 2xx status code +func (o *AppleAPICredentialListOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this apple Api credential list o k response has a 3xx status code +func (o *AppleAPICredentialListOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this apple Api credential list o k response has a 4xx status code +func (o *AppleAPICredentialListOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this apple Api credential list o k response has a 5xx status code +func (o *AppleAPICredentialListOK) IsServerError() bool { + return false +} + +// IsCode returns true when this apple Api credential list o k response a status code equal to that given +func (o *AppleAPICredentialListOK) IsCode(code int) bool { + return code == 200 +} + func (o *AppleAPICredentialListOK) Error() string { return fmt.Sprintf("[GET /users/{user-slug}/apple-api-credentials][%d] appleApiCredentialListOK %+v", 200, o.Payload) } + +func (o *AppleAPICredentialListOK) String() string { + return fmt.Sprintf("[GET /users/{user-slug}/apple-api-credentials][%d] appleApiCredentialListOK %+v", 200, o.Payload) +} + func (o *AppleAPICredentialListOK) GetPayload() *models.V0AppleAPICredentialsListResponse { return o.Payload } @@ -95,7 +126,8 @@ func NewAppleAPICredentialListBadRequest() *AppleAPICredentialListBadRequest { return &AppleAPICredentialListBadRequest{} } -/* AppleAPICredentialListBadRequest describes a response with status code 400, with default header values. +/* +AppleAPICredentialListBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type AppleAPICredentialListBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this apple Api credential list bad request response has a 2xx status code +func (o *AppleAPICredentialListBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this apple Api credential list bad request response has a 3xx status code +func (o *AppleAPICredentialListBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this apple Api credential list bad request response has a 4xx status code +func (o *AppleAPICredentialListBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this apple Api credential list bad request response has a 5xx status code +func (o *AppleAPICredentialListBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this apple Api credential list bad request response a status code equal to that given +func (o *AppleAPICredentialListBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *AppleAPICredentialListBadRequest) Error() string { return fmt.Sprintf("[GET /users/{user-slug}/apple-api-credentials][%d] appleApiCredentialListBadRequest %+v", 400, o.Payload) } + +func (o *AppleAPICredentialListBadRequest) String() string { + return fmt.Sprintf("[GET /users/{user-slug}/apple-api-credentials][%d] appleApiCredentialListBadRequest %+v", 400, o.Payload) +} + func (o *AppleAPICredentialListBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewAppleAPICredentialListUnauthorized() *AppleAPICredentialListUnauthorized return &AppleAPICredentialListUnauthorized{} } -/* AppleAPICredentialListUnauthorized describes a response with status code 401, with default header values. +/* +AppleAPICredentialListUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type AppleAPICredentialListUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this apple Api credential list unauthorized response has a 2xx status code +func (o *AppleAPICredentialListUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this apple Api credential list unauthorized response has a 3xx status code +func (o *AppleAPICredentialListUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this apple Api credential list unauthorized response has a 4xx status code +func (o *AppleAPICredentialListUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this apple Api credential list unauthorized response has a 5xx status code +func (o *AppleAPICredentialListUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this apple Api credential list unauthorized response a status code equal to that given +func (o *AppleAPICredentialListUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *AppleAPICredentialListUnauthorized) Error() string { return fmt.Sprintf("[GET /users/{user-slug}/apple-api-credentials][%d] appleApiCredentialListUnauthorized %+v", 401, o.Payload) } + +func (o *AppleAPICredentialListUnauthorized) String() string { + return fmt.Sprintf("[GET /users/{user-slug}/apple-api-credentials][%d] appleApiCredentialListUnauthorized %+v", 401, o.Payload) +} + func (o *AppleAPICredentialListUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewAppleAPICredentialListNotFound() *AppleAPICredentialListNotFound { return &AppleAPICredentialListNotFound{} } -/* AppleAPICredentialListNotFound describes a response with status code 404, with default header values. +/* +AppleAPICredentialListNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type AppleAPICredentialListNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this apple Api credential list not found response has a 2xx status code +func (o *AppleAPICredentialListNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this apple Api credential list not found response has a 3xx status code +func (o *AppleAPICredentialListNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this apple Api credential list not found response has a 4xx status code +func (o *AppleAPICredentialListNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this apple Api credential list not found response has a 5xx status code +func (o *AppleAPICredentialListNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this apple Api credential list not found response a status code equal to that given +func (o *AppleAPICredentialListNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *AppleAPICredentialListNotFound) Error() string { return fmt.Sprintf("[GET /users/{user-slug}/apple-api-credentials][%d] appleApiCredentialListNotFound %+v", 404, o.Payload) } + +func (o *AppleAPICredentialListNotFound) String() string { + return fmt.Sprintf("[GET /users/{user-slug}/apple-api-credentials][%d] appleApiCredentialListNotFound %+v", 404, o.Payload) +} + func (o *AppleAPICredentialListNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewAppleAPICredentialListInternalServerError() *AppleAPICredentialListInter return &AppleAPICredentialListInternalServerError{} } -/* AppleAPICredentialListInternalServerError describes a response with status code 500, with default header values. +/* +AppleAPICredentialListInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type AppleAPICredentialListInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this apple Api credential list internal server error response has a 2xx status code +func (o *AppleAPICredentialListInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this apple Api credential list internal server error response has a 3xx status code +func (o *AppleAPICredentialListInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this apple Api credential list internal server error response has a 4xx status code +func (o *AppleAPICredentialListInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this apple Api credential list internal server error response has a 5xx status code +func (o *AppleAPICredentialListInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this apple Api credential list internal server error response a status code equal to that given +func (o *AppleAPICredentialListInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *AppleAPICredentialListInternalServerError) Error() string { return fmt.Sprintf("[GET /users/{user-slug}/apple-api-credentials][%d] appleApiCredentialListInternalServerError %+v", 500, o.Payload) } + +func (o *AppleAPICredentialListInternalServerError) String() string { + return fmt.Sprintf("[GET /users/{user-slug}/apple-api-credentials][%d] appleApiCredentialListInternalServerError %+v", 500, o.Payload) +} + func (o *AppleAPICredentialListInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/archived_builds_list_parameters.go b/go/client/operations/archived_builds_list_parameters.go new file mode 100644 index 0000000..81f381f --- /dev/null +++ b/go/client/operations/archived_builds_list_parameters.go @@ -0,0 +1,206 @@ +// 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" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewArchivedBuildsListParams creates a new ArchivedBuildsListParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewArchivedBuildsListParams() *ArchivedBuildsListParams { + return &ArchivedBuildsListParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewArchivedBuildsListParamsWithTimeout creates a new ArchivedBuildsListParams object +// with the ability to set a timeout on a request. +func NewArchivedBuildsListParamsWithTimeout(timeout time.Duration) *ArchivedBuildsListParams { + return &ArchivedBuildsListParams{ + timeout: timeout, + } +} + +// NewArchivedBuildsListParamsWithContext creates a new ArchivedBuildsListParams object +// with the ability to set a context for a request. +func NewArchivedBuildsListParamsWithContext(ctx context.Context) *ArchivedBuildsListParams { + return &ArchivedBuildsListParams{ + Context: ctx, + } +} + +// NewArchivedBuildsListParamsWithHTTPClient creates a new ArchivedBuildsListParams object +// with the ability to set a custom HTTPClient for a request. +func NewArchivedBuildsListParamsWithHTTPClient(client *http.Client) *ArchivedBuildsListParams { + return &ArchivedBuildsListParams{ + HTTPClient: client, + } +} + +/* +ArchivedBuildsListParams contains all the parameters to send to the API endpoint + + for the archived builds list operation. + + Typically these are written to a http.Request. +*/ +type ArchivedBuildsListParams struct { + + /* After. + + Listed builds should only be the ones which ran after the given date (Unix Timestamp) + */ + After int64 + + /* AppSlug. + + App slug + */ + AppSlug string + + /* Before. + + Listed builds should only be the ones which ran before the given date (Unix Timestamp) + */ + Before int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the archived builds list params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ArchivedBuildsListParams) WithDefaults() *ArchivedBuildsListParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the archived builds list params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *ArchivedBuildsListParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the archived builds list params +func (o *ArchivedBuildsListParams) WithTimeout(timeout time.Duration) *ArchivedBuildsListParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the archived builds list params +func (o *ArchivedBuildsListParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the archived builds list params +func (o *ArchivedBuildsListParams) WithContext(ctx context.Context) *ArchivedBuildsListParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the archived builds list params +func (o *ArchivedBuildsListParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the archived builds list params +func (o *ArchivedBuildsListParams) WithHTTPClient(client *http.Client) *ArchivedBuildsListParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the archived builds list params +func (o *ArchivedBuildsListParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAfter adds the after to the archived builds list params +func (o *ArchivedBuildsListParams) WithAfter(after int64) *ArchivedBuildsListParams { + o.SetAfter(after) + return o +} + +// SetAfter adds the after to the archived builds list params +func (o *ArchivedBuildsListParams) SetAfter(after int64) { + o.After = after +} + +// WithAppSlug adds the appSlug to the archived builds list params +func (o *ArchivedBuildsListParams) WithAppSlug(appSlug string) *ArchivedBuildsListParams { + o.SetAppSlug(appSlug) + return o +} + +// SetAppSlug adds the appSlug to the archived builds list params +func (o *ArchivedBuildsListParams) SetAppSlug(appSlug string) { + o.AppSlug = appSlug +} + +// WithBefore adds the before to the archived builds list params +func (o *ArchivedBuildsListParams) WithBefore(before int64) *ArchivedBuildsListParams { + o.SetBefore(before) + return o +} + +// SetBefore adds the before to the archived builds list params +func (o *ArchivedBuildsListParams) SetBefore(before int64) { + o.Before = before +} + +// WriteToRequest writes these params to a swagger request +func (o *ArchivedBuildsListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // query param after + qrAfter := o.After + qAfter := swag.FormatInt64(qrAfter) + if qAfter != "" { + + if err := r.SetQueryParam("after", qAfter); err != nil { + return err + } + } + + // path param app-slug + if err := r.SetPathParam("app-slug", o.AppSlug); err != nil { + return err + } + + // query param before + qrBefore := o.Before + qBefore := swag.FormatInt64(qrBefore) + if qBefore != "" { + + if err := r.SetQueryParam("before", qBefore); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/go/client/operations/archived_builds_list_responses.go b/go/client/operations/archived_builds_list_responses.go new file mode 100644 index 0000000..3ade289 --- /dev/null +++ b/go/client/operations/archived_builds_list_responses.go @@ -0,0 +1,374 @@ +// 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" + "github.com/go-openapi/strfmt" + + "github.com/Staffbase/bitrise-api/go/models" +) + +// ArchivedBuildsListReader is a Reader for the ArchivedBuildsList structure. +type ArchivedBuildsListReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *ArchivedBuildsListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewArchivedBuildsListOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 400: + result := NewArchivedBuildsListBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 401: + result := NewArchivedBuildsListUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewArchivedBuildsListNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewArchivedBuildsListInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewArchivedBuildsListOK creates a ArchivedBuildsListOK with default headers values +func NewArchivedBuildsListOK() *ArchivedBuildsListOK { + return &ArchivedBuildsListOK{} +} + +/* +ArchivedBuildsListOK describes a response with status code 200, with default header values. + +OK +*/ +type ArchivedBuildsListOK struct { + Payload *models.V0ArchivedBuildListResponseModel +} + +// IsSuccess returns true when this archived builds list o k response has a 2xx status code +func (o *ArchivedBuildsListOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this archived builds list o k response has a 3xx status code +func (o *ArchivedBuildsListOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this archived builds list o k response has a 4xx status code +func (o *ArchivedBuildsListOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this archived builds list o k response has a 5xx status code +func (o *ArchivedBuildsListOK) IsServerError() bool { + return false +} + +// IsCode returns true when this archived builds list o k response a status code equal to that given +func (o *ArchivedBuildsListOK) IsCode(code int) bool { + return code == 200 +} + +func (o *ArchivedBuildsListOK) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/archived-builds][%d] archivedBuildsListOK %+v", 200, o.Payload) +} + +func (o *ArchivedBuildsListOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/archived-builds][%d] archivedBuildsListOK %+v", 200, o.Payload) +} + +func (o *ArchivedBuildsListOK) GetPayload() *models.V0ArchivedBuildListResponseModel { + return o.Payload +} + +func (o *ArchivedBuildsListOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.V0ArchivedBuildListResponseModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewArchivedBuildsListBadRequest creates a ArchivedBuildsListBadRequest with default headers values +func NewArchivedBuildsListBadRequest() *ArchivedBuildsListBadRequest { + return &ArchivedBuildsListBadRequest{} +} + +/* +ArchivedBuildsListBadRequest describes a response with status code 400, with default header values. + +Bad Request +*/ +type ArchivedBuildsListBadRequest struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this archived builds list bad request response has a 2xx status code +func (o *ArchivedBuildsListBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this archived builds list bad request response has a 3xx status code +func (o *ArchivedBuildsListBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this archived builds list bad request response has a 4xx status code +func (o *ArchivedBuildsListBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this archived builds list bad request response has a 5xx status code +func (o *ArchivedBuildsListBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this archived builds list bad request response a status code equal to that given +func (o *ArchivedBuildsListBadRequest) IsCode(code int) bool { + return code == 400 +} + +func (o *ArchivedBuildsListBadRequest) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/archived-builds][%d] archivedBuildsListBadRequest %+v", 400, o.Payload) +} + +func (o *ArchivedBuildsListBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/archived-builds][%d] archivedBuildsListBadRequest %+v", 400, o.Payload) +} + +func (o *ArchivedBuildsListBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *ArchivedBuildsListBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewArchivedBuildsListUnauthorized creates a ArchivedBuildsListUnauthorized with default headers values +func NewArchivedBuildsListUnauthorized() *ArchivedBuildsListUnauthorized { + return &ArchivedBuildsListUnauthorized{} +} + +/* +ArchivedBuildsListUnauthorized describes a response with status code 401, with default header values. + +Unauthorized +*/ +type ArchivedBuildsListUnauthorized struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this archived builds list unauthorized response has a 2xx status code +func (o *ArchivedBuildsListUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this archived builds list unauthorized response has a 3xx status code +func (o *ArchivedBuildsListUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this archived builds list unauthorized response has a 4xx status code +func (o *ArchivedBuildsListUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this archived builds list unauthorized response has a 5xx status code +func (o *ArchivedBuildsListUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this archived builds list unauthorized response a status code equal to that given +func (o *ArchivedBuildsListUnauthorized) IsCode(code int) bool { + return code == 401 +} + +func (o *ArchivedBuildsListUnauthorized) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/archived-builds][%d] archivedBuildsListUnauthorized %+v", 401, o.Payload) +} + +func (o *ArchivedBuildsListUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/archived-builds][%d] archivedBuildsListUnauthorized %+v", 401, o.Payload) +} + +func (o *ArchivedBuildsListUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *ArchivedBuildsListUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewArchivedBuildsListNotFound creates a ArchivedBuildsListNotFound with default headers values +func NewArchivedBuildsListNotFound() *ArchivedBuildsListNotFound { + return &ArchivedBuildsListNotFound{} +} + +/* +ArchivedBuildsListNotFound describes a response with status code 404, with default header values. + +Not Found +*/ +type ArchivedBuildsListNotFound struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this archived builds list not found response has a 2xx status code +func (o *ArchivedBuildsListNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this archived builds list not found response has a 3xx status code +func (o *ArchivedBuildsListNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this archived builds list not found response has a 4xx status code +func (o *ArchivedBuildsListNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this archived builds list not found response has a 5xx status code +func (o *ArchivedBuildsListNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this archived builds list not found response a status code equal to that given +func (o *ArchivedBuildsListNotFound) IsCode(code int) bool { + return code == 404 +} + +func (o *ArchivedBuildsListNotFound) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/archived-builds][%d] archivedBuildsListNotFound %+v", 404, o.Payload) +} + +func (o *ArchivedBuildsListNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/archived-builds][%d] archivedBuildsListNotFound %+v", 404, o.Payload) +} + +func (o *ArchivedBuildsListNotFound) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *ArchivedBuildsListNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewArchivedBuildsListInternalServerError creates a ArchivedBuildsListInternalServerError with default headers values +func NewArchivedBuildsListInternalServerError() *ArchivedBuildsListInternalServerError { + return &ArchivedBuildsListInternalServerError{} +} + +/* +ArchivedBuildsListInternalServerError describes a response with status code 500, with default header values. + +Internal Server Error +*/ +type ArchivedBuildsListInternalServerError struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this archived builds list internal server error response has a 2xx status code +func (o *ArchivedBuildsListInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this archived builds list internal server error response has a 3xx status code +func (o *ArchivedBuildsListInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this archived builds list internal server error response has a 4xx status code +func (o *ArchivedBuildsListInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this archived builds list internal server error response has a 5xx status code +func (o *ArchivedBuildsListInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this archived builds list internal server error response a status code equal to that given +func (o *ArchivedBuildsListInternalServerError) IsCode(code int) bool { + return code == 500 +} + +func (o *ArchivedBuildsListInternalServerError) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/archived-builds][%d] archivedBuildsListInternalServerError %+v", 500, o.Payload) +} + +func (o *ArchivedBuildsListInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/archived-builds][%d] archivedBuildsListInternalServerError %+v", 500, o.Payload) +} + +func (o *ArchivedBuildsListInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *ArchivedBuildsListInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/go/client/operations/artifact_delete_parameters.go b/go/client/operations/artifact_delete_parameters.go index fc19af0..ec77201 100644 --- a/go/client/operations/artifact_delete_parameters.go +++ b/go/client/operations/artifact_delete_parameters.go @@ -52,10 +52,12 @@ func NewArtifactDeleteParamsWithHTTPClient(client *http.Client) *ArtifactDeleteP } } -/* ArtifactDeleteParams contains all the parameters to send to the API endpoint - for the artifact delete operation. +/* +ArtifactDeleteParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the artifact delete operation. + + Typically these are written to a http.Request. */ type ArtifactDeleteParams struct { diff --git a/go/client/operations/artifact_delete_responses.go b/go/client/operations/artifact_delete_responses.go index 9e2fadc..7c949a5 100644 --- a/go/client/operations/artifact_delete_responses.go +++ b/go/client/operations/artifact_delete_responses.go @@ -63,7 +63,8 @@ func NewArtifactDeleteOK() *ArtifactDeleteOK { return &ArtifactDeleteOK{} } -/* ArtifactDeleteOK describes a response with status code 200, with default header values. +/* +ArtifactDeleteOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type ArtifactDeleteOK struct { Payload *models.V0ArtifactDeleteResponseModel } +// IsSuccess returns true when this artifact delete o k response has a 2xx status code +func (o *ArtifactDeleteOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this artifact delete o k response has a 3xx status code +func (o *ArtifactDeleteOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this artifact delete o k response has a 4xx status code +func (o *ArtifactDeleteOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this artifact delete o k response has a 5xx status code +func (o *ArtifactDeleteOK) IsServerError() bool { + return false +} + +// IsCode returns true when this artifact delete o k response a status code equal to that given +func (o *ArtifactDeleteOK) IsCode(code int) bool { + return code == 200 +} + func (o *ArtifactDeleteOK) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactDeleteOK %+v", 200, o.Payload) } + +func (o *ArtifactDeleteOK) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactDeleteOK %+v", 200, o.Payload) +} + func (o *ArtifactDeleteOK) GetPayload() *models.V0ArtifactDeleteResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewArtifactDeleteBadRequest() *ArtifactDeleteBadRequest { return &ArtifactDeleteBadRequest{} } -/* ArtifactDeleteBadRequest describes a response with status code 400, with default header values. +/* +ArtifactDeleteBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type ArtifactDeleteBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this artifact delete bad request response has a 2xx status code +func (o *ArtifactDeleteBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this artifact delete bad request response has a 3xx status code +func (o *ArtifactDeleteBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this artifact delete bad request response has a 4xx status code +func (o *ArtifactDeleteBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this artifact delete bad request response has a 5xx status code +func (o *ArtifactDeleteBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this artifact delete bad request response a status code equal to that given +func (o *ArtifactDeleteBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *ArtifactDeleteBadRequest) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactDeleteBadRequest %+v", 400, o.Payload) } + +func (o *ArtifactDeleteBadRequest) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactDeleteBadRequest %+v", 400, o.Payload) +} + func (o *ArtifactDeleteBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewArtifactDeleteUnauthorized() *ArtifactDeleteUnauthorized { return &ArtifactDeleteUnauthorized{} } -/* ArtifactDeleteUnauthorized describes a response with status code 401, with default header values. +/* +ArtifactDeleteUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type ArtifactDeleteUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this artifact delete unauthorized response has a 2xx status code +func (o *ArtifactDeleteUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this artifact delete unauthorized response has a 3xx status code +func (o *ArtifactDeleteUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this artifact delete unauthorized response has a 4xx status code +func (o *ArtifactDeleteUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this artifact delete unauthorized response has a 5xx status code +func (o *ArtifactDeleteUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this artifact delete unauthorized response a status code equal to that given +func (o *ArtifactDeleteUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *ArtifactDeleteUnauthorized) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactDeleteUnauthorized %+v", 401, o.Payload) } + +func (o *ArtifactDeleteUnauthorized) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactDeleteUnauthorized %+v", 401, o.Payload) +} + func (o *ArtifactDeleteUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewArtifactDeleteNotFound() *ArtifactDeleteNotFound { return &ArtifactDeleteNotFound{} } -/* ArtifactDeleteNotFound describes a response with status code 404, with default header values. +/* +ArtifactDeleteNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type ArtifactDeleteNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this artifact delete not found response has a 2xx status code +func (o *ArtifactDeleteNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this artifact delete not found response has a 3xx status code +func (o *ArtifactDeleteNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this artifact delete not found response has a 4xx status code +func (o *ArtifactDeleteNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this artifact delete not found response has a 5xx status code +func (o *ArtifactDeleteNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this artifact delete not found response a status code equal to that given +func (o *ArtifactDeleteNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *ArtifactDeleteNotFound) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactDeleteNotFound %+v", 404, o.Payload) } + +func (o *ArtifactDeleteNotFound) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactDeleteNotFound %+v", 404, o.Payload) +} + func (o *ArtifactDeleteNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewArtifactDeleteInternalServerError() *ArtifactDeleteInternalServerError { return &ArtifactDeleteInternalServerError{} } -/* ArtifactDeleteInternalServerError describes a response with status code 500, with default header values. +/* +ArtifactDeleteInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type ArtifactDeleteInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this artifact delete internal server error response has a 2xx status code +func (o *ArtifactDeleteInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this artifact delete internal server error response has a 3xx status code +func (o *ArtifactDeleteInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this artifact delete internal server error response has a 4xx status code +func (o *ArtifactDeleteInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this artifact delete internal server error response has a 5xx status code +func (o *ArtifactDeleteInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this artifact delete internal server error response a status code equal to that given +func (o *ArtifactDeleteInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *ArtifactDeleteInternalServerError) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactDeleteInternalServerError %+v", 500, o.Payload) } + +func (o *ArtifactDeleteInternalServerError) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactDeleteInternalServerError %+v", 500, o.Payload) +} + func (o *ArtifactDeleteInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/artifact_list_parameters.go b/go/client/operations/artifact_list_parameters.go index 7b7e624..9ad036a 100644 --- a/go/client/operations/artifact_list_parameters.go +++ b/go/client/operations/artifact_list_parameters.go @@ -53,10 +53,12 @@ func NewArtifactListParamsWithHTTPClient(client *http.Client) *ArtifactListParam } } -/* ArtifactListParams contains all the parameters to send to the API endpoint - for the artifact list operation. +/* +ArtifactListParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the artifact list operation. + + Typically these are written to a http.Request. */ type ArtifactListParams struct { diff --git a/go/client/operations/artifact_list_responses.go b/go/client/operations/artifact_list_responses.go index 4c1685d..d4030d9 100644 --- a/go/client/operations/artifact_list_responses.go +++ b/go/client/operations/artifact_list_responses.go @@ -63,7 +63,8 @@ func NewArtifactListOK() *ArtifactListOK { return &ArtifactListOK{} } -/* ArtifactListOK describes a response with status code 200, with default header values. +/* +ArtifactListOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type ArtifactListOK struct { Payload *models.V0ArtifactListResponseModel } +// IsSuccess returns true when this artifact list o k response has a 2xx status code +func (o *ArtifactListOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this artifact list o k response has a 3xx status code +func (o *ArtifactListOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this artifact list o k response has a 4xx status code +func (o *ArtifactListOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this artifact list o k response has a 5xx status code +func (o *ArtifactListOK) IsServerError() bool { + return false +} + +// IsCode returns true when this artifact list o k response a status code equal to that given +func (o *ArtifactListOK) IsCode(code int) bool { + return code == 200 +} + func (o *ArtifactListOK) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/artifacts][%d] artifactListOK %+v", 200, o.Payload) } + +func (o *ArtifactListOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/artifacts][%d] artifactListOK %+v", 200, o.Payload) +} + func (o *ArtifactListOK) GetPayload() *models.V0ArtifactListResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewArtifactListBadRequest() *ArtifactListBadRequest { return &ArtifactListBadRequest{} } -/* ArtifactListBadRequest describes a response with status code 400, with default header values. +/* +ArtifactListBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type ArtifactListBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this artifact list bad request response has a 2xx status code +func (o *ArtifactListBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this artifact list bad request response has a 3xx status code +func (o *ArtifactListBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this artifact list bad request response has a 4xx status code +func (o *ArtifactListBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this artifact list bad request response has a 5xx status code +func (o *ArtifactListBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this artifact list bad request response a status code equal to that given +func (o *ArtifactListBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *ArtifactListBadRequest) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/artifacts][%d] artifactListBadRequest %+v", 400, o.Payload) } + +func (o *ArtifactListBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/artifacts][%d] artifactListBadRequest %+v", 400, o.Payload) +} + func (o *ArtifactListBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewArtifactListUnauthorized() *ArtifactListUnauthorized { return &ArtifactListUnauthorized{} } -/* ArtifactListUnauthorized describes a response with status code 401, with default header values. +/* +ArtifactListUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type ArtifactListUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this artifact list unauthorized response has a 2xx status code +func (o *ArtifactListUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this artifact list unauthorized response has a 3xx status code +func (o *ArtifactListUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this artifact list unauthorized response has a 4xx status code +func (o *ArtifactListUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this artifact list unauthorized response has a 5xx status code +func (o *ArtifactListUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this artifact list unauthorized response a status code equal to that given +func (o *ArtifactListUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *ArtifactListUnauthorized) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/artifacts][%d] artifactListUnauthorized %+v", 401, o.Payload) } + +func (o *ArtifactListUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/artifacts][%d] artifactListUnauthorized %+v", 401, o.Payload) +} + func (o *ArtifactListUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewArtifactListNotFound() *ArtifactListNotFound { return &ArtifactListNotFound{} } -/* ArtifactListNotFound describes a response with status code 404, with default header values. +/* +ArtifactListNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type ArtifactListNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this artifact list not found response has a 2xx status code +func (o *ArtifactListNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this artifact list not found response has a 3xx status code +func (o *ArtifactListNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this artifact list not found response has a 4xx status code +func (o *ArtifactListNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this artifact list not found response has a 5xx status code +func (o *ArtifactListNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this artifact list not found response a status code equal to that given +func (o *ArtifactListNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *ArtifactListNotFound) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/artifacts][%d] artifactListNotFound %+v", 404, o.Payload) } + +func (o *ArtifactListNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/artifacts][%d] artifactListNotFound %+v", 404, o.Payload) +} + func (o *ArtifactListNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewArtifactListInternalServerError() *ArtifactListInternalServerError { return &ArtifactListInternalServerError{} } -/* ArtifactListInternalServerError describes a response with status code 500, with default header values. +/* +ArtifactListInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type ArtifactListInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this artifact list internal server error response has a 2xx status code +func (o *ArtifactListInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this artifact list internal server error response has a 3xx status code +func (o *ArtifactListInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this artifact list internal server error response has a 4xx status code +func (o *ArtifactListInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this artifact list internal server error response has a 5xx status code +func (o *ArtifactListInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this artifact list internal server error response a status code equal to that given +func (o *ArtifactListInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *ArtifactListInternalServerError) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/artifacts][%d] artifactListInternalServerError %+v", 500, o.Payload) } + +func (o *ArtifactListInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/artifacts][%d] artifactListInternalServerError %+v", 500, o.Payload) +} + func (o *ArtifactListInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/artifact_show_parameters.go b/go/client/operations/artifact_show_parameters.go index 5adb773..f42772b 100644 --- a/go/client/operations/artifact_show_parameters.go +++ b/go/client/operations/artifact_show_parameters.go @@ -53,10 +53,12 @@ func NewArtifactShowParamsWithHTTPClient(client *http.Client) *ArtifactShowParam } } -/* ArtifactShowParams contains all the parameters to send to the API endpoint - for the artifact show operation. +/* +ArtifactShowParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the artifact show operation. + + Typically these are written to a http.Request. */ type ArtifactShowParams struct { diff --git a/go/client/operations/artifact_show_responses.go b/go/client/operations/artifact_show_responses.go index a5c9111..57634f0 100644 --- a/go/client/operations/artifact_show_responses.go +++ b/go/client/operations/artifact_show_responses.go @@ -63,7 +63,8 @@ func NewArtifactShowOK() *ArtifactShowOK { return &ArtifactShowOK{} } -/* ArtifactShowOK describes a response with status code 200, with default header values. +/* +ArtifactShowOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type ArtifactShowOK struct { Payload *models.V0ArtifactShowResponseModel } +// IsSuccess returns true when this artifact show o k response has a 2xx status code +func (o *ArtifactShowOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this artifact show o k response has a 3xx status code +func (o *ArtifactShowOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this artifact show o k response has a 4xx status code +func (o *ArtifactShowOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this artifact show o k response has a 5xx status code +func (o *ArtifactShowOK) IsServerError() bool { + return false +} + +// IsCode returns true when this artifact show o k response a status code equal to that given +func (o *ArtifactShowOK) IsCode(code int) bool { + return code == 200 +} + func (o *ArtifactShowOK) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactShowOK %+v", 200, o.Payload) } + +func (o *ArtifactShowOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactShowOK %+v", 200, o.Payload) +} + func (o *ArtifactShowOK) GetPayload() *models.V0ArtifactShowResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewArtifactShowBadRequest() *ArtifactShowBadRequest { return &ArtifactShowBadRequest{} } -/* ArtifactShowBadRequest describes a response with status code 400, with default header values. +/* +ArtifactShowBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type ArtifactShowBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this artifact show bad request response has a 2xx status code +func (o *ArtifactShowBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this artifact show bad request response has a 3xx status code +func (o *ArtifactShowBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this artifact show bad request response has a 4xx status code +func (o *ArtifactShowBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this artifact show bad request response has a 5xx status code +func (o *ArtifactShowBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this artifact show bad request response a status code equal to that given +func (o *ArtifactShowBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *ArtifactShowBadRequest) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactShowBadRequest %+v", 400, o.Payload) } + +func (o *ArtifactShowBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactShowBadRequest %+v", 400, o.Payload) +} + func (o *ArtifactShowBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewArtifactShowUnauthorized() *ArtifactShowUnauthorized { return &ArtifactShowUnauthorized{} } -/* ArtifactShowUnauthorized describes a response with status code 401, with default header values. +/* +ArtifactShowUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type ArtifactShowUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this artifact show unauthorized response has a 2xx status code +func (o *ArtifactShowUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this artifact show unauthorized response has a 3xx status code +func (o *ArtifactShowUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this artifact show unauthorized response has a 4xx status code +func (o *ArtifactShowUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this artifact show unauthorized response has a 5xx status code +func (o *ArtifactShowUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this artifact show unauthorized response a status code equal to that given +func (o *ArtifactShowUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *ArtifactShowUnauthorized) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactShowUnauthorized %+v", 401, o.Payload) } + +func (o *ArtifactShowUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactShowUnauthorized %+v", 401, o.Payload) +} + func (o *ArtifactShowUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewArtifactShowNotFound() *ArtifactShowNotFound { return &ArtifactShowNotFound{} } -/* ArtifactShowNotFound describes a response with status code 404, with default header values. +/* +ArtifactShowNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type ArtifactShowNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this artifact show not found response has a 2xx status code +func (o *ArtifactShowNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this artifact show not found response has a 3xx status code +func (o *ArtifactShowNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this artifact show not found response has a 4xx status code +func (o *ArtifactShowNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this artifact show not found response has a 5xx status code +func (o *ArtifactShowNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this artifact show not found response a status code equal to that given +func (o *ArtifactShowNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *ArtifactShowNotFound) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactShowNotFound %+v", 404, o.Payload) } + +func (o *ArtifactShowNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactShowNotFound %+v", 404, o.Payload) +} + func (o *ArtifactShowNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewArtifactShowInternalServerError() *ArtifactShowInternalServerError { return &ArtifactShowInternalServerError{} } -/* ArtifactShowInternalServerError describes a response with status code 500, with default header values. +/* +ArtifactShowInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type ArtifactShowInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this artifact show internal server error response has a 2xx status code +func (o *ArtifactShowInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this artifact show internal server error response has a 3xx status code +func (o *ArtifactShowInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this artifact show internal server error response has a 4xx status code +func (o *ArtifactShowInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this artifact show internal server error response has a 5xx status code +func (o *ArtifactShowInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this artifact show internal server error response a status code equal to that given +func (o *ArtifactShowInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *ArtifactShowInternalServerError) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactShowInternalServerError %+v", 500, o.Payload) } + +func (o *ArtifactShowInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactShowInternalServerError %+v", 500, o.Payload) +} + func (o *ArtifactShowInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/artifact_update_parameters.go b/go/client/operations/artifact_update_parameters.go index 8c58f41..5b7ae0b 100644 --- a/go/client/operations/artifact_update_parameters.go +++ b/go/client/operations/artifact_update_parameters.go @@ -54,10 +54,12 @@ func NewArtifactUpdateParamsWithHTTPClient(client *http.Client) *ArtifactUpdateP } } -/* ArtifactUpdateParams contains all the parameters to send to the API endpoint - for the artifact update operation. +/* +ArtifactUpdateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the artifact update operation. + + Typically these are written to a http.Request. */ type ArtifactUpdateParams struct { diff --git a/go/client/operations/artifact_update_responses.go b/go/client/operations/artifact_update_responses.go index 3135f3e..c02fae6 100644 --- a/go/client/operations/artifact_update_responses.go +++ b/go/client/operations/artifact_update_responses.go @@ -63,7 +63,8 @@ func NewArtifactUpdateOK() *ArtifactUpdateOK { return &ArtifactUpdateOK{} } -/* ArtifactUpdateOK describes a response with status code 200, with default header values. +/* +ArtifactUpdateOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type ArtifactUpdateOK struct { Payload *models.V0ArtifactShowResponseModel } +// IsSuccess returns true when this artifact update o k response has a 2xx status code +func (o *ArtifactUpdateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this artifact update o k response has a 3xx status code +func (o *ArtifactUpdateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this artifact update o k response has a 4xx status code +func (o *ArtifactUpdateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this artifact update o k response has a 5xx status code +func (o *ArtifactUpdateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this artifact update o k response a status code equal to that given +func (o *ArtifactUpdateOK) IsCode(code int) bool { + return code == 200 +} + func (o *ArtifactUpdateOK) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactUpdateOK %+v", 200, o.Payload) } + +func (o *ArtifactUpdateOK) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactUpdateOK %+v", 200, o.Payload) +} + func (o *ArtifactUpdateOK) GetPayload() *models.V0ArtifactShowResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewArtifactUpdateBadRequest() *ArtifactUpdateBadRequest { return &ArtifactUpdateBadRequest{} } -/* ArtifactUpdateBadRequest describes a response with status code 400, with default header values. +/* +ArtifactUpdateBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type ArtifactUpdateBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this artifact update bad request response has a 2xx status code +func (o *ArtifactUpdateBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this artifact update bad request response has a 3xx status code +func (o *ArtifactUpdateBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this artifact update bad request response has a 4xx status code +func (o *ArtifactUpdateBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this artifact update bad request response has a 5xx status code +func (o *ArtifactUpdateBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this artifact update bad request response a status code equal to that given +func (o *ArtifactUpdateBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *ArtifactUpdateBadRequest) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactUpdateBadRequest %+v", 400, o.Payload) } + +func (o *ArtifactUpdateBadRequest) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactUpdateBadRequest %+v", 400, o.Payload) +} + func (o *ArtifactUpdateBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewArtifactUpdateUnauthorized() *ArtifactUpdateUnauthorized { return &ArtifactUpdateUnauthorized{} } -/* ArtifactUpdateUnauthorized describes a response with status code 401, with default header values. +/* +ArtifactUpdateUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type ArtifactUpdateUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this artifact update unauthorized response has a 2xx status code +func (o *ArtifactUpdateUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this artifact update unauthorized response has a 3xx status code +func (o *ArtifactUpdateUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this artifact update unauthorized response has a 4xx status code +func (o *ArtifactUpdateUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this artifact update unauthorized response has a 5xx status code +func (o *ArtifactUpdateUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this artifact update unauthorized response a status code equal to that given +func (o *ArtifactUpdateUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *ArtifactUpdateUnauthorized) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactUpdateUnauthorized %+v", 401, o.Payload) } + +func (o *ArtifactUpdateUnauthorized) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactUpdateUnauthorized %+v", 401, o.Payload) +} + func (o *ArtifactUpdateUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewArtifactUpdateNotFound() *ArtifactUpdateNotFound { return &ArtifactUpdateNotFound{} } -/* ArtifactUpdateNotFound describes a response with status code 404, with default header values. +/* +ArtifactUpdateNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type ArtifactUpdateNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this artifact update not found response has a 2xx status code +func (o *ArtifactUpdateNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this artifact update not found response has a 3xx status code +func (o *ArtifactUpdateNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this artifact update not found response has a 4xx status code +func (o *ArtifactUpdateNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this artifact update not found response has a 5xx status code +func (o *ArtifactUpdateNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this artifact update not found response a status code equal to that given +func (o *ArtifactUpdateNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *ArtifactUpdateNotFound) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactUpdateNotFound %+v", 404, o.Payload) } + +func (o *ArtifactUpdateNotFound) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactUpdateNotFound %+v", 404, o.Payload) +} + func (o *ArtifactUpdateNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewArtifactUpdateInternalServerError() *ArtifactUpdateInternalServerError { return &ArtifactUpdateInternalServerError{} } -/* ArtifactUpdateInternalServerError describes a response with status code 500, with default header values. +/* +ArtifactUpdateInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type ArtifactUpdateInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this artifact update internal server error response has a 2xx status code +func (o *ArtifactUpdateInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this artifact update internal server error response has a 3xx status code +func (o *ArtifactUpdateInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this artifact update internal server error response has a 4xx status code +func (o *ArtifactUpdateInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this artifact update internal server error response has a 5xx status code +func (o *ArtifactUpdateInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this artifact update internal server error response a status code equal to that given +func (o *ArtifactUpdateInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *ArtifactUpdateInternalServerError) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactUpdateInternalServerError %+v", 500, o.Payload) } + +func (o *ArtifactUpdateInternalServerError) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}][%d] artifactUpdateInternalServerError %+v", 500, o.Payload) +} + func (o *ArtifactUpdateInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/avatar_candidate_create_parameters.go b/go/client/operations/avatar_candidate_create_parameters.go index 9845f06..8084e93 100644 --- a/go/client/operations/avatar_candidate_create_parameters.go +++ b/go/client/operations/avatar_candidate_create_parameters.go @@ -54,10 +54,12 @@ func NewAvatarCandidateCreateParamsWithHTTPClient(client *http.Client) *AvatarCa } } -/* AvatarCandidateCreateParams contains all the parameters to send to the API endpoint - for the avatar candidate create operation. +/* +AvatarCandidateCreateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the avatar candidate create operation. + + Typically these are written to a http.Request. */ type AvatarCandidateCreateParams struct { diff --git a/go/client/operations/avatar_candidate_create_responses.go b/go/client/operations/avatar_candidate_create_responses.go index 60f014e..989c1fc 100644 --- a/go/client/operations/avatar_candidate_create_responses.go +++ b/go/client/operations/avatar_candidate_create_responses.go @@ -63,7 +63,8 @@ func NewAvatarCandidateCreateCreated() *AvatarCandidateCreateCreated { return &AvatarCandidateCreateCreated{} } -/* AvatarCandidateCreateCreated describes a response with status code 201, with default header values. +/* +AvatarCandidateCreateCreated describes a response with status code 201, with default header values. Created */ @@ -71,9 +72,39 @@ type AvatarCandidateCreateCreated struct { Payload []*models.V0AvatarCandidateCreateResponseItem } +// IsSuccess returns true when this avatar candidate create created response has a 2xx status code +func (o *AvatarCandidateCreateCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this avatar candidate create created response has a 3xx status code +func (o *AvatarCandidateCreateCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this avatar candidate create created response has a 4xx status code +func (o *AvatarCandidateCreateCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this avatar candidate create created response has a 5xx status code +func (o *AvatarCandidateCreateCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this avatar candidate create created response a status code equal to that given +func (o *AvatarCandidateCreateCreated) IsCode(code int) bool { + return code == 201 +} + func (o *AvatarCandidateCreateCreated) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/avatar-candidates][%d] avatarCandidateCreateCreated %+v", 201, o.Payload) } + +func (o *AvatarCandidateCreateCreated) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/avatar-candidates][%d] avatarCandidateCreateCreated %+v", 201, o.Payload) +} + func (o *AvatarCandidateCreateCreated) GetPayload() []*models.V0AvatarCandidateCreateResponseItem { return o.Payload } @@ -93,7 +124,8 @@ func NewAvatarCandidateCreateBadRequest() *AvatarCandidateCreateBadRequest { return &AvatarCandidateCreateBadRequest{} } -/* AvatarCandidateCreateBadRequest describes a response with status code 400, with default header values. +/* +AvatarCandidateCreateBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -101,9 +133,39 @@ type AvatarCandidateCreateBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this avatar candidate create bad request response has a 2xx status code +func (o *AvatarCandidateCreateBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this avatar candidate create bad request response has a 3xx status code +func (o *AvatarCandidateCreateBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this avatar candidate create bad request response has a 4xx status code +func (o *AvatarCandidateCreateBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this avatar candidate create bad request response has a 5xx status code +func (o *AvatarCandidateCreateBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this avatar candidate create bad request response a status code equal to that given +func (o *AvatarCandidateCreateBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *AvatarCandidateCreateBadRequest) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/avatar-candidates][%d] avatarCandidateCreateBadRequest %+v", 400, o.Payload) } + +func (o *AvatarCandidateCreateBadRequest) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/avatar-candidates][%d] avatarCandidateCreateBadRequest %+v", 400, o.Payload) +} + func (o *AvatarCandidateCreateBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -125,7 +187,8 @@ func NewAvatarCandidateCreateUnauthorized() *AvatarCandidateCreateUnauthorized { return &AvatarCandidateCreateUnauthorized{} } -/* AvatarCandidateCreateUnauthorized describes a response with status code 401, with default header values. +/* +AvatarCandidateCreateUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -133,9 +196,39 @@ type AvatarCandidateCreateUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this avatar candidate create unauthorized response has a 2xx status code +func (o *AvatarCandidateCreateUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this avatar candidate create unauthorized response has a 3xx status code +func (o *AvatarCandidateCreateUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this avatar candidate create unauthorized response has a 4xx status code +func (o *AvatarCandidateCreateUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this avatar candidate create unauthorized response has a 5xx status code +func (o *AvatarCandidateCreateUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this avatar candidate create unauthorized response a status code equal to that given +func (o *AvatarCandidateCreateUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *AvatarCandidateCreateUnauthorized) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/avatar-candidates][%d] avatarCandidateCreateUnauthorized %+v", 401, o.Payload) } + +func (o *AvatarCandidateCreateUnauthorized) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/avatar-candidates][%d] avatarCandidateCreateUnauthorized %+v", 401, o.Payload) +} + func (o *AvatarCandidateCreateUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -157,7 +250,8 @@ func NewAvatarCandidateCreateNotFound() *AvatarCandidateCreateNotFound { return &AvatarCandidateCreateNotFound{} } -/* AvatarCandidateCreateNotFound describes a response with status code 404, with default header values. +/* +AvatarCandidateCreateNotFound describes a response with status code 404, with default header values. Not Found */ @@ -165,9 +259,39 @@ type AvatarCandidateCreateNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this avatar candidate create not found response has a 2xx status code +func (o *AvatarCandidateCreateNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this avatar candidate create not found response has a 3xx status code +func (o *AvatarCandidateCreateNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this avatar candidate create not found response has a 4xx status code +func (o *AvatarCandidateCreateNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this avatar candidate create not found response has a 5xx status code +func (o *AvatarCandidateCreateNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this avatar candidate create not found response a status code equal to that given +func (o *AvatarCandidateCreateNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *AvatarCandidateCreateNotFound) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/avatar-candidates][%d] avatarCandidateCreateNotFound %+v", 404, o.Payload) } + +func (o *AvatarCandidateCreateNotFound) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/avatar-candidates][%d] avatarCandidateCreateNotFound %+v", 404, o.Payload) +} + func (o *AvatarCandidateCreateNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -189,7 +313,8 @@ func NewAvatarCandidateCreateInternalServerError() *AvatarCandidateCreateInterna return &AvatarCandidateCreateInternalServerError{} } -/* AvatarCandidateCreateInternalServerError describes a response with status code 500, with default header values. +/* +AvatarCandidateCreateInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -197,9 +322,39 @@ type AvatarCandidateCreateInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this avatar candidate create internal server error response has a 2xx status code +func (o *AvatarCandidateCreateInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this avatar candidate create internal server error response has a 3xx status code +func (o *AvatarCandidateCreateInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this avatar candidate create internal server error response has a 4xx status code +func (o *AvatarCandidateCreateInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this avatar candidate create internal server error response has a 5xx status code +func (o *AvatarCandidateCreateInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this avatar candidate create internal server error response a status code equal to that given +func (o *AvatarCandidateCreateInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *AvatarCandidateCreateInternalServerError) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/avatar-candidates][%d] avatarCandidateCreateInternalServerError %+v", 500, o.Payload) } + +func (o *AvatarCandidateCreateInternalServerError) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/avatar-candidates][%d] avatarCandidateCreateInternalServerError %+v", 500, o.Payload) +} + func (o *AvatarCandidateCreateInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/avatar_candidate_list_parameters.go b/go/client/operations/avatar_candidate_list_parameters.go index 7aa4f07..8efb148 100644 --- a/go/client/operations/avatar_candidate_list_parameters.go +++ b/go/client/operations/avatar_candidate_list_parameters.go @@ -52,10 +52,12 @@ func NewAvatarCandidateListParamsWithHTTPClient(client *http.Client) *AvatarCand } } -/* AvatarCandidateListParams contains all the parameters to send to the API endpoint - for the avatar candidate list operation. +/* +AvatarCandidateListParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the avatar candidate list operation. + + Typically these are written to a http.Request. */ type AvatarCandidateListParams struct { diff --git a/go/client/operations/avatar_candidate_list_responses.go b/go/client/operations/avatar_candidate_list_responses.go index 1995d9d..927a8a9 100644 --- a/go/client/operations/avatar_candidate_list_responses.go +++ b/go/client/operations/avatar_candidate_list_responses.go @@ -63,7 +63,8 @@ func NewAvatarCandidateListOK() *AvatarCandidateListOK { return &AvatarCandidateListOK{} } -/* AvatarCandidateListOK describes a response with status code 200, with default header values. +/* +AvatarCandidateListOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type AvatarCandidateListOK struct { Payload *models.V0FindAvatarCandidateResponse } +// IsSuccess returns true when this avatar candidate list o k response has a 2xx status code +func (o *AvatarCandidateListOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this avatar candidate list o k response has a 3xx status code +func (o *AvatarCandidateListOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this avatar candidate list o k response has a 4xx status code +func (o *AvatarCandidateListOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this avatar candidate list o k response has a 5xx status code +func (o *AvatarCandidateListOK) IsServerError() bool { + return false +} + +// IsCode returns true when this avatar candidate list o k response a status code equal to that given +func (o *AvatarCandidateListOK) IsCode(code int) bool { + return code == 200 +} + func (o *AvatarCandidateListOK) Error() string { return fmt.Sprintf("[GET /v0.1/apps/{app-slug}/avatar-candidates][%d] avatarCandidateListOK %+v", 200, o.Payload) } + +func (o *AvatarCandidateListOK) String() string { + return fmt.Sprintf("[GET /v0.1/apps/{app-slug}/avatar-candidates][%d] avatarCandidateListOK %+v", 200, o.Payload) +} + func (o *AvatarCandidateListOK) GetPayload() *models.V0FindAvatarCandidateResponse { return o.Payload } @@ -95,7 +126,8 @@ func NewAvatarCandidateListBadRequest() *AvatarCandidateListBadRequest { return &AvatarCandidateListBadRequest{} } -/* AvatarCandidateListBadRequest describes a response with status code 400, with default header values. +/* +AvatarCandidateListBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type AvatarCandidateListBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this avatar candidate list bad request response has a 2xx status code +func (o *AvatarCandidateListBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this avatar candidate list bad request response has a 3xx status code +func (o *AvatarCandidateListBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this avatar candidate list bad request response has a 4xx status code +func (o *AvatarCandidateListBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this avatar candidate list bad request response has a 5xx status code +func (o *AvatarCandidateListBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this avatar candidate list bad request response a status code equal to that given +func (o *AvatarCandidateListBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *AvatarCandidateListBadRequest) Error() string { return fmt.Sprintf("[GET /v0.1/apps/{app-slug}/avatar-candidates][%d] avatarCandidateListBadRequest %+v", 400, o.Payload) } + +func (o *AvatarCandidateListBadRequest) String() string { + return fmt.Sprintf("[GET /v0.1/apps/{app-slug}/avatar-candidates][%d] avatarCandidateListBadRequest %+v", 400, o.Payload) +} + func (o *AvatarCandidateListBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewAvatarCandidateListUnauthorized() *AvatarCandidateListUnauthorized { return &AvatarCandidateListUnauthorized{} } -/* AvatarCandidateListUnauthorized describes a response with status code 401, with default header values. +/* +AvatarCandidateListUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type AvatarCandidateListUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this avatar candidate list unauthorized response has a 2xx status code +func (o *AvatarCandidateListUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this avatar candidate list unauthorized response has a 3xx status code +func (o *AvatarCandidateListUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this avatar candidate list unauthorized response has a 4xx status code +func (o *AvatarCandidateListUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this avatar candidate list unauthorized response has a 5xx status code +func (o *AvatarCandidateListUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this avatar candidate list unauthorized response a status code equal to that given +func (o *AvatarCandidateListUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *AvatarCandidateListUnauthorized) Error() string { return fmt.Sprintf("[GET /v0.1/apps/{app-slug}/avatar-candidates][%d] avatarCandidateListUnauthorized %+v", 401, o.Payload) } + +func (o *AvatarCandidateListUnauthorized) String() string { + return fmt.Sprintf("[GET /v0.1/apps/{app-slug}/avatar-candidates][%d] avatarCandidateListUnauthorized %+v", 401, o.Payload) +} + func (o *AvatarCandidateListUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewAvatarCandidateListNotFound() *AvatarCandidateListNotFound { return &AvatarCandidateListNotFound{} } -/* AvatarCandidateListNotFound describes a response with status code 404, with default header values. +/* +AvatarCandidateListNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type AvatarCandidateListNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this avatar candidate list not found response has a 2xx status code +func (o *AvatarCandidateListNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this avatar candidate list not found response has a 3xx status code +func (o *AvatarCandidateListNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this avatar candidate list not found response has a 4xx status code +func (o *AvatarCandidateListNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this avatar candidate list not found response has a 5xx status code +func (o *AvatarCandidateListNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this avatar candidate list not found response a status code equal to that given +func (o *AvatarCandidateListNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *AvatarCandidateListNotFound) Error() string { return fmt.Sprintf("[GET /v0.1/apps/{app-slug}/avatar-candidates][%d] avatarCandidateListNotFound %+v", 404, o.Payload) } + +func (o *AvatarCandidateListNotFound) String() string { + return fmt.Sprintf("[GET /v0.1/apps/{app-slug}/avatar-candidates][%d] avatarCandidateListNotFound %+v", 404, o.Payload) +} + func (o *AvatarCandidateListNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewAvatarCandidateListInternalServerError() *AvatarCandidateListInternalSer return &AvatarCandidateListInternalServerError{} } -/* AvatarCandidateListInternalServerError describes a response with status code 500, with default header values. +/* +AvatarCandidateListInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type AvatarCandidateListInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this avatar candidate list internal server error response has a 2xx status code +func (o *AvatarCandidateListInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this avatar candidate list internal server error response has a 3xx status code +func (o *AvatarCandidateListInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this avatar candidate list internal server error response has a 4xx status code +func (o *AvatarCandidateListInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this avatar candidate list internal server error response has a 5xx status code +func (o *AvatarCandidateListInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this avatar candidate list internal server error response a status code equal to that given +func (o *AvatarCandidateListInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *AvatarCandidateListInternalServerError) Error() string { return fmt.Sprintf("[GET /v0.1/apps/{app-slug}/avatar-candidates][%d] avatarCandidateListInternalServerError %+v", 500, o.Payload) } + +func (o *AvatarCandidateListInternalServerError) String() string { + return fmt.Sprintf("[GET /v0.1/apps/{app-slug}/avatar-candidates][%d] avatarCandidateListInternalServerError %+v", 500, o.Payload) +} + func (o *AvatarCandidateListInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/avatar_candidate_promote_parameters.go b/go/client/operations/avatar_candidate_promote_parameters.go index 1a63b8a..31aa3d3 100644 --- a/go/client/operations/avatar_candidate_promote_parameters.go +++ b/go/client/operations/avatar_candidate_promote_parameters.go @@ -54,10 +54,12 @@ func NewAvatarCandidatePromoteParamsWithHTTPClient(client *http.Client) *AvatarC } } -/* AvatarCandidatePromoteParams contains all the parameters to send to the API endpoint - for the avatar candidate promote operation. +/* +AvatarCandidatePromoteParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the avatar candidate promote operation. + + Typically these are written to a http.Request. */ type AvatarCandidatePromoteParams struct { diff --git a/go/client/operations/avatar_candidate_promote_responses.go b/go/client/operations/avatar_candidate_promote_responses.go index 00ec3eb..f016a06 100644 --- a/go/client/operations/avatar_candidate_promote_responses.go +++ b/go/client/operations/avatar_candidate_promote_responses.go @@ -63,7 +63,8 @@ func NewAvatarCandidatePromoteOK() *AvatarCandidatePromoteOK { return &AvatarCandidatePromoteOK{} } -/* AvatarCandidatePromoteOK describes a response with status code 200, with default header values. +/* +AvatarCandidatePromoteOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type AvatarCandidatePromoteOK struct { Payload *models.V0AvatarPromoteResponseModel } +// IsSuccess returns true when this avatar candidate promote o k response has a 2xx status code +func (o *AvatarCandidatePromoteOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this avatar candidate promote o k response has a 3xx status code +func (o *AvatarCandidatePromoteOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this avatar candidate promote o k response has a 4xx status code +func (o *AvatarCandidatePromoteOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this avatar candidate promote o k response has a 5xx status code +func (o *AvatarCandidatePromoteOK) IsServerError() bool { + return false +} + +// IsCode returns true when this avatar candidate promote o k response a status code equal to that given +func (o *AvatarCandidatePromoteOK) IsCode(code int) bool { + return code == 200 +} + func (o *AvatarCandidatePromoteOK) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/avatar-candidates/{avatar-slug}][%d] avatarCandidatePromoteOK %+v", 200, o.Payload) } + +func (o *AvatarCandidatePromoteOK) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/avatar-candidates/{avatar-slug}][%d] avatarCandidatePromoteOK %+v", 200, o.Payload) +} + func (o *AvatarCandidatePromoteOK) GetPayload() *models.V0AvatarPromoteResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewAvatarCandidatePromoteBadRequest() *AvatarCandidatePromoteBadRequest { return &AvatarCandidatePromoteBadRequest{} } -/* AvatarCandidatePromoteBadRequest describes a response with status code 400, with default header values. +/* +AvatarCandidatePromoteBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type AvatarCandidatePromoteBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this avatar candidate promote bad request response has a 2xx status code +func (o *AvatarCandidatePromoteBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this avatar candidate promote bad request response has a 3xx status code +func (o *AvatarCandidatePromoteBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this avatar candidate promote bad request response has a 4xx status code +func (o *AvatarCandidatePromoteBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this avatar candidate promote bad request response has a 5xx status code +func (o *AvatarCandidatePromoteBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this avatar candidate promote bad request response a status code equal to that given +func (o *AvatarCandidatePromoteBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *AvatarCandidatePromoteBadRequest) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/avatar-candidates/{avatar-slug}][%d] avatarCandidatePromoteBadRequest %+v", 400, o.Payload) } + +func (o *AvatarCandidatePromoteBadRequest) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/avatar-candidates/{avatar-slug}][%d] avatarCandidatePromoteBadRequest %+v", 400, o.Payload) +} + func (o *AvatarCandidatePromoteBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewAvatarCandidatePromoteUnauthorized() *AvatarCandidatePromoteUnauthorized return &AvatarCandidatePromoteUnauthorized{} } -/* AvatarCandidatePromoteUnauthorized describes a response with status code 401, with default header values. +/* +AvatarCandidatePromoteUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type AvatarCandidatePromoteUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this avatar candidate promote unauthorized response has a 2xx status code +func (o *AvatarCandidatePromoteUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this avatar candidate promote unauthorized response has a 3xx status code +func (o *AvatarCandidatePromoteUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this avatar candidate promote unauthorized response has a 4xx status code +func (o *AvatarCandidatePromoteUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this avatar candidate promote unauthorized response has a 5xx status code +func (o *AvatarCandidatePromoteUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this avatar candidate promote unauthorized response a status code equal to that given +func (o *AvatarCandidatePromoteUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *AvatarCandidatePromoteUnauthorized) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/avatar-candidates/{avatar-slug}][%d] avatarCandidatePromoteUnauthorized %+v", 401, o.Payload) } + +func (o *AvatarCandidatePromoteUnauthorized) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/avatar-candidates/{avatar-slug}][%d] avatarCandidatePromoteUnauthorized %+v", 401, o.Payload) +} + func (o *AvatarCandidatePromoteUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewAvatarCandidatePromoteNotFound() *AvatarCandidatePromoteNotFound { return &AvatarCandidatePromoteNotFound{} } -/* AvatarCandidatePromoteNotFound describes a response with status code 404, with default header values. +/* +AvatarCandidatePromoteNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type AvatarCandidatePromoteNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this avatar candidate promote not found response has a 2xx status code +func (o *AvatarCandidatePromoteNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this avatar candidate promote not found response has a 3xx status code +func (o *AvatarCandidatePromoteNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this avatar candidate promote not found response has a 4xx status code +func (o *AvatarCandidatePromoteNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this avatar candidate promote not found response has a 5xx status code +func (o *AvatarCandidatePromoteNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this avatar candidate promote not found response a status code equal to that given +func (o *AvatarCandidatePromoteNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *AvatarCandidatePromoteNotFound) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/avatar-candidates/{avatar-slug}][%d] avatarCandidatePromoteNotFound %+v", 404, o.Payload) } + +func (o *AvatarCandidatePromoteNotFound) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/avatar-candidates/{avatar-slug}][%d] avatarCandidatePromoteNotFound %+v", 404, o.Payload) +} + func (o *AvatarCandidatePromoteNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewAvatarCandidatePromoteInternalServerError() *AvatarCandidatePromoteInter return &AvatarCandidatePromoteInternalServerError{} } -/* AvatarCandidatePromoteInternalServerError describes a response with status code 500, with default header values. +/* +AvatarCandidatePromoteInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type AvatarCandidatePromoteInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this avatar candidate promote internal server error response has a 2xx status code +func (o *AvatarCandidatePromoteInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this avatar candidate promote internal server error response has a 3xx status code +func (o *AvatarCandidatePromoteInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this avatar candidate promote internal server error response has a 4xx status code +func (o *AvatarCandidatePromoteInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this avatar candidate promote internal server error response has a 5xx status code +func (o *AvatarCandidatePromoteInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this avatar candidate promote internal server error response a status code equal to that given +func (o *AvatarCandidatePromoteInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *AvatarCandidatePromoteInternalServerError) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/avatar-candidates/{avatar-slug}][%d] avatarCandidatePromoteInternalServerError %+v", 500, o.Payload) } + +func (o *AvatarCandidatePromoteInternalServerError) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/avatar-candidates/{avatar-slug}][%d] avatarCandidatePromoteInternalServerError %+v", 500, o.Payload) +} + func (o *AvatarCandidatePromoteInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/branch_list_parameters.go b/go/client/operations/branch_list_parameters.go index 160b51f..e5bc891 100644 --- a/go/client/operations/branch_list_parameters.go +++ b/go/client/operations/branch_list_parameters.go @@ -52,10 +52,12 @@ func NewBranchListParamsWithHTTPClient(client *http.Client) *BranchListParams { } } -/* BranchListParams contains all the parameters to send to the API endpoint - for the branch list operation. +/* +BranchListParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the branch list operation. + + Typically these are written to a http.Request. */ type BranchListParams struct { diff --git a/go/client/operations/branch_list_responses.go b/go/client/operations/branch_list_responses.go index 70617de..a6f7cc3 100644 --- a/go/client/operations/branch_list_responses.go +++ b/go/client/operations/branch_list_responses.go @@ -63,7 +63,8 @@ func NewBranchListOK() *BranchListOK { return &BranchListOK{} } -/* BranchListOK describes a response with status code 200, with default header values. +/* +BranchListOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type BranchListOK struct { Payload *models.V0BranchListResponseModel } +// IsSuccess returns true when this branch list o k response has a 2xx status code +func (o *BranchListOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this branch list o k response has a 3xx status code +func (o *BranchListOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this branch list o k response has a 4xx status code +func (o *BranchListOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this branch list o k response has a 5xx status code +func (o *BranchListOK) IsServerError() bool { + return false +} + +// IsCode returns true when this branch list o k response a status code equal to that given +func (o *BranchListOK) IsCode(code int) bool { + return code == 200 +} + func (o *BranchListOK) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/branches][%d] branchListOK %+v", 200, o.Payload) } + +func (o *BranchListOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/branches][%d] branchListOK %+v", 200, o.Payload) +} + func (o *BranchListOK) GetPayload() *models.V0BranchListResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewBranchListBadRequest() *BranchListBadRequest { return &BranchListBadRequest{} } -/* BranchListBadRequest describes a response with status code 400, with default header values. +/* +BranchListBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type BranchListBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this branch list bad request response has a 2xx status code +func (o *BranchListBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this branch list bad request response has a 3xx status code +func (o *BranchListBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this branch list bad request response has a 4xx status code +func (o *BranchListBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this branch list bad request response has a 5xx status code +func (o *BranchListBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this branch list bad request response a status code equal to that given +func (o *BranchListBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *BranchListBadRequest) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/branches][%d] branchListBadRequest %+v", 400, o.Payload) } + +func (o *BranchListBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/branches][%d] branchListBadRequest %+v", 400, o.Payload) +} + func (o *BranchListBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewBranchListUnauthorized() *BranchListUnauthorized { return &BranchListUnauthorized{} } -/* BranchListUnauthorized describes a response with status code 401, with default header values. +/* +BranchListUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type BranchListUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this branch list unauthorized response has a 2xx status code +func (o *BranchListUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this branch list unauthorized response has a 3xx status code +func (o *BranchListUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this branch list unauthorized response has a 4xx status code +func (o *BranchListUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this branch list unauthorized response has a 5xx status code +func (o *BranchListUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this branch list unauthorized response a status code equal to that given +func (o *BranchListUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *BranchListUnauthorized) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/branches][%d] branchListUnauthorized %+v", 401, o.Payload) } + +func (o *BranchListUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/branches][%d] branchListUnauthorized %+v", 401, o.Payload) +} + func (o *BranchListUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewBranchListNotFound() *BranchListNotFound { return &BranchListNotFound{} } -/* BranchListNotFound describes a response with status code 404, with default header values. +/* +BranchListNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type BranchListNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this branch list not found response has a 2xx status code +func (o *BranchListNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this branch list not found response has a 3xx status code +func (o *BranchListNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this branch list not found response has a 4xx status code +func (o *BranchListNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this branch list not found response has a 5xx status code +func (o *BranchListNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this branch list not found response a status code equal to that given +func (o *BranchListNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *BranchListNotFound) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/branches][%d] branchListNotFound %+v", 404, o.Payload) } + +func (o *BranchListNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/branches][%d] branchListNotFound %+v", 404, o.Payload) +} + func (o *BranchListNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewBranchListInternalServerError() *BranchListInternalServerError { return &BranchListInternalServerError{} } -/* BranchListInternalServerError describes a response with status code 500, with default header values. +/* +BranchListInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type BranchListInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this branch list internal server error response has a 2xx status code +func (o *BranchListInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this branch list internal server error response has a 3xx status code +func (o *BranchListInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this branch list internal server error response has a 4xx status code +func (o *BranchListInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this branch list internal server error response has a 5xx status code +func (o *BranchListInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this branch list internal server error response a status code equal to that given +func (o *BranchListInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *BranchListInternalServerError) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/branches][%d] branchListInternalServerError %+v", 500, o.Payload) } + +func (o *BranchListInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/branches][%d] branchListInternalServerError %+v", 500, o.Payload) +} + func (o *BranchListInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/build_abort_parameters.go b/go/client/operations/build_abort_parameters.go index 73065ad..a76451e 100644 --- a/go/client/operations/build_abort_parameters.go +++ b/go/client/operations/build_abort_parameters.go @@ -54,10 +54,12 @@ func NewBuildAbortParamsWithHTTPClient(client *http.Client) *BuildAbortParams { } } -/* BuildAbortParams contains all the parameters to send to the API endpoint - for the build abort operation. +/* +BuildAbortParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the build abort operation. + + Typically these are written to a http.Request. */ type BuildAbortParams struct { diff --git a/go/client/operations/build_abort_responses.go b/go/client/operations/build_abort_responses.go index 5543c00..d91697b 100644 --- a/go/client/operations/build_abort_responses.go +++ b/go/client/operations/build_abort_responses.go @@ -69,7 +69,8 @@ func NewBuildAbortOK() *BuildAbortOK { return &BuildAbortOK{} } -/* BuildAbortOK describes a response with status code 200, with default header values. +/* +BuildAbortOK describes a response with status code 200, with default header values. OK */ @@ -77,9 +78,39 @@ type BuildAbortOK struct { Payload *models.V0BuildAbortResponseModel } +// IsSuccess returns true when this build abort o k response has a 2xx status code +func (o *BuildAbortOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this build abort o k response has a 3xx status code +func (o *BuildAbortOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build abort o k response has a 4xx status code +func (o *BuildAbortOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this build abort o k response has a 5xx status code +func (o *BuildAbortOK) IsServerError() bool { + return false +} + +// IsCode returns true when this build abort o k response a status code equal to that given +func (o *BuildAbortOK) IsCode(code int) bool { + return code == 200 +} + func (o *BuildAbortOK) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/builds/{build-slug}/abort][%d] buildAbortOK %+v", 200, o.Payload) } + +func (o *BuildAbortOK) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/builds/{build-slug}/abort][%d] buildAbortOK %+v", 200, o.Payload) +} + func (o *BuildAbortOK) GetPayload() *models.V0BuildAbortResponseModel { return o.Payload } @@ -101,7 +132,8 @@ func NewBuildAbortBadRequest() *BuildAbortBadRequest { return &BuildAbortBadRequest{} } -/* BuildAbortBadRequest describes a response with status code 400, with default header values. +/* +BuildAbortBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -109,9 +141,39 @@ type BuildAbortBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build abort bad request response has a 2xx status code +func (o *BuildAbortBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build abort bad request response has a 3xx status code +func (o *BuildAbortBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build abort bad request response has a 4xx status code +func (o *BuildAbortBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this build abort bad request response has a 5xx status code +func (o *BuildAbortBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this build abort bad request response a status code equal to that given +func (o *BuildAbortBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *BuildAbortBadRequest) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/builds/{build-slug}/abort][%d] buildAbortBadRequest %+v", 400, o.Payload) } + +func (o *BuildAbortBadRequest) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/builds/{build-slug}/abort][%d] buildAbortBadRequest %+v", 400, o.Payload) +} + func (o *BuildAbortBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -133,7 +195,8 @@ func NewBuildAbortUnauthorized() *BuildAbortUnauthorized { return &BuildAbortUnauthorized{} } -/* BuildAbortUnauthorized describes a response with status code 401, with default header values. +/* +BuildAbortUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -141,9 +204,39 @@ type BuildAbortUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build abort unauthorized response has a 2xx status code +func (o *BuildAbortUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build abort unauthorized response has a 3xx status code +func (o *BuildAbortUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build abort unauthorized response has a 4xx status code +func (o *BuildAbortUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this build abort unauthorized response has a 5xx status code +func (o *BuildAbortUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this build abort unauthorized response a status code equal to that given +func (o *BuildAbortUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *BuildAbortUnauthorized) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/builds/{build-slug}/abort][%d] buildAbortUnauthorized %+v", 401, o.Payload) } + +func (o *BuildAbortUnauthorized) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/builds/{build-slug}/abort][%d] buildAbortUnauthorized %+v", 401, o.Payload) +} + func (o *BuildAbortUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -165,7 +258,8 @@ func NewBuildAbortNotFound() *BuildAbortNotFound { return &BuildAbortNotFound{} } -/* BuildAbortNotFound describes a response with status code 404, with default header values. +/* +BuildAbortNotFound describes a response with status code 404, with default header values. Not Found */ @@ -173,9 +267,39 @@ type BuildAbortNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build abort not found response has a 2xx status code +func (o *BuildAbortNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build abort not found response has a 3xx status code +func (o *BuildAbortNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build abort not found response has a 4xx status code +func (o *BuildAbortNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this build abort not found response has a 5xx status code +func (o *BuildAbortNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this build abort not found response a status code equal to that given +func (o *BuildAbortNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *BuildAbortNotFound) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/builds/{build-slug}/abort][%d] buildAbortNotFound %+v", 404, o.Payload) } + +func (o *BuildAbortNotFound) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/builds/{build-slug}/abort][%d] buildAbortNotFound %+v", 404, o.Payload) +} + func (o *BuildAbortNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -197,7 +321,8 @@ func NewBuildAbortTooManyRequests() *BuildAbortTooManyRequests { return &BuildAbortTooManyRequests{} } -/* BuildAbortTooManyRequests describes a response with status code 429, with default header values. +/* +BuildAbortTooManyRequests describes a response with status code 429, with default header values. Too Many Requests */ @@ -205,9 +330,39 @@ type BuildAbortTooManyRequests struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build abort too many requests response has a 2xx status code +func (o *BuildAbortTooManyRequests) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build abort too many requests response has a 3xx status code +func (o *BuildAbortTooManyRequests) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build abort too many requests response has a 4xx status code +func (o *BuildAbortTooManyRequests) IsClientError() bool { + return true +} + +// IsServerError returns true when this build abort too many requests response has a 5xx status code +func (o *BuildAbortTooManyRequests) IsServerError() bool { + return false +} + +// IsCode returns true when this build abort too many requests response a status code equal to that given +func (o *BuildAbortTooManyRequests) IsCode(code int) bool { + return code == 429 +} + func (o *BuildAbortTooManyRequests) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/builds/{build-slug}/abort][%d] buildAbortTooManyRequests %+v", 429, o.Payload) } + +func (o *BuildAbortTooManyRequests) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/builds/{build-slug}/abort][%d] buildAbortTooManyRequests %+v", 429, o.Payload) +} + func (o *BuildAbortTooManyRequests) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -229,7 +384,8 @@ func NewBuildAbortInternalServerError() *BuildAbortInternalServerError { return &BuildAbortInternalServerError{} } -/* BuildAbortInternalServerError describes a response with status code 500, with default header values. +/* +BuildAbortInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -237,9 +393,39 @@ type BuildAbortInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build abort internal server error response has a 2xx status code +func (o *BuildAbortInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build abort internal server error response has a 3xx status code +func (o *BuildAbortInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build abort internal server error response has a 4xx status code +func (o *BuildAbortInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this build abort internal server error response has a 5xx status code +func (o *BuildAbortInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this build abort internal server error response a status code equal to that given +func (o *BuildAbortInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *BuildAbortInternalServerError) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/builds/{build-slug}/abort][%d] buildAbortInternalServerError %+v", 500, o.Payload) } + +func (o *BuildAbortInternalServerError) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/builds/{build-slug}/abort][%d] buildAbortInternalServerError %+v", 500, o.Payload) +} + func (o *BuildAbortInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/build_bitrise_yml_show_parameters.go b/go/client/operations/build_bitrise_yml_show_parameters.go index db04705..14737a8 100644 --- a/go/client/operations/build_bitrise_yml_show_parameters.go +++ b/go/client/operations/build_bitrise_yml_show_parameters.go @@ -52,10 +52,12 @@ func NewBuildBitriseYmlShowParamsWithHTTPClient(client *http.Client) *BuildBitri } } -/* BuildBitriseYmlShowParams contains all the parameters to send to the API endpoint - for the build bitrise yml show operation. +/* +BuildBitriseYmlShowParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the build bitrise yml show operation. + + Typically these are written to a http.Request. */ type BuildBitriseYmlShowParams struct { diff --git a/go/client/operations/build_bitrise_yml_show_responses.go b/go/client/operations/build_bitrise_yml_show_responses.go index 3881d8f..253f7a9 100644 --- a/go/client/operations/build_bitrise_yml_show_responses.go +++ b/go/client/operations/build_bitrise_yml_show_responses.go @@ -63,7 +63,8 @@ func NewBuildBitriseYmlShowOK() *BuildBitriseYmlShowOK { return &BuildBitriseYmlShowOK{} } -/* BuildBitriseYmlShowOK describes a response with status code 200, with default header values. +/* +BuildBitriseYmlShowOK describes a response with status code 200, with default header values. {the bitrise.yml in yml format} */ @@ -71,9 +72,39 @@ type BuildBitriseYmlShowOK struct { Payload string } +// IsSuccess returns true when this build bitrise yml show o k response has a 2xx status code +func (o *BuildBitriseYmlShowOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this build bitrise yml show o k response has a 3xx status code +func (o *BuildBitriseYmlShowOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build bitrise yml show o k response has a 4xx status code +func (o *BuildBitriseYmlShowOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this build bitrise yml show o k response has a 5xx status code +func (o *BuildBitriseYmlShowOK) IsServerError() bool { + return false +} + +// IsCode returns true when this build bitrise yml show o k response a status code equal to that given +func (o *BuildBitriseYmlShowOK) IsCode(code int) bool { + return code == 200 +} + func (o *BuildBitriseYmlShowOK) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/bitrise.yml][%d] buildBitriseYmlShowOK %+v", 200, o.Payload) } + +func (o *BuildBitriseYmlShowOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/bitrise.yml][%d] buildBitriseYmlShowOK %+v", 200, o.Payload) +} + func (o *BuildBitriseYmlShowOK) GetPayload() string { return o.Payload } @@ -93,7 +124,8 @@ func NewBuildBitriseYmlShowBadRequest() *BuildBitriseYmlShowBadRequest { return &BuildBitriseYmlShowBadRequest{} } -/* BuildBitriseYmlShowBadRequest describes a response with status code 400, with default header values. +/* +BuildBitriseYmlShowBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -101,9 +133,39 @@ type BuildBitriseYmlShowBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build bitrise yml show bad request response has a 2xx status code +func (o *BuildBitriseYmlShowBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build bitrise yml show bad request response has a 3xx status code +func (o *BuildBitriseYmlShowBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build bitrise yml show bad request response has a 4xx status code +func (o *BuildBitriseYmlShowBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this build bitrise yml show bad request response has a 5xx status code +func (o *BuildBitriseYmlShowBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this build bitrise yml show bad request response a status code equal to that given +func (o *BuildBitriseYmlShowBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *BuildBitriseYmlShowBadRequest) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/bitrise.yml][%d] buildBitriseYmlShowBadRequest %+v", 400, o.Payload) } + +func (o *BuildBitriseYmlShowBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/bitrise.yml][%d] buildBitriseYmlShowBadRequest %+v", 400, o.Payload) +} + func (o *BuildBitriseYmlShowBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -125,7 +187,8 @@ func NewBuildBitriseYmlShowUnauthorized() *BuildBitriseYmlShowUnauthorized { return &BuildBitriseYmlShowUnauthorized{} } -/* BuildBitriseYmlShowUnauthorized describes a response with status code 401, with default header values. +/* +BuildBitriseYmlShowUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -133,9 +196,39 @@ type BuildBitriseYmlShowUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build bitrise yml show unauthorized response has a 2xx status code +func (o *BuildBitriseYmlShowUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build bitrise yml show unauthorized response has a 3xx status code +func (o *BuildBitriseYmlShowUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build bitrise yml show unauthorized response has a 4xx status code +func (o *BuildBitriseYmlShowUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this build bitrise yml show unauthorized response has a 5xx status code +func (o *BuildBitriseYmlShowUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this build bitrise yml show unauthorized response a status code equal to that given +func (o *BuildBitriseYmlShowUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *BuildBitriseYmlShowUnauthorized) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/bitrise.yml][%d] buildBitriseYmlShowUnauthorized %+v", 401, o.Payload) } + +func (o *BuildBitriseYmlShowUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/bitrise.yml][%d] buildBitriseYmlShowUnauthorized %+v", 401, o.Payload) +} + func (o *BuildBitriseYmlShowUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -157,7 +250,8 @@ func NewBuildBitriseYmlShowNotFound() *BuildBitriseYmlShowNotFound { return &BuildBitriseYmlShowNotFound{} } -/* BuildBitriseYmlShowNotFound describes a response with status code 404, with default header values. +/* +BuildBitriseYmlShowNotFound describes a response with status code 404, with default header values. Not Found */ @@ -165,9 +259,39 @@ type BuildBitriseYmlShowNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build bitrise yml show not found response has a 2xx status code +func (o *BuildBitriseYmlShowNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build bitrise yml show not found response has a 3xx status code +func (o *BuildBitriseYmlShowNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build bitrise yml show not found response has a 4xx status code +func (o *BuildBitriseYmlShowNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this build bitrise yml show not found response has a 5xx status code +func (o *BuildBitriseYmlShowNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this build bitrise yml show not found response a status code equal to that given +func (o *BuildBitriseYmlShowNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *BuildBitriseYmlShowNotFound) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/bitrise.yml][%d] buildBitriseYmlShowNotFound %+v", 404, o.Payload) } + +func (o *BuildBitriseYmlShowNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/bitrise.yml][%d] buildBitriseYmlShowNotFound %+v", 404, o.Payload) +} + func (o *BuildBitriseYmlShowNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -189,7 +313,8 @@ func NewBuildBitriseYmlShowInternalServerError() *BuildBitriseYmlShowInternalSer return &BuildBitriseYmlShowInternalServerError{} } -/* BuildBitriseYmlShowInternalServerError describes a response with status code 500, with default header values. +/* +BuildBitriseYmlShowInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -197,9 +322,39 @@ type BuildBitriseYmlShowInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build bitrise yml show internal server error response has a 2xx status code +func (o *BuildBitriseYmlShowInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build bitrise yml show internal server error response has a 3xx status code +func (o *BuildBitriseYmlShowInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build bitrise yml show internal server error response has a 4xx status code +func (o *BuildBitriseYmlShowInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this build bitrise yml show internal server error response has a 5xx status code +func (o *BuildBitriseYmlShowInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this build bitrise yml show internal server error response a status code equal to that given +func (o *BuildBitriseYmlShowInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *BuildBitriseYmlShowInternalServerError) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/bitrise.yml][%d] buildBitriseYmlShowInternalServerError %+v", 500, o.Payload) } + +func (o *BuildBitriseYmlShowInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/bitrise.yml][%d] buildBitriseYmlShowInternalServerError %+v", 500, o.Payload) +} + func (o *BuildBitriseYmlShowInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/build_certificate_confirm_parameters.go b/go/client/operations/build_certificate_confirm_parameters.go index 5cdc2c8..2253dfe 100644 --- a/go/client/operations/build_certificate_confirm_parameters.go +++ b/go/client/operations/build_certificate_confirm_parameters.go @@ -52,10 +52,12 @@ func NewBuildCertificateConfirmParamsWithHTTPClient(client *http.Client) *BuildC } } -/* BuildCertificateConfirmParams contains all the parameters to send to the API endpoint - for the build certificate confirm operation. +/* +BuildCertificateConfirmParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the build certificate confirm operation. + + Typically these are written to a http.Request. */ type BuildCertificateConfirmParams struct { diff --git a/go/client/operations/build_certificate_confirm_responses.go b/go/client/operations/build_certificate_confirm_responses.go index b3101ae..ac3f426 100644 --- a/go/client/operations/build_certificate_confirm_responses.go +++ b/go/client/operations/build_certificate_confirm_responses.go @@ -63,7 +63,8 @@ func NewBuildCertificateConfirmOK() *BuildCertificateConfirmOK { return &BuildCertificateConfirmOK{} } -/* BuildCertificateConfirmOK describes a response with status code 200, with default header values. +/* +BuildCertificateConfirmOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type BuildCertificateConfirmOK struct { Payload *models.V0BuildCertificateResponseModel } +// IsSuccess returns true when this build certificate confirm o k response has a 2xx status code +func (o *BuildCertificateConfirmOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this build certificate confirm o k response has a 3xx status code +func (o *BuildCertificateConfirmOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate confirm o k response has a 4xx status code +func (o *BuildCertificateConfirmOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this build certificate confirm o k response has a 5xx status code +func (o *BuildCertificateConfirmOK) IsServerError() bool { + return false +} + +// IsCode returns true when this build certificate confirm o k response a status code equal to that given +func (o *BuildCertificateConfirmOK) IsCode(code int) bool { + return code == 200 +} + func (o *BuildCertificateConfirmOK) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/build-certificates/{build-certificate-slug}/uploaded][%d] buildCertificateConfirmOK %+v", 200, o.Payload) } + +func (o *BuildCertificateConfirmOK) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/build-certificates/{build-certificate-slug}/uploaded][%d] buildCertificateConfirmOK %+v", 200, o.Payload) +} + func (o *BuildCertificateConfirmOK) GetPayload() *models.V0BuildCertificateResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewBuildCertificateConfirmBadRequest() *BuildCertificateConfirmBadRequest { return &BuildCertificateConfirmBadRequest{} } -/* BuildCertificateConfirmBadRequest describes a response with status code 400, with default header values. +/* +BuildCertificateConfirmBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type BuildCertificateConfirmBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build certificate confirm bad request response has a 2xx status code +func (o *BuildCertificateConfirmBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build certificate confirm bad request response has a 3xx status code +func (o *BuildCertificateConfirmBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate confirm bad request response has a 4xx status code +func (o *BuildCertificateConfirmBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this build certificate confirm bad request response has a 5xx status code +func (o *BuildCertificateConfirmBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this build certificate confirm bad request response a status code equal to that given +func (o *BuildCertificateConfirmBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *BuildCertificateConfirmBadRequest) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/build-certificates/{build-certificate-slug}/uploaded][%d] buildCertificateConfirmBadRequest %+v", 400, o.Payload) } + +func (o *BuildCertificateConfirmBadRequest) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/build-certificates/{build-certificate-slug}/uploaded][%d] buildCertificateConfirmBadRequest %+v", 400, o.Payload) +} + func (o *BuildCertificateConfirmBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewBuildCertificateConfirmUnauthorized() *BuildCertificateConfirmUnauthoriz return &BuildCertificateConfirmUnauthorized{} } -/* BuildCertificateConfirmUnauthorized describes a response with status code 401, with default header values. +/* +BuildCertificateConfirmUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type BuildCertificateConfirmUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build certificate confirm unauthorized response has a 2xx status code +func (o *BuildCertificateConfirmUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build certificate confirm unauthorized response has a 3xx status code +func (o *BuildCertificateConfirmUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate confirm unauthorized response has a 4xx status code +func (o *BuildCertificateConfirmUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this build certificate confirm unauthorized response has a 5xx status code +func (o *BuildCertificateConfirmUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this build certificate confirm unauthorized response a status code equal to that given +func (o *BuildCertificateConfirmUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *BuildCertificateConfirmUnauthorized) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/build-certificates/{build-certificate-slug}/uploaded][%d] buildCertificateConfirmUnauthorized %+v", 401, o.Payload) } + +func (o *BuildCertificateConfirmUnauthorized) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/build-certificates/{build-certificate-slug}/uploaded][%d] buildCertificateConfirmUnauthorized %+v", 401, o.Payload) +} + func (o *BuildCertificateConfirmUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewBuildCertificateConfirmNotFound() *BuildCertificateConfirmNotFound { return &BuildCertificateConfirmNotFound{} } -/* BuildCertificateConfirmNotFound describes a response with status code 404, with default header values. +/* +BuildCertificateConfirmNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type BuildCertificateConfirmNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build certificate confirm not found response has a 2xx status code +func (o *BuildCertificateConfirmNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build certificate confirm not found response has a 3xx status code +func (o *BuildCertificateConfirmNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate confirm not found response has a 4xx status code +func (o *BuildCertificateConfirmNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this build certificate confirm not found response has a 5xx status code +func (o *BuildCertificateConfirmNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this build certificate confirm not found response a status code equal to that given +func (o *BuildCertificateConfirmNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *BuildCertificateConfirmNotFound) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/build-certificates/{build-certificate-slug}/uploaded][%d] buildCertificateConfirmNotFound %+v", 404, o.Payload) } + +func (o *BuildCertificateConfirmNotFound) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/build-certificates/{build-certificate-slug}/uploaded][%d] buildCertificateConfirmNotFound %+v", 404, o.Payload) +} + func (o *BuildCertificateConfirmNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewBuildCertificateConfirmInternalServerError() *BuildCertificateConfirmInt return &BuildCertificateConfirmInternalServerError{} } -/* BuildCertificateConfirmInternalServerError describes a response with status code 500, with default header values. +/* +BuildCertificateConfirmInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type BuildCertificateConfirmInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build certificate confirm internal server error response has a 2xx status code +func (o *BuildCertificateConfirmInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build certificate confirm internal server error response has a 3xx status code +func (o *BuildCertificateConfirmInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate confirm internal server error response has a 4xx status code +func (o *BuildCertificateConfirmInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this build certificate confirm internal server error response has a 5xx status code +func (o *BuildCertificateConfirmInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this build certificate confirm internal server error response a status code equal to that given +func (o *BuildCertificateConfirmInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *BuildCertificateConfirmInternalServerError) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/build-certificates/{build-certificate-slug}/uploaded][%d] buildCertificateConfirmInternalServerError %+v", 500, o.Payload) } + +func (o *BuildCertificateConfirmInternalServerError) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/build-certificates/{build-certificate-slug}/uploaded][%d] buildCertificateConfirmInternalServerError %+v", 500, o.Payload) +} + func (o *BuildCertificateConfirmInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/build_certificate_create_parameters.go b/go/client/operations/build_certificate_create_parameters.go index a20741b..32388da 100644 --- a/go/client/operations/build_certificate_create_parameters.go +++ b/go/client/operations/build_certificate_create_parameters.go @@ -54,10 +54,12 @@ func NewBuildCertificateCreateParamsWithHTTPClient(client *http.Client) *BuildCe } } -/* BuildCertificateCreateParams contains all the parameters to send to the API endpoint - for the build certificate create operation. +/* +BuildCertificateCreateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the build certificate create operation. + + Typically these are written to a http.Request. */ type BuildCertificateCreateParams struct { diff --git a/go/client/operations/build_certificate_create_responses.go b/go/client/operations/build_certificate_create_responses.go index 010bc0b..d9ed6a9 100644 --- a/go/client/operations/build_certificate_create_responses.go +++ b/go/client/operations/build_certificate_create_responses.go @@ -63,7 +63,8 @@ func NewBuildCertificateCreateCreated() *BuildCertificateCreateCreated { return &BuildCertificateCreateCreated{} } -/* BuildCertificateCreateCreated describes a response with status code 201, with default header values. +/* +BuildCertificateCreateCreated describes a response with status code 201, with default header values. Created */ @@ -71,9 +72,39 @@ type BuildCertificateCreateCreated struct { Payload *models.V0BuildCertificateResponseModel } +// IsSuccess returns true when this build certificate create created response has a 2xx status code +func (o *BuildCertificateCreateCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this build certificate create created response has a 3xx status code +func (o *BuildCertificateCreateCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate create created response has a 4xx status code +func (o *BuildCertificateCreateCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this build certificate create created response has a 5xx status code +func (o *BuildCertificateCreateCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this build certificate create created response a status code equal to that given +func (o *BuildCertificateCreateCreated) IsCode(code int) bool { + return code == 201 +} + func (o *BuildCertificateCreateCreated) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/build-certificates][%d] buildCertificateCreateCreated %+v", 201, o.Payload) } + +func (o *BuildCertificateCreateCreated) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/build-certificates][%d] buildCertificateCreateCreated %+v", 201, o.Payload) +} + func (o *BuildCertificateCreateCreated) GetPayload() *models.V0BuildCertificateResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewBuildCertificateCreateBadRequest() *BuildCertificateCreateBadRequest { return &BuildCertificateCreateBadRequest{} } -/* BuildCertificateCreateBadRequest describes a response with status code 400, with default header values. +/* +BuildCertificateCreateBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type BuildCertificateCreateBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build certificate create bad request response has a 2xx status code +func (o *BuildCertificateCreateBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build certificate create bad request response has a 3xx status code +func (o *BuildCertificateCreateBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate create bad request response has a 4xx status code +func (o *BuildCertificateCreateBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this build certificate create bad request response has a 5xx status code +func (o *BuildCertificateCreateBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this build certificate create bad request response a status code equal to that given +func (o *BuildCertificateCreateBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *BuildCertificateCreateBadRequest) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/build-certificates][%d] buildCertificateCreateBadRequest %+v", 400, o.Payload) } + +func (o *BuildCertificateCreateBadRequest) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/build-certificates][%d] buildCertificateCreateBadRequest %+v", 400, o.Payload) +} + func (o *BuildCertificateCreateBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewBuildCertificateCreateUnauthorized() *BuildCertificateCreateUnauthorized return &BuildCertificateCreateUnauthorized{} } -/* BuildCertificateCreateUnauthorized describes a response with status code 401, with default header values. +/* +BuildCertificateCreateUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type BuildCertificateCreateUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build certificate create unauthorized response has a 2xx status code +func (o *BuildCertificateCreateUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build certificate create unauthorized response has a 3xx status code +func (o *BuildCertificateCreateUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate create unauthorized response has a 4xx status code +func (o *BuildCertificateCreateUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this build certificate create unauthorized response has a 5xx status code +func (o *BuildCertificateCreateUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this build certificate create unauthorized response a status code equal to that given +func (o *BuildCertificateCreateUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *BuildCertificateCreateUnauthorized) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/build-certificates][%d] buildCertificateCreateUnauthorized %+v", 401, o.Payload) } + +func (o *BuildCertificateCreateUnauthorized) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/build-certificates][%d] buildCertificateCreateUnauthorized %+v", 401, o.Payload) +} + func (o *BuildCertificateCreateUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewBuildCertificateCreateNotFound() *BuildCertificateCreateNotFound { return &BuildCertificateCreateNotFound{} } -/* BuildCertificateCreateNotFound describes a response with status code 404, with default header values. +/* +BuildCertificateCreateNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type BuildCertificateCreateNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build certificate create not found response has a 2xx status code +func (o *BuildCertificateCreateNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build certificate create not found response has a 3xx status code +func (o *BuildCertificateCreateNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate create not found response has a 4xx status code +func (o *BuildCertificateCreateNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this build certificate create not found response has a 5xx status code +func (o *BuildCertificateCreateNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this build certificate create not found response a status code equal to that given +func (o *BuildCertificateCreateNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *BuildCertificateCreateNotFound) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/build-certificates][%d] buildCertificateCreateNotFound %+v", 404, o.Payload) } + +func (o *BuildCertificateCreateNotFound) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/build-certificates][%d] buildCertificateCreateNotFound %+v", 404, o.Payload) +} + func (o *BuildCertificateCreateNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewBuildCertificateCreateInternalServerError() *BuildCertificateCreateInter return &BuildCertificateCreateInternalServerError{} } -/* BuildCertificateCreateInternalServerError describes a response with status code 500, with default header values. +/* +BuildCertificateCreateInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type BuildCertificateCreateInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build certificate create internal server error response has a 2xx status code +func (o *BuildCertificateCreateInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build certificate create internal server error response has a 3xx status code +func (o *BuildCertificateCreateInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate create internal server error response has a 4xx status code +func (o *BuildCertificateCreateInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this build certificate create internal server error response has a 5xx status code +func (o *BuildCertificateCreateInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this build certificate create internal server error response a status code equal to that given +func (o *BuildCertificateCreateInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *BuildCertificateCreateInternalServerError) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/build-certificates][%d] buildCertificateCreateInternalServerError %+v", 500, o.Payload) } + +func (o *BuildCertificateCreateInternalServerError) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/build-certificates][%d] buildCertificateCreateInternalServerError %+v", 500, o.Payload) +} + func (o *BuildCertificateCreateInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/build_certificate_delete_parameters.go b/go/client/operations/build_certificate_delete_parameters.go index 2de6712..b321900 100644 --- a/go/client/operations/build_certificate_delete_parameters.go +++ b/go/client/operations/build_certificate_delete_parameters.go @@ -52,10 +52,12 @@ func NewBuildCertificateDeleteParamsWithHTTPClient(client *http.Client) *BuildCe } } -/* BuildCertificateDeleteParams contains all the parameters to send to the API endpoint - for the build certificate delete operation. +/* +BuildCertificateDeleteParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the build certificate delete operation. + + Typically these are written to a http.Request. */ type BuildCertificateDeleteParams struct { diff --git a/go/client/operations/build_certificate_delete_responses.go b/go/client/operations/build_certificate_delete_responses.go index 3939423..073cfbe 100644 --- a/go/client/operations/build_certificate_delete_responses.go +++ b/go/client/operations/build_certificate_delete_responses.go @@ -63,7 +63,8 @@ func NewBuildCertificateDeleteOK() *BuildCertificateDeleteOK { return &BuildCertificateDeleteOK{} } -/* BuildCertificateDeleteOK describes a response with status code 200, with default header values. +/* +BuildCertificateDeleteOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type BuildCertificateDeleteOK struct { Payload *models.V0BuildCertificateResponseModel } +// IsSuccess returns true when this build certificate delete o k response has a 2xx status code +func (o *BuildCertificateDeleteOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this build certificate delete o k response has a 3xx status code +func (o *BuildCertificateDeleteOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate delete o k response has a 4xx status code +func (o *BuildCertificateDeleteOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this build certificate delete o k response has a 5xx status code +func (o *BuildCertificateDeleteOK) IsServerError() bool { + return false +} + +// IsCode returns true when this build certificate delete o k response a status code equal to that given +func (o *BuildCertificateDeleteOK) IsCode(code int) bool { + return code == 200 +} + func (o *BuildCertificateDeleteOK) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateDeleteOK %+v", 200, o.Payload) } + +func (o *BuildCertificateDeleteOK) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateDeleteOK %+v", 200, o.Payload) +} + func (o *BuildCertificateDeleteOK) GetPayload() *models.V0BuildCertificateResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewBuildCertificateDeleteBadRequest() *BuildCertificateDeleteBadRequest { return &BuildCertificateDeleteBadRequest{} } -/* BuildCertificateDeleteBadRequest describes a response with status code 400, with default header values. +/* +BuildCertificateDeleteBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type BuildCertificateDeleteBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build certificate delete bad request response has a 2xx status code +func (o *BuildCertificateDeleteBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build certificate delete bad request response has a 3xx status code +func (o *BuildCertificateDeleteBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate delete bad request response has a 4xx status code +func (o *BuildCertificateDeleteBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this build certificate delete bad request response has a 5xx status code +func (o *BuildCertificateDeleteBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this build certificate delete bad request response a status code equal to that given +func (o *BuildCertificateDeleteBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *BuildCertificateDeleteBadRequest) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateDeleteBadRequest %+v", 400, o.Payload) } + +func (o *BuildCertificateDeleteBadRequest) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateDeleteBadRequest %+v", 400, o.Payload) +} + func (o *BuildCertificateDeleteBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewBuildCertificateDeleteUnauthorized() *BuildCertificateDeleteUnauthorized return &BuildCertificateDeleteUnauthorized{} } -/* BuildCertificateDeleteUnauthorized describes a response with status code 401, with default header values. +/* +BuildCertificateDeleteUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type BuildCertificateDeleteUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build certificate delete unauthorized response has a 2xx status code +func (o *BuildCertificateDeleteUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build certificate delete unauthorized response has a 3xx status code +func (o *BuildCertificateDeleteUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate delete unauthorized response has a 4xx status code +func (o *BuildCertificateDeleteUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this build certificate delete unauthorized response has a 5xx status code +func (o *BuildCertificateDeleteUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this build certificate delete unauthorized response a status code equal to that given +func (o *BuildCertificateDeleteUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *BuildCertificateDeleteUnauthorized) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateDeleteUnauthorized %+v", 401, o.Payload) } + +func (o *BuildCertificateDeleteUnauthorized) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateDeleteUnauthorized %+v", 401, o.Payload) +} + func (o *BuildCertificateDeleteUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewBuildCertificateDeleteNotFound() *BuildCertificateDeleteNotFound { return &BuildCertificateDeleteNotFound{} } -/* BuildCertificateDeleteNotFound describes a response with status code 404, with default header values. +/* +BuildCertificateDeleteNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type BuildCertificateDeleteNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build certificate delete not found response has a 2xx status code +func (o *BuildCertificateDeleteNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build certificate delete not found response has a 3xx status code +func (o *BuildCertificateDeleteNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate delete not found response has a 4xx status code +func (o *BuildCertificateDeleteNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this build certificate delete not found response has a 5xx status code +func (o *BuildCertificateDeleteNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this build certificate delete not found response a status code equal to that given +func (o *BuildCertificateDeleteNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *BuildCertificateDeleteNotFound) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateDeleteNotFound %+v", 404, o.Payload) } + +func (o *BuildCertificateDeleteNotFound) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateDeleteNotFound %+v", 404, o.Payload) +} + func (o *BuildCertificateDeleteNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewBuildCertificateDeleteInternalServerError() *BuildCertificateDeleteInter return &BuildCertificateDeleteInternalServerError{} } -/* BuildCertificateDeleteInternalServerError describes a response with status code 500, with default header values. +/* +BuildCertificateDeleteInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type BuildCertificateDeleteInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build certificate delete internal server error response has a 2xx status code +func (o *BuildCertificateDeleteInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build certificate delete internal server error response has a 3xx status code +func (o *BuildCertificateDeleteInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate delete internal server error response has a 4xx status code +func (o *BuildCertificateDeleteInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this build certificate delete internal server error response has a 5xx status code +func (o *BuildCertificateDeleteInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this build certificate delete internal server error response a status code equal to that given +func (o *BuildCertificateDeleteInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *BuildCertificateDeleteInternalServerError) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateDeleteInternalServerError %+v", 500, o.Payload) } + +func (o *BuildCertificateDeleteInternalServerError) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateDeleteInternalServerError %+v", 500, o.Payload) +} + func (o *BuildCertificateDeleteInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/build_certificate_list_parameters.go b/go/client/operations/build_certificate_list_parameters.go index 3a85c5f..1d321a7 100644 --- a/go/client/operations/build_certificate_list_parameters.go +++ b/go/client/operations/build_certificate_list_parameters.go @@ -53,10 +53,12 @@ func NewBuildCertificateListParamsWithHTTPClient(client *http.Client) *BuildCert } } -/* BuildCertificateListParams contains all the parameters to send to the API endpoint - for the build certificate list operation. +/* +BuildCertificateListParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the build certificate list operation. + + Typically these are written to a http.Request. */ type BuildCertificateListParams struct { diff --git a/go/client/operations/build_certificate_list_responses.go b/go/client/operations/build_certificate_list_responses.go index 1c53d11..7917f42 100644 --- a/go/client/operations/build_certificate_list_responses.go +++ b/go/client/operations/build_certificate_list_responses.go @@ -63,7 +63,8 @@ func NewBuildCertificateListOK() *BuildCertificateListOK { return &BuildCertificateListOK{} } -/* BuildCertificateListOK describes a response with status code 200, with default header values. +/* +BuildCertificateListOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type BuildCertificateListOK struct { Payload *models.V0BuildCertificateListResponseModel } +// IsSuccess returns true when this build certificate list o k response has a 2xx status code +func (o *BuildCertificateListOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this build certificate list o k response has a 3xx status code +func (o *BuildCertificateListOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate list o k response has a 4xx status code +func (o *BuildCertificateListOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this build certificate list o k response has a 5xx status code +func (o *BuildCertificateListOK) IsServerError() bool { + return false +} + +// IsCode returns true when this build certificate list o k response a status code equal to that given +func (o *BuildCertificateListOK) IsCode(code int) bool { + return code == 200 +} + func (o *BuildCertificateListOK) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/build-certificates][%d] buildCertificateListOK %+v", 200, o.Payload) } + +func (o *BuildCertificateListOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/build-certificates][%d] buildCertificateListOK %+v", 200, o.Payload) +} + func (o *BuildCertificateListOK) GetPayload() *models.V0BuildCertificateListResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewBuildCertificateListBadRequest() *BuildCertificateListBadRequest { return &BuildCertificateListBadRequest{} } -/* BuildCertificateListBadRequest describes a response with status code 400, with default header values. +/* +BuildCertificateListBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type BuildCertificateListBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build certificate list bad request response has a 2xx status code +func (o *BuildCertificateListBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build certificate list bad request response has a 3xx status code +func (o *BuildCertificateListBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate list bad request response has a 4xx status code +func (o *BuildCertificateListBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this build certificate list bad request response has a 5xx status code +func (o *BuildCertificateListBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this build certificate list bad request response a status code equal to that given +func (o *BuildCertificateListBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *BuildCertificateListBadRequest) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/build-certificates][%d] buildCertificateListBadRequest %+v", 400, o.Payload) } + +func (o *BuildCertificateListBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/build-certificates][%d] buildCertificateListBadRequest %+v", 400, o.Payload) +} + func (o *BuildCertificateListBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewBuildCertificateListUnauthorized() *BuildCertificateListUnauthorized { return &BuildCertificateListUnauthorized{} } -/* BuildCertificateListUnauthorized describes a response with status code 401, with default header values. +/* +BuildCertificateListUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type BuildCertificateListUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build certificate list unauthorized response has a 2xx status code +func (o *BuildCertificateListUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build certificate list unauthorized response has a 3xx status code +func (o *BuildCertificateListUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate list unauthorized response has a 4xx status code +func (o *BuildCertificateListUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this build certificate list unauthorized response has a 5xx status code +func (o *BuildCertificateListUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this build certificate list unauthorized response a status code equal to that given +func (o *BuildCertificateListUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *BuildCertificateListUnauthorized) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/build-certificates][%d] buildCertificateListUnauthorized %+v", 401, o.Payload) } + +func (o *BuildCertificateListUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/build-certificates][%d] buildCertificateListUnauthorized %+v", 401, o.Payload) +} + func (o *BuildCertificateListUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewBuildCertificateListNotFound() *BuildCertificateListNotFound { return &BuildCertificateListNotFound{} } -/* BuildCertificateListNotFound describes a response with status code 404, with default header values. +/* +BuildCertificateListNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type BuildCertificateListNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build certificate list not found response has a 2xx status code +func (o *BuildCertificateListNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build certificate list not found response has a 3xx status code +func (o *BuildCertificateListNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate list not found response has a 4xx status code +func (o *BuildCertificateListNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this build certificate list not found response has a 5xx status code +func (o *BuildCertificateListNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this build certificate list not found response a status code equal to that given +func (o *BuildCertificateListNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *BuildCertificateListNotFound) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/build-certificates][%d] buildCertificateListNotFound %+v", 404, o.Payload) } + +func (o *BuildCertificateListNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/build-certificates][%d] buildCertificateListNotFound %+v", 404, o.Payload) +} + func (o *BuildCertificateListNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewBuildCertificateListInternalServerError() *BuildCertificateListInternalS return &BuildCertificateListInternalServerError{} } -/* BuildCertificateListInternalServerError describes a response with status code 500, with default header values. +/* +BuildCertificateListInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type BuildCertificateListInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build certificate list internal server error response has a 2xx status code +func (o *BuildCertificateListInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build certificate list internal server error response has a 3xx status code +func (o *BuildCertificateListInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate list internal server error response has a 4xx status code +func (o *BuildCertificateListInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this build certificate list internal server error response has a 5xx status code +func (o *BuildCertificateListInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this build certificate list internal server error response a status code equal to that given +func (o *BuildCertificateListInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *BuildCertificateListInternalServerError) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/build-certificates][%d] buildCertificateListInternalServerError %+v", 500, o.Payload) } + +func (o *BuildCertificateListInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/build-certificates][%d] buildCertificateListInternalServerError %+v", 500, o.Payload) +} + func (o *BuildCertificateListInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/build_certificate_show_parameters.go b/go/client/operations/build_certificate_show_parameters.go index 1efd15e..5bc7d06 100644 --- a/go/client/operations/build_certificate_show_parameters.go +++ b/go/client/operations/build_certificate_show_parameters.go @@ -52,10 +52,12 @@ func NewBuildCertificateShowParamsWithHTTPClient(client *http.Client) *BuildCert } } -/* BuildCertificateShowParams contains all the parameters to send to the API endpoint - for the build certificate show operation. +/* +BuildCertificateShowParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the build certificate show operation. + + Typically these are written to a http.Request. */ type BuildCertificateShowParams struct { diff --git a/go/client/operations/build_certificate_show_responses.go b/go/client/operations/build_certificate_show_responses.go index 692ccdb..88c7424 100644 --- a/go/client/operations/build_certificate_show_responses.go +++ b/go/client/operations/build_certificate_show_responses.go @@ -63,7 +63,8 @@ func NewBuildCertificateShowOK() *BuildCertificateShowOK { return &BuildCertificateShowOK{} } -/* BuildCertificateShowOK describes a response with status code 200, with default header values. +/* +BuildCertificateShowOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type BuildCertificateShowOK struct { Payload *models.V0BuildCertificateResponseModel } +// IsSuccess returns true when this build certificate show o k response has a 2xx status code +func (o *BuildCertificateShowOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this build certificate show o k response has a 3xx status code +func (o *BuildCertificateShowOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate show o k response has a 4xx status code +func (o *BuildCertificateShowOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this build certificate show o k response has a 5xx status code +func (o *BuildCertificateShowOK) IsServerError() bool { + return false +} + +// IsCode returns true when this build certificate show o k response a status code equal to that given +func (o *BuildCertificateShowOK) IsCode(code int) bool { + return code == 200 +} + func (o *BuildCertificateShowOK) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateShowOK %+v", 200, o.Payload) } + +func (o *BuildCertificateShowOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateShowOK %+v", 200, o.Payload) +} + func (o *BuildCertificateShowOK) GetPayload() *models.V0BuildCertificateResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewBuildCertificateShowBadRequest() *BuildCertificateShowBadRequest { return &BuildCertificateShowBadRequest{} } -/* BuildCertificateShowBadRequest describes a response with status code 400, with default header values. +/* +BuildCertificateShowBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type BuildCertificateShowBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build certificate show bad request response has a 2xx status code +func (o *BuildCertificateShowBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build certificate show bad request response has a 3xx status code +func (o *BuildCertificateShowBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate show bad request response has a 4xx status code +func (o *BuildCertificateShowBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this build certificate show bad request response has a 5xx status code +func (o *BuildCertificateShowBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this build certificate show bad request response a status code equal to that given +func (o *BuildCertificateShowBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *BuildCertificateShowBadRequest) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateShowBadRequest %+v", 400, o.Payload) } + +func (o *BuildCertificateShowBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateShowBadRequest %+v", 400, o.Payload) +} + func (o *BuildCertificateShowBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewBuildCertificateShowUnauthorized() *BuildCertificateShowUnauthorized { return &BuildCertificateShowUnauthorized{} } -/* BuildCertificateShowUnauthorized describes a response with status code 401, with default header values. +/* +BuildCertificateShowUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type BuildCertificateShowUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build certificate show unauthorized response has a 2xx status code +func (o *BuildCertificateShowUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build certificate show unauthorized response has a 3xx status code +func (o *BuildCertificateShowUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate show unauthorized response has a 4xx status code +func (o *BuildCertificateShowUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this build certificate show unauthorized response has a 5xx status code +func (o *BuildCertificateShowUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this build certificate show unauthorized response a status code equal to that given +func (o *BuildCertificateShowUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *BuildCertificateShowUnauthorized) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateShowUnauthorized %+v", 401, o.Payload) } + +func (o *BuildCertificateShowUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateShowUnauthorized %+v", 401, o.Payload) +} + func (o *BuildCertificateShowUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewBuildCertificateShowNotFound() *BuildCertificateShowNotFound { return &BuildCertificateShowNotFound{} } -/* BuildCertificateShowNotFound describes a response with status code 404, with default header values. +/* +BuildCertificateShowNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type BuildCertificateShowNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build certificate show not found response has a 2xx status code +func (o *BuildCertificateShowNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build certificate show not found response has a 3xx status code +func (o *BuildCertificateShowNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate show not found response has a 4xx status code +func (o *BuildCertificateShowNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this build certificate show not found response has a 5xx status code +func (o *BuildCertificateShowNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this build certificate show not found response a status code equal to that given +func (o *BuildCertificateShowNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *BuildCertificateShowNotFound) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateShowNotFound %+v", 404, o.Payload) } + +func (o *BuildCertificateShowNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateShowNotFound %+v", 404, o.Payload) +} + func (o *BuildCertificateShowNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewBuildCertificateShowInternalServerError() *BuildCertificateShowInternalS return &BuildCertificateShowInternalServerError{} } -/* BuildCertificateShowInternalServerError describes a response with status code 500, with default header values. +/* +BuildCertificateShowInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type BuildCertificateShowInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build certificate show internal server error response has a 2xx status code +func (o *BuildCertificateShowInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build certificate show internal server error response has a 3xx status code +func (o *BuildCertificateShowInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate show internal server error response has a 4xx status code +func (o *BuildCertificateShowInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this build certificate show internal server error response has a 5xx status code +func (o *BuildCertificateShowInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this build certificate show internal server error response a status code equal to that given +func (o *BuildCertificateShowInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *BuildCertificateShowInternalServerError) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateShowInternalServerError %+v", 500, o.Payload) } + +func (o *BuildCertificateShowInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateShowInternalServerError %+v", 500, o.Payload) +} + func (o *BuildCertificateShowInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/build_certificate_update_parameters.go b/go/client/operations/build_certificate_update_parameters.go index 871b4ec..6f4104c 100644 --- a/go/client/operations/build_certificate_update_parameters.go +++ b/go/client/operations/build_certificate_update_parameters.go @@ -54,10 +54,12 @@ func NewBuildCertificateUpdateParamsWithHTTPClient(client *http.Client) *BuildCe } } -/* BuildCertificateUpdateParams contains all the parameters to send to the API endpoint - for the build certificate update operation. +/* +BuildCertificateUpdateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the build certificate update operation. + + Typically these are written to a http.Request. */ type BuildCertificateUpdateParams struct { diff --git a/go/client/operations/build_certificate_update_responses.go b/go/client/operations/build_certificate_update_responses.go index 29c196c..34492bd 100644 --- a/go/client/operations/build_certificate_update_responses.go +++ b/go/client/operations/build_certificate_update_responses.go @@ -63,7 +63,8 @@ func NewBuildCertificateUpdateOK() *BuildCertificateUpdateOK { return &BuildCertificateUpdateOK{} } -/* BuildCertificateUpdateOK describes a response with status code 200, with default header values. +/* +BuildCertificateUpdateOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type BuildCertificateUpdateOK struct { Payload *models.V0BuildCertificateResponseModel } +// IsSuccess returns true when this build certificate update o k response has a 2xx status code +func (o *BuildCertificateUpdateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this build certificate update o k response has a 3xx status code +func (o *BuildCertificateUpdateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate update o k response has a 4xx status code +func (o *BuildCertificateUpdateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this build certificate update o k response has a 5xx status code +func (o *BuildCertificateUpdateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this build certificate update o k response a status code equal to that given +func (o *BuildCertificateUpdateOK) IsCode(code int) bool { + return code == 200 +} + func (o *BuildCertificateUpdateOK) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateUpdateOK %+v", 200, o.Payload) } + +func (o *BuildCertificateUpdateOK) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateUpdateOK %+v", 200, o.Payload) +} + func (o *BuildCertificateUpdateOK) GetPayload() *models.V0BuildCertificateResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewBuildCertificateUpdateBadRequest() *BuildCertificateUpdateBadRequest { return &BuildCertificateUpdateBadRequest{} } -/* BuildCertificateUpdateBadRequest describes a response with status code 400, with default header values. +/* +BuildCertificateUpdateBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type BuildCertificateUpdateBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build certificate update bad request response has a 2xx status code +func (o *BuildCertificateUpdateBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build certificate update bad request response has a 3xx status code +func (o *BuildCertificateUpdateBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate update bad request response has a 4xx status code +func (o *BuildCertificateUpdateBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this build certificate update bad request response has a 5xx status code +func (o *BuildCertificateUpdateBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this build certificate update bad request response a status code equal to that given +func (o *BuildCertificateUpdateBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *BuildCertificateUpdateBadRequest) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateUpdateBadRequest %+v", 400, o.Payload) } + +func (o *BuildCertificateUpdateBadRequest) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateUpdateBadRequest %+v", 400, o.Payload) +} + func (o *BuildCertificateUpdateBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewBuildCertificateUpdateUnauthorized() *BuildCertificateUpdateUnauthorized return &BuildCertificateUpdateUnauthorized{} } -/* BuildCertificateUpdateUnauthorized describes a response with status code 401, with default header values. +/* +BuildCertificateUpdateUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type BuildCertificateUpdateUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build certificate update unauthorized response has a 2xx status code +func (o *BuildCertificateUpdateUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build certificate update unauthorized response has a 3xx status code +func (o *BuildCertificateUpdateUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate update unauthorized response has a 4xx status code +func (o *BuildCertificateUpdateUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this build certificate update unauthorized response has a 5xx status code +func (o *BuildCertificateUpdateUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this build certificate update unauthorized response a status code equal to that given +func (o *BuildCertificateUpdateUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *BuildCertificateUpdateUnauthorized) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateUpdateUnauthorized %+v", 401, o.Payload) } + +func (o *BuildCertificateUpdateUnauthorized) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateUpdateUnauthorized %+v", 401, o.Payload) +} + func (o *BuildCertificateUpdateUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewBuildCertificateUpdateNotFound() *BuildCertificateUpdateNotFound { return &BuildCertificateUpdateNotFound{} } -/* BuildCertificateUpdateNotFound describes a response with status code 404, with default header values. +/* +BuildCertificateUpdateNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type BuildCertificateUpdateNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build certificate update not found response has a 2xx status code +func (o *BuildCertificateUpdateNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build certificate update not found response has a 3xx status code +func (o *BuildCertificateUpdateNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate update not found response has a 4xx status code +func (o *BuildCertificateUpdateNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this build certificate update not found response has a 5xx status code +func (o *BuildCertificateUpdateNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this build certificate update not found response a status code equal to that given +func (o *BuildCertificateUpdateNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *BuildCertificateUpdateNotFound) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateUpdateNotFound %+v", 404, o.Payload) } + +func (o *BuildCertificateUpdateNotFound) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateUpdateNotFound %+v", 404, o.Payload) +} + func (o *BuildCertificateUpdateNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewBuildCertificateUpdateInternalServerError() *BuildCertificateUpdateInter return &BuildCertificateUpdateInternalServerError{} } -/* BuildCertificateUpdateInternalServerError describes a response with status code 500, with default header values. +/* +BuildCertificateUpdateInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type BuildCertificateUpdateInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build certificate update internal server error response has a 2xx status code +func (o *BuildCertificateUpdateInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build certificate update internal server error response has a 3xx status code +func (o *BuildCertificateUpdateInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build certificate update internal server error response has a 4xx status code +func (o *BuildCertificateUpdateInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this build certificate update internal server error response has a 5xx status code +func (o *BuildCertificateUpdateInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this build certificate update internal server error response a status code equal to that given +func (o *BuildCertificateUpdateInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *BuildCertificateUpdateInternalServerError) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateUpdateInternalServerError %+v", 500, o.Payload) } + +func (o *BuildCertificateUpdateInternalServerError) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/build-certificates/{build-certificate-slug}][%d] buildCertificateUpdateInternalServerError %+v", 500, o.Payload) +} + func (o *BuildCertificateUpdateInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/build_list_all_parameters.go b/go/client/operations/build_list_all_parameters.go index e03cde4..530b646 100644 --- a/go/client/operations/build_list_all_parameters.go +++ b/go/client/operations/build_list_all_parameters.go @@ -53,10 +53,12 @@ func NewBuildListAllParamsWithHTTPClient(client *http.Client) *BuildListAllParam } } -/* BuildListAllParams contains all the parameters to send to the API endpoint - for the build list all operation. +/* +BuildListAllParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the build list all operation. + + Typically these are written to a http.Request. */ type BuildListAllParams struct { diff --git a/go/client/operations/build_list_all_responses.go b/go/client/operations/build_list_all_responses.go index 2715580..7732fb9 100644 --- a/go/client/operations/build_list_all_responses.go +++ b/go/client/operations/build_list_all_responses.go @@ -63,7 +63,8 @@ func NewBuildListAllOK() *BuildListAllOK { return &BuildListAllOK{} } -/* BuildListAllOK describes a response with status code 200, with default header values. +/* +BuildListAllOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type BuildListAllOK struct { Payload *models.V0BuildListAllResponseModel } +// IsSuccess returns true when this build list all o k response has a 2xx status code +func (o *BuildListAllOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this build list all o k response has a 3xx status code +func (o *BuildListAllOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build list all o k response has a 4xx status code +func (o *BuildListAllOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this build list all o k response has a 5xx status code +func (o *BuildListAllOK) IsServerError() bool { + return false +} + +// IsCode returns true when this build list all o k response a status code equal to that given +func (o *BuildListAllOK) IsCode(code int) bool { + return code == 200 +} + func (o *BuildListAllOK) Error() string { return fmt.Sprintf("[GET /builds][%d] buildListAllOK %+v", 200, o.Payload) } + +func (o *BuildListAllOK) String() string { + return fmt.Sprintf("[GET /builds][%d] buildListAllOK %+v", 200, o.Payload) +} + func (o *BuildListAllOK) GetPayload() *models.V0BuildListAllResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewBuildListAllBadRequest() *BuildListAllBadRequest { return &BuildListAllBadRequest{} } -/* BuildListAllBadRequest describes a response with status code 400, with default header values. +/* +BuildListAllBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type BuildListAllBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build list all bad request response has a 2xx status code +func (o *BuildListAllBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build list all bad request response has a 3xx status code +func (o *BuildListAllBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build list all bad request response has a 4xx status code +func (o *BuildListAllBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this build list all bad request response has a 5xx status code +func (o *BuildListAllBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this build list all bad request response a status code equal to that given +func (o *BuildListAllBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *BuildListAllBadRequest) Error() string { return fmt.Sprintf("[GET /builds][%d] buildListAllBadRequest %+v", 400, o.Payload) } + +func (o *BuildListAllBadRequest) String() string { + return fmt.Sprintf("[GET /builds][%d] buildListAllBadRequest %+v", 400, o.Payload) +} + func (o *BuildListAllBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewBuildListAllUnauthorized() *BuildListAllUnauthorized { return &BuildListAllUnauthorized{} } -/* BuildListAllUnauthorized describes a response with status code 401, with default header values. +/* +BuildListAllUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type BuildListAllUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build list all unauthorized response has a 2xx status code +func (o *BuildListAllUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build list all unauthorized response has a 3xx status code +func (o *BuildListAllUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build list all unauthorized response has a 4xx status code +func (o *BuildListAllUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this build list all unauthorized response has a 5xx status code +func (o *BuildListAllUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this build list all unauthorized response a status code equal to that given +func (o *BuildListAllUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *BuildListAllUnauthorized) Error() string { return fmt.Sprintf("[GET /builds][%d] buildListAllUnauthorized %+v", 401, o.Payload) } + +func (o *BuildListAllUnauthorized) String() string { + return fmt.Sprintf("[GET /builds][%d] buildListAllUnauthorized %+v", 401, o.Payload) +} + func (o *BuildListAllUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewBuildListAllNotFound() *BuildListAllNotFound { return &BuildListAllNotFound{} } -/* BuildListAllNotFound describes a response with status code 404, with default header values. +/* +BuildListAllNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type BuildListAllNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build list all not found response has a 2xx status code +func (o *BuildListAllNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build list all not found response has a 3xx status code +func (o *BuildListAllNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build list all not found response has a 4xx status code +func (o *BuildListAllNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this build list all not found response has a 5xx status code +func (o *BuildListAllNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this build list all not found response a status code equal to that given +func (o *BuildListAllNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *BuildListAllNotFound) Error() string { return fmt.Sprintf("[GET /builds][%d] buildListAllNotFound %+v", 404, o.Payload) } + +func (o *BuildListAllNotFound) String() string { + return fmt.Sprintf("[GET /builds][%d] buildListAllNotFound %+v", 404, o.Payload) +} + func (o *BuildListAllNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewBuildListAllInternalServerError() *BuildListAllInternalServerError { return &BuildListAllInternalServerError{} } -/* BuildListAllInternalServerError describes a response with status code 500, with default header values. +/* +BuildListAllInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type BuildListAllInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build list all internal server error response has a 2xx status code +func (o *BuildListAllInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build list all internal server error response has a 3xx status code +func (o *BuildListAllInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build list all internal server error response has a 4xx status code +func (o *BuildListAllInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this build list all internal server error response has a 5xx status code +func (o *BuildListAllInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this build list all internal server error response a status code equal to that given +func (o *BuildListAllInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *BuildListAllInternalServerError) Error() string { return fmt.Sprintf("[GET /builds][%d] buildListAllInternalServerError %+v", 500, o.Payload) } + +func (o *BuildListAllInternalServerError) String() string { + return fmt.Sprintf("[GET /builds][%d] buildListAllInternalServerError %+v", 500, o.Payload) +} + func (o *BuildListAllInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/build_list_parameters.go b/go/client/operations/build_list_parameters.go index 0e5473a..da7279c 100644 --- a/go/client/operations/build_list_parameters.go +++ b/go/client/operations/build_list_parameters.go @@ -53,10 +53,12 @@ func NewBuildListParamsWithHTTPClient(client *http.Client) *BuildListParams { } } -/* BuildListParams contains all the parameters to send to the API endpoint - for the build list operation. +/* +BuildListParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the build list operation. + + Typically these are written to a http.Request. */ type BuildListParams struct { @@ -96,6 +98,12 @@ type BuildListParams struct { */ CommitMessage *string + /* IsPipelineBuild. + + Whether the builds are part of a pipeline or not + */ + IsPipelineBuild *bool + /* Limit. Max number of elements per page (default: 50) @@ -257,6 +265,17 @@ func (o *BuildListParams) SetCommitMessage(commitMessage *string) { o.CommitMessage = commitMessage } +// WithIsPipelineBuild adds the isPipelineBuild to the build list params +func (o *BuildListParams) WithIsPipelineBuild(isPipelineBuild *bool) *BuildListParams { + o.SetIsPipelineBuild(isPipelineBuild) + return o +} + +// SetIsPipelineBuild adds the isPipelineBuild to the build list params +func (o *BuildListParams) SetIsPipelineBuild(isPipelineBuild *bool) { + o.IsPipelineBuild = isPipelineBuild +} + // WithLimit adds the limit to the build list params func (o *BuildListParams) WithLimit(limit *int64) *BuildListParams { o.SetLimit(limit) @@ -432,6 +451,23 @@ func (o *BuildListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Reg } } + if o.IsPipelineBuild != nil { + + // query param is_pipeline_build + var qrIsPipelineBuild bool + + if o.IsPipelineBuild != nil { + qrIsPipelineBuild = *o.IsPipelineBuild + } + qIsPipelineBuild := swag.FormatBool(qrIsPipelineBuild) + if qIsPipelineBuild != "" { + + if err := r.SetQueryParam("is_pipeline_build", qIsPipelineBuild); err != nil { + return err + } + } + } + if o.Limit != nil { // query param limit diff --git a/go/client/operations/build_list_responses.go b/go/client/operations/build_list_responses.go index da4547d..0ba9295 100644 --- a/go/client/operations/build_list_responses.go +++ b/go/client/operations/build_list_responses.go @@ -63,7 +63,8 @@ func NewBuildListOK() *BuildListOK { return &BuildListOK{} } -/* BuildListOK describes a response with status code 200, with default header values. +/* +BuildListOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type BuildListOK struct { Payload *models.V0BuildListResponseModel } +// IsSuccess returns true when this build list o k response has a 2xx status code +func (o *BuildListOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this build list o k response has a 3xx status code +func (o *BuildListOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build list o k response has a 4xx status code +func (o *BuildListOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this build list o k response has a 5xx status code +func (o *BuildListOK) IsServerError() bool { + return false +} + +// IsCode returns true when this build list o k response a status code equal to that given +func (o *BuildListOK) IsCode(code int) bool { + return code == 200 +} + func (o *BuildListOK) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds][%d] buildListOK %+v", 200, o.Payload) } + +func (o *BuildListOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds][%d] buildListOK %+v", 200, o.Payload) +} + func (o *BuildListOK) GetPayload() *models.V0BuildListResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewBuildListBadRequest() *BuildListBadRequest { return &BuildListBadRequest{} } -/* BuildListBadRequest describes a response with status code 400, with default header values. +/* +BuildListBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type BuildListBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build list bad request response has a 2xx status code +func (o *BuildListBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build list bad request response has a 3xx status code +func (o *BuildListBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build list bad request response has a 4xx status code +func (o *BuildListBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this build list bad request response has a 5xx status code +func (o *BuildListBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this build list bad request response a status code equal to that given +func (o *BuildListBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *BuildListBadRequest) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds][%d] buildListBadRequest %+v", 400, o.Payload) } + +func (o *BuildListBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds][%d] buildListBadRequest %+v", 400, o.Payload) +} + func (o *BuildListBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewBuildListUnauthorized() *BuildListUnauthorized { return &BuildListUnauthorized{} } -/* BuildListUnauthorized describes a response with status code 401, with default header values. +/* +BuildListUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type BuildListUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build list unauthorized response has a 2xx status code +func (o *BuildListUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build list unauthorized response has a 3xx status code +func (o *BuildListUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build list unauthorized response has a 4xx status code +func (o *BuildListUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this build list unauthorized response has a 5xx status code +func (o *BuildListUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this build list unauthorized response a status code equal to that given +func (o *BuildListUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *BuildListUnauthorized) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds][%d] buildListUnauthorized %+v", 401, o.Payload) } + +func (o *BuildListUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds][%d] buildListUnauthorized %+v", 401, o.Payload) +} + func (o *BuildListUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewBuildListNotFound() *BuildListNotFound { return &BuildListNotFound{} } -/* BuildListNotFound describes a response with status code 404, with default header values. +/* +BuildListNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type BuildListNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build list not found response has a 2xx status code +func (o *BuildListNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build list not found response has a 3xx status code +func (o *BuildListNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build list not found response has a 4xx status code +func (o *BuildListNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this build list not found response has a 5xx status code +func (o *BuildListNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this build list not found response a status code equal to that given +func (o *BuildListNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *BuildListNotFound) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds][%d] buildListNotFound %+v", 404, o.Payload) } + +func (o *BuildListNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds][%d] buildListNotFound %+v", 404, o.Payload) +} + func (o *BuildListNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewBuildListInternalServerError() *BuildListInternalServerError { return &BuildListInternalServerError{} } -/* BuildListInternalServerError describes a response with status code 500, with default header values. +/* +BuildListInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type BuildListInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build list internal server error response has a 2xx status code +func (o *BuildListInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build list internal server error response has a 3xx status code +func (o *BuildListInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build list internal server error response has a 4xx status code +func (o *BuildListInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this build list internal server error response has a 5xx status code +func (o *BuildListInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this build list internal server error response a status code equal to that given +func (o *BuildListInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *BuildListInternalServerError) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds][%d] buildListInternalServerError %+v", 500, o.Payload) } + +func (o *BuildListInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds][%d] buildListInternalServerError %+v", 500, o.Payload) +} + func (o *BuildListInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/build_log_parameters.go b/go/client/operations/build_log_parameters.go index f9f67b8..5479957 100644 --- a/go/client/operations/build_log_parameters.go +++ b/go/client/operations/build_log_parameters.go @@ -52,10 +52,12 @@ func NewBuildLogParamsWithHTTPClient(client *http.Client) *BuildLogParams { } } -/* BuildLogParams contains all the parameters to send to the API endpoint - for the build log operation. +/* +BuildLogParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the build log operation. + + Typically these are written to a http.Request. */ type BuildLogParams struct { diff --git a/go/client/operations/build_log_responses.go b/go/client/operations/build_log_responses.go index 41a7678..55cbffd 100644 --- a/go/client/operations/build_log_responses.go +++ b/go/client/operations/build_log_responses.go @@ -23,12 +23,6 @@ type BuildLogReader struct { // ReadResponse reads a server response into the received o. func (o *BuildLogReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 200: - result := NewBuildLogOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil case 400: result := NewBuildLogBadRequest() if err := result.readResponse(response, consumer, o.formats); err != nil { @@ -58,54 +52,53 @@ func (o *BuildLogReader) ReadResponse(response runtime.ClientResponse, consumer } } -// NewBuildLogOK creates a BuildLogOK with default headers values -func NewBuildLogOK() *BuildLogOK { - return &BuildLogOK{} +// NewBuildLogBadRequest creates a BuildLogBadRequest with default headers values +func NewBuildLogBadRequest() *BuildLogBadRequest { + return &BuildLogBadRequest{} } -/* BuildLogOK describes a response with status code 200, with default header values. +/* +BuildLogBadRequest describes a response with status code 400, with default header values. -OK +Bad Request */ -type BuildLogOK struct { - Payload *models.V0BuildLogInfoResponseModel +type BuildLogBadRequest struct { + Payload *models.ServiceStandardErrorRespModel } -func (o *BuildLogOK) Error() string { - return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/log][%d] buildLogOK %+v", 200, o.Payload) +// IsSuccess returns true when this build log bad request response has a 2xx status code +func (o *BuildLogBadRequest) IsSuccess() bool { + return false } -func (o *BuildLogOK) GetPayload() *models.V0BuildLogInfoResponseModel { - return o.Payload -} - -func (o *BuildLogOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - o.Payload = new(models.V0BuildLogInfoResponseModel) - // response payload - if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { - return err - } - - return nil +// IsRedirect returns true when this build log bad request response has a 3xx status code +func (o *BuildLogBadRequest) IsRedirect() bool { + return false } -// NewBuildLogBadRequest creates a BuildLogBadRequest with default headers values -func NewBuildLogBadRequest() *BuildLogBadRequest { - return &BuildLogBadRequest{} +// IsClientError returns true when this build log bad request response has a 4xx status code +func (o *BuildLogBadRequest) IsClientError() bool { + return true } -/* BuildLogBadRequest describes a response with status code 400, with default header values. +// IsServerError returns true when this build log bad request response has a 5xx status code +func (o *BuildLogBadRequest) IsServerError() bool { + return false +} -Bad Request -*/ -type BuildLogBadRequest struct { - Payload *models.ServiceStandardErrorRespModel +// IsCode returns true when this build log bad request response a status code equal to that given +func (o *BuildLogBadRequest) IsCode(code int) bool { + return code == 400 } func (o *BuildLogBadRequest) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/log][%d] buildLogBadRequest %+v", 400, o.Payload) } + +func (o *BuildLogBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/log][%d] buildLogBadRequest %+v", 400, o.Payload) +} + func (o *BuildLogBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +120,8 @@ func NewBuildLogUnauthorized() *BuildLogUnauthorized { return &BuildLogUnauthorized{} } -/* BuildLogUnauthorized describes a response with status code 401, with default header values. +/* +BuildLogUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +129,39 @@ type BuildLogUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build log unauthorized response has a 2xx status code +func (o *BuildLogUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build log unauthorized response has a 3xx status code +func (o *BuildLogUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build log unauthorized response has a 4xx status code +func (o *BuildLogUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this build log unauthorized response has a 5xx status code +func (o *BuildLogUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this build log unauthorized response a status code equal to that given +func (o *BuildLogUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *BuildLogUnauthorized) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/log][%d] buildLogUnauthorized %+v", 401, o.Payload) } + +func (o *BuildLogUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/log][%d] buildLogUnauthorized %+v", 401, o.Payload) +} + func (o *BuildLogUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +183,8 @@ func NewBuildLogNotFound() *BuildLogNotFound { return &BuildLogNotFound{} } -/* BuildLogNotFound describes a response with status code 404, with default header values. +/* +BuildLogNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +192,39 @@ type BuildLogNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build log not found response has a 2xx status code +func (o *BuildLogNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build log not found response has a 3xx status code +func (o *BuildLogNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build log not found response has a 4xx status code +func (o *BuildLogNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this build log not found response has a 5xx status code +func (o *BuildLogNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this build log not found response a status code equal to that given +func (o *BuildLogNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *BuildLogNotFound) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/log][%d] buildLogNotFound %+v", 404, o.Payload) } + +func (o *BuildLogNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/log][%d] buildLogNotFound %+v", 404, o.Payload) +} + func (o *BuildLogNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +246,8 @@ func NewBuildLogInternalServerError() *BuildLogInternalServerError { return &BuildLogInternalServerError{} } -/* BuildLogInternalServerError describes a response with status code 500, with default header values. +/* +BuildLogInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +255,39 @@ type BuildLogInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build log internal server error response has a 2xx status code +func (o *BuildLogInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build log internal server error response has a 3xx status code +func (o *BuildLogInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build log internal server error response has a 4xx status code +func (o *BuildLogInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this build log internal server error response has a 5xx status code +func (o *BuildLogInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this build log internal server error response a status code equal to that given +func (o *BuildLogInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *BuildLogInternalServerError) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/log][%d] buildLogInternalServerError %+v", 500, o.Payload) } + +func (o *BuildLogInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}/log][%d] buildLogInternalServerError %+v", 500, o.Payload) +} + func (o *BuildLogInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/build_request_list_parameters.go b/go/client/operations/build_request_list_parameters.go index 5e77a35..7c37cce 100644 --- a/go/client/operations/build_request_list_parameters.go +++ b/go/client/operations/build_request_list_parameters.go @@ -52,10 +52,12 @@ func NewBuildRequestListParamsWithHTTPClient(client *http.Client) *BuildRequestL } } -/* BuildRequestListParams contains all the parameters to send to the API endpoint - for the build request list operation. +/* +BuildRequestListParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the build request list operation. + + Typically these are written to a http.Request. */ type BuildRequestListParams struct { diff --git a/go/client/operations/build_request_list_responses.go b/go/client/operations/build_request_list_responses.go index fb5bd6b..e1f2aee 100644 --- a/go/client/operations/build_request_list_responses.go +++ b/go/client/operations/build_request_list_responses.go @@ -63,7 +63,8 @@ func NewBuildRequestListOK() *BuildRequestListOK { return &BuildRequestListOK{} } -/* BuildRequestListOK describes a response with status code 200, with default header values. +/* +BuildRequestListOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type BuildRequestListOK struct { Payload *models.V0BuildRequestListResponseModel } +// IsSuccess returns true when this build request list o k response has a 2xx status code +func (o *BuildRequestListOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this build request list o k response has a 3xx status code +func (o *BuildRequestListOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build request list o k response has a 4xx status code +func (o *BuildRequestListOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this build request list o k response has a 5xx status code +func (o *BuildRequestListOK) IsServerError() bool { + return false +} + +// IsCode returns true when this build request list o k response a status code equal to that given +func (o *BuildRequestListOK) IsCode(code int) bool { + return code == 200 +} + func (o *BuildRequestListOK) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/build-requests][%d] buildRequestListOK %+v", 200, o.Payload) } + +func (o *BuildRequestListOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/build-requests][%d] buildRequestListOK %+v", 200, o.Payload) +} + func (o *BuildRequestListOK) GetPayload() *models.V0BuildRequestListResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewBuildRequestListBadRequest() *BuildRequestListBadRequest { return &BuildRequestListBadRequest{} } -/* BuildRequestListBadRequest describes a response with status code 400, with default header values. +/* +BuildRequestListBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type BuildRequestListBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build request list bad request response has a 2xx status code +func (o *BuildRequestListBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build request list bad request response has a 3xx status code +func (o *BuildRequestListBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build request list bad request response has a 4xx status code +func (o *BuildRequestListBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this build request list bad request response has a 5xx status code +func (o *BuildRequestListBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this build request list bad request response a status code equal to that given +func (o *BuildRequestListBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *BuildRequestListBadRequest) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/build-requests][%d] buildRequestListBadRequest %+v", 400, o.Payload) } + +func (o *BuildRequestListBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/build-requests][%d] buildRequestListBadRequest %+v", 400, o.Payload) +} + func (o *BuildRequestListBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewBuildRequestListUnauthorized() *BuildRequestListUnauthorized { return &BuildRequestListUnauthorized{} } -/* BuildRequestListUnauthorized describes a response with status code 401, with default header values. +/* +BuildRequestListUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type BuildRequestListUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build request list unauthorized response has a 2xx status code +func (o *BuildRequestListUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build request list unauthorized response has a 3xx status code +func (o *BuildRequestListUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build request list unauthorized response has a 4xx status code +func (o *BuildRequestListUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this build request list unauthorized response has a 5xx status code +func (o *BuildRequestListUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this build request list unauthorized response a status code equal to that given +func (o *BuildRequestListUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *BuildRequestListUnauthorized) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/build-requests][%d] buildRequestListUnauthorized %+v", 401, o.Payload) } + +func (o *BuildRequestListUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/build-requests][%d] buildRequestListUnauthorized %+v", 401, o.Payload) +} + func (o *BuildRequestListUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewBuildRequestListNotFound() *BuildRequestListNotFound { return &BuildRequestListNotFound{} } -/* BuildRequestListNotFound describes a response with status code 404, with default header values. +/* +BuildRequestListNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type BuildRequestListNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build request list not found response has a 2xx status code +func (o *BuildRequestListNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build request list not found response has a 3xx status code +func (o *BuildRequestListNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build request list not found response has a 4xx status code +func (o *BuildRequestListNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this build request list not found response has a 5xx status code +func (o *BuildRequestListNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this build request list not found response a status code equal to that given +func (o *BuildRequestListNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *BuildRequestListNotFound) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/build-requests][%d] buildRequestListNotFound %+v", 404, o.Payload) } + +func (o *BuildRequestListNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/build-requests][%d] buildRequestListNotFound %+v", 404, o.Payload) +} + func (o *BuildRequestListNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewBuildRequestListInternalServerError() *BuildRequestListInternalServerErr return &BuildRequestListInternalServerError{} } -/* BuildRequestListInternalServerError describes a response with status code 500, with default header values. +/* +BuildRequestListInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type BuildRequestListInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build request list internal server error response has a 2xx status code +func (o *BuildRequestListInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build request list internal server error response has a 3xx status code +func (o *BuildRequestListInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build request list internal server error response has a 4xx status code +func (o *BuildRequestListInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this build request list internal server error response has a 5xx status code +func (o *BuildRequestListInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this build request list internal server error response a status code equal to that given +func (o *BuildRequestListInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *BuildRequestListInternalServerError) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/build-requests][%d] buildRequestListInternalServerError %+v", 500, o.Payload) } + +func (o *BuildRequestListInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/build-requests][%d] buildRequestListInternalServerError %+v", 500, o.Payload) +} + func (o *BuildRequestListInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/build_request_update_parameters.go b/go/client/operations/build_request_update_parameters.go index 5b7ffee..991ba44 100644 --- a/go/client/operations/build_request_update_parameters.go +++ b/go/client/operations/build_request_update_parameters.go @@ -54,10 +54,12 @@ func NewBuildRequestUpdateParamsWithHTTPClient(client *http.Client) *BuildReques } } -/* BuildRequestUpdateParams contains all the parameters to send to the API endpoint - for the build request update operation. +/* +BuildRequestUpdateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the build request update operation. + + Typically these are written to a http.Request. */ type BuildRequestUpdateParams struct { diff --git a/go/client/operations/build_request_update_responses.go b/go/client/operations/build_request_update_responses.go index 2af21d7..99b85b5 100644 --- a/go/client/operations/build_request_update_responses.go +++ b/go/client/operations/build_request_update_responses.go @@ -63,7 +63,8 @@ func NewBuildRequestUpdateOK() *BuildRequestUpdateOK { return &BuildRequestUpdateOK{} } -/* BuildRequestUpdateOK describes a response with status code 200, with default header values. +/* +BuildRequestUpdateOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type BuildRequestUpdateOK struct { Payload *models.V0BuildRequestUpdateResponseModel } +// IsSuccess returns true when this build request update o k response has a 2xx status code +func (o *BuildRequestUpdateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this build request update o k response has a 3xx status code +func (o *BuildRequestUpdateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build request update o k response has a 4xx status code +func (o *BuildRequestUpdateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this build request update o k response has a 5xx status code +func (o *BuildRequestUpdateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this build request update o k response a status code equal to that given +func (o *BuildRequestUpdateOK) IsCode(code int) bool { + return code == 200 +} + func (o *BuildRequestUpdateOK) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/build-requests/{build-request-slug}][%d] buildRequestUpdateOK %+v", 200, o.Payload) } + +func (o *BuildRequestUpdateOK) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/build-requests/{build-request-slug}][%d] buildRequestUpdateOK %+v", 200, o.Payload) +} + func (o *BuildRequestUpdateOK) GetPayload() *models.V0BuildRequestUpdateResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewBuildRequestUpdateBadRequest() *BuildRequestUpdateBadRequest { return &BuildRequestUpdateBadRequest{} } -/* BuildRequestUpdateBadRequest describes a response with status code 400, with default header values. +/* +BuildRequestUpdateBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type BuildRequestUpdateBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build request update bad request response has a 2xx status code +func (o *BuildRequestUpdateBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build request update bad request response has a 3xx status code +func (o *BuildRequestUpdateBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build request update bad request response has a 4xx status code +func (o *BuildRequestUpdateBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this build request update bad request response has a 5xx status code +func (o *BuildRequestUpdateBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this build request update bad request response a status code equal to that given +func (o *BuildRequestUpdateBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *BuildRequestUpdateBadRequest) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/build-requests/{build-request-slug}][%d] buildRequestUpdateBadRequest %+v", 400, o.Payload) } + +func (o *BuildRequestUpdateBadRequest) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/build-requests/{build-request-slug}][%d] buildRequestUpdateBadRequest %+v", 400, o.Payload) +} + func (o *BuildRequestUpdateBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewBuildRequestUpdateUnauthorized() *BuildRequestUpdateUnauthorized { return &BuildRequestUpdateUnauthorized{} } -/* BuildRequestUpdateUnauthorized describes a response with status code 401, with default header values. +/* +BuildRequestUpdateUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type BuildRequestUpdateUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build request update unauthorized response has a 2xx status code +func (o *BuildRequestUpdateUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build request update unauthorized response has a 3xx status code +func (o *BuildRequestUpdateUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build request update unauthorized response has a 4xx status code +func (o *BuildRequestUpdateUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this build request update unauthorized response has a 5xx status code +func (o *BuildRequestUpdateUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this build request update unauthorized response a status code equal to that given +func (o *BuildRequestUpdateUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *BuildRequestUpdateUnauthorized) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/build-requests/{build-request-slug}][%d] buildRequestUpdateUnauthorized %+v", 401, o.Payload) } + +func (o *BuildRequestUpdateUnauthorized) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/build-requests/{build-request-slug}][%d] buildRequestUpdateUnauthorized %+v", 401, o.Payload) +} + func (o *BuildRequestUpdateUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewBuildRequestUpdateNotFound() *BuildRequestUpdateNotFound { return &BuildRequestUpdateNotFound{} } -/* BuildRequestUpdateNotFound describes a response with status code 404, with default header values. +/* +BuildRequestUpdateNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type BuildRequestUpdateNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build request update not found response has a 2xx status code +func (o *BuildRequestUpdateNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build request update not found response has a 3xx status code +func (o *BuildRequestUpdateNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build request update not found response has a 4xx status code +func (o *BuildRequestUpdateNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this build request update not found response has a 5xx status code +func (o *BuildRequestUpdateNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this build request update not found response a status code equal to that given +func (o *BuildRequestUpdateNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *BuildRequestUpdateNotFound) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/build-requests/{build-request-slug}][%d] buildRequestUpdateNotFound %+v", 404, o.Payload) } + +func (o *BuildRequestUpdateNotFound) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/build-requests/{build-request-slug}][%d] buildRequestUpdateNotFound %+v", 404, o.Payload) +} + func (o *BuildRequestUpdateNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewBuildRequestUpdateInternalServerError() *BuildRequestUpdateInternalServe return &BuildRequestUpdateInternalServerError{} } -/* BuildRequestUpdateInternalServerError describes a response with status code 500, with default header values. +/* +BuildRequestUpdateInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type BuildRequestUpdateInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build request update internal server error response has a 2xx status code +func (o *BuildRequestUpdateInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build request update internal server error response has a 3xx status code +func (o *BuildRequestUpdateInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build request update internal server error response has a 4xx status code +func (o *BuildRequestUpdateInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this build request update internal server error response has a 5xx status code +func (o *BuildRequestUpdateInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this build request update internal server error response a status code equal to that given +func (o *BuildRequestUpdateInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *BuildRequestUpdateInternalServerError) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/build-requests/{build-request-slug}][%d] buildRequestUpdateInternalServerError %+v", 500, o.Payload) } + +func (o *BuildRequestUpdateInternalServerError) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/build-requests/{build-request-slug}][%d] buildRequestUpdateInternalServerError %+v", 500, o.Payload) +} + func (o *BuildRequestUpdateInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/build_show_parameters.go b/go/client/operations/build_show_parameters.go index 32d8d82..e28b6de 100644 --- a/go/client/operations/build_show_parameters.go +++ b/go/client/operations/build_show_parameters.go @@ -52,10 +52,12 @@ func NewBuildShowParamsWithHTTPClient(client *http.Client) *BuildShowParams { } } -/* BuildShowParams contains all the parameters to send to the API endpoint - for the build show operation. +/* +BuildShowParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the build show operation. + + Typically these are written to a http.Request. */ type BuildShowParams struct { diff --git a/go/client/operations/build_show_responses.go b/go/client/operations/build_show_responses.go index 316bfbc..0adc81e 100644 --- a/go/client/operations/build_show_responses.go +++ b/go/client/operations/build_show_responses.go @@ -63,7 +63,8 @@ func NewBuildShowOK() *BuildShowOK { return &BuildShowOK{} } -/* BuildShowOK describes a response with status code 200, with default header values. +/* +BuildShowOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type BuildShowOK struct { Payload *models.V0BuildShowResponseModel } +// IsSuccess returns true when this build show o k response has a 2xx status code +func (o *BuildShowOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this build show o k response has a 3xx status code +func (o *BuildShowOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build show o k response has a 4xx status code +func (o *BuildShowOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this build show o k response has a 5xx status code +func (o *BuildShowOK) IsServerError() bool { + return false +} + +// IsCode returns true when this build show o k response a status code equal to that given +func (o *BuildShowOK) IsCode(code int) bool { + return code == 200 +} + func (o *BuildShowOK) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}][%d] buildShowOK %+v", 200, o.Payload) } + +func (o *BuildShowOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}][%d] buildShowOK %+v", 200, o.Payload) +} + func (o *BuildShowOK) GetPayload() *models.V0BuildShowResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewBuildShowBadRequest() *BuildShowBadRequest { return &BuildShowBadRequest{} } -/* BuildShowBadRequest describes a response with status code 400, with default header values. +/* +BuildShowBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type BuildShowBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build show bad request response has a 2xx status code +func (o *BuildShowBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build show bad request response has a 3xx status code +func (o *BuildShowBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build show bad request response has a 4xx status code +func (o *BuildShowBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this build show bad request response has a 5xx status code +func (o *BuildShowBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this build show bad request response a status code equal to that given +func (o *BuildShowBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *BuildShowBadRequest) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}][%d] buildShowBadRequest %+v", 400, o.Payload) } + +func (o *BuildShowBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}][%d] buildShowBadRequest %+v", 400, o.Payload) +} + func (o *BuildShowBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewBuildShowUnauthorized() *BuildShowUnauthorized { return &BuildShowUnauthorized{} } -/* BuildShowUnauthorized describes a response with status code 401, with default header values. +/* +BuildShowUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type BuildShowUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build show unauthorized response has a 2xx status code +func (o *BuildShowUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build show unauthorized response has a 3xx status code +func (o *BuildShowUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build show unauthorized response has a 4xx status code +func (o *BuildShowUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this build show unauthorized response has a 5xx status code +func (o *BuildShowUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this build show unauthorized response a status code equal to that given +func (o *BuildShowUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *BuildShowUnauthorized) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}][%d] buildShowUnauthorized %+v", 401, o.Payload) } + +func (o *BuildShowUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}][%d] buildShowUnauthorized %+v", 401, o.Payload) +} + func (o *BuildShowUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewBuildShowNotFound() *BuildShowNotFound { return &BuildShowNotFound{} } -/* BuildShowNotFound describes a response with status code 404, with default header values. +/* +BuildShowNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type BuildShowNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build show not found response has a 2xx status code +func (o *BuildShowNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build show not found response has a 3xx status code +func (o *BuildShowNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build show not found response has a 4xx status code +func (o *BuildShowNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this build show not found response has a 5xx status code +func (o *BuildShowNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this build show not found response a status code equal to that given +func (o *BuildShowNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *BuildShowNotFound) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}][%d] buildShowNotFound %+v", 404, o.Payload) } + +func (o *BuildShowNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}][%d] buildShowNotFound %+v", 404, o.Payload) +} + func (o *BuildShowNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewBuildShowInternalServerError() *BuildShowInternalServerError { return &BuildShowInternalServerError{} } -/* BuildShowInternalServerError describes a response with status code 500, with default header values. +/* +BuildShowInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type BuildShowInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build show internal server error response has a 2xx status code +func (o *BuildShowInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build show internal server error response has a 3xx status code +func (o *BuildShowInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build show internal server error response has a 4xx status code +func (o *BuildShowInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this build show internal server error response has a 5xx status code +func (o *BuildShowInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this build show internal server error response a status code equal to that given +func (o *BuildShowInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *BuildShowInternalServerError) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}][%d] buildShowInternalServerError %+v", 500, o.Payload) } + +func (o *BuildShowInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/builds/{build-slug}][%d] buildShowInternalServerError %+v", 500, o.Payload) +} + func (o *BuildShowInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/build_trigger_parameters.go b/go/client/operations/build_trigger_parameters.go index 19468fb..afe0e6b 100644 --- a/go/client/operations/build_trigger_parameters.go +++ b/go/client/operations/build_trigger_parameters.go @@ -54,10 +54,12 @@ func NewBuildTriggerParamsWithHTTPClient(client *http.Client) *BuildTriggerParam } } -/* BuildTriggerParams contains all the parameters to send to the API endpoint - for the build trigger operation. +/* +BuildTriggerParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the build trigger operation. + + Typically these are written to a http.Request. */ type BuildTriggerParams struct { diff --git a/go/client/operations/build_trigger_responses.go b/go/client/operations/build_trigger_responses.go index 1059af4..252f703 100644 --- a/go/client/operations/build_trigger_responses.go +++ b/go/client/operations/build_trigger_responses.go @@ -63,7 +63,8 @@ func NewBuildTriggerCreated() *BuildTriggerCreated { return &BuildTriggerCreated{} } -/* BuildTriggerCreated describes a response with status code 201, with default header values. +/* +BuildTriggerCreated describes a response with status code 201, with default header values. OK */ @@ -71,9 +72,39 @@ type BuildTriggerCreated struct { Payload *models.V0BuildTriggerRespModel } +// IsSuccess returns true when this build trigger created response has a 2xx status code +func (o *BuildTriggerCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this build trigger created response has a 3xx status code +func (o *BuildTriggerCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build trigger created response has a 4xx status code +func (o *BuildTriggerCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this build trigger created response has a 5xx status code +func (o *BuildTriggerCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this build trigger created response a status code equal to that given +func (o *BuildTriggerCreated) IsCode(code int) bool { + return code == 201 +} + func (o *BuildTriggerCreated) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/builds][%d] buildTriggerCreated %+v", 201, o.Payload) } + +func (o *BuildTriggerCreated) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/builds][%d] buildTriggerCreated %+v", 201, o.Payload) +} + func (o *BuildTriggerCreated) GetPayload() *models.V0BuildTriggerRespModel { return o.Payload } @@ -95,7 +126,8 @@ func NewBuildTriggerBadRequest() *BuildTriggerBadRequest { return &BuildTriggerBadRequest{} } -/* BuildTriggerBadRequest describes a response with status code 400, with default header values. +/* +BuildTriggerBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type BuildTriggerBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build trigger bad request response has a 2xx status code +func (o *BuildTriggerBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build trigger bad request response has a 3xx status code +func (o *BuildTriggerBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build trigger bad request response has a 4xx status code +func (o *BuildTriggerBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this build trigger bad request response has a 5xx status code +func (o *BuildTriggerBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this build trigger bad request response a status code equal to that given +func (o *BuildTriggerBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *BuildTriggerBadRequest) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/builds][%d] buildTriggerBadRequest %+v", 400, o.Payload) } + +func (o *BuildTriggerBadRequest) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/builds][%d] buildTriggerBadRequest %+v", 400, o.Payload) +} + func (o *BuildTriggerBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewBuildTriggerUnauthorized() *BuildTriggerUnauthorized { return &BuildTriggerUnauthorized{} } -/* BuildTriggerUnauthorized describes a response with status code 401, with default header values. +/* +BuildTriggerUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type BuildTriggerUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build trigger unauthorized response has a 2xx status code +func (o *BuildTriggerUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build trigger unauthorized response has a 3xx status code +func (o *BuildTriggerUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build trigger unauthorized response has a 4xx status code +func (o *BuildTriggerUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this build trigger unauthorized response has a 5xx status code +func (o *BuildTriggerUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this build trigger unauthorized response a status code equal to that given +func (o *BuildTriggerUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *BuildTriggerUnauthorized) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/builds][%d] buildTriggerUnauthorized %+v", 401, o.Payload) } + +func (o *BuildTriggerUnauthorized) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/builds][%d] buildTriggerUnauthorized %+v", 401, o.Payload) +} + func (o *BuildTriggerUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewBuildTriggerNotFound() *BuildTriggerNotFound { return &BuildTriggerNotFound{} } -/* BuildTriggerNotFound describes a response with status code 404, with default header values. +/* +BuildTriggerNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type BuildTriggerNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build trigger not found response has a 2xx status code +func (o *BuildTriggerNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build trigger not found response has a 3xx status code +func (o *BuildTriggerNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build trigger not found response has a 4xx status code +func (o *BuildTriggerNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this build trigger not found response has a 5xx status code +func (o *BuildTriggerNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this build trigger not found response a status code equal to that given +func (o *BuildTriggerNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *BuildTriggerNotFound) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/builds][%d] buildTriggerNotFound %+v", 404, o.Payload) } + +func (o *BuildTriggerNotFound) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/builds][%d] buildTriggerNotFound %+v", 404, o.Payload) +} + func (o *BuildTriggerNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewBuildTriggerInternalServerError() *BuildTriggerInternalServerError { return &BuildTriggerInternalServerError{} } -/* BuildTriggerInternalServerError describes a response with status code 500, with default header values. +/* +BuildTriggerInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type BuildTriggerInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build trigger internal server error response has a 2xx status code +func (o *BuildTriggerInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build trigger internal server error response has a 3xx status code +func (o *BuildTriggerInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build trigger internal server error response has a 4xx status code +func (o *BuildTriggerInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this build trigger internal server error response has a 5xx status code +func (o *BuildTriggerInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this build trigger internal server error response a status code equal to that given +func (o *BuildTriggerInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *BuildTriggerInternalServerError) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/builds][%d] buildTriggerInternalServerError %+v", 500, o.Payload) } + +func (o *BuildTriggerInternalServerError) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/builds][%d] buildTriggerInternalServerError %+v", 500, o.Payload) +} + func (o *BuildTriggerInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/build_workflow_list_parameters.go b/go/client/operations/build_workflow_list_parameters.go index 35af9af..b6f8376 100644 --- a/go/client/operations/build_workflow_list_parameters.go +++ b/go/client/operations/build_workflow_list_parameters.go @@ -52,10 +52,12 @@ func NewBuildWorkflowListParamsWithHTTPClient(client *http.Client) *BuildWorkflo } } -/* BuildWorkflowListParams contains all the parameters to send to the API endpoint - for the build workflow list operation. +/* +BuildWorkflowListParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the build workflow list operation. + + Typically these are written to a http.Request. */ type BuildWorkflowListParams struct { diff --git a/go/client/operations/build_workflow_list_responses.go b/go/client/operations/build_workflow_list_responses.go index 4ebbfa1..6675e4a 100644 --- a/go/client/operations/build_workflow_list_responses.go +++ b/go/client/operations/build_workflow_list_responses.go @@ -63,7 +63,8 @@ func NewBuildWorkflowListOK() *BuildWorkflowListOK { return &BuildWorkflowListOK{} } -/* BuildWorkflowListOK describes a response with status code 200, with default header values. +/* +BuildWorkflowListOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type BuildWorkflowListOK struct { Payload *models.V0BuildWorkflowListResponseModel } +// IsSuccess returns true when this build workflow list o k response has a 2xx status code +func (o *BuildWorkflowListOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this build workflow list o k response has a 3xx status code +func (o *BuildWorkflowListOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build workflow list o k response has a 4xx status code +func (o *BuildWorkflowListOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this build workflow list o k response has a 5xx status code +func (o *BuildWorkflowListOK) IsServerError() bool { + return false +} + +// IsCode returns true when this build workflow list o k response a status code equal to that given +func (o *BuildWorkflowListOK) IsCode(code int) bool { + return code == 200 +} + func (o *BuildWorkflowListOK) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/build-workflows][%d] buildWorkflowListOK %+v", 200, o.Payload) } + +func (o *BuildWorkflowListOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/build-workflows][%d] buildWorkflowListOK %+v", 200, o.Payload) +} + func (o *BuildWorkflowListOK) GetPayload() *models.V0BuildWorkflowListResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewBuildWorkflowListBadRequest() *BuildWorkflowListBadRequest { return &BuildWorkflowListBadRequest{} } -/* BuildWorkflowListBadRequest describes a response with status code 400, with default header values. +/* +BuildWorkflowListBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type BuildWorkflowListBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build workflow list bad request response has a 2xx status code +func (o *BuildWorkflowListBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build workflow list bad request response has a 3xx status code +func (o *BuildWorkflowListBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build workflow list bad request response has a 4xx status code +func (o *BuildWorkflowListBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this build workflow list bad request response has a 5xx status code +func (o *BuildWorkflowListBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this build workflow list bad request response a status code equal to that given +func (o *BuildWorkflowListBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *BuildWorkflowListBadRequest) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/build-workflows][%d] buildWorkflowListBadRequest %+v", 400, o.Payload) } + +func (o *BuildWorkflowListBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/build-workflows][%d] buildWorkflowListBadRequest %+v", 400, o.Payload) +} + func (o *BuildWorkflowListBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewBuildWorkflowListUnauthorized() *BuildWorkflowListUnauthorized { return &BuildWorkflowListUnauthorized{} } -/* BuildWorkflowListUnauthorized describes a response with status code 401, with default header values. +/* +BuildWorkflowListUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type BuildWorkflowListUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build workflow list unauthorized response has a 2xx status code +func (o *BuildWorkflowListUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build workflow list unauthorized response has a 3xx status code +func (o *BuildWorkflowListUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build workflow list unauthorized response has a 4xx status code +func (o *BuildWorkflowListUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this build workflow list unauthorized response has a 5xx status code +func (o *BuildWorkflowListUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this build workflow list unauthorized response a status code equal to that given +func (o *BuildWorkflowListUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *BuildWorkflowListUnauthorized) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/build-workflows][%d] buildWorkflowListUnauthorized %+v", 401, o.Payload) } + +func (o *BuildWorkflowListUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/build-workflows][%d] buildWorkflowListUnauthorized %+v", 401, o.Payload) +} + func (o *BuildWorkflowListUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewBuildWorkflowListNotFound() *BuildWorkflowListNotFound { return &BuildWorkflowListNotFound{} } -/* BuildWorkflowListNotFound describes a response with status code 404, with default header values. +/* +BuildWorkflowListNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type BuildWorkflowListNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build workflow list not found response has a 2xx status code +func (o *BuildWorkflowListNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build workflow list not found response has a 3xx status code +func (o *BuildWorkflowListNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build workflow list not found response has a 4xx status code +func (o *BuildWorkflowListNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this build workflow list not found response has a 5xx status code +func (o *BuildWorkflowListNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this build workflow list not found response a status code equal to that given +func (o *BuildWorkflowListNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *BuildWorkflowListNotFound) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/build-workflows][%d] buildWorkflowListNotFound %+v", 404, o.Payload) } + +func (o *BuildWorkflowListNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/build-workflows][%d] buildWorkflowListNotFound %+v", 404, o.Payload) +} + func (o *BuildWorkflowListNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewBuildWorkflowListInternalServerError() *BuildWorkflowListInternalServerE return &BuildWorkflowListInternalServerError{} } -/* BuildWorkflowListInternalServerError describes a response with status code 500, with default header values. +/* +BuildWorkflowListInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type BuildWorkflowListInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this build workflow list internal server error response has a 2xx status code +func (o *BuildWorkflowListInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this build workflow list internal server error response has a 3xx status code +func (o *BuildWorkflowListInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this build workflow list internal server error response has a 4xx status code +func (o *BuildWorkflowListInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this build workflow list internal server error response has a 5xx status code +func (o *BuildWorkflowListInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this build workflow list internal server error response a status code equal to that given +func (o *BuildWorkflowListInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *BuildWorkflowListInternalServerError) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/build-workflows][%d] buildWorkflowListInternalServerError %+v", 500, o.Payload) } + +func (o *BuildWorkflowListInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/build-workflows][%d] buildWorkflowListInternalServerError %+v", 500, o.Payload) +} + func (o *BuildWorkflowListInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/cache_item_delete_all_parameters.go b/go/client/operations/cache_item_delete_all_parameters.go new file mode 100644 index 0000000..1f43478 --- /dev/null +++ b/go/client/operations/cache_item_delete_all_parameters.go @@ -0,0 +1,151 @@ +// 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" + "github.com/go-openapi/strfmt" +) + +// NewCacheItemDeleteAllParams creates a new CacheItemDeleteAllParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCacheItemDeleteAllParams() *CacheItemDeleteAllParams { + return &CacheItemDeleteAllParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCacheItemDeleteAllParamsWithTimeout creates a new CacheItemDeleteAllParams object +// with the ability to set a timeout on a request. +func NewCacheItemDeleteAllParamsWithTimeout(timeout time.Duration) *CacheItemDeleteAllParams { + return &CacheItemDeleteAllParams{ + timeout: timeout, + } +} + +// NewCacheItemDeleteAllParamsWithContext creates a new CacheItemDeleteAllParams object +// with the ability to set a context for a request. +func NewCacheItemDeleteAllParamsWithContext(ctx context.Context) *CacheItemDeleteAllParams { + return &CacheItemDeleteAllParams{ + Context: ctx, + } +} + +// NewCacheItemDeleteAllParamsWithHTTPClient creates a new CacheItemDeleteAllParams object +// with the ability to set a custom HTTPClient for a request. +func NewCacheItemDeleteAllParamsWithHTTPClient(client *http.Client) *CacheItemDeleteAllParams { + return &CacheItemDeleteAllParams{ + HTTPClient: client, + } +} + +/* +CacheItemDeleteAllParams contains all the parameters to send to the API endpoint + + for the cache item delete all operation. + + Typically these are written to a http.Request. +*/ +type CacheItemDeleteAllParams struct { + + /* AppSlug. + + App slug + */ + AppSlug string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the cache item delete all params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CacheItemDeleteAllParams) WithDefaults() *CacheItemDeleteAllParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the cache item delete all params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CacheItemDeleteAllParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the cache item delete all params +func (o *CacheItemDeleteAllParams) WithTimeout(timeout time.Duration) *CacheItemDeleteAllParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the cache item delete all params +func (o *CacheItemDeleteAllParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the cache item delete all params +func (o *CacheItemDeleteAllParams) WithContext(ctx context.Context) *CacheItemDeleteAllParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the cache item delete all params +func (o *CacheItemDeleteAllParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the cache item delete all params +func (o *CacheItemDeleteAllParams) WithHTTPClient(client *http.Client) *CacheItemDeleteAllParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the cache item delete all params +func (o *CacheItemDeleteAllParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAppSlug adds the appSlug to the cache item delete all params +func (o *CacheItemDeleteAllParams) WithAppSlug(appSlug string) *CacheItemDeleteAllParams { + o.SetAppSlug(appSlug) + return o +} + +// SetAppSlug adds the appSlug to the cache item delete all params +func (o *CacheItemDeleteAllParams) SetAppSlug(appSlug string) { + o.AppSlug = appSlug +} + +// WriteToRequest writes these params to a swagger request +func (o *CacheItemDeleteAllParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param app-slug + if err := r.SetPathParam("app-slug", o.AppSlug); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/go/client/operations/cache_item_delete_all_responses.go b/go/client/operations/cache_item_delete_all_responses.go new file mode 100644 index 0000000..e5c3e37 --- /dev/null +++ b/go/client/operations/cache_item_delete_all_responses.go @@ -0,0 +1,362 @@ +// 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" + "github.com/go-openapi/strfmt" + + "github.com/Staffbase/bitrise-api/go/models" +) + +// CacheItemDeleteAllReader is a Reader for the CacheItemDeleteAll structure. +type CacheItemDeleteAllReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CacheItemDeleteAllReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewCacheItemDeleteAllOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 400: + result := NewCacheItemDeleteAllBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 401: + result := NewCacheItemDeleteAllUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewCacheItemDeleteAllNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewCacheItemDeleteAllInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCacheItemDeleteAllOK creates a CacheItemDeleteAllOK with default headers values +func NewCacheItemDeleteAllOK() *CacheItemDeleteAllOK { + return &CacheItemDeleteAllOK{} +} + +/* +CacheItemDeleteAllOK describes a response with status code 200, with default header values. + +OK +*/ +type CacheItemDeleteAllOK struct { +} + +// IsSuccess returns true when this cache item delete all o k response has a 2xx status code +func (o *CacheItemDeleteAllOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this cache item delete all o k response has a 3xx status code +func (o *CacheItemDeleteAllOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cache item delete all o k response has a 4xx status code +func (o *CacheItemDeleteAllOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this cache item delete all o k response has a 5xx status code +func (o *CacheItemDeleteAllOK) IsServerError() bool { + return false +} + +// IsCode returns true when this cache item delete all o k response a status code equal to that given +func (o *CacheItemDeleteAllOK) IsCode(code int) bool { + return code == 200 +} + +func (o *CacheItemDeleteAllOK) Error() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/cache-items][%d] cacheItemDeleteAllOK ", 200) +} + +func (o *CacheItemDeleteAllOK) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/cache-items][%d] cacheItemDeleteAllOK ", 200) +} + +func (o *CacheItemDeleteAllOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} + +// NewCacheItemDeleteAllBadRequest creates a CacheItemDeleteAllBadRequest with default headers values +func NewCacheItemDeleteAllBadRequest() *CacheItemDeleteAllBadRequest { + return &CacheItemDeleteAllBadRequest{} +} + +/* +CacheItemDeleteAllBadRequest describes a response with status code 400, with default header values. + +Bad Request +*/ +type CacheItemDeleteAllBadRequest struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this cache item delete all bad request response has a 2xx status code +func (o *CacheItemDeleteAllBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this cache item delete all bad request response has a 3xx status code +func (o *CacheItemDeleteAllBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cache item delete all bad request response has a 4xx status code +func (o *CacheItemDeleteAllBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this cache item delete all bad request response has a 5xx status code +func (o *CacheItemDeleteAllBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this cache item delete all bad request response a status code equal to that given +func (o *CacheItemDeleteAllBadRequest) IsCode(code int) bool { + return code == 400 +} + +func (o *CacheItemDeleteAllBadRequest) Error() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/cache-items][%d] cacheItemDeleteAllBadRequest %+v", 400, o.Payload) +} + +func (o *CacheItemDeleteAllBadRequest) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/cache-items][%d] cacheItemDeleteAllBadRequest %+v", 400, o.Payload) +} + +func (o *CacheItemDeleteAllBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *CacheItemDeleteAllBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewCacheItemDeleteAllUnauthorized creates a CacheItemDeleteAllUnauthorized with default headers values +func NewCacheItemDeleteAllUnauthorized() *CacheItemDeleteAllUnauthorized { + return &CacheItemDeleteAllUnauthorized{} +} + +/* +CacheItemDeleteAllUnauthorized describes a response with status code 401, with default header values. + +Unauthorized +*/ +type CacheItemDeleteAllUnauthorized struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this cache item delete all unauthorized response has a 2xx status code +func (o *CacheItemDeleteAllUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this cache item delete all unauthorized response has a 3xx status code +func (o *CacheItemDeleteAllUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cache item delete all unauthorized response has a 4xx status code +func (o *CacheItemDeleteAllUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this cache item delete all unauthorized response has a 5xx status code +func (o *CacheItemDeleteAllUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this cache item delete all unauthorized response a status code equal to that given +func (o *CacheItemDeleteAllUnauthorized) IsCode(code int) bool { + return code == 401 +} + +func (o *CacheItemDeleteAllUnauthorized) Error() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/cache-items][%d] cacheItemDeleteAllUnauthorized %+v", 401, o.Payload) +} + +func (o *CacheItemDeleteAllUnauthorized) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/cache-items][%d] cacheItemDeleteAllUnauthorized %+v", 401, o.Payload) +} + +func (o *CacheItemDeleteAllUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *CacheItemDeleteAllUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewCacheItemDeleteAllNotFound creates a CacheItemDeleteAllNotFound with default headers values +func NewCacheItemDeleteAllNotFound() *CacheItemDeleteAllNotFound { + return &CacheItemDeleteAllNotFound{} +} + +/* +CacheItemDeleteAllNotFound describes a response with status code 404, with default header values. + +Not Found +*/ +type CacheItemDeleteAllNotFound struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this cache item delete all not found response has a 2xx status code +func (o *CacheItemDeleteAllNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this cache item delete all not found response has a 3xx status code +func (o *CacheItemDeleteAllNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cache item delete all not found response has a 4xx status code +func (o *CacheItemDeleteAllNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this cache item delete all not found response has a 5xx status code +func (o *CacheItemDeleteAllNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this cache item delete all not found response a status code equal to that given +func (o *CacheItemDeleteAllNotFound) IsCode(code int) bool { + return code == 404 +} + +func (o *CacheItemDeleteAllNotFound) Error() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/cache-items][%d] cacheItemDeleteAllNotFound %+v", 404, o.Payload) +} + +func (o *CacheItemDeleteAllNotFound) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/cache-items][%d] cacheItemDeleteAllNotFound %+v", 404, o.Payload) +} + +func (o *CacheItemDeleteAllNotFound) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *CacheItemDeleteAllNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewCacheItemDeleteAllInternalServerError creates a CacheItemDeleteAllInternalServerError with default headers values +func NewCacheItemDeleteAllInternalServerError() *CacheItemDeleteAllInternalServerError { + return &CacheItemDeleteAllInternalServerError{} +} + +/* +CacheItemDeleteAllInternalServerError describes a response with status code 500, with default header values. + +Internal Server Error +*/ +type CacheItemDeleteAllInternalServerError struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this cache item delete all internal server error response has a 2xx status code +func (o *CacheItemDeleteAllInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this cache item delete all internal server error response has a 3xx status code +func (o *CacheItemDeleteAllInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cache item delete all internal server error response has a 4xx status code +func (o *CacheItemDeleteAllInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this cache item delete all internal server error response has a 5xx status code +func (o *CacheItemDeleteAllInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this cache item delete all internal server error response a status code equal to that given +func (o *CacheItemDeleteAllInternalServerError) IsCode(code int) bool { + return code == 500 +} + +func (o *CacheItemDeleteAllInternalServerError) Error() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/cache-items][%d] cacheItemDeleteAllInternalServerError %+v", 500, o.Payload) +} + +func (o *CacheItemDeleteAllInternalServerError) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/cache-items][%d] cacheItemDeleteAllInternalServerError %+v", 500, o.Payload) +} + +func (o *CacheItemDeleteAllInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *CacheItemDeleteAllInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/go/client/operations/cache_item_delete_parameters.go b/go/client/operations/cache_item_delete_parameters.go new file mode 100644 index 0000000..48ecfaf --- /dev/null +++ b/go/client/operations/cache_item_delete_parameters.go @@ -0,0 +1,173 @@ +// 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" + "github.com/go-openapi/strfmt" +) + +// NewCacheItemDeleteParams creates a new CacheItemDeleteParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCacheItemDeleteParams() *CacheItemDeleteParams { + return &CacheItemDeleteParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCacheItemDeleteParamsWithTimeout creates a new CacheItemDeleteParams object +// with the ability to set a timeout on a request. +func NewCacheItemDeleteParamsWithTimeout(timeout time.Duration) *CacheItemDeleteParams { + return &CacheItemDeleteParams{ + timeout: timeout, + } +} + +// NewCacheItemDeleteParamsWithContext creates a new CacheItemDeleteParams object +// with the ability to set a context for a request. +func NewCacheItemDeleteParamsWithContext(ctx context.Context) *CacheItemDeleteParams { + return &CacheItemDeleteParams{ + Context: ctx, + } +} + +// NewCacheItemDeleteParamsWithHTTPClient creates a new CacheItemDeleteParams object +// with the ability to set a custom HTTPClient for a request. +func NewCacheItemDeleteParamsWithHTTPClient(client *http.Client) *CacheItemDeleteParams { + return &CacheItemDeleteParams{ + HTTPClient: client, + } +} + +/* +CacheItemDeleteParams contains all the parameters to send to the API endpoint + + for the cache item delete operation. + + Typically these are written to a http.Request. +*/ +type CacheItemDeleteParams struct { + + /* AppSlug. + + App slug + */ + AppSlug string + + /* CacheItemID. + + The ID of the cache item to be deleted + */ + CacheItemID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the cache item delete params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CacheItemDeleteParams) WithDefaults() *CacheItemDeleteParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the cache item delete params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CacheItemDeleteParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the cache item delete params +func (o *CacheItemDeleteParams) WithTimeout(timeout time.Duration) *CacheItemDeleteParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the cache item delete params +func (o *CacheItemDeleteParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the cache item delete params +func (o *CacheItemDeleteParams) WithContext(ctx context.Context) *CacheItemDeleteParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the cache item delete params +func (o *CacheItemDeleteParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the cache item delete params +func (o *CacheItemDeleteParams) WithHTTPClient(client *http.Client) *CacheItemDeleteParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the cache item delete params +func (o *CacheItemDeleteParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAppSlug adds the appSlug to the cache item delete params +func (o *CacheItemDeleteParams) WithAppSlug(appSlug string) *CacheItemDeleteParams { + o.SetAppSlug(appSlug) + return o +} + +// SetAppSlug adds the appSlug to the cache item delete params +func (o *CacheItemDeleteParams) SetAppSlug(appSlug string) { + o.AppSlug = appSlug +} + +// WithCacheItemID adds the cacheItemID to the cache item delete params +func (o *CacheItemDeleteParams) WithCacheItemID(cacheItemID string) *CacheItemDeleteParams { + o.SetCacheItemID(cacheItemID) + return o +} + +// SetCacheItemID adds the cacheItemId to the cache item delete params +func (o *CacheItemDeleteParams) SetCacheItemID(cacheItemID string) { + o.CacheItemID = cacheItemID +} + +// WriteToRequest writes these params to a swagger request +func (o *CacheItemDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param app-slug + if err := r.SetPathParam("app-slug", o.AppSlug); err != nil { + return err + } + + // path param cache-item-id + if err := r.SetPathParam("cache-item-id", o.CacheItemID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/go/client/operations/cache_item_delete_responses.go b/go/client/operations/cache_item_delete_responses.go new file mode 100644 index 0000000..301ade4 --- /dev/null +++ b/go/client/operations/cache_item_delete_responses.go @@ -0,0 +1,362 @@ +// 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" + "github.com/go-openapi/strfmt" + + "github.com/Staffbase/bitrise-api/go/models" +) + +// CacheItemDeleteReader is a Reader for the CacheItemDelete structure. +type CacheItemDeleteReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CacheItemDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewCacheItemDeleteOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 400: + result := NewCacheItemDeleteBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 401: + result := NewCacheItemDeleteUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewCacheItemDeleteNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewCacheItemDeleteInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCacheItemDeleteOK creates a CacheItemDeleteOK with default headers values +func NewCacheItemDeleteOK() *CacheItemDeleteOK { + return &CacheItemDeleteOK{} +} + +/* +CacheItemDeleteOK describes a response with status code 200, with default header values. + +OK +*/ +type CacheItemDeleteOK struct { +} + +// IsSuccess returns true when this cache item delete o k response has a 2xx status code +func (o *CacheItemDeleteOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this cache item delete o k response has a 3xx status code +func (o *CacheItemDeleteOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cache item delete o k response has a 4xx status code +func (o *CacheItemDeleteOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this cache item delete o k response has a 5xx status code +func (o *CacheItemDeleteOK) IsServerError() bool { + return false +} + +// IsCode returns true when this cache item delete o k response a status code equal to that given +func (o *CacheItemDeleteOK) IsCode(code int) bool { + return code == 200 +} + +func (o *CacheItemDeleteOK) Error() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/cache-items/{cache-item-id}][%d] cacheItemDeleteOK ", 200) +} + +func (o *CacheItemDeleteOK) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/cache-items/{cache-item-id}][%d] cacheItemDeleteOK ", 200) +} + +func (o *CacheItemDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} + +// NewCacheItemDeleteBadRequest creates a CacheItemDeleteBadRequest with default headers values +func NewCacheItemDeleteBadRequest() *CacheItemDeleteBadRequest { + return &CacheItemDeleteBadRequest{} +} + +/* +CacheItemDeleteBadRequest describes a response with status code 400, with default header values. + +Bad Request +*/ +type CacheItemDeleteBadRequest struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this cache item delete bad request response has a 2xx status code +func (o *CacheItemDeleteBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this cache item delete bad request response has a 3xx status code +func (o *CacheItemDeleteBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cache item delete bad request response has a 4xx status code +func (o *CacheItemDeleteBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this cache item delete bad request response has a 5xx status code +func (o *CacheItemDeleteBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this cache item delete bad request response a status code equal to that given +func (o *CacheItemDeleteBadRequest) IsCode(code int) bool { + return code == 400 +} + +func (o *CacheItemDeleteBadRequest) Error() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/cache-items/{cache-item-id}][%d] cacheItemDeleteBadRequest %+v", 400, o.Payload) +} + +func (o *CacheItemDeleteBadRequest) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/cache-items/{cache-item-id}][%d] cacheItemDeleteBadRequest %+v", 400, o.Payload) +} + +func (o *CacheItemDeleteBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *CacheItemDeleteBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewCacheItemDeleteUnauthorized creates a CacheItemDeleteUnauthorized with default headers values +func NewCacheItemDeleteUnauthorized() *CacheItemDeleteUnauthorized { + return &CacheItemDeleteUnauthorized{} +} + +/* +CacheItemDeleteUnauthorized describes a response with status code 401, with default header values. + +Unauthorized +*/ +type CacheItemDeleteUnauthorized struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this cache item delete unauthorized response has a 2xx status code +func (o *CacheItemDeleteUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this cache item delete unauthorized response has a 3xx status code +func (o *CacheItemDeleteUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cache item delete unauthorized response has a 4xx status code +func (o *CacheItemDeleteUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this cache item delete unauthorized response has a 5xx status code +func (o *CacheItemDeleteUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this cache item delete unauthorized response a status code equal to that given +func (o *CacheItemDeleteUnauthorized) IsCode(code int) bool { + return code == 401 +} + +func (o *CacheItemDeleteUnauthorized) Error() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/cache-items/{cache-item-id}][%d] cacheItemDeleteUnauthorized %+v", 401, o.Payload) +} + +func (o *CacheItemDeleteUnauthorized) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/cache-items/{cache-item-id}][%d] cacheItemDeleteUnauthorized %+v", 401, o.Payload) +} + +func (o *CacheItemDeleteUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *CacheItemDeleteUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewCacheItemDeleteNotFound creates a CacheItemDeleteNotFound with default headers values +func NewCacheItemDeleteNotFound() *CacheItemDeleteNotFound { + return &CacheItemDeleteNotFound{} +} + +/* +CacheItemDeleteNotFound describes a response with status code 404, with default header values. + +Not Found +*/ +type CacheItemDeleteNotFound struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this cache item delete not found response has a 2xx status code +func (o *CacheItemDeleteNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this cache item delete not found response has a 3xx status code +func (o *CacheItemDeleteNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cache item delete not found response has a 4xx status code +func (o *CacheItemDeleteNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this cache item delete not found response has a 5xx status code +func (o *CacheItemDeleteNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this cache item delete not found response a status code equal to that given +func (o *CacheItemDeleteNotFound) IsCode(code int) bool { + return code == 404 +} + +func (o *CacheItemDeleteNotFound) Error() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/cache-items/{cache-item-id}][%d] cacheItemDeleteNotFound %+v", 404, o.Payload) +} + +func (o *CacheItemDeleteNotFound) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/cache-items/{cache-item-id}][%d] cacheItemDeleteNotFound %+v", 404, o.Payload) +} + +func (o *CacheItemDeleteNotFound) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *CacheItemDeleteNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewCacheItemDeleteInternalServerError creates a CacheItemDeleteInternalServerError with default headers values +func NewCacheItemDeleteInternalServerError() *CacheItemDeleteInternalServerError { + return &CacheItemDeleteInternalServerError{} +} + +/* +CacheItemDeleteInternalServerError describes a response with status code 500, with default header values. + +Internal Server Error +*/ +type CacheItemDeleteInternalServerError struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this cache item delete internal server error response has a 2xx status code +func (o *CacheItemDeleteInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this cache item delete internal server error response has a 3xx status code +func (o *CacheItemDeleteInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cache item delete internal server error response has a 4xx status code +func (o *CacheItemDeleteInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this cache item delete internal server error response has a 5xx status code +func (o *CacheItemDeleteInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this cache item delete internal server error response a status code equal to that given +func (o *CacheItemDeleteInternalServerError) IsCode(code int) bool { + return code == 500 +} + +func (o *CacheItemDeleteInternalServerError) Error() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/cache-items/{cache-item-id}][%d] cacheItemDeleteInternalServerError %+v", 500, o.Payload) +} + +func (o *CacheItemDeleteInternalServerError) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/cache-items/{cache-item-id}][%d] cacheItemDeleteInternalServerError %+v", 500, o.Payload) +} + +func (o *CacheItemDeleteInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *CacheItemDeleteInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/go/client/operations/cache_item_download_parameters.go b/go/client/operations/cache_item_download_parameters.go new file mode 100644 index 0000000..f9d4b78 --- /dev/null +++ b/go/client/operations/cache_item_download_parameters.go @@ -0,0 +1,173 @@ +// 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" + "github.com/go-openapi/strfmt" +) + +// NewCacheItemDownloadParams creates a new CacheItemDownloadParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCacheItemDownloadParams() *CacheItemDownloadParams { + return &CacheItemDownloadParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCacheItemDownloadParamsWithTimeout creates a new CacheItemDownloadParams object +// with the ability to set a timeout on a request. +func NewCacheItemDownloadParamsWithTimeout(timeout time.Duration) *CacheItemDownloadParams { + return &CacheItemDownloadParams{ + timeout: timeout, + } +} + +// NewCacheItemDownloadParamsWithContext creates a new CacheItemDownloadParams object +// with the ability to set a context for a request. +func NewCacheItemDownloadParamsWithContext(ctx context.Context) *CacheItemDownloadParams { + return &CacheItemDownloadParams{ + Context: ctx, + } +} + +// NewCacheItemDownloadParamsWithHTTPClient creates a new CacheItemDownloadParams object +// with the ability to set a custom HTTPClient for a request. +func NewCacheItemDownloadParamsWithHTTPClient(client *http.Client) *CacheItemDownloadParams { + return &CacheItemDownloadParams{ + HTTPClient: client, + } +} + +/* +CacheItemDownloadParams contains all the parameters to send to the API endpoint + + for the cache item download operation. + + Typically these are written to a http.Request. +*/ +type CacheItemDownloadParams struct { + + /* AppSlug. + + App slug + */ + AppSlug string + + /* CacheItemID. + + The ID of the cache item to be downloaded + */ + CacheItemID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the cache item download params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CacheItemDownloadParams) WithDefaults() *CacheItemDownloadParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the cache item download params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CacheItemDownloadParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the cache item download params +func (o *CacheItemDownloadParams) WithTimeout(timeout time.Duration) *CacheItemDownloadParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the cache item download params +func (o *CacheItemDownloadParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the cache item download params +func (o *CacheItemDownloadParams) WithContext(ctx context.Context) *CacheItemDownloadParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the cache item download params +func (o *CacheItemDownloadParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the cache item download params +func (o *CacheItemDownloadParams) WithHTTPClient(client *http.Client) *CacheItemDownloadParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the cache item download params +func (o *CacheItemDownloadParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAppSlug adds the appSlug to the cache item download params +func (o *CacheItemDownloadParams) WithAppSlug(appSlug string) *CacheItemDownloadParams { + o.SetAppSlug(appSlug) + return o +} + +// SetAppSlug adds the appSlug to the cache item download params +func (o *CacheItemDownloadParams) SetAppSlug(appSlug string) { + o.AppSlug = appSlug +} + +// WithCacheItemID adds the cacheItemID to the cache item download params +func (o *CacheItemDownloadParams) WithCacheItemID(cacheItemID string) *CacheItemDownloadParams { + o.SetCacheItemID(cacheItemID) + return o +} + +// SetCacheItemID adds the cacheItemId to the cache item download params +func (o *CacheItemDownloadParams) SetCacheItemID(cacheItemID string) { + o.CacheItemID = cacheItemID +} + +// WriteToRequest writes these params to a swagger request +func (o *CacheItemDownloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param app-slug + if err := r.SetPathParam("app-slug", o.AppSlug); err != nil { + return err + } + + // path param cache-item-id + if err := r.SetPathParam("cache-item-id", o.CacheItemID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/go/client/operations/cache_item_download_responses.go b/go/client/operations/cache_item_download_responses.go new file mode 100644 index 0000000..8520396 --- /dev/null +++ b/go/client/operations/cache_item_download_responses.go @@ -0,0 +1,374 @@ +// 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" + "github.com/go-openapi/strfmt" + + "github.com/Staffbase/bitrise-api/go/models" +) + +// CacheItemDownloadReader is a Reader for the CacheItemDownload structure. +type CacheItemDownloadReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CacheItemDownloadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewCacheItemDownloadOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 400: + result := NewCacheItemDownloadBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 401: + result := NewCacheItemDownloadUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewCacheItemDownloadNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewCacheItemDownloadInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCacheItemDownloadOK creates a CacheItemDownloadOK with default headers values +func NewCacheItemDownloadOK() *CacheItemDownloadOK { + return &CacheItemDownloadOK{} +} + +/* +CacheItemDownloadOK describes a response with status code 200, with default header values. + +OK +*/ +type CacheItemDownloadOK struct { + Payload *models.V0CacheItemDownloadResponseModel +} + +// IsSuccess returns true when this cache item download o k response has a 2xx status code +func (o *CacheItemDownloadOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this cache item download o k response has a 3xx status code +func (o *CacheItemDownloadOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cache item download o k response has a 4xx status code +func (o *CacheItemDownloadOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this cache item download o k response has a 5xx status code +func (o *CacheItemDownloadOK) IsServerError() bool { + return false +} + +// IsCode returns true when this cache item download o k response a status code equal to that given +func (o *CacheItemDownloadOK) IsCode(code int) bool { + return code == 200 +} + +func (o *CacheItemDownloadOK) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/cache-items/{cache-item-id}/download][%d] cacheItemDownloadOK %+v", 200, o.Payload) +} + +func (o *CacheItemDownloadOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/cache-items/{cache-item-id}/download][%d] cacheItemDownloadOK %+v", 200, o.Payload) +} + +func (o *CacheItemDownloadOK) GetPayload() *models.V0CacheItemDownloadResponseModel { + return o.Payload +} + +func (o *CacheItemDownloadOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.V0CacheItemDownloadResponseModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewCacheItemDownloadBadRequest creates a CacheItemDownloadBadRequest with default headers values +func NewCacheItemDownloadBadRequest() *CacheItemDownloadBadRequest { + return &CacheItemDownloadBadRequest{} +} + +/* +CacheItemDownloadBadRequest describes a response with status code 400, with default header values. + +Bad Request +*/ +type CacheItemDownloadBadRequest struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this cache item download bad request response has a 2xx status code +func (o *CacheItemDownloadBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this cache item download bad request response has a 3xx status code +func (o *CacheItemDownloadBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cache item download bad request response has a 4xx status code +func (o *CacheItemDownloadBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this cache item download bad request response has a 5xx status code +func (o *CacheItemDownloadBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this cache item download bad request response a status code equal to that given +func (o *CacheItemDownloadBadRequest) IsCode(code int) bool { + return code == 400 +} + +func (o *CacheItemDownloadBadRequest) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/cache-items/{cache-item-id}/download][%d] cacheItemDownloadBadRequest %+v", 400, o.Payload) +} + +func (o *CacheItemDownloadBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/cache-items/{cache-item-id}/download][%d] cacheItemDownloadBadRequest %+v", 400, o.Payload) +} + +func (o *CacheItemDownloadBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *CacheItemDownloadBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewCacheItemDownloadUnauthorized creates a CacheItemDownloadUnauthorized with default headers values +func NewCacheItemDownloadUnauthorized() *CacheItemDownloadUnauthorized { + return &CacheItemDownloadUnauthorized{} +} + +/* +CacheItemDownloadUnauthorized describes a response with status code 401, with default header values. + +Unauthorized +*/ +type CacheItemDownloadUnauthorized struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this cache item download unauthorized response has a 2xx status code +func (o *CacheItemDownloadUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this cache item download unauthorized response has a 3xx status code +func (o *CacheItemDownloadUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cache item download unauthorized response has a 4xx status code +func (o *CacheItemDownloadUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this cache item download unauthorized response has a 5xx status code +func (o *CacheItemDownloadUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this cache item download unauthorized response a status code equal to that given +func (o *CacheItemDownloadUnauthorized) IsCode(code int) bool { + return code == 401 +} + +func (o *CacheItemDownloadUnauthorized) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/cache-items/{cache-item-id}/download][%d] cacheItemDownloadUnauthorized %+v", 401, o.Payload) +} + +func (o *CacheItemDownloadUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/cache-items/{cache-item-id}/download][%d] cacheItemDownloadUnauthorized %+v", 401, o.Payload) +} + +func (o *CacheItemDownloadUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *CacheItemDownloadUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewCacheItemDownloadNotFound creates a CacheItemDownloadNotFound with default headers values +func NewCacheItemDownloadNotFound() *CacheItemDownloadNotFound { + return &CacheItemDownloadNotFound{} +} + +/* +CacheItemDownloadNotFound describes a response with status code 404, with default header values. + +Not Found +*/ +type CacheItemDownloadNotFound struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this cache item download not found response has a 2xx status code +func (o *CacheItemDownloadNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this cache item download not found response has a 3xx status code +func (o *CacheItemDownloadNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cache item download not found response has a 4xx status code +func (o *CacheItemDownloadNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this cache item download not found response has a 5xx status code +func (o *CacheItemDownloadNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this cache item download not found response a status code equal to that given +func (o *CacheItemDownloadNotFound) IsCode(code int) bool { + return code == 404 +} + +func (o *CacheItemDownloadNotFound) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/cache-items/{cache-item-id}/download][%d] cacheItemDownloadNotFound %+v", 404, o.Payload) +} + +func (o *CacheItemDownloadNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/cache-items/{cache-item-id}/download][%d] cacheItemDownloadNotFound %+v", 404, o.Payload) +} + +func (o *CacheItemDownloadNotFound) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *CacheItemDownloadNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewCacheItemDownloadInternalServerError creates a CacheItemDownloadInternalServerError with default headers values +func NewCacheItemDownloadInternalServerError() *CacheItemDownloadInternalServerError { + return &CacheItemDownloadInternalServerError{} +} + +/* +CacheItemDownloadInternalServerError describes a response with status code 500, with default header values. + +Internal Server Error +*/ +type CacheItemDownloadInternalServerError struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this cache item download internal server error response has a 2xx status code +func (o *CacheItemDownloadInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this cache item download internal server error response has a 3xx status code +func (o *CacheItemDownloadInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cache item download internal server error response has a 4xx status code +func (o *CacheItemDownloadInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this cache item download internal server error response has a 5xx status code +func (o *CacheItemDownloadInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this cache item download internal server error response a status code equal to that given +func (o *CacheItemDownloadInternalServerError) IsCode(code int) bool { + return code == 500 +} + +func (o *CacheItemDownloadInternalServerError) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/cache-items/{cache-item-id}/download][%d] cacheItemDownloadInternalServerError %+v", 500, o.Payload) +} + +func (o *CacheItemDownloadInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/cache-items/{cache-item-id}/download][%d] cacheItemDownloadInternalServerError %+v", 500, o.Payload) +} + +func (o *CacheItemDownloadInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *CacheItemDownloadInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/go/client/operations/cache_list_parameters.go b/go/client/operations/cache_list_parameters.go new file mode 100644 index 0000000..d889df0 --- /dev/null +++ b/go/client/operations/cache_list_parameters.go @@ -0,0 +1,186 @@ +// 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" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewCacheListParams creates a new CacheListParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewCacheListParams() *CacheListParams { + return &CacheListParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewCacheListParamsWithTimeout creates a new CacheListParams object +// with the ability to set a timeout on a request. +func NewCacheListParamsWithTimeout(timeout time.Duration) *CacheListParams { + return &CacheListParams{ + timeout: timeout, + } +} + +// NewCacheListParamsWithContext creates a new CacheListParams object +// with the ability to set a context for a request. +func NewCacheListParamsWithContext(ctx context.Context) *CacheListParams { + return &CacheListParams{ + Context: ctx, + } +} + +// NewCacheListParamsWithHTTPClient creates a new CacheListParams object +// with the ability to set a custom HTTPClient for a request. +func NewCacheListParamsWithHTTPClient(client *http.Client) *CacheListParams { + return &CacheListParams{ + HTTPClient: client, + } +} + +/* +CacheListParams contains all the parameters to send to the API endpoint + + for the cache list operation. + + Typically these are written to a http.Request. +*/ +type CacheListParams struct { + + /* AppSlug. + + App slug + */ + AppSlug string + + /* Limit. + + Max number of elements per page (default: 100) + */ + Limit *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the cache list params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CacheListParams) WithDefaults() *CacheListParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the cache list params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *CacheListParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the cache list params +func (o *CacheListParams) WithTimeout(timeout time.Duration) *CacheListParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the cache list params +func (o *CacheListParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the cache list params +func (o *CacheListParams) WithContext(ctx context.Context) *CacheListParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the cache list params +func (o *CacheListParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the cache list params +func (o *CacheListParams) WithHTTPClient(client *http.Client) *CacheListParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the cache list params +func (o *CacheListParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAppSlug adds the appSlug to the cache list params +func (o *CacheListParams) WithAppSlug(appSlug string) *CacheListParams { + o.SetAppSlug(appSlug) + return o +} + +// SetAppSlug adds the appSlug to the cache list params +func (o *CacheListParams) SetAppSlug(appSlug string) { + o.AppSlug = appSlug +} + +// WithLimit adds the limit to the cache list params +func (o *CacheListParams) WithLimit(limit *int64) *CacheListParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the cache list params +func (o *CacheListParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WriteToRequest writes these params to a swagger request +func (o *CacheListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param app-slug + if err := r.SetPathParam("app-slug", o.AppSlug); err != nil { + return err + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/go/client/operations/cache_list_responses.go b/go/client/operations/cache_list_responses.go new file mode 100644 index 0000000..7c7e89d --- /dev/null +++ b/go/client/operations/cache_list_responses.go @@ -0,0 +1,374 @@ +// 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" + "github.com/go-openapi/strfmt" + + "github.com/Staffbase/bitrise-api/go/models" +) + +// CacheListReader is a Reader for the CacheList structure. +type CacheListReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *CacheListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewCacheListOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 400: + result := NewCacheListBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 401: + result := NewCacheListUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewCacheListNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewCacheListInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewCacheListOK creates a CacheListOK with default headers values +func NewCacheListOK() *CacheListOK { + return &CacheListOK{} +} + +/* +CacheListOK describes a response with status code 200, with default header values. + +OK +*/ +type CacheListOK struct { + Payload *models.V0CacheItemListResponseModel +} + +// IsSuccess returns true when this cache list o k response has a 2xx status code +func (o *CacheListOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this cache list o k response has a 3xx status code +func (o *CacheListOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cache list o k response has a 4xx status code +func (o *CacheListOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this cache list o k response has a 5xx status code +func (o *CacheListOK) IsServerError() bool { + return false +} + +// IsCode returns true when this cache list o k response a status code equal to that given +func (o *CacheListOK) IsCode(code int) bool { + return code == 200 +} + +func (o *CacheListOK) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/cache-items][%d] cacheListOK %+v", 200, o.Payload) +} + +func (o *CacheListOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/cache-items][%d] cacheListOK %+v", 200, o.Payload) +} + +func (o *CacheListOK) GetPayload() *models.V0CacheItemListResponseModel { + return o.Payload +} + +func (o *CacheListOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.V0CacheItemListResponseModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewCacheListBadRequest creates a CacheListBadRequest with default headers values +func NewCacheListBadRequest() *CacheListBadRequest { + return &CacheListBadRequest{} +} + +/* +CacheListBadRequest describes a response with status code 400, with default header values. + +Bad Request +*/ +type CacheListBadRequest struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this cache list bad request response has a 2xx status code +func (o *CacheListBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this cache list bad request response has a 3xx status code +func (o *CacheListBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cache list bad request response has a 4xx status code +func (o *CacheListBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this cache list bad request response has a 5xx status code +func (o *CacheListBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this cache list bad request response a status code equal to that given +func (o *CacheListBadRequest) IsCode(code int) bool { + return code == 400 +} + +func (o *CacheListBadRequest) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/cache-items][%d] cacheListBadRequest %+v", 400, o.Payload) +} + +func (o *CacheListBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/cache-items][%d] cacheListBadRequest %+v", 400, o.Payload) +} + +func (o *CacheListBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *CacheListBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewCacheListUnauthorized creates a CacheListUnauthorized with default headers values +func NewCacheListUnauthorized() *CacheListUnauthorized { + return &CacheListUnauthorized{} +} + +/* +CacheListUnauthorized describes a response with status code 401, with default header values. + +Unauthorized +*/ +type CacheListUnauthorized struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this cache list unauthorized response has a 2xx status code +func (o *CacheListUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this cache list unauthorized response has a 3xx status code +func (o *CacheListUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cache list unauthorized response has a 4xx status code +func (o *CacheListUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this cache list unauthorized response has a 5xx status code +func (o *CacheListUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this cache list unauthorized response a status code equal to that given +func (o *CacheListUnauthorized) IsCode(code int) bool { + return code == 401 +} + +func (o *CacheListUnauthorized) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/cache-items][%d] cacheListUnauthorized %+v", 401, o.Payload) +} + +func (o *CacheListUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/cache-items][%d] cacheListUnauthorized %+v", 401, o.Payload) +} + +func (o *CacheListUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *CacheListUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewCacheListNotFound creates a CacheListNotFound with default headers values +func NewCacheListNotFound() *CacheListNotFound { + return &CacheListNotFound{} +} + +/* +CacheListNotFound describes a response with status code 404, with default header values. + +Not Found +*/ +type CacheListNotFound struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this cache list not found response has a 2xx status code +func (o *CacheListNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this cache list not found response has a 3xx status code +func (o *CacheListNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cache list not found response has a 4xx status code +func (o *CacheListNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this cache list not found response has a 5xx status code +func (o *CacheListNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this cache list not found response a status code equal to that given +func (o *CacheListNotFound) IsCode(code int) bool { + return code == 404 +} + +func (o *CacheListNotFound) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/cache-items][%d] cacheListNotFound %+v", 404, o.Payload) +} + +func (o *CacheListNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/cache-items][%d] cacheListNotFound %+v", 404, o.Payload) +} + +func (o *CacheListNotFound) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *CacheListNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewCacheListInternalServerError creates a CacheListInternalServerError with default headers values +func NewCacheListInternalServerError() *CacheListInternalServerError { + return &CacheListInternalServerError{} +} + +/* +CacheListInternalServerError describes a response with status code 500, with default header values. + +Internal Server Error +*/ +type CacheListInternalServerError struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this cache list internal server error response has a 2xx status code +func (o *CacheListInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this cache list internal server error response has a 3xx status code +func (o *CacheListInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this cache list internal server error response has a 4xx status code +func (o *CacheListInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this cache list internal server error response has a 5xx status code +func (o *CacheListInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this cache list internal server error response a status code equal to that given +func (o *CacheListInternalServerError) IsCode(code int) bool { + return code == 500 +} + +func (o *CacheListInternalServerError) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/cache-items][%d] cacheListInternalServerError %+v", 500, o.Payload) +} + +func (o *CacheListInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/cache-items][%d] cacheListInternalServerError %+v", 500, o.Payload) +} + +func (o *CacheListInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *CacheListInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/go/client/operations/generic_project_file_confirm_parameters.go b/go/client/operations/generic_project_file_confirm_parameters.go index 4e59ef9..cc2fad4 100644 --- a/go/client/operations/generic_project_file_confirm_parameters.go +++ b/go/client/operations/generic_project_file_confirm_parameters.go @@ -52,10 +52,12 @@ func NewGenericProjectFileConfirmParamsWithHTTPClient(client *http.Client) *Gene } } -/* GenericProjectFileConfirmParams contains all the parameters to send to the API endpoint - for the generic project file confirm operation. +/* +GenericProjectFileConfirmParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the generic project file confirm operation. + + Typically these are written to a http.Request. */ type GenericProjectFileConfirmParams struct { diff --git a/go/client/operations/generic_project_file_confirm_responses.go b/go/client/operations/generic_project_file_confirm_responses.go index 16f8b3e..880e9f7 100644 --- a/go/client/operations/generic_project_file_confirm_responses.go +++ b/go/client/operations/generic_project_file_confirm_responses.go @@ -63,7 +63,8 @@ func NewGenericProjectFileConfirmOK() *GenericProjectFileConfirmOK { return &GenericProjectFileConfirmOK{} } -/* GenericProjectFileConfirmOK describes a response with status code 200, with default header values. +/* +GenericProjectFileConfirmOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type GenericProjectFileConfirmOK struct { Payload *models.V0ProjectFileStorageResponseModel } +// IsSuccess returns true when this generic project file confirm o k response has a 2xx status code +func (o *GenericProjectFileConfirmOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this generic project file confirm o k response has a 3xx status code +func (o *GenericProjectFileConfirmOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file confirm o k response has a 4xx status code +func (o *GenericProjectFileConfirmOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this generic project file confirm o k response has a 5xx status code +func (o *GenericProjectFileConfirmOK) IsServerError() bool { + return false +} + +// IsCode returns true when this generic project file confirm o k response a status code equal to that given +func (o *GenericProjectFileConfirmOK) IsCode(code int) bool { + return code == 200 +} + func (o *GenericProjectFileConfirmOK) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/generic-project-files/{generic-project-file-slug}/uploaded][%d] genericProjectFileConfirmOK %+v", 200, o.Payload) } + +func (o *GenericProjectFileConfirmOK) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/generic-project-files/{generic-project-file-slug}/uploaded][%d] genericProjectFileConfirmOK %+v", 200, o.Payload) +} + func (o *GenericProjectFileConfirmOK) GetPayload() *models.V0ProjectFileStorageResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewGenericProjectFileConfirmBadRequest() *GenericProjectFileConfirmBadReque return &GenericProjectFileConfirmBadRequest{} } -/* GenericProjectFileConfirmBadRequest describes a response with status code 400, with default header values. +/* +GenericProjectFileConfirmBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type GenericProjectFileConfirmBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this generic project file confirm bad request response has a 2xx status code +func (o *GenericProjectFileConfirmBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this generic project file confirm bad request response has a 3xx status code +func (o *GenericProjectFileConfirmBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file confirm bad request response has a 4xx status code +func (o *GenericProjectFileConfirmBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this generic project file confirm bad request response has a 5xx status code +func (o *GenericProjectFileConfirmBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this generic project file confirm bad request response a status code equal to that given +func (o *GenericProjectFileConfirmBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *GenericProjectFileConfirmBadRequest) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/generic-project-files/{generic-project-file-slug}/uploaded][%d] genericProjectFileConfirmBadRequest %+v", 400, o.Payload) } + +func (o *GenericProjectFileConfirmBadRequest) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/generic-project-files/{generic-project-file-slug}/uploaded][%d] genericProjectFileConfirmBadRequest %+v", 400, o.Payload) +} + func (o *GenericProjectFileConfirmBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewGenericProjectFileConfirmUnauthorized() *GenericProjectFileConfirmUnauth return &GenericProjectFileConfirmUnauthorized{} } -/* GenericProjectFileConfirmUnauthorized describes a response with status code 401, with default header values. +/* +GenericProjectFileConfirmUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type GenericProjectFileConfirmUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this generic project file confirm unauthorized response has a 2xx status code +func (o *GenericProjectFileConfirmUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this generic project file confirm unauthorized response has a 3xx status code +func (o *GenericProjectFileConfirmUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file confirm unauthorized response has a 4xx status code +func (o *GenericProjectFileConfirmUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this generic project file confirm unauthorized response has a 5xx status code +func (o *GenericProjectFileConfirmUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this generic project file confirm unauthorized response a status code equal to that given +func (o *GenericProjectFileConfirmUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *GenericProjectFileConfirmUnauthorized) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/generic-project-files/{generic-project-file-slug}/uploaded][%d] genericProjectFileConfirmUnauthorized %+v", 401, o.Payload) } + +func (o *GenericProjectFileConfirmUnauthorized) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/generic-project-files/{generic-project-file-slug}/uploaded][%d] genericProjectFileConfirmUnauthorized %+v", 401, o.Payload) +} + func (o *GenericProjectFileConfirmUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewGenericProjectFileConfirmNotFound() *GenericProjectFileConfirmNotFound { return &GenericProjectFileConfirmNotFound{} } -/* GenericProjectFileConfirmNotFound describes a response with status code 404, with default header values. +/* +GenericProjectFileConfirmNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type GenericProjectFileConfirmNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this generic project file confirm not found response has a 2xx status code +func (o *GenericProjectFileConfirmNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this generic project file confirm not found response has a 3xx status code +func (o *GenericProjectFileConfirmNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file confirm not found response has a 4xx status code +func (o *GenericProjectFileConfirmNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this generic project file confirm not found response has a 5xx status code +func (o *GenericProjectFileConfirmNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this generic project file confirm not found response a status code equal to that given +func (o *GenericProjectFileConfirmNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *GenericProjectFileConfirmNotFound) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/generic-project-files/{generic-project-file-slug}/uploaded][%d] genericProjectFileConfirmNotFound %+v", 404, o.Payload) } + +func (o *GenericProjectFileConfirmNotFound) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/generic-project-files/{generic-project-file-slug}/uploaded][%d] genericProjectFileConfirmNotFound %+v", 404, o.Payload) +} + func (o *GenericProjectFileConfirmNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewGenericProjectFileConfirmInternalServerError() *GenericProjectFileConfir return &GenericProjectFileConfirmInternalServerError{} } -/* GenericProjectFileConfirmInternalServerError describes a response with status code 500, with default header values. +/* +GenericProjectFileConfirmInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type GenericProjectFileConfirmInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this generic project file confirm internal server error response has a 2xx status code +func (o *GenericProjectFileConfirmInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this generic project file confirm internal server error response has a 3xx status code +func (o *GenericProjectFileConfirmInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file confirm internal server error response has a 4xx status code +func (o *GenericProjectFileConfirmInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this generic project file confirm internal server error response has a 5xx status code +func (o *GenericProjectFileConfirmInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this generic project file confirm internal server error response a status code equal to that given +func (o *GenericProjectFileConfirmInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *GenericProjectFileConfirmInternalServerError) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/generic-project-files/{generic-project-file-slug}/uploaded][%d] genericProjectFileConfirmInternalServerError %+v", 500, o.Payload) } + +func (o *GenericProjectFileConfirmInternalServerError) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/generic-project-files/{generic-project-file-slug}/uploaded][%d] genericProjectFileConfirmInternalServerError %+v", 500, o.Payload) +} + func (o *GenericProjectFileConfirmInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/generic_project_file_delete_parameters.go b/go/client/operations/generic_project_file_delete_parameters.go index fbb6555..fbc84a2 100644 --- a/go/client/operations/generic_project_file_delete_parameters.go +++ b/go/client/operations/generic_project_file_delete_parameters.go @@ -52,10 +52,12 @@ func NewGenericProjectFileDeleteParamsWithHTTPClient(client *http.Client) *Gener } } -/* GenericProjectFileDeleteParams contains all the parameters to send to the API endpoint - for the generic project file delete operation. +/* +GenericProjectFileDeleteParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the generic project file delete operation. + + Typically these are written to a http.Request. */ type GenericProjectFileDeleteParams struct { diff --git a/go/client/operations/generic_project_file_delete_responses.go b/go/client/operations/generic_project_file_delete_responses.go index 04e698d..fc76939 100644 --- a/go/client/operations/generic_project_file_delete_responses.go +++ b/go/client/operations/generic_project_file_delete_responses.go @@ -63,7 +63,8 @@ func NewGenericProjectFileDeleteOK() *GenericProjectFileDeleteOK { return &GenericProjectFileDeleteOK{} } -/* GenericProjectFileDeleteOK describes a response with status code 200, with default header values. +/* +GenericProjectFileDeleteOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type GenericProjectFileDeleteOK struct { Payload *models.V0ProjectFileStorageResponseModel } +// IsSuccess returns true when this generic project file delete o k response has a 2xx status code +func (o *GenericProjectFileDeleteOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this generic project file delete o k response has a 3xx status code +func (o *GenericProjectFileDeleteOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file delete o k response has a 4xx status code +func (o *GenericProjectFileDeleteOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this generic project file delete o k response has a 5xx status code +func (o *GenericProjectFileDeleteOK) IsServerError() bool { + return false +} + +// IsCode returns true when this generic project file delete o k response a status code equal to that given +func (o *GenericProjectFileDeleteOK) IsCode(code int) bool { + return code == 200 +} + func (o *GenericProjectFileDeleteOK) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileDeleteOK %+v", 200, o.Payload) } + +func (o *GenericProjectFileDeleteOK) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileDeleteOK %+v", 200, o.Payload) +} + func (o *GenericProjectFileDeleteOK) GetPayload() *models.V0ProjectFileStorageResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewGenericProjectFileDeleteBadRequest() *GenericProjectFileDeleteBadRequest return &GenericProjectFileDeleteBadRequest{} } -/* GenericProjectFileDeleteBadRequest describes a response with status code 400, with default header values. +/* +GenericProjectFileDeleteBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type GenericProjectFileDeleteBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this generic project file delete bad request response has a 2xx status code +func (o *GenericProjectFileDeleteBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this generic project file delete bad request response has a 3xx status code +func (o *GenericProjectFileDeleteBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file delete bad request response has a 4xx status code +func (o *GenericProjectFileDeleteBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this generic project file delete bad request response has a 5xx status code +func (o *GenericProjectFileDeleteBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this generic project file delete bad request response a status code equal to that given +func (o *GenericProjectFileDeleteBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *GenericProjectFileDeleteBadRequest) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileDeleteBadRequest %+v", 400, o.Payload) } + +func (o *GenericProjectFileDeleteBadRequest) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileDeleteBadRequest %+v", 400, o.Payload) +} + func (o *GenericProjectFileDeleteBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewGenericProjectFileDeleteUnauthorized() *GenericProjectFileDeleteUnauthor return &GenericProjectFileDeleteUnauthorized{} } -/* GenericProjectFileDeleteUnauthorized describes a response with status code 401, with default header values. +/* +GenericProjectFileDeleteUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type GenericProjectFileDeleteUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this generic project file delete unauthorized response has a 2xx status code +func (o *GenericProjectFileDeleteUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this generic project file delete unauthorized response has a 3xx status code +func (o *GenericProjectFileDeleteUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file delete unauthorized response has a 4xx status code +func (o *GenericProjectFileDeleteUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this generic project file delete unauthorized response has a 5xx status code +func (o *GenericProjectFileDeleteUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this generic project file delete unauthorized response a status code equal to that given +func (o *GenericProjectFileDeleteUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *GenericProjectFileDeleteUnauthorized) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileDeleteUnauthorized %+v", 401, o.Payload) } + +func (o *GenericProjectFileDeleteUnauthorized) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileDeleteUnauthorized %+v", 401, o.Payload) +} + func (o *GenericProjectFileDeleteUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewGenericProjectFileDeleteNotFound() *GenericProjectFileDeleteNotFound { return &GenericProjectFileDeleteNotFound{} } -/* GenericProjectFileDeleteNotFound describes a response with status code 404, with default header values. +/* +GenericProjectFileDeleteNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type GenericProjectFileDeleteNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this generic project file delete not found response has a 2xx status code +func (o *GenericProjectFileDeleteNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this generic project file delete not found response has a 3xx status code +func (o *GenericProjectFileDeleteNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file delete not found response has a 4xx status code +func (o *GenericProjectFileDeleteNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this generic project file delete not found response has a 5xx status code +func (o *GenericProjectFileDeleteNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this generic project file delete not found response a status code equal to that given +func (o *GenericProjectFileDeleteNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *GenericProjectFileDeleteNotFound) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileDeleteNotFound %+v", 404, o.Payload) } + +func (o *GenericProjectFileDeleteNotFound) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileDeleteNotFound %+v", 404, o.Payload) +} + func (o *GenericProjectFileDeleteNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewGenericProjectFileDeleteInternalServerError() *GenericProjectFileDeleteI return &GenericProjectFileDeleteInternalServerError{} } -/* GenericProjectFileDeleteInternalServerError describes a response with status code 500, with default header values. +/* +GenericProjectFileDeleteInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type GenericProjectFileDeleteInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this generic project file delete internal server error response has a 2xx status code +func (o *GenericProjectFileDeleteInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this generic project file delete internal server error response has a 3xx status code +func (o *GenericProjectFileDeleteInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file delete internal server error response has a 4xx status code +func (o *GenericProjectFileDeleteInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this generic project file delete internal server error response has a 5xx status code +func (o *GenericProjectFileDeleteInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this generic project file delete internal server error response a status code equal to that given +func (o *GenericProjectFileDeleteInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *GenericProjectFileDeleteInternalServerError) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileDeleteInternalServerError %+v", 500, o.Payload) } + +func (o *GenericProjectFileDeleteInternalServerError) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileDeleteInternalServerError %+v", 500, o.Payload) +} + func (o *GenericProjectFileDeleteInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/generic_project_file_list_parameters.go b/go/client/operations/generic_project_file_list_parameters.go index 9631425..d5c4663 100644 --- a/go/client/operations/generic_project_file_list_parameters.go +++ b/go/client/operations/generic_project_file_list_parameters.go @@ -53,10 +53,12 @@ func NewGenericProjectFileListParamsWithHTTPClient(client *http.Client) *Generic } } -/* GenericProjectFileListParams contains all the parameters to send to the API endpoint - for the generic project file list operation. +/* +GenericProjectFileListParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the generic project file list operation. + + Typically these are written to a http.Request. */ type GenericProjectFileListParams struct { diff --git a/go/client/operations/generic_project_file_list_responses.go b/go/client/operations/generic_project_file_list_responses.go index 80f8d8c..c18339d 100644 --- a/go/client/operations/generic_project_file_list_responses.go +++ b/go/client/operations/generic_project_file_list_responses.go @@ -63,7 +63,8 @@ func NewGenericProjectFileListOK() *GenericProjectFileListOK { return &GenericProjectFileListOK{} } -/* GenericProjectFileListOK describes a response with status code 200, with default header values. +/* +GenericProjectFileListOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type GenericProjectFileListOK struct { Payload *models.V0ProjectFileStorageListResponseModel } +// IsSuccess returns true when this generic project file list o k response has a 2xx status code +func (o *GenericProjectFileListOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this generic project file list o k response has a 3xx status code +func (o *GenericProjectFileListOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file list o k response has a 4xx status code +func (o *GenericProjectFileListOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this generic project file list o k response has a 5xx status code +func (o *GenericProjectFileListOK) IsServerError() bool { + return false +} + +// IsCode returns true when this generic project file list o k response a status code equal to that given +func (o *GenericProjectFileListOK) IsCode(code int) bool { + return code == 200 +} + func (o *GenericProjectFileListOK) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/generic-project-files][%d] genericProjectFileListOK %+v", 200, o.Payload) } + +func (o *GenericProjectFileListOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/generic-project-files][%d] genericProjectFileListOK %+v", 200, o.Payload) +} + func (o *GenericProjectFileListOK) GetPayload() *models.V0ProjectFileStorageListResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewGenericProjectFileListBadRequest() *GenericProjectFileListBadRequest { return &GenericProjectFileListBadRequest{} } -/* GenericProjectFileListBadRequest describes a response with status code 400, with default header values. +/* +GenericProjectFileListBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type GenericProjectFileListBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this generic project file list bad request response has a 2xx status code +func (o *GenericProjectFileListBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this generic project file list bad request response has a 3xx status code +func (o *GenericProjectFileListBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file list bad request response has a 4xx status code +func (o *GenericProjectFileListBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this generic project file list bad request response has a 5xx status code +func (o *GenericProjectFileListBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this generic project file list bad request response a status code equal to that given +func (o *GenericProjectFileListBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *GenericProjectFileListBadRequest) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/generic-project-files][%d] genericProjectFileListBadRequest %+v", 400, o.Payload) } + +func (o *GenericProjectFileListBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/generic-project-files][%d] genericProjectFileListBadRequest %+v", 400, o.Payload) +} + func (o *GenericProjectFileListBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewGenericProjectFileListUnauthorized() *GenericProjectFileListUnauthorized return &GenericProjectFileListUnauthorized{} } -/* GenericProjectFileListUnauthorized describes a response with status code 401, with default header values. +/* +GenericProjectFileListUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type GenericProjectFileListUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this generic project file list unauthorized response has a 2xx status code +func (o *GenericProjectFileListUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this generic project file list unauthorized response has a 3xx status code +func (o *GenericProjectFileListUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file list unauthorized response has a 4xx status code +func (o *GenericProjectFileListUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this generic project file list unauthorized response has a 5xx status code +func (o *GenericProjectFileListUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this generic project file list unauthorized response a status code equal to that given +func (o *GenericProjectFileListUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *GenericProjectFileListUnauthorized) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/generic-project-files][%d] genericProjectFileListUnauthorized %+v", 401, o.Payload) } + +func (o *GenericProjectFileListUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/generic-project-files][%d] genericProjectFileListUnauthorized %+v", 401, o.Payload) +} + func (o *GenericProjectFileListUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewGenericProjectFileListNotFound() *GenericProjectFileListNotFound { return &GenericProjectFileListNotFound{} } -/* GenericProjectFileListNotFound describes a response with status code 404, with default header values. +/* +GenericProjectFileListNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type GenericProjectFileListNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this generic project file list not found response has a 2xx status code +func (o *GenericProjectFileListNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this generic project file list not found response has a 3xx status code +func (o *GenericProjectFileListNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file list not found response has a 4xx status code +func (o *GenericProjectFileListNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this generic project file list not found response has a 5xx status code +func (o *GenericProjectFileListNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this generic project file list not found response a status code equal to that given +func (o *GenericProjectFileListNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *GenericProjectFileListNotFound) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/generic-project-files][%d] genericProjectFileListNotFound %+v", 404, o.Payload) } + +func (o *GenericProjectFileListNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/generic-project-files][%d] genericProjectFileListNotFound %+v", 404, o.Payload) +} + func (o *GenericProjectFileListNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewGenericProjectFileListInternalServerError() *GenericProjectFileListInter return &GenericProjectFileListInternalServerError{} } -/* GenericProjectFileListInternalServerError describes a response with status code 500, with default header values. +/* +GenericProjectFileListInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type GenericProjectFileListInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this generic project file list internal server error response has a 2xx status code +func (o *GenericProjectFileListInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this generic project file list internal server error response has a 3xx status code +func (o *GenericProjectFileListInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file list internal server error response has a 4xx status code +func (o *GenericProjectFileListInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this generic project file list internal server error response has a 5xx status code +func (o *GenericProjectFileListInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this generic project file list internal server error response a status code equal to that given +func (o *GenericProjectFileListInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *GenericProjectFileListInternalServerError) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/generic-project-files][%d] genericProjectFileListInternalServerError %+v", 500, o.Payload) } + +func (o *GenericProjectFileListInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/generic-project-files][%d] genericProjectFileListInternalServerError %+v", 500, o.Payload) +} + func (o *GenericProjectFileListInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/generic_project_file_show_parameters.go b/go/client/operations/generic_project_file_show_parameters.go index 03e5619..63bb40b 100644 --- a/go/client/operations/generic_project_file_show_parameters.go +++ b/go/client/operations/generic_project_file_show_parameters.go @@ -52,10 +52,12 @@ func NewGenericProjectFileShowParamsWithHTTPClient(client *http.Client) *Generic } } -/* GenericProjectFileShowParams contains all the parameters to send to the API endpoint - for the generic project file show operation. +/* +GenericProjectFileShowParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the generic project file show operation. + + Typically these are written to a http.Request. */ type GenericProjectFileShowParams struct { diff --git a/go/client/operations/generic_project_file_show_responses.go b/go/client/operations/generic_project_file_show_responses.go index 0dc34e7..8207b17 100644 --- a/go/client/operations/generic_project_file_show_responses.go +++ b/go/client/operations/generic_project_file_show_responses.go @@ -63,7 +63,8 @@ func NewGenericProjectFileShowOK() *GenericProjectFileShowOK { return &GenericProjectFileShowOK{} } -/* GenericProjectFileShowOK describes a response with status code 200, with default header values. +/* +GenericProjectFileShowOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type GenericProjectFileShowOK struct { Payload *models.V0ProjectFileStorageResponseModel } +// IsSuccess returns true when this generic project file show o k response has a 2xx status code +func (o *GenericProjectFileShowOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this generic project file show o k response has a 3xx status code +func (o *GenericProjectFileShowOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file show o k response has a 4xx status code +func (o *GenericProjectFileShowOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this generic project file show o k response has a 5xx status code +func (o *GenericProjectFileShowOK) IsServerError() bool { + return false +} + +// IsCode returns true when this generic project file show o k response a status code equal to that given +func (o *GenericProjectFileShowOK) IsCode(code int) bool { + return code == 200 +} + func (o *GenericProjectFileShowOK) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileShowOK %+v", 200, o.Payload) } + +func (o *GenericProjectFileShowOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileShowOK %+v", 200, o.Payload) +} + func (o *GenericProjectFileShowOK) GetPayload() *models.V0ProjectFileStorageResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewGenericProjectFileShowBadRequest() *GenericProjectFileShowBadRequest { return &GenericProjectFileShowBadRequest{} } -/* GenericProjectFileShowBadRequest describes a response with status code 400, with default header values. +/* +GenericProjectFileShowBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type GenericProjectFileShowBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this generic project file show bad request response has a 2xx status code +func (o *GenericProjectFileShowBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this generic project file show bad request response has a 3xx status code +func (o *GenericProjectFileShowBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file show bad request response has a 4xx status code +func (o *GenericProjectFileShowBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this generic project file show bad request response has a 5xx status code +func (o *GenericProjectFileShowBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this generic project file show bad request response a status code equal to that given +func (o *GenericProjectFileShowBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *GenericProjectFileShowBadRequest) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileShowBadRequest %+v", 400, o.Payload) } + +func (o *GenericProjectFileShowBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileShowBadRequest %+v", 400, o.Payload) +} + func (o *GenericProjectFileShowBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewGenericProjectFileShowUnauthorized() *GenericProjectFileShowUnauthorized return &GenericProjectFileShowUnauthorized{} } -/* GenericProjectFileShowUnauthorized describes a response with status code 401, with default header values. +/* +GenericProjectFileShowUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type GenericProjectFileShowUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this generic project file show unauthorized response has a 2xx status code +func (o *GenericProjectFileShowUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this generic project file show unauthorized response has a 3xx status code +func (o *GenericProjectFileShowUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file show unauthorized response has a 4xx status code +func (o *GenericProjectFileShowUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this generic project file show unauthorized response has a 5xx status code +func (o *GenericProjectFileShowUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this generic project file show unauthorized response a status code equal to that given +func (o *GenericProjectFileShowUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *GenericProjectFileShowUnauthorized) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileShowUnauthorized %+v", 401, o.Payload) } + +func (o *GenericProjectFileShowUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileShowUnauthorized %+v", 401, o.Payload) +} + func (o *GenericProjectFileShowUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewGenericProjectFileShowNotFound() *GenericProjectFileShowNotFound { return &GenericProjectFileShowNotFound{} } -/* GenericProjectFileShowNotFound describes a response with status code 404, with default header values. +/* +GenericProjectFileShowNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type GenericProjectFileShowNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this generic project file show not found response has a 2xx status code +func (o *GenericProjectFileShowNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this generic project file show not found response has a 3xx status code +func (o *GenericProjectFileShowNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file show not found response has a 4xx status code +func (o *GenericProjectFileShowNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this generic project file show not found response has a 5xx status code +func (o *GenericProjectFileShowNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this generic project file show not found response a status code equal to that given +func (o *GenericProjectFileShowNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *GenericProjectFileShowNotFound) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileShowNotFound %+v", 404, o.Payload) } + +func (o *GenericProjectFileShowNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileShowNotFound %+v", 404, o.Payload) +} + func (o *GenericProjectFileShowNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewGenericProjectFileShowInternalServerError() *GenericProjectFileShowInter return &GenericProjectFileShowInternalServerError{} } -/* GenericProjectFileShowInternalServerError describes a response with status code 500, with default header values. +/* +GenericProjectFileShowInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type GenericProjectFileShowInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this generic project file show internal server error response has a 2xx status code +func (o *GenericProjectFileShowInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this generic project file show internal server error response has a 3xx status code +func (o *GenericProjectFileShowInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file show internal server error response has a 4xx status code +func (o *GenericProjectFileShowInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this generic project file show internal server error response has a 5xx status code +func (o *GenericProjectFileShowInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this generic project file show internal server error response a status code equal to that given +func (o *GenericProjectFileShowInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *GenericProjectFileShowInternalServerError) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileShowInternalServerError %+v", 500, o.Payload) } + +func (o *GenericProjectFileShowInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileShowInternalServerError %+v", 500, o.Payload) +} + func (o *GenericProjectFileShowInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/generic_project_file_update_parameters.go b/go/client/operations/generic_project_file_update_parameters.go index 541651f..47fa127 100644 --- a/go/client/operations/generic_project_file_update_parameters.go +++ b/go/client/operations/generic_project_file_update_parameters.go @@ -54,10 +54,12 @@ func NewGenericProjectFileUpdateParamsWithHTTPClient(client *http.Client) *Gener } } -/* GenericProjectFileUpdateParams contains all the parameters to send to the API endpoint - for the generic project file update operation. +/* +GenericProjectFileUpdateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the generic project file update operation. + + Typically these are written to a http.Request. */ type GenericProjectFileUpdateParams struct { diff --git a/go/client/operations/generic_project_file_update_responses.go b/go/client/operations/generic_project_file_update_responses.go index 3001c9f..983e48b 100644 --- a/go/client/operations/generic_project_file_update_responses.go +++ b/go/client/operations/generic_project_file_update_responses.go @@ -63,7 +63,8 @@ func NewGenericProjectFileUpdateOK() *GenericProjectFileUpdateOK { return &GenericProjectFileUpdateOK{} } -/* GenericProjectFileUpdateOK describes a response with status code 200, with default header values. +/* +GenericProjectFileUpdateOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type GenericProjectFileUpdateOK struct { Payload *models.V0ProjectFileStorageResponseModel } +// IsSuccess returns true when this generic project file update o k response has a 2xx status code +func (o *GenericProjectFileUpdateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this generic project file update o k response has a 3xx status code +func (o *GenericProjectFileUpdateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file update o k response has a 4xx status code +func (o *GenericProjectFileUpdateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this generic project file update o k response has a 5xx status code +func (o *GenericProjectFileUpdateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this generic project file update o k response a status code equal to that given +func (o *GenericProjectFileUpdateOK) IsCode(code int) bool { + return code == 200 +} + func (o *GenericProjectFileUpdateOK) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileUpdateOK %+v", 200, o.Payload) } + +func (o *GenericProjectFileUpdateOK) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileUpdateOK %+v", 200, o.Payload) +} + func (o *GenericProjectFileUpdateOK) GetPayload() *models.V0ProjectFileStorageResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewGenericProjectFileUpdateBadRequest() *GenericProjectFileUpdateBadRequest return &GenericProjectFileUpdateBadRequest{} } -/* GenericProjectFileUpdateBadRequest describes a response with status code 400, with default header values. +/* +GenericProjectFileUpdateBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type GenericProjectFileUpdateBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this generic project file update bad request response has a 2xx status code +func (o *GenericProjectFileUpdateBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this generic project file update bad request response has a 3xx status code +func (o *GenericProjectFileUpdateBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file update bad request response has a 4xx status code +func (o *GenericProjectFileUpdateBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this generic project file update bad request response has a 5xx status code +func (o *GenericProjectFileUpdateBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this generic project file update bad request response a status code equal to that given +func (o *GenericProjectFileUpdateBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *GenericProjectFileUpdateBadRequest) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileUpdateBadRequest %+v", 400, o.Payload) } + +func (o *GenericProjectFileUpdateBadRequest) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileUpdateBadRequest %+v", 400, o.Payload) +} + func (o *GenericProjectFileUpdateBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewGenericProjectFileUpdateUnauthorized() *GenericProjectFileUpdateUnauthor return &GenericProjectFileUpdateUnauthorized{} } -/* GenericProjectFileUpdateUnauthorized describes a response with status code 401, with default header values. +/* +GenericProjectFileUpdateUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type GenericProjectFileUpdateUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this generic project file update unauthorized response has a 2xx status code +func (o *GenericProjectFileUpdateUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this generic project file update unauthorized response has a 3xx status code +func (o *GenericProjectFileUpdateUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file update unauthorized response has a 4xx status code +func (o *GenericProjectFileUpdateUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this generic project file update unauthorized response has a 5xx status code +func (o *GenericProjectFileUpdateUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this generic project file update unauthorized response a status code equal to that given +func (o *GenericProjectFileUpdateUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *GenericProjectFileUpdateUnauthorized) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileUpdateUnauthorized %+v", 401, o.Payload) } + +func (o *GenericProjectFileUpdateUnauthorized) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileUpdateUnauthorized %+v", 401, o.Payload) +} + func (o *GenericProjectFileUpdateUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewGenericProjectFileUpdateNotFound() *GenericProjectFileUpdateNotFound { return &GenericProjectFileUpdateNotFound{} } -/* GenericProjectFileUpdateNotFound describes a response with status code 404, with default header values. +/* +GenericProjectFileUpdateNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type GenericProjectFileUpdateNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this generic project file update not found response has a 2xx status code +func (o *GenericProjectFileUpdateNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this generic project file update not found response has a 3xx status code +func (o *GenericProjectFileUpdateNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file update not found response has a 4xx status code +func (o *GenericProjectFileUpdateNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this generic project file update not found response has a 5xx status code +func (o *GenericProjectFileUpdateNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this generic project file update not found response a status code equal to that given +func (o *GenericProjectFileUpdateNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *GenericProjectFileUpdateNotFound) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileUpdateNotFound %+v", 404, o.Payload) } + +func (o *GenericProjectFileUpdateNotFound) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileUpdateNotFound %+v", 404, o.Payload) +} + func (o *GenericProjectFileUpdateNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewGenericProjectFileUpdateInternalServerError() *GenericProjectFileUpdateI return &GenericProjectFileUpdateInternalServerError{} } -/* GenericProjectFileUpdateInternalServerError describes a response with status code 500, with default header values. +/* +GenericProjectFileUpdateInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type GenericProjectFileUpdateInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this generic project file update internal server error response has a 2xx status code +func (o *GenericProjectFileUpdateInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this generic project file update internal server error response has a 3xx status code +func (o *GenericProjectFileUpdateInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project file update internal server error response has a 4xx status code +func (o *GenericProjectFileUpdateInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this generic project file update internal server error response has a 5xx status code +func (o *GenericProjectFileUpdateInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this generic project file update internal server error response a status code equal to that given +func (o *GenericProjectFileUpdateInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *GenericProjectFileUpdateInternalServerError) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileUpdateInternalServerError %+v", 500, o.Payload) } + +func (o *GenericProjectFileUpdateInternalServerError) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/generic-project-files/{generic-project-file-slug}][%d] genericProjectFileUpdateInternalServerError %+v", 500, o.Payload) +} + func (o *GenericProjectFileUpdateInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/generic_project_files_create_parameters.go b/go/client/operations/generic_project_files_create_parameters.go index 5f2b083..630b1e4 100644 --- a/go/client/operations/generic_project_files_create_parameters.go +++ b/go/client/operations/generic_project_files_create_parameters.go @@ -54,10 +54,12 @@ func NewGenericProjectFilesCreateParamsWithHTTPClient(client *http.Client) *Gene } } -/* GenericProjectFilesCreateParams contains all the parameters to send to the API endpoint - for the generic project files create operation. +/* +GenericProjectFilesCreateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the generic project files create operation. + + Typically these are written to a http.Request. */ type GenericProjectFilesCreateParams struct { diff --git a/go/client/operations/generic_project_files_create_responses.go b/go/client/operations/generic_project_files_create_responses.go index eb136de..d6ec047 100644 --- a/go/client/operations/generic_project_files_create_responses.go +++ b/go/client/operations/generic_project_files_create_responses.go @@ -63,7 +63,8 @@ func NewGenericProjectFilesCreateCreated() *GenericProjectFilesCreateCreated { return &GenericProjectFilesCreateCreated{} } -/* GenericProjectFilesCreateCreated describes a response with status code 201, with default header values. +/* +GenericProjectFilesCreateCreated describes a response with status code 201, with default header values. Created */ @@ -71,9 +72,39 @@ type GenericProjectFilesCreateCreated struct { Payload *models.V0ProjectFileStorageResponseModel } +// IsSuccess returns true when this generic project files create created response has a 2xx status code +func (o *GenericProjectFilesCreateCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this generic project files create created response has a 3xx status code +func (o *GenericProjectFilesCreateCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project files create created response has a 4xx status code +func (o *GenericProjectFilesCreateCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this generic project files create created response has a 5xx status code +func (o *GenericProjectFilesCreateCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this generic project files create created response a status code equal to that given +func (o *GenericProjectFilesCreateCreated) IsCode(code int) bool { + return code == 201 +} + func (o *GenericProjectFilesCreateCreated) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/generic-project-files][%d] genericProjectFilesCreateCreated %+v", 201, o.Payload) } + +func (o *GenericProjectFilesCreateCreated) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/generic-project-files][%d] genericProjectFilesCreateCreated %+v", 201, o.Payload) +} + func (o *GenericProjectFilesCreateCreated) GetPayload() *models.V0ProjectFileStorageResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewGenericProjectFilesCreateBadRequest() *GenericProjectFilesCreateBadReque return &GenericProjectFilesCreateBadRequest{} } -/* GenericProjectFilesCreateBadRequest describes a response with status code 400, with default header values. +/* +GenericProjectFilesCreateBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type GenericProjectFilesCreateBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this generic project files create bad request response has a 2xx status code +func (o *GenericProjectFilesCreateBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this generic project files create bad request response has a 3xx status code +func (o *GenericProjectFilesCreateBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project files create bad request response has a 4xx status code +func (o *GenericProjectFilesCreateBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this generic project files create bad request response has a 5xx status code +func (o *GenericProjectFilesCreateBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this generic project files create bad request response a status code equal to that given +func (o *GenericProjectFilesCreateBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *GenericProjectFilesCreateBadRequest) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/generic-project-files][%d] genericProjectFilesCreateBadRequest %+v", 400, o.Payload) } + +func (o *GenericProjectFilesCreateBadRequest) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/generic-project-files][%d] genericProjectFilesCreateBadRequest %+v", 400, o.Payload) +} + func (o *GenericProjectFilesCreateBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewGenericProjectFilesCreateUnauthorized() *GenericProjectFilesCreateUnauth return &GenericProjectFilesCreateUnauthorized{} } -/* GenericProjectFilesCreateUnauthorized describes a response with status code 401, with default header values. +/* +GenericProjectFilesCreateUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type GenericProjectFilesCreateUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this generic project files create unauthorized response has a 2xx status code +func (o *GenericProjectFilesCreateUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this generic project files create unauthorized response has a 3xx status code +func (o *GenericProjectFilesCreateUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project files create unauthorized response has a 4xx status code +func (o *GenericProjectFilesCreateUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this generic project files create unauthorized response has a 5xx status code +func (o *GenericProjectFilesCreateUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this generic project files create unauthorized response a status code equal to that given +func (o *GenericProjectFilesCreateUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *GenericProjectFilesCreateUnauthorized) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/generic-project-files][%d] genericProjectFilesCreateUnauthorized %+v", 401, o.Payload) } + +func (o *GenericProjectFilesCreateUnauthorized) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/generic-project-files][%d] genericProjectFilesCreateUnauthorized %+v", 401, o.Payload) +} + func (o *GenericProjectFilesCreateUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewGenericProjectFilesCreateNotFound() *GenericProjectFilesCreateNotFound { return &GenericProjectFilesCreateNotFound{} } -/* GenericProjectFilesCreateNotFound describes a response with status code 404, with default header values. +/* +GenericProjectFilesCreateNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type GenericProjectFilesCreateNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this generic project files create not found response has a 2xx status code +func (o *GenericProjectFilesCreateNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this generic project files create not found response has a 3xx status code +func (o *GenericProjectFilesCreateNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project files create not found response has a 4xx status code +func (o *GenericProjectFilesCreateNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this generic project files create not found response has a 5xx status code +func (o *GenericProjectFilesCreateNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this generic project files create not found response a status code equal to that given +func (o *GenericProjectFilesCreateNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *GenericProjectFilesCreateNotFound) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/generic-project-files][%d] genericProjectFilesCreateNotFound %+v", 404, o.Payload) } + +func (o *GenericProjectFilesCreateNotFound) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/generic-project-files][%d] genericProjectFilesCreateNotFound %+v", 404, o.Payload) +} + func (o *GenericProjectFilesCreateNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewGenericProjectFilesCreateInternalServerError() *GenericProjectFilesCreat return &GenericProjectFilesCreateInternalServerError{} } -/* GenericProjectFilesCreateInternalServerError describes a response with status code 500, with default header values. +/* +GenericProjectFilesCreateInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type GenericProjectFilesCreateInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this generic project files create internal server error response has a 2xx status code +func (o *GenericProjectFilesCreateInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this generic project files create internal server error response has a 3xx status code +func (o *GenericProjectFilesCreateInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this generic project files create internal server error response has a 4xx status code +func (o *GenericProjectFilesCreateInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this generic project files create internal server error response has a 5xx status code +func (o *GenericProjectFilesCreateInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this generic project files create internal server error response a status code equal to that given +func (o *GenericProjectFilesCreateInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *GenericProjectFilesCreateInternalServerError) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/generic-project-files][%d] genericProjectFilesCreateInternalServerError %+v", 500, o.Payload) } + +func (o *GenericProjectFilesCreateInternalServerError) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/generic-project-files][%d] genericProjectFilesCreateInternalServerError %+v", 500, o.Payload) +} + func (o *GenericProjectFilesCreateInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/operations_client.go b/go/client/operations/operations_client.go index c90cf32..dd1aa52 100644 --- a/go/client/operations/operations_client.go +++ b/go/client/operations/operations_client.go @@ -38,12 +38,16 @@ type ClientService interface { AddonListByUser(params *AddonListByUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddonListByUserOK, error) - AddonsList(params *AddonsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddonsListOK, error) + AddonsList(params *AddonsListParams, opts ...ClientOption) (*AddonsListOK, error) - AddonsShow(params *AddonsShowParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddonsShowOK, error) + AddonsShow(params *AddonsShowParams, opts ...ClientOption) (*AddonsShowOK, error) + + AndroidKeystoreFileConfirm(params *AndroidKeystoreFileConfirmParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AndroidKeystoreFileConfirmOK, error) AndroidKeystoreFileCreate(params *AndroidKeystoreFileCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AndroidKeystoreFileCreateCreated, error) + AndroidKeystoreFileDelete(params *AndroidKeystoreFileDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AndroidKeystoreFileDeleteOK, error) + AndroidKeystoreFileList(params *AndroidKeystoreFileListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AndroidKeystoreFileListOK, error) AppConfigCreate(params *AppConfigCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AppConfigCreateOK, error) @@ -62,10 +66,14 @@ type ClientService interface { AppShow(params *AppShowParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AppShowOK, error) + AppUpdate(params *AppUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AppUpdateOK, error) + AppWebhookCreate(params *AppWebhookCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AppWebhookCreateOK, error) AppleAPICredentialList(params *AppleAPICredentialListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AppleAPICredentialListOK, error) + ArchivedBuildsList(params *ArchivedBuildsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ArchivedBuildsListOK, error) + ArtifactDelete(params *ArtifactDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ArtifactDeleteOK, error) ArtifactList(params *ArtifactListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ArtifactListOK, error) @@ -102,7 +110,7 @@ type ClientService interface { BuildListAll(params *BuildListAllParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BuildListAllOK, error) - BuildLog(params *BuildLogParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BuildLogOK, error) + BuildLog(params *BuildLogParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error BuildRequestList(params *BuildRequestListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BuildRequestListOK, error) @@ -114,6 +122,14 @@ type ClientService interface { BuildWorkflowList(params *BuildWorkflowListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BuildWorkflowListOK, error) + CacheItemDelete(params *CacheItemDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CacheItemDeleteOK, error) + + CacheItemDeleteAll(params *CacheItemDeleteAllParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CacheItemDeleteAllOK, error) + + CacheItemDownload(params *CacheItemDownloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CacheItemDownloadOK, error) + + CacheList(params *CacheListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CacheListOK, error) + GenericProjectFileConfirm(params *GenericProjectFileConfirmParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GenericProjectFileConfirmOK, error) GenericProjectFileDelete(params *GenericProjectFileDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GenericProjectFileDeleteOK, error) @@ -138,6 +154,16 @@ type ClientService interface { OutgoingWebhookUpdate(params *OutgoingWebhookUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OutgoingWebhookUpdateOK, error) + PipelineAbort(params *PipelineAbortParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PipelineAbortOK, error) + + PipelineList(params *PipelineListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PipelineListOK, error) + + PipelineListAll(params *PipelineListAllParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PipelineListAllOK, error) + + PipelineRebuild(params *PipelineRebuildParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PipelineRebuildOK, error) + + PipelineShow(params *PipelineShowParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PipelineShowOK, error) + ProvisioningProfileConfirm(params *ProvisioningProfileConfirmParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ProvisioningProfileConfirmOK, error) ProvisioningProfileCreate(params *ProvisioningProfileCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ProvisioningProfileCreateCreated, error) @@ -150,10 +176,22 @@ type ClientService interface { ProvisioningProfileUpdate(params *ProvisioningProfileUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ProvisioningProfileUpdateOK, error) + SecretDelete(params *SecretDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecretDeleteNoContent, error) + + SecretList(params *SecretListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecretListOK, error) + + SecretUpsert(params *SecretUpsertParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecretUpsertCreated, error) + + SecretValueGet(params *SecretValueGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecretValueGetOK, error) + SSHKeyCreate(params *SSHKeyCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SSHKeyCreateOK, error) TestDeviceList(params *TestDeviceListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TestDeviceListOK, error) + UserAddonTokens(params *UserAddonTokensParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UserAddonTokensOK, error) + + UserAddonTokensDelete(params *UserAddonTokensDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UserAddonTokensDeleteOK, error) + UserPlan(params *UserPlanParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UserPlanOK, error) UserProfile(params *UserProfileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UserProfileOK, error) @@ -170,9 +208,9 @@ type ClientService interface { } /* - ActivityList gets list of bitrise activity events +ActivityList gets list of bitrise activity events - List all the Bitrise activity events +List all the Bitrise activity events */ func (a *Client) ActivityList(params *ActivityListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ActivityListOK, error) { // TODO: Validate the params before sending @@ -211,9 +249,9 @@ func (a *Client) ActivityList(params *ActivityListParams, authInfo runtime.Clien } /* - AddonListByApp gets list of the addons for apps +AddonListByApp gets list of the addons for apps - List all the provisioned addons for the authorized apps +List all the provisioned addons for the authorized apps */ func (a *Client) AddonListByApp(params *AddonListByAppParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddonListByAppOK, error) { // TODO: Validate the params before sending @@ -252,9 +290,9 @@ func (a *Client) AddonListByApp(params *AddonListByAppParams, authInfo runtime.C } /* - AddonListByOrganization gets list of the addons for organization +AddonListByOrganization gets list of the addons for organization - List all the provisioned addons for organization +List all the provisioned addons for organization */ func (a *Client) AddonListByOrganization(params *AddonListByOrganizationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddonListByOrganizationOK, error) { // TODO: Validate the params before sending @@ -293,9 +331,9 @@ func (a *Client) AddonListByOrganization(params *AddonListByOrganizationParams, } /* - AddonListByUser gets list of the addons for user +AddonListByUser gets list of the addons for user - List all the provisioned addons for the authenticated user +List all the provisioned addons for the authenticated user */ func (a *Client) AddonListByUser(params *AddonListByUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddonListByUserOK, error) { // TODO: Validate the params before sending @@ -334,11 +372,11 @@ func (a *Client) AddonListByUser(params *AddonListByUserParams, authInfo runtime } /* - AddonsList gets list of available bitrise addons +AddonsList gets list of available bitrise addons - List all the available Bitrise addons +List all the available Bitrise addons */ -func (a *Client) AddonsList(params *AddonsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddonsListOK, error) { +func (a *Client) AddonsList(params *AddonsListParams, opts ...ClientOption) (*AddonsListOK, error) { // TODO: Validate the params before sending if params == nil { params = NewAddonsListParams() @@ -352,7 +390,6 @@ func (a *Client) AddonsList(params *AddonsListParams, authInfo runtime.ClientAut Schemes: []string{"https"}, Params: params, Reader: &AddonsListReader{formats: a.formats}, - AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, } @@ -375,11 +412,11 @@ func (a *Client) AddonsList(params *AddonsListParams, authInfo runtime.ClientAut } /* - AddonsShow gets a specific bitrise addon +AddonsShow gets a specific bitrise addon - Show details of a specific Bitrise addon +Show details of a specific Bitrise addon */ -func (a *Client) AddonsShow(params *AddonsShowParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddonsShowOK, error) { +func (a *Client) AddonsShow(params *AddonsShowParams, opts ...ClientOption) (*AddonsShowOK, error) { // TODO: Validate the params before sending if params == nil { params = NewAddonsShowParams() @@ -393,7 +430,6 @@ func (a *Client) AddonsShow(params *AddonsShowParams, authInfo runtime.ClientAut Schemes: []string{"https"}, Params: params, Reader: &AddonsShowReader{formats: a.formats}, - AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, } @@ -416,9 +452,50 @@ func (a *Client) AddonsShow(params *AddonsShowParams, authInfo runtime.ClientAut } /* - AndroidKeystoreFileCreate creates an android keystore file +AndroidKeystoreFileConfirm confirms an android keystore file upload + +This is the last step of uploading an android keystore file to Bitrise. Confirm the android keystore file upload and view the file on the Code Signing tab of a specific app. Read more in our [Confirming the upload](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#confirming-the-file-upload) guide. +*/ +func (a *Client) AndroidKeystoreFileConfirm(params *AndroidKeystoreFileConfirmParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AndroidKeystoreFileConfirmOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewAndroidKeystoreFileConfirmParams() + } + op := &runtime.ClientOperation{ + ID: "android-keystore-file-confirm", + Method: "POST", + PathPattern: "/apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &AndroidKeystoreFileConfirmReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*AndroidKeystoreFileConfirmOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for android-keystore-file-confirm: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +AndroidKeystoreFileCreate creates an android keystore file - Add a new Android keystore file to an app +Add a new Android keystore file to an app */ func (a *Client) AndroidKeystoreFileCreate(params *AndroidKeystoreFileCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AndroidKeystoreFileCreateCreated, error) { // TODO: Validate the params before sending @@ -457,9 +534,50 @@ func (a *Client) AndroidKeystoreFileCreate(params *AndroidKeystoreFileCreatePara } /* - AndroidKeystoreFileList gets a list of the android keystore files +AndroidKeystoreFileDelete deletes an android keystore file + +Delete an app's android keystore file. You can fetch an app's android keystore file slug if you first list all the uploaded files with the [GET /apps/{app-slug}/android-keystore-files](https://api-docs.bitrise.io/#/android-keystore-file/android-keystore-file-list) endpoint. Read more in our [Deleting a file](https://devcenter.bitrise.io/api/managing-android-keystore-files.html) guide. +*/ +func (a *Client) AndroidKeystoreFileDelete(params *AndroidKeystoreFileDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AndroidKeystoreFileDeleteOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewAndroidKeystoreFileDeleteParams() + } + op := &runtime.ClientOperation{ + ID: "android-keystore-file-delete", + Method: "DELETE", + PathPattern: "/apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &AndroidKeystoreFileDeleteReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*AndroidKeystoreFileDeleteOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for android-keystore-file-delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +AndroidKeystoreFileList gets a list of the android keystore files - List all the android keystore files that have been uploaded to a specific app. +List all the android keystore files that have been uploaded to a specific app. */ func (a *Client) AndroidKeystoreFileList(params *AndroidKeystoreFileListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AndroidKeystoreFileListOK, error) { // TODO: Validate the params before sending @@ -498,9 +616,9 @@ func (a *Client) AndroidKeystoreFileList(params *AndroidKeystoreFileListParams, } /* - AppConfigCreate uploads a new bitrise yml for your application +AppConfigCreate uploads a new bitrise yml for your application - Upload a new bitrise.yml for your application. +Upload a new bitrise.yml for your application. */ func (a *Client) AppConfigCreate(params *AppConfigCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AppConfigCreateOK, error) { // TODO: Validate the params before sending @@ -539,9 +657,9 @@ func (a *Client) AppConfigCreate(params *AppConfigCreateParams, authInfo runtime } /* - AppConfigDatastoreShow gets bitrise yml of a specific app +AppConfigDatastoreShow gets bitrise yml of a specific app - Get the full `bitrise.yml` configuration of an application, by providing the app slug. It returns the current `bitrise.yml` that is stored on bitrise.io in full, including the trigger map, the different workflows and the Steps. +Get the full `bitrise.yml` configuration of an application, by providing the app slug. It returns the current `bitrise.yml` that is stored on bitrise.io in full, including the trigger map, the different workflows and the Steps. */ func (a *Client) AppConfigDatastoreShow(params *AppConfigDatastoreShowParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AppConfigDatastoreShowOK, error) { // TODO: Validate the params before sending @@ -580,9 +698,9 @@ func (a *Client) AppConfigDatastoreShow(params *AppConfigDatastoreShowParams, au } /* - AppCreate adds a new app +AppCreate adds a new app - Add a new app to Bitrise. This is the first step of the app registration process. To successfully set it up, you need to provide the required app parameters: your git provider, the repository URL, the slug of the repository as it appears at the provider, and the slug of the owner of the repository. Read more about the app creation process in our [detailed guide](https://devcenter.bitrise.io/api/adding-and-managing-apps/#adding-a-new-app). +Add a new app to Bitrise. This is the first step of the app registration process. To successfully set it up, you need to provide the required app parameters: your git provider, the repository URL, the slug of the repository as it appears at the provider, and the slug of the owner of the repository. Read more about the app creation process in our [detailed guide](https://devcenter.bitrise.io/api/adding-and-managing-apps/#adding-a-new-app). */ func (a *Client) AppCreate(params *AppCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AppCreateOK, error) { // TODO: Validate the params before sending @@ -621,9 +739,9 @@ func (a *Client) AppCreate(params *AppCreateParams, authInfo runtime.ClientAuthI } /* - AppFinish saves the application at the end of the app registration process +AppFinish saves the application at the end of the app registration process - Save the application after registering it on Bitrise and registering an SSH key (and, optionally, adding a webhook). With this endpoint you can define the initial configuration, define application-level environment variables, determine the project type, and set an Organization to be the owner of the app. Read more about the app registration process in our [detailed guide](https://devcenter.bitrise.io/api/adding-and-managing-apps/#adding-a-new-app). +Save the application after registering it on Bitrise and registering an SSH key (and, optionally, adding a webhook). With this endpoint you can define the initial configuration, define application-level environment variables, determine the project type, and set an Organization to be the owner of the app. Read more about the app registration process in our [detailed guide](https://devcenter.bitrise.io/api/adding-and-managing-apps/#adding-a-new-app). */ func (a *Client) AppFinish(params *AppFinishParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AppFinishOK, error) { // TODO: Validate the params before sending @@ -662,9 +780,9 @@ func (a *Client) AppFinish(params *AppFinishParams, authInfo runtime.ClientAuthI } /* - AppList gets list of the apps +AppList gets list of the apps - List all the apps available for the authenticated account, including those that are owned by other users or Organizations. +List all the apps available for the authenticated account, including those that are owned by other users or Organizations. */ func (a *Client) AppList(params *AppListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AppListOK, error) { // TODO: Validate the params before sending @@ -703,9 +821,9 @@ func (a *Client) AppList(params *AppListParams, authInfo runtime.ClientAuthInfoW } /* - AppListByOrganization gets list of the apps for an organization +AppListByOrganization gets list of the apps for an organization - List all the available apps owned by a given organization. [Find the organization URL](https://devcenter.bitrise.io/team-management/organizations/org-url/) of the organisations you are part of; be aware that the endpoint will not return any apps if the authenticated account is not a member of the given organisation. +List all the available apps owned by a given organization. [Find the organization URL](https://devcenter.bitrise.io/team-management/organizations/org-url/) of the organisations you are part of; be aware that the endpoint will not return any apps if the authenticated account is not a member of the given organisation. */ func (a *Client) AppListByOrganization(params *AppListByOrganizationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AppListByOrganizationOK, error) { // TODO: Validate the params before sending @@ -744,9 +862,9 @@ func (a *Client) AppListByOrganization(params *AppListByOrganizationParams, auth } /* - AppListByUser gets list of the apps for a user +AppListByUser gets list of the apps for a user - List all the available apps for the given user. It needs the user slug that you can get from the [GET /me](https://api-docs.bitrise.io/#/user/user-profile) endpoint. +List all the available apps for the given user. It needs the user slug that you can get from the [GET /me](https://api-docs.bitrise.io/#/user/user-profile) endpoint. */ func (a *Client) AppListByUser(params *AppListByUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AppListByUserOK, error) { // TODO: Validate the params before sending @@ -785,9 +903,9 @@ func (a *Client) AppListByUser(params *AppListByUserParams, authInfo runtime.Cli } /* - AppShow gets a specific app +AppShow gets a specific app - Get the details of a specific app by providing the app slug. You can get the app slug by calling the [/apps](https://api-docs.bitrise.io/#/application/app-list) endpoint or by opening the app on bitrise.io and copying the slug from the URL. +Get the details of a specific app by providing the app slug. You can get the app slug by calling the [/apps](https://api-docs.bitrise.io/#/application/app-list) endpoint or by opening the app on bitrise.io and copying the slug from the URL. */ func (a *Client) AppShow(params *AppShowParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AppShowOK, error) { // TODO: Validate the params before sending @@ -826,9 +944,50 @@ func (a *Client) AppShow(params *AppShowParams, authInfo runtime.ClientAuthInfoW } /* - AppWebhookCreate registers an incoming webhook for a specific application +AppUpdate updates an app + +Updates an app by slug. Only updates the fields specified in the body. +*/ +func (a *Client) AppUpdate(params *AppUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AppUpdateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewAppUpdateParams() + } + op := &runtime.ClientOperation{ + ID: "app-update", + Method: "PATCH", + PathPattern: "/apps/{app-slug}", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &AppUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*AppUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for app-update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +AppWebhookCreate registers an incoming webhook for a specific application - [Register an incoming webhook](https://devcenter.bitrise.io/api/incoming-and-outgoing-webhooks/#incoming-webhooks) for a specific application. You can do this during the app registration process or at any other time in an app's life. When calling this endpoint, a webhook is registered at your git provider: this is necessary to automatically trigger builds on Bitrise. +[Register an incoming webhook](https://devcenter.bitrise.io/api/incoming-and-outgoing-webhooks/#incoming-webhooks) for a specific application. You can do this during the app registration process or at any other time in an app's life. When calling this endpoint, a webhook is registered at your git provider: this is necessary to automatically trigger builds on Bitrise. */ func (a *Client) AppWebhookCreate(params *AppWebhookCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AppWebhookCreateOK, error) { // TODO: Validate the params before sending @@ -867,9 +1026,9 @@ func (a *Client) AppWebhookCreate(params *AppWebhookCreateParams, authInfo runti } /* - AppleAPICredentialList lists apple API credentials for a specific user +AppleAPICredentialList lists apple API credentials for a specific user - List Apple API credentials for a specific Bitrise user +List Apple API credentials for a specific Bitrise user */ func (a *Client) AppleAPICredentialList(params *AppleAPICredentialListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AppleAPICredentialListOK, error) { // TODO: Validate the params before sending @@ -908,9 +1067,50 @@ func (a *Client) AppleAPICredentialList(params *AppleAPICredentialListParams, au } /* - ArtifactDelete deletes a build artifact +ArchivedBuildsList lists 1000 archived builds of an app + +List the first 1000 archived builds of a specified Bitrise app. Set parameters to filter builds: +*/ +func (a *Client) ArchivedBuildsList(params *ArchivedBuildsListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ArchivedBuildsListOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewArchivedBuildsListParams() + } + op := &runtime.ClientOperation{ + ID: "archived-builds-list", + Method: "GET", + PathPattern: "/apps/{app-slug}/archived-builds", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &ArchivedBuildsListReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*ArchivedBuildsListOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for archived-builds-list: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +ArtifactDelete deletes a build artifact - Delete a build artifact of an app's build. The required parameters are app slug, build slug and artifact slug. You can fetch the build artifact slug if you first list all build artifacts of an app with the [/apps/](https://api-docs.bitrise.io/#/build-artifact/artifact-list) endpoint. +Delete a build artifact of an app's build. The required parameters are app slug, build slug and artifact slug. You can fetch the build artifact slug if you first list all build artifacts of an app with the [/apps/](https://api-docs.bitrise.io/#/build-artifact/artifact-list) endpoint. */ func (a *Client) ArtifactDelete(params *ArtifactDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ArtifactDeleteOK, error) { // TODO: Validate the params before sending @@ -949,9 +1149,9 @@ func (a *Client) ArtifactDelete(params *ArtifactDeleteParams, authInfo runtime.C } /* - ArtifactList gets a list of all build artifacts +ArtifactList gets a list of all build artifacts - List all build artifacts that have been generated for an app's build. You can use the created build artifact slugs from the response output to retrieve data of a specific build artifact with the [GET/apps/](https://api-docs.bitrise.io/#/build-artifact/artifact-show) endpoint or update a build artifact with the [PATCH/apps](https://api-docs.bitrise.io/#/build-artifact/artifact-update) endpoint. +List all build artifacts that have been generated for an app's build. This endpoint can retrieve artifacts from the archive as well. You can use the created build artifact slugs from the response output to retrieve data of a specific build artifact with the [GET/apps/](https://api-docs.bitrise.io/#/build-artifact/artifact-show) endpoint or update a build artifact with the [PATCH/apps](https://api-docs.bitrise.io/#/build-artifact/artifact-update) endpoint. */ func (a *Client) ArtifactList(params *ArtifactListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ArtifactListOK, error) { // TODO: Validate the params before sending @@ -990,9 +1190,9 @@ func (a *Client) ArtifactList(params *ArtifactListParams, authInfo runtime.Clien } /* - ArtifactShow gets a specific build artifact +ArtifactShow gets a specific build artifact - Retrieve data of a specific build artifact. The response output contains a time-limited download url (expires in 10 minutes) and a public install page URL. You can view the build artifact with both URLs, but the public install page url will not work unless you [enable it](https://devcenter.bitrise.io/tutorials/deploy/bitrise-app-deployment/#enabling-public-page-for-the-app). +Retrieve data of a specific build artifact. The endpoint can retrieve archived artifacts as well. The response output contains a time-limited download url (expires in 10 minutes) and a public install-page URL. You can view the build artifact with both URLs, but the public install-page url will not work unless you [enable it](https://devcenter.bitrise.io/tutorials/deploy/bitrise-app-deployment/#enabling-public-page-for-the-app). */ func (a *Client) ArtifactShow(params *ArtifactShowParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ArtifactShowOK, error) { // TODO: Validate the params before sending @@ -1031,9 +1231,9 @@ func (a *Client) ArtifactShow(params *ArtifactShowParams, authInfo runtime.Clien } /* - ArtifactUpdate updates a build artifact +ArtifactUpdate updates a build artifact - Update the `is_public_page_enabled` attribute of your app's build. The required parameters are app slug, build slug and artifact slug. You can fetch the build artifact slug if you first list all build artifacts of an app with the [GET /apps/](https://api-docs.bitrise.io/#/build-artifact/artifact-list) endpoint. +Update the `is_public_page_enabled` attribute of your app's build. The required parameters are app slug, build slug and artifact slug. You can fetch the build artifact slug if you first list all build artifacts of an app with the [GET /apps/](https://api-docs.bitrise.io/#/build-artifact/artifact-list) endpoint. */ func (a *Client) ArtifactUpdate(params *ArtifactUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ArtifactUpdateOK, error) { // TODO: Validate the params before sending @@ -1072,9 +1272,9 @@ func (a *Client) ArtifactUpdate(params *ArtifactUpdateParams, authInfo runtime.C } /* - AvatarCandidateCreate creates avatar candidates +AvatarCandidateCreate creates avatar candidates - Add new avatar candidates to a specific app +Add new avatar candidates to a specific app */ func (a *Client) AvatarCandidateCreate(params *AvatarCandidateCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AvatarCandidateCreateCreated, error) { // TODO: Validate the params before sending @@ -1113,9 +1313,9 @@ func (a *Client) AvatarCandidateCreate(params *AvatarCandidateCreateParams, auth } /* - AvatarCandidateList gets list of the avatar candidates +AvatarCandidateList gets list of the avatar candidates - List all available avatar candidates for an application +List all available avatar candidates for an application */ func (a *Client) AvatarCandidateList(params *AvatarCandidateListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AvatarCandidateListOK, error) { // TODO: Validate the params before sending @@ -1154,9 +1354,9 @@ func (a *Client) AvatarCandidateList(params *AvatarCandidateListParams, authInfo } /* - AvatarCandidatePromote promotes an avatar candidate +AvatarCandidatePromote promotes an avatar candidate - Promotes an avatar candidate for an app +Promotes an avatar candidate for an app */ func (a *Client) AvatarCandidatePromote(params *AvatarCandidatePromoteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AvatarCandidatePromoteOK, error) { // TODO: Validate the params before sending @@ -1195,9 +1395,9 @@ func (a *Client) AvatarCandidatePromote(params *AvatarCandidatePromoteParams, au } /* - BranchList lists the branches with existing builds of an app s repository +BranchList lists the branches with existing builds of an app s repository - Lists only those branches of a specified Bitrise app that have existing builds. +Lists only those branches of a specified Bitrise app that have existing builds. */ func (a *Client) BranchList(params *BranchListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BranchListOK, error) { // TODO: Validate the params before sending @@ -1236,9 +1436,9 @@ func (a *Client) BranchList(params *BranchListParams, authInfo runtime.ClientAut } /* - BuildAbort aborts a specific build +BuildAbort aborts a specific build - Abort a specific build. Set an abort reason with the `abort_reason` parameter. Use the `abort_with_success` parameter to abort a build but still count it as a successful one. +Abort a specific build. Set an abort reason with the `abort_reason` parameter. Use the `abort_with_success` parameter to abort a build but still count it as a successful one. */ func (a *Client) BuildAbort(params *BuildAbortParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BuildAbortOK, error) { // TODO: Validate the params before sending @@ -1277,9 +1477,9 @@ func (a *Client) BuildAbort(params *BuildAbortParams, authInfo runtime.ClientAut } /* - BuildBitriseYmlShow gets the bitrise yml of a build +BuildBitriseYmlShow gets the bitrise yml of a build - Get the bitrise.yml file of one of the builds of a given app. This will return the `bitrise.yml` configuration with which the build ran. You can compare it to [the current bitrise.yml configuration](https://api-docs.bitrise.io/#/application/app-config-datastore-show) of the app. +Get the bitrise.yml file of one of the builds of a given app. This will return the `bitrise.yml` configuration with which the build ran. You can compare it to [the current bitrise.yml configuration](https://api-docs.bitrise.io/#/application/app-config-datastore-show) of the app. */ func (a *Client) BuildBitriseYmlShow(params *BuildBitriseYmlShowParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BuildBitriseYmlShowOK, error) { // TODO: Validate the params before sending @@ -1318,9 +1518,9 @@ func (a *Client) BuildBitriseYmlShow(params *BuildBitriseYmlShowParams, authInfo } /* - BuildCertificateConfirm confirms a build certificate upload +BuildCertificateConfirm confirms a build certificate upload - This is the last step of uploading a build certificate to Bitrise. Confirm the build certificate upload and view the file on the Code Signing tab of a specific app. Read more in our [Confirming the iOS code signing file upload](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#confirming-the-ios-code-signing-file-upload) guide. +This is the last step of uploading a build certificate to Bitrise. Confirm the build certificate upload and view the file on the Code Signing tab of a specific app. Read more in our [Confirming the iOS code signing file upload](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#confirming-the-ios-code-signing-file-upload) guide. */ func (a *Client) BuildCertificateConfirm(params *BuildCertificateConfirmParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BuildCertificateConfirmOK, error) { // TODO: Validate the params before sending @@ -1359,9 +1559,9 @@ func (a *Client) BuildCertificateConfirm(params *BuildCertificateConfirmParams, } /* - BuildCertificateCreate creates a build certificate +BuildCertificateCreate creates a build certificate - Create a temporary pre-signed upload URL for the build certificate and upload the file to AWS with a simple `curl` request. To complete the uploading process and view your files on the Code Signing tab of your app, continue with the [POST /apps/{app-slug}/build-certificates/{build-certificate-slug}/uploaded](https://api-docs.bitrise.io/#/build-certificate/build-certificate-confirm) endpoint. Read more in our [Creating and uploading an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#creating--uploading-an-ios-code-signing-file) guide. +Create a temporary pre-signed upload URL for the build certificate and upload the file to AWS with a simple `curl` request. To complete the uploading process and view your files on the Code Signing tab of your app, continue with the [POST /apps/{app-slug}/build-certificates/{build-certificate-slug}/uploaded](https://api-docs.bitrise.io/#/build-certificate/build-certificate-confirm) endpoint. Read more in our [Creating and uploading an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#creating--uploading-an-ios-code-signing-file) guide. */ func (a *Client) BuildCertificateCreate(params *BuildCertificateCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BuildCertificateCreateCreated, error) { // TODO: Validate the params before sending @@ -1400,9 +1600,9 @@ func (a *Client) BuildCertificateCreate(params *BuildCertificateCreateParams, au } /* - BuildCertificateDelete deletes a build certificate +BuildCertificateDelete deletes a build certificate - Delete an app's build certificate. You can fetch the build certificate slug for this endpoint if you first call the [GET /apps/{app-slug}/build-certificates](https://api-docs.bitrise.io/#/build-certificate/build-certificate-list) endpoint to list all available build certificates of an app. Read more in our [Deleting an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#deleting-an-ios-code-signing-file) guide. +Delete an app's build certificate. You can fetch the build certificate slug for this endpoint if you first call the [GET /apps/{app-slug}/build-certificates](https://api-docs.bitrise.io/#/build-certificate/build-certificate-list) endpoint to list all available build certificates of an app. Read more in our [Deleting an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#deleting-an-ios-code-signing-file) guide. */ func (a *Client) BuildCertificateDelete(params *BuildCertificateDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BuildCertificateDeleteOK, error) { // TODO: Validate the params before sending @@ -1441,9 +1641,9 @@ func (a *Client) BuildCertificateDelete(params *BuildCertificateDeleteParams, au } /* - BuildCertificateList gets a list of the build certificates +BuildCertificateList gets a list of the build certificates - List all the build certificates that have been uploaded to a specific app. Read more in our [Listing the uploaded iOS code signing files of an app](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#listing-the-uploaded-ios-code-signing-files-of-an-app) guide. +List all the build certificates that have been uploaded to a specific app. Read more in our [Listing the uploaded iOS code signing files of an app](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#listing-the-uploaded-ios-code-signing-files-of-an-app) guide. */ func (a *Client) BuildCertificateList(params *BuildCertificateListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BuildCertificateListOK, error) { // TODO: Validate the params before sending @@ -1482,9 +1682,9 @@ func (a *Client) BuildCertificateList(params *BuildCertificateListParams, authIn } /* - BuildCertificateShow gets a specific build certificate +BuildCertificateShow gets a specific build certificate - Retrieve data of a specific build certificate. You can fetch the build certificate slug for this endpoint if you first call the [GET /apps/{app-slug}/build-certificates](https://api-docs.bitrise.io/#/build-certificate/build-certificate-list) endpoint to list all available build certificates of an app. Read more in our [Getting a specific iOS code signing file's data](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#getting-a-specific-ios-code-signing-files-data) guide. +Retrieve data of a specific build certificate. You can fetch the build certificate slug for this endpoint if you first call the [GET /apps/{app-slug}/build-certificates](https://api-docs.bitrise.io/#/build-certificate/build-certificate-list) endpoint to list all available build certificates of an app. Read more in our [Getting a specific iOS code signing file's data](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#getting-a-specific-ios-code-signing-files-data) guide. */ func (a *Client) BuildCertificateShow(params *BuildCertificateShowParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BuildCertificateShowOK, error) { // TODO: Validate the params before sending @@ -1523,9 +1723,9 @@ func (a *Client) BuildCertificateShow(params *BuildCertificateShowParams, authIn } /* - BuildCertificateUpdate updates a build certificate +BuildCertificateUpdate updates a build certificate - Update an uploaded build certificate's attributes. You can fetch the build certificate slug for this endpoint if you first call the [GET /apps/{app-slug}/build-certificates](https://api-docs.bitrise.io/#/build-certificate/build-certificate-list) endpoint. Read more in our [Updating an uploaded iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#confirming-the-ios-code-signing-file-upload) guide. +Update an uploaded build certificate's attributes. You can fetch the build certificate slug for this endpoint if you first call the [GET /apps/{app-slug}/build-certificates](https://api-docs.bitrise.io/#/build-certificate/build-certificate-list) endpoint. Read more in our [Updating an uploaded iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#confirming-the-ios-code-signing-file-upload) guide. */ func (a *Client) BuildCertificateUpdate(params *BuildCertificateUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BuildCertificateUpdateOK, error) { // TODO: Validate the params before sending @@ -1564,9 +1764,9 @@ func (a *Client) BuildCertificateUpdate(params *BuildCertificateUpdateParams, au } /* - BuildList lists all builds of an app +BuildList lists all builds of an app - List all the builds of a specified Bitrise app. Set parameters to filter builds: for example, you can search for builds run with a given workflow or all builds that were triggered by Pull Requests. It returns all the relevant data of the build. +List all the builds of a specified Bitrise app. Set parameters to filter builds: for example, you can search for builds run with a given workflow or all builds that were triggered by Pull Requests. It returns all the relevant data of the build. */ func (a *Client) BuildList(params *BuildListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BuildListOK, error) { // TODO: Validate the params before sending @@ -1605,9 +1805,9 @@ func (a *Client) BuildList(params *BuildListParams, authInfo runtime.ClientAuthI } /* - BuildListAll lists all builds +BuildListAll lists all builds - List all the Bitrise builds that can be accessed with the authenticated account. Filter builds based on their owner, using the owner slug, or the status of the build. +List all the Bitrise builds that can be accessed with the authenticated account. Filter builds based on their owner, using the owner slug, or the status of the build. */ func (a *Client) BuildListAll(params *BuildListAllParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BuildListAllOK, error) { // TODO: Validate the params before sending @@ -1646,11 +1846,11 @@ func (a *Client) BuildListAll(params *BuildListAllParams, authInfo runtime.Clien } /* - BuildLog gets the build log of a build +BuildLog gets the build log of a build - Get the build log of a specified build of a Bitrise app. You can get the build slug either by calling the [/builds](https://api-docs.bitrise.io/#/builds/build-list) endpoint or by clicking on the build on bitrise.io and copying the slug from the URL. +Get the build log of a specified build of a Bitrise app. You can get the build slug either by calling the [/builds](https://api-docs.bitrise.io/#/builds/build-list) endpoint or by clicking on the build on bitrise.io and copying the slug from the URL. Preview of the log is returned in `log_chunks` field in JSON format. You can download the full raw log in txt by using the signed url returned in `expiring_raw_log_url`. Be aware that this url is expiring in 10 minutes! */ -func (a *Client) BuildLog(params *BuildLogParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BuildLogOK, error) { +func (a *Client) BuildLog(params *BuildLogParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error { // TODO: Validate the params before sending if params == nil { params = NewBuildLogParams() @@ -1672,24 +1872,17 @@ func (a *Client) BuildLog(params *BuildLogParams, authInfo runtime.ClientAuthInf opt(op) } - result, err := a.transport.Submit(op) + _, err := a.transport.Submit(op) if err != nil { - return nil, err + return err } - success, ok := result.(*BuildLogOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for build-log: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) + return nil } /* - BuildRequestList lists the open build requests for an app +BuildRequestList lists the open build requests for an app - List the existing open build requests of a specified Bitrise app +List the existing open build requests of a specified Bitrise app */ func (a *Client) BuildRequestList(params *BuildRequestListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BuildRequestListOK, error) { // TODO: Validate the params before sending @@ -1728,9 +1921,9 @@ func (a *Client) BuildRequestList(params *BuildRequestListParams, authInfo runti } /* - BuildRequestUpdate updates a build request +BuildRequestUpdate updates a build request - Update a specific build request of a specific app +Update a specific build request of a specific app */ func (a *Client) BuildRequestUpdate(params *BuildRequestUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BuildRequestUpdateOK, error) { // TODO: Validate the params before sending @@ -1769,9 +1962,9 @@ func (a *Client) BuildRequestUpdate(params *BuildRequestUpdateParams, authInfo r } /* - BuildShow gets a build of a given app +BuildShow gets a build of a given app - Get the specified build of a given Bitrise app. You need to provide both an app slug and a build slug. You can get the build slug either by calling the [/builds](https://api-docs.bitrise.io/#/builds/build-list) endpoint or by clicking on the build on bitrise.io and copying the slug from the URL. The endpoint returns all the relevant data of the build. +Get the specified build of a given Bitrise app. You need to provide both an app slug and a build slug. You can get the build slug either by calling the [/builds](https://api-docs.bitrise.io/#/builds/build-list) endpoint or by clicking on the build on bitrise.io and copying the slug from the URL. The endpoint returns all the relevant data of the build. */ func (a *Client) BuildShow(params *BuildShowParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BuildShowOK, error) { // TODO: Validate the params before sending @@ -1810,9 +2003,9 @@ func (a *Client) BuildShow(params *BuildShowParams, authInfo runtime.ClientAuthI } /* - BuildTrigger triggers a new build +BuildTrigger triggers a new build pipeline - Trigger a new build. Specify an app slug and at least one parameter out of three: a git tag or git commit hash, a branch, or a workflow ID. You can also set specific parameters for Pull Request builds and define additional environment variables for your build. [Check out our detailed guide](https://devcenter.bitrise.io/api/build-trigger/). +Trigger a new build/pipeline. Specify an app slug and at least one parameter out of three: a git tag or git commit hash, a branch, or a workflow/pipeline ID. You can also set specific parameters for Pull Request builds/pipelines and define additional environment variables for your build/pipeline. [Check out our detailed guide](https://devcenter.bitrise.io/api/build-trigger/). */ func (a *Client) BuildTrigger(params *BuildTriggerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BuildTriggerCreated, error) { // TODO: Validate the params before sending @@ -1851,9 +2044,9 @@ func (a *Client) BuildTrigger(params *BuildTriggerParams, authInfo runtime.Clien } /* - BuildWorkflowList lists the workflows of an app +BuildWorkflowList lists the workflows of an app - List the workflows that were triggered at any time for a given Bitrise app. Note that it might list workflows that are currently not defined in the app's `bitrise.yml` configuration - and conversely, workflows that were never triggered will not be listed even if they are defined in the `bitrise.yml` file. +List the workflows that were triggered at any time for a given Bitrise app. Note that it might list workflows that are currently not defined in the app's `bitrise.yml` configuration - and conversely, workflows that were never triggered will not be listed even if they are defined in the `bitrise.yml` file. */ func (a *Client) BuildWorkflowList(params *BuildWorkflowListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BuildWorkflowListOK, error) { // TODO: Validate the params before sending @@ -1892,24 +2085,24 @@ func (a *Client) BuildWorkflowList(params *BuildWorkflowListParams, authInfo run } /* - GenericProjectFileConfirm confirms a generic project file upload +CacheItemDelete deletes a key value cache item - This is the last step of uploading a generic project file to Bitrise. Confirm the generic project file upload and view the file on the Code Signing tab of a specific app. Read more in our [Confirming the upload](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#confirming-the-file-upload) guide. +Deletes a key-value cache item. Deleted cache items are no longer accessible and cannot be restored. */ -func (a *Client) GenericProjectFileConfirm(params *GenericProjectFileConfirmParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GenericProjectFileConfirmOK, error) { +func (a *Client) CacheItemDelete(params *CacheItemDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CacheItemDeleteOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewGenericProjectFileConfirmParams() + params = NewCacheItemDeleteParams() } op := &runtime.ClientOperation{ - ID: "generic-project-file-confirm", - Method: "POST", - PathPattern: "/apps/{app-slug}/generic-project-files/{generic-project-file-slug}/uploaded", + ID: "cache-item-delete", + Method: "DELETE", + PathPattern: "/apps/{app-slug}/cache-items/{cache-item-id}", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"https"}, Params: params, - Reader: &GenericProjectFileConfirmReader{formats: a.formats}, + Reader: &CacheItemDeleteReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -1922,35 +2115,35 @@ func (a *Client) GenericProjectFileConfirm(params *GenericProjectFileConfirmPara if err != nil { return nil, err } - success, ok := result.(*GenericProjectFileConfirmOK) + success, ok := result.(*CacheItemDeleteOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for generic-project-file-confirm: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for cache-item-delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - GenericProjectFileDelete deletes a generic project file +CacheItemDeleteAll deletes all key value cache items belonging to an app - Delete an app's generic project file. You can fetch an app's generic project file slug if you first list all the uploaded files with the [GET /apps/{app-slug}/generic-project-files](https://api-docs.bitrise.io/#/generic-project-file/generic-project-file-list) endpoint. Read more in our [Deleting a file](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#deleting-a-file) guide. +Deletes all key-value cache items created by the builds of an app. Deleted cache items are no longer accessible and cannot be restored. */ -func (a *Client) GenericProjectFileDelete(params *GenericProjectFileDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GenericProjectFileDeleteOK, error) { +func (a *Client) CacheItemDeleteAll(params *CacheItemDeleteAllParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CacheItemDeleteAllOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewGenericProjectFileDeleteParams() + params = NewCacheItemDeleteAllParams() } op := &runtime.ClientOperation{ - ID: "generic-project-file-delete", + ID: "cache-item-delete-all", Method: "DELETE", - PathPattern: "/apps/{app-slug}/generic-project-files/{generic-project-file-slug}", + PathPattern: "/apps/{app-slug}/cache-items", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"https"}, Params: params, - Reader: &GenericProjectFileDeleteReader{formats: a.formats}, + Reader: &CacheItemDeleteAllReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -1963,35 +2156,35 @@ func (a *Client) GenericProjectFileDelete(params *GenericProjectFileDeleteParams if err != nil { return nil, err } - success, ok := result.(*GenericProjectFileDeleteOK) + success, ok := result.(*CacheItemDeleteAllOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for generic-project-file-delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for cache-item-delete-all: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - GenericProjectFileList gets a list of the generic project files +CacheItemDownload gets the download URL of a key value cache item - List all the generic project files that have been uploaded to a specific app. Read more in our [Listing the uploaded files of an app](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#listing-the-uploaded-files-of-an-app) guide. +Gets a download URL of a cache item. */ -func (a *Client) GenericProjectFileList(params *GenericProjectFileListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GenericProjectFileListOK, error) { +func (a *Client) CacheItemDownload(params *CacheItemDownloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CacheItemDownloadOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewGenericProjectFileListParams() + params = NewCacheItemDownloadParams() } op := &runtime.ClientOperation{ - ID: "generic-project-file-list", + ID: "cache-item-download", Method: "GET", - PathPattern: "/apps/{app-slug}/generic-project-files", + PathPattern: "/apps/{app-slug}/cache-items/{cache-item-id}/download", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"https"}, Params: params, - Reader: &GenericProjectFileListReader{formats: a.formats}, + Reader: &CacheItemDownloadReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -2004,35 +2197,35 @@ func (a *Client) GenericProjectFileList(params *GenericProjectFileListParams, au if err != nil { return nil, err } - success, ok := result.(*GenericProjectFileListOK) + success, ok := result.(*CacheItemDownloadOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for generic-project-file-list: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for cache-item-download: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - GenericProjectFileShow gets a specific generic project file +CacheList lists the key value cache items belonging to an app - Retrieve data of a specific generic project file to check its attributes and optionally modify them with the [PATCH /apps/](https://api-docs.bitrise.io/#/generic-project-file/generic-project-file-update) endpoint. Read more in our [Retrieving a specific file's data](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#retrieving-a-specific-files-data) guide. +List all the available cache items that the builds of the app created via the save-cache step. */ -func (a *Client) GenericProjectFileShow(params *GenericProjectFileShowParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GenericProjectFileShowOK, error) { +func (a *Client) CacheList(params *CacheListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CacheListOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewGenericProjectFileShowParams() + params = NewCacheListParams() } op := &runtime.ClientOperation{ - ID: "generic-project-file-show", + ID: "cache-list", Method: "GET", - PathPattern: "/apps/{app-slug}/generic-project-files/{generic-project-file-slug}", + PathPattern: "/apps/{app-slug}/cache-items", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"https"}, Params: params, - Reader: &GenericProjectFileShowReader{formats: a.formats}, + Reader: &CacheListReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -2045,35 +2238,35 @@ func (a *Client) GenericProjectFileShow(params *GenericProjectFileShowParams, au if err != nil { return nil, err } - success, ok := result.(*GenericProjectFileShowOK) + success, ok := result.(*CacheListOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for generic-project-file-show: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for cache-list: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - GenericProjectFileUpdate updates a generic project file +GenericProjectFileConfirm confirms a generic project file upload - Update a generic project file's attributes. You can fetch an app's generic project file slug if you first list all the uploaded files with the [GET /apps/{app-slug}/generic-project-files](https://api-docs.bitrise.io/#/generic-project-file/generic-project-file-list) endpoint. Read more in our [Updating an uploaded file](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#updating-an-uploaded-file) guide. +This is the last step of uploading a generic project file to Bitrise. Confirm the generic project file upload and view the file on the Code Signing tab of a specific app. Read more in our [Confirming the upload](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#confirming-the-file-upload) guide. */ -func (a *Client) GenericProjectFileUpdate(params *GenericProjectFileUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GenericProjectFileUpdateOK, error) { +func (a *Client) GenericProjectFileConfirm(params *GenericProjectFileConfirmParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GenericProjectFileConfirmOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewGenericProjectFileUpdateParams() + params = NewGenericProjectFileConfirmParams() } op := &runtime.ClientOperation{ - ID: "generic-project-file-update", - Method: "PATCH", - PathPattern: "/apps/{app-slug}/generic-project-files/{generic-project-file-slug}", + ID: "generic-project-file-confirm", + Method: "POST", + PathPattern: "/apps/{app-slug}/generic-project-files/{generic-project-file-slug}/uploaded", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"https"}, Params: params, - Reader: &GenericProjectFileUpdateReader{formats: a.formats}, + Reader: &GenericProjectFileConfirmReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -2086,35 +2279,35 @@ func (a *Client) GenericProjectFileUpdate(params *GenericProjectFileUpdateParams if err != nil { return nil, err } - success, ok := result.(*GenericProjectFileUpdateOK) + success, ok := result.(*GenericProjectFileConfirmOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for generic-project-file-update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for generic-project-file-confirm: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - GenericProjectFilesCreate creates a generic project file +GenericProjectFileDelete deletes a generic project file - Create a temporary pre-signed upload URL (expires in 10 minutes) for the generic project file and upload it to AWS with a simple `curl` request. To complete the uploading process and view your files on the Code Signing tab of your app, continue with the [POST /apps/{app-slug}/generic-project-files/{generic-project-file-slug}/uploaded](https://api-docs.bitrise.io/#/generic-project-file/generic-project-file-confirm) endpoint. Read more in our [Creating and uploading files to Generic File Storage](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#creating-and-uploading-files-to-generic-file-storage) guide. +Delete an app's generic project file. You can fetch an app's generic project file slug if you first list all the uploaded files with the [GET /apps/{app-slug}/generic-project-files](https://api-docs.bitrise.io/#/generic-project-file/generic-project-file-list) endpoint. Read more in our [Deleting a file](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#deleting-a-file) guide. */ -func (a *Client) GenericProjectFilesCreate(params *GenericProjectFilesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GenericProjectFilesCreateCreated, error) { +func (a *Client) GenericProjectFileDelete(params *GenericProjectFileDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GenericProjectFileDeleteOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewGenericProjectFilesCreateParams() + params = NewGenericProjectFileDeleteParams() } op := &runtime.ClientOperation{ - ID: "generic-project-files-create", - Method: "POST", - PathPattern: "/apps/{app-slug}/generic-project-files", + ID: "generic-project-file-delete", + Method: "DELETE", + PathPattern: "/apps/{app-slug}/generic-project-files/{generic-project-file-slug}", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"https"}, Params: params, - Reader: &GenericProjectFilesCreateReader{formats: a.formats}, + Reader: &GenericProjectFileDeleteReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -2127,35 +2320,35 @@ func (a *Client) GenericProjectFilesCreate(params *GenericProjectFilesCreatePara if err != nil { return nil, err } - success, ok := result.(*GenericProjectFilesCreateCreated) + success, ok := result.(*GenericProjectFileDeleteOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for generic-project-files-create: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for generic-project-file-delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - OrgList lists the organizations that the user is part of +GenericProjectFileList gets a list of the generic project files - List all Bitrise organizations that the user is part of +List all the generic project files that have been uploaded to a specific app. Read more in our [Listing the uploaded files of an app](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#listing-the-uploaded-files-of-an-app) guide. */ -func (a *Client) OrgList(params *OrgListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrgListOK, error) { +func (a *Client) GenericProjectFileList(params *GenericProjectFileListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GenericProjectFileListOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewOrgListParams() + params = NewGenericProjectFileListParams() } op := &runtime.ClientOperation{ - ID: "org-list", + ID: "generic-project-file-list", Method: "GET", - PathPattern: "/organizations", + PathPattern: "/apps/{app-slug}/generic-project-files", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"https"}, Params: params, - Reader: &OrgListReader{formats: a.formats}, + Reader: &GenericProjectFileListReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -2168,35 +2361,35 @@ func (a *Client) OrgList(params *OrgListParams, authInfo runtime.ClientAuthInfoW if err != nil { return nil, err } - success, ok := result.(*OrgListOK) + success, ok := result.(*GenericProjectFileListOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for org-list: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for generic-project-file-list: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - OrgShow gets a specified organization +GenericProjectFileShow gets a specific generic project file - Get a specified Bitrise organization that the user is part of. +Retrieve data of a specific generic project file to check its attributes and optionally modify them with the [PATCH /apps/](https://api-docs.bitrise.io/#/generic-project-file/generic-project-file-update) endpoint. Read more in our [Retrieving a specific file's data](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#retrieving-a-specific-files-data) guide. */ -func (a *Client) OrgShow(params *OrgShowParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrgShowOK, error) { +func (a *Client) GenericProjectFileShow(params *GenericProjectFileShowParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GenericProjectFileShowOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewOrgShowParams() + params = NewGenericProjectFileShowParams() } op := &runtime.ClientOperation{ - ID: "org-show", + ID: "generic-project-file-show", Method: "GET", - PathPattern: "/organizations/{org-slug}", + PathPattern: "/apps/{app-slug}/generic-project-files/{generic-project-file-slug}", ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"https"}, Params: params, - Reader: &OrgShowReader{formats: a.formats}, + Reader: &GenericProjectFileShowReader{formats: a.formats}, AuthInfo: authInfo, Context: params.Context, Client: params.HTTPClient, @@ -2209,31 +2402,195 @@ func (a *Client) OrgShow(params *OrgShowParams, authInfo runtime.ClientAuthInfoW if err != nil { return nil, err } - success, ok := result.(*OrgShowOK) + success, ok := result.(*GenericProjectFileShowOK) if ok { return success, nil } // unexpected success response // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for org-show: API contract not enforced by server. Client expected to get an error, but got: %T", result) + msg := fmt.Sprintf("unexpected success response for generic-project-file-show: API contract not enforced by server. Client expected to get an error, but got: %T", result) panic(msg) } /* - OutgoingWebhookCreate creates an outgoing webhook for an app +GenericProjectFileUpdate updates a generic project file - Create an outgoing webhook for a specified Bitrise app: this can be used to send build events to a specified URL with custom headers. Currently, only build events can trigger outgoing webhooks. +Update a generic project file's attributes. You can fetch an app's generic project file slug if you first list all the uploaded files with the [GET /apps/{app-slug}/generic-project-files](https://api-docs.bitrise.io/#/generic-project-file/generic-project-file-list) endpoint. Read more in our [Updating an uploaded file](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#updating-an-uploaded-file) guide. */ -func (a *Client) OutgoingWebhookCreate(params *OutgoingWebhookCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OutgoingWebhookCreateOK, error) { +func (a *Client) GenericProjectFileUpdate(params *GenericProjectFileUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GenericProjectFileUpdateOK, error) { // TODO: Validate the params before sending if params == nil { - params = NewOutgoingWebhookCreateParams() + params = NewGenericProjectFileUpdateParams() } op := &runtime.ClientOperation{ - ID: "outgoing-webhook-create", - Method: "POST", - PathPattern: "/apps/{app-slug}/outgoing-webhooks", - ProducesMediaTypes: []string{"application/json"}, + ID: "generic-project-file-update", + Method: "PATCH", + PathPattern: "/apps/{app-slug}/generic-project-files/{generic-project-file-slug}", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &GenericProjectFileUpdateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GenericProjectFileUpdateOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for generic-project-file-update: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +GenericProjectFilesCreate creates a generic project file + +Create a temporary pre-signed upload URL (expires in 10 minutes) for the generic project file and upload it to AWS with a simple `curl` request. To complete the uploading process and view your files on the Code Signing tab of your app, continue with the [POST /apps/{app-slug}/generic-project-files/{generic-project-file-slug}/uploaded](https://api-docs.bitrise.io/#/generic-project-file/generic-project-file-confirm) endpoint. Read more in our [Creating and uploading files to Generic File Storage](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#creating-and-uploading-files-to-generic-file-storage) guide. +*/ +func (a *Client) GenericProjectFilesCreate(params *GenericProjectFilesCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GenericProjectFilesCreateCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewGenericProjectFilesCreateParams() + } + op := &runtime.ClientOperation{ + ID: "generic-project-files-create", + Method: "POST", + PathPattern: "/apps/{app-slug}/generic-project-files", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &GenericProjectFilesCreateReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*GenericProjectFilesCreateCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for generic-project-files-create: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +OrgList lists the organizations that the user is part of + +List all Bitrise organizations that the user is part of +*/ +func (a *Client) OrgList(params *OrgListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrgListOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewOrgListParams() + } + op := &runtime.ClientOperation{ + ID: "org-list", + Method: "GET", + PathPattern: "/organizations", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &OrgListReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*OrgListOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for org-list: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +OrgShow gets a specified organization + +Get a specified Bitrise organization that the user is part of. +*/ +func (a *Client) OrgShow(params *OrgShowParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OrgShowOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewOrgShowParams() + } + op := &runtime.ClientOperation{ + ID: "org-show", + Method: "GET", + PathPattern: "/organizations/{org-slug}", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &OrgShowReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*OrgShowOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for org-show: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +OutgoingWebhookCreate creates an outgoing webhook for an app + +Create an outgoing webhook for a specified Bitrise app: this can be used to send build events to a specified URL with custom headers. Currently, only build events can trigger outgoing webhooks. +*/ +func (a *Client) OutgoingWebhookCreate(params *OutgoingWebhookCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OutgoingWebhookCreateOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewOutgoingWebhookCreateParams() + } + op := &runtime.ClientOperation{ + ID: "outgoing-webhook-create", + Method: "POST", + PathPattern: "/apps/{app-slug}/outgoing-webhooks", + ProducesMediaTypes: []string{"application/json"}, ConsumesMediaTypes: []string{"application/json"}, Schemes: []string{"https"}, Params: params, @@ -2261,9 +2618,9 @@ func (a *Client) OutgoingWebhookCreate(params *OutgoingWebhookCreateParams, auth } /* - OutgoingWebhookDelete deletes an outgoing webhook of an app +OutgoingWebhookDelete deletes an outgoing webhook of an app - Delete an existing outgoing webhook for a specified Bitrise app. +Delete an existing outgoing webhook for a specified Bitrise app. */ func (a *Client) OutgoingWebhookDelete(params *OutgoingWebhookDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OutgoingWebhookDeleteOK, error) { // TODO: Validate the params before sending @@ -2302,9 +2659,9 @@ func (a *Client) OutgoingWebhookDelete(params *OutgoingWebhookDeleteParams, auth } /* - OutgoingWebhookList lists the outgoing webhooks of an app +OutgoingWebhookList lists the outgoing webhooks of an app - List all the outgoing webhooks registered for a specified Bitrise app. This returns all the relevant data of the webhook, including the slug of the webhook and its URL. +List all the outgoing webhooks registered for a specified Bitrise app. This returns all the relevant data of the webhook, including the slug of the webhook and its URL. */ func (a *Client) OutgoingWebhookList(params *OutgoingWebhookListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OutgoingWebhookListOK, error) { // TODO: Validate the params before sending @@ -2343,9 +2700,9 @@ func (a *Client) OutgoingWebhookList(params *OutgoingWebhookListParams, authInfo } /* - OutgoingWebhookUpdate updates an outgoing webhook of an app +OutgoingWebhookUpdate updates an outgoing webhook of an app - Update an existing outgoing webhook (URL, events, secrets and headers) for a specified Bitrise app. Even if you do not want to change one of the parameters, you still have to provide that parameter as well: simply use its existing value. +Update an existing outgoing webhook (URL, events, secrets and headers) for a specified Bitrise app. Even if you do not want to change one of the parameters, you still have to provide that parameter as well: simply use its existing value. */ func (a *Client) OutgoingWebhookUpdate(params *OutgoingWebhookUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*OutgoingWebhookUpdateOK, error) { // TODO: Validate the params before sending @@ -2384,9 +2741,214 @@ func (a *Client) OutgoingWebhookUpdate(params *OutgoingWebhookUpdateParams, auth } /* - ProvisioningProfileConfirm confirms a provisioning profile upload +PipelineAbort aborts a pipeline + +Aborts a pipeline. You need to provide the app slug and the id of the pipeline. You can add an abort reason, choose to skip notifications and make the abort with success state. +*/ +func (a *Client) PipelineAbort(params *PipelineAbortParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PipelineAbortOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewPipelineAbortParams() + } + op := &runtime.ClientOperation{ + ID: "pipeline-abort", + Method: "POST", + PathPattern: "/apps/{app-slug}/pipelines/{pipeline-id}/abort", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &PipelineAbortReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*PipelineAbortOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for pipeline-abort: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +PipelineList lists all pipelines and standalone builds of an app + +List all the pipelines and standalone builds of a specified Bitrise app. Set parameters to filter pipelines: for example, you can search for pipelines/standalone builds run with a given workflow name or all pipelines/standalone builds that were triggered by Pull Requests. It returns all the relevant data of the pipelines/standalone builds. +*/ +func (a *Client) PipelineList(params *PipelineListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PipelineListOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewPipelineListParams() + } + op := &runtime.ClientOperation{ + ID: "pipeline-list", + Method: "GET", + PathPattern: "/apps/{app-slug}/pipelines", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &PipelineListReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*PipelineListOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for pipeline-list: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +PipelineListAll lists all pipelines standalone builds + +List all the Bitrise pipelines/standalone builds that can be accessed with the authenticated account. Filter pipelines/standalone builds based on their owner, using the owner slug, or the status of the pipeline/standalone build. +*/ +func (a *Client) PipelineListAll(params *PipelineListAllParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PipelineListAllOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewPipelineListAllParams() + } + op := &runtime.ClientOperation{ + ID: "pipeline-list-all", + Method: "GET", + PathPattern: "/pipelines", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &PipelineListAllReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*PipelineListAllOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for pipeline-list-all: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +PipelineRebuild rebuilds a pipeline - This is the last step of the upload process. Confirm the provisioning profile upload and view the file on the Code Signing tab of a specific app. Read more in our [Confirming the iOS code signing file upload](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#confirming-the-ios-code-signing-file-upload) guide. +Rebuilds a pipeline. You can rebuild the whole pipeline or only the unsuccessful and subsequent workflows by setting the partial flag to true. +*/ +func (a *Client) PipelineRebuild(params *PipelineRebuildParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PipelineRebuildOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewPipelineRebuildParams() + } + op := &runtime.ClientOperation{ + ID: "pipeline-rebuild", + Method: "POST", + PathPattern: "/apps/{app-slug}/pipelines/{pipeline-id}/rebuild", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &PipelineRebuildReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*PipelineRebuildOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for pipeline-rebuild: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +PipelineShow gets a pipeline of a given app + +Get the specified pipeline of a given Bitrise app. You need to provide both an app slug and a pipeline id. You can get the pipeline id either by calling the [/pipelines](https://api-docs.bitrise.io/#/pipelines/pipeline-list) endpoint or by clicking on the pipeline on bitrise.io and copying the id from the URL. The endpoint returns all the relevant data of the pipeline. +*/ +func (a *Client) PipelineShow(params *PipelineShowParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PipelineShowOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewPipelineShowParams() + } + op := &runtime.ClientOperation{ + ID: "pipeline-show", + Method: "GET", + PathPattern: "/apps/{app-slug}/pipelines/{pipeline-id}", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &PipelineShowReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*PipelineShowOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for pipeline-show: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +ProvisioningProfileConfirm confirms a provisioning profile upload + +This is the last step of the upload process. Confirm the provisioning profile upload and view the file on the Code Signing tab of a specific app. Read more in our [Confirming the iOS code signing file upload](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#confirming-the-ios-code-signing-file-upload) guide. */ func (a *Client) ProvisioningProfileConfirm(params *ProvisioningProfileConfirmParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ProvisioningProfileConfirmOK, error) { // TODO: Validate the params before sending @@ -2425,9 +2987,9 @@ func (a *Client) ProvisioningProfileConfirm(params *ProvisioningProfileConfirmPa } /* - ProvisioningProfileCreate creates a provisioning profile +ProvisioningProfileCreate creates a provisioning profile - Create a temporary pre-signed upload URL (expires in 10 minutes) for the provisioning profile and upload it to AWS with a simple `curl` request. To complete the upload process, continue with the [POST /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-confirm) endpoint. Read more in our [Creating and uploading an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#creating--uploading-an-ios-code-signing-file) guide. +Create a temporary pre-signed upload URL (expires in 10 minutes) for the provisioning profile and upload it to AWS with a simple `curl` request. To complete the upload process, continue with the [POST /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-confirm) endpoint. Read more in our [Creating and uploading an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#creating--uploading-an-ios-code-signing-file) guide. */ func (a *Client) ProvisioningProfileCreate(params *ProvisioningProfileCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ProvisioningProfileCreateCreated, error) { // TODO: Validate the params before sending @@ -2466,9 +3028,9 @@ func (a *Client) ProvisioningProfileCreate(params *ProvisioningProfileCreatePara } /* - ProvisioningProfileDelete deletes a provisioning profile +ProvisioningProfileDelete deletes a provisioning profile - Delete an app's provisioning profile. You can fetch the provisioning profile's slug if you call the [GET /apps/{app-slug}/provisioning-profiles](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-list) endpoint. Read more in our [Deleting an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#deleting-an-ios-code-signing-file) guide. +Delete an app's provisioning profile. You can fetch the provisioning profile's slug if you call the [GET /apps/{app-slug}/provisioning-profiles](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-list) endpoint. Read more in our [Deleting an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#deleting-an-ios-code-signing-file) guide. */ func (a *Client) ProvisioningProfileDelete(params *ProvisioningProfileDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ProvisioningProfileDeleteOK, error) { // TODO: Validate the params before sending @@ -2507,9 +3069,9 @@ func (a *Client) ProvisioningProfileDelete(params *ProvisioningProfileDeletePara } /* - ProvisioningProfileList gets a list of the provisioning profiles +ProvisioningProfileList gets a list of the provisioning profiles - List all the provisioning profiles that have been uploaded to a specific app. Read more in our [Listing the uploaded iOS code signing files of an app](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#listing-the-uploaded-ios-code-signing-files-of-an-app) guide. +List all the provisioning profiles that have been uploaded to a specific app. Read more in our [Listing the uploaded iOS code signing files of an app](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#listing-the-uploaded-ios-code-signing-files-of-an-app) guide. */ func (a *Client) ProvisioningProfileList(params *ProvisioningProfileListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ProvisioningProfileListOK, error) { // TODO: Validate the params before sending @@ -2548,9 +3110,9 @@ func (a *Client) ProvisioningProfileList(params *ProvisioningProfileListParams, } /* - ProvisioningProfileShow gets a specific provisioning profile +ProvisioningProfileShow gets a specific provisioning profile - Retrieve data of a specific provisioning profile. You can fetch the provisioning profile's slug if you call the [GET /apps/{app-slug}/provisioning-profiles](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-list) endpoint. Read more in our [Getting a specific iOS code signing file's data](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#getting-a-specific-ios-code-signing-files-data) guide. +Retrieve data of a specific provisioning profile. You can fetch the provisioning profile's slug if you call the [GET /apps/{app-slug}/provisioning-profiles](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-list) endpoint. Read more in our [Getting a specific iOS code signing file's data](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#getting-a-specific-ios-code-signing-files-data) guide. */ func (a *Client) ProvisioningProfileShow(params *ProvisioningProfileShowParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ProvisioningProfileShowOK, error) { // TODO: Validate the params before sending @@ -2589,9 +3151,9 @@ func (a *Client) ProvisioningProfileShow(params *ProvisioningProfileShowParams, } /* - ProvisioningProfileUpdate updates a provisioning profile +ProvisioningProfileUpdate updates a provisioning profile - Update an uploaded provisioning profile's attributes. You can fetch the provisioning profile's slug if you call the [GET /apps/{app-slug}/provisioning-profiles](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-list) endpoint. Read more in our [Updating an uploaded iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#confirming-the-ios-code-signing-file-upload) guide. +Update an uploaded provisioning profile's attributes. You can fetch the provisioning profile's slug if you call the [GET /apps/{app-slug}/provisioning-profiles](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-list) endpoint. Read more in our [Updating an uploaded iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#confirming-the-ios-code-signing-file-upload) guide. */ func (a *Client) ProvisioningProfileUpdate(params *ProvisioningProfileUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ProvisioningProfileUpdateOK, error) { // TODO: Validate the params before sending @@ -2630,9 +3192,173 @@ func (a *Client) ProvisioningProfileUpdate(params *ProvisioningProfileUpdatePara } /* - SSHKeyCreate adds an SSH key to a specific app +SecretDelete deletes an application secret + +Delete an application secret. Requires administrator level privileges to the app. +*/ +func (a *Client) SecretDelete(params *SecretDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecretDeleteNoContent, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewSecretDeleteParams() + } + op := &runtime.ClientOperation{ + ID: "secret-delete", + Method: "DELETE", + PathPattern: "/apps/{app-slug}/secrets/{secret-name}", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &SecretDeleteReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*SecretDeleteNoContent) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for secret-delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +SecretList lists the application secrets with no values + +List the application secrets (with no values). Requires administrator level privileges to the app. +*/ +func (a *Client) SecretList(params *SecretListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecretListOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewSecretListParams() + } + op := &runtime.ClientOperation{ + ID: "secret-list", + Method: "GET", + PathPattern: "/apps/{app-slug}/secrets", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &SecretListReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*SecretListOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for secret-list: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +SecretUpsert upserts an application secret - Add an SSH-key to a specific app. After creating an app, you need to register the SSH key so that Bitrise will be able to access and clone your repository during the build process. This requires the app slug of your newly created app. +Upsert an application secret. Requires administrator level privileges to the app. +*/ +func (a *Client) SecretUpsert(params *SecretUpsertParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecretUpsertCreated, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewSecretUpsertParams() + } + op := &runtime.ClientOperation{ + ID: "secret-upsert", + Method: "PUT", + PathPattern: "/apps/{app-slug}/secrets/{secret-name}", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &SecretUpsertReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*SecretUpsertCreated) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for secret-upsert: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +SecretValueGet gets the value of an unprotected application secrets + +Get the value of an (unprotected) application secrets. Requires administrator level privileges to the app. +*/ +func (a *Client) SecretValueGet(params *SecretValueGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SecretValueGetOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewSecretValueGetParams() + } + op := &runtime.ClientOperation{ + ID: "secret-value-get", + Method: "GET", + PathPattern: "/apps/{app-slug}/secrets/{secret-name}/value", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &SecretValueGetReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*SecretValueGetOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for secret-value-get: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +SSHKeyCreate adds an SSH key to a specific app + +Add an SSH-key to a specific app. After creating an app, you need to register the SSH key so that Bitrise will be able to access and clone your repository during the build process. This requires the app slug of your newly created app. */ func (a *Client) SSHKeyCreate(params *SSHKeyCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SSHKeyCreateOK, error) { // TODO: Validate the params before sending @@ -2671,9 +3397,9 @@ func (a *Client) SSHKeyCreate(params *SSHKeyCreateParams, authInfo runtime.Clien } /* - TestDeviceList lists the test devices for an app +TestDeviceList lists the test devices for an app - List registered test devices of all members of a specified Bitrise app +List registered test devices of all members of a specified Bitrise app */ func (a *Client) TestDeviceList(params *TestDeviceListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TestDeviceListOK, error) { // TODO: Validate the params before sending @@ -2712,9 +3438,91 @@ func (a *Client) TestDeviceList(params *TestDeviceListParams, authInfo runtime.C } /* - UserPlan thes subscription plan of the user +UserAddonTokens thes active addon tokens of the user + +Lists the active addon tokens of the user with some extra details. +*/ +func (a *Client) UserAddonTokens(params *UserAddonTokensParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UserAddonTokensOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUserAddonTokensParams() + } + op := &runtime.ClientOperation{ + ID: "user-addon-tokens", + Method: "GET", + PathPattern: "/me/addon-tokens", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &UserAddonTokensReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UserAddonTokensOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for user-addon-tokens: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UserAddonTokensDelete removes an active addon token of the user + +Removes the active addon token of the user. +*/ +func (a *Client) UserAddonTokensDelete(params *UserAddonTokensDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UserAddonTokensDeleteOK, error) { + // TODO: Validate the params before sending + if params == nil { + params = NewUserAddonTokensDeleteParams() + } + op := &runtime.ClientOperation{ + ID: "user-addon-tokens-delete", + Method: "DELETE", + PathPattern: "/me/addon-tokens/{addon-id}", + ProducesMediaTypes: []string{"application/json"}, + ConsumesMediaTypes: []string{"application/json"}, + Schemes: []string{"https"}, + Params: params, + Reader: &UserAddonTokensDeleteReader{formats: a.formats}, + AuthInfo: authInfo, + Context: params.Context, + Client: params.HTTPClient, + } + for _, opt := range opts { + opt(op) + } + + result, err := a.transport.Submit(op) + if err != nil { + return nil, err + } + success, ok := result.(*UserAddonTokensDeleteOK) + if ok { + return success, nil + } + // unexpected success response + // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue + msg := fmt.Sprintf("unexpected success response for user-addon-tokens-delete: API contract not enforced by server. Client expected to get an error, but got: %T", result) + panic(msg) +} + +/* +UserPlan thes subscription plan of the user - Get the subscription of the user: the current plan, any pending plans, and the duration of a trial period if applicable +Get the subscription of the user: the current plan, any pending plans, and the duration of a trial period if applicable */ func (a *Client) UserPlan(params *UserPlanParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UserPlanOK, error) { // TODO: Validate the params before sending @@ -2753,9 +3561,9 @@ func (a *Client) UserPlan(params *UserPlanParams, authInfo runtime.ClientAuthInf } /* - UserProfile gets your profile data +UserProfile gets your profile info - Shows the authenticated users profile data +Shows the authenticated users profile info */ func (a *Client) UserProfile(params *UserProfileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UserProfileOK, error) { // TODO: Validate the params before sending @@ -2794,9 +3602,9 @@ func (a *Client) UserProfile(params *UserProfileParams, authInfo runtime.ClientA } /* - UserShow gets a specific user +UserShow gets a specific user - Show information about a specific user +Show information about a specific user */ func (a *Client) UserShow(params *UserShowParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UserShowOK, error) { // TODO: Validate the params before sending @@ -2835,9 +3643,9 @@ func (a *Client) UserShow(params *UserShowParams, authInfo runtime.ClientAuthInf } /* - WebhookDeliveryItemList lists the webhook delivery items of an app +WebhookDeliveryItemList lists the webhook delivery items of an app - List all the delivery items of an outgoing webhook of a Bitrise application +List all the delivery items of an outgoing webhook of a Bitrise application */ func (a *Client) WebhookDeliveryItemList(params *WebhookDeliveryItemListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WebhookDeliveryItemListOK, error) { // TODO: Validate the params before sending @@ -2876,9 +3684,9 @@ func (a *Client) WebhookDeliveryItemList(params *WebhookDeliveryItemListParams, } /* - WebhookDeliveryItemRedeliver res deliver the webhook delivery items of an app +WebhookDeliveryItemRedeliver res deliver the webhook delivery items of an app - Re-deliver the delivery item of a specified webhook of a Bitrise application +Re-deliver the delivery item of a specified webhook of a Bitrise application */ func (a *Client) WebhookDeliveryItemRedeliver(params *WebhookDeliveryItemRedeliverParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WebhookDeliveryItemRedeliverOK, error) { // TODO: Validate the params before sending @@ -2917,9 +3725,9 @@ func (a *Client) WebhookDeliveryItemRedeliver(params *WebhookDeliveryItemRedeliv } /* - WebhookDeliveryItemShow gets a specific delivery item of a webhook +WebhookDeliveryItemShow gets a specific delivery item of a webhook - Get the specified delivery item of an outgoing webhook of a Bitrise application +Get the specified delivery item of an outgoing webhook of a Bitrise application */ func (a *Client) WebhookDeliveryItemShow(params *WebhookDeliveryItemShowParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*WebhookDeliveryItemShowOK, error) { // TODO: Validate the params before sending diff --git a/go/client/operations/org_list_parameters.go b/go/client/operations/org_list_parameters.go index e9d1d3b..911e5df 100644 --- a/go/client/operations/org_list_parameters.go +++ b/go/client/operations/org_list_parameters.go @@ -52,10 +52,12 @@ func NewOrgListParamsWithHTTPClient(client *http.Client) *OrgListParams { } } -/* OrgListParams contains all the parameters to send to the API endpoint - for the org list operation. +/* +OrgListParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the org list operation. + + Typically these are written to a http.Request. */ type OrgListParams struct { timeout time.Duration diff --git a/go/client/operations/org_list_responses.go b/go/client/operations/org_list_responses.go index 9e1a8e6..d4c68bd 100644 --- a/go/client/operations/org_list_responses.go +++ b/go/client/operations/org_list_responses.go @@ -63,7 +63,8 @@ func NewOrgListOK() *OrgListOK { return &OrgListOK{} } -/* OrgListOK describes a response with status code 200, with default header values. +/* +OrgListOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type OrgListOK struct { Payload *models.V0OrganizationListRespModel } +// IsSuccess returns true when this org list o k response has a 2xx status code +func (o *OrgListOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this org list o k response has a 3xx status code +func (o *OrgListOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this org list o k response has a 4xx status code +func (o *OrgListOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this org list o k response has a 5xx status code +func (o *OrgListOK) IsServerError() bool { + return false +} + +// IsCode returns true when this org list o k response a status code equal to that given +func (o *OrgListOK) IsCode(code int) bool { + return code == 200 +} + func (o *OrgListOK) Error() string { return fmt.Sprintf("[GET /organizations][%d] orgListOK %+v", 200, o.Payload) } + +func (o *OrgListOK) String() string { + return fmt.Sprintf("[GET /organizations][%d] orgListOK %+v", 200, o.Payload) +} + func (o *OrgListOK) GetPayload() *models.V0OrganizationListRespModel { return o.Payload } @@ -95,7 +126,8 @@ func NewOrgListBadRequest() *OrgListBadRequest { return &OrgListBadRequest{} } -/* OrgListBadRequest describes a response with status code 400, with default header values. +/* +OrgListBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type OrgListBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this org list bad request response has a 2xx status code +func (o *OrgListBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this org list bad request response has a 3xx status code +func (o *OrgListBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this org list bad request response has a 4xx status code +func (o *OrgListBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this org list bad request response has a 5xx status code +func (o *OrgListBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this org list bad request response a status code equal to that given +func (o *OrgListBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *OrgListBadRequest) Error() string { return fmt.Sprintf("[GET /organizations][%d] orgListBadRequest %+v", 400, o.Payload) } + +func (o *OrgListBadRequest) String() string { + return fmt.Sprintf("[GET /organizations][%d] orgListBadRequest %+v", 400, o.Payload) +} + func (o *OrgListBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewOrgListUnauthorized() *OrgListUnauthorized { return &OrgListUnauthorized{} } -/* OrgListUnauthorized describes a response with status code 401, with default header values. +/* +OrgListUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type OrgListUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this org list unauthorized response has a 2xx status code +func (o *OrgListUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this org list unauthorized response has a 3xx status code +func (o *OrgListUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this org list unauthorized response has a 4xx status code +func (o *OrgListUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this org list unauthorized response has a 5xx status code +func (o *OrgListUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this org list unauthorized response a status code equal to that given +func (o *OrgListUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *OrgListUnauthorized) Error() string { return fmt.Sprintf("[GET /organizations][%d] orgListUnauthorized %+v", 401, o.Payload) } + +func (o *OrgListUnauthorized) String() string { + return fmt.Sprintf("[GET /organizations][%d] orgListUnauthorized %+v", 401, o.Payload) +} + func (o *OrgListUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewOrgListNotFound() *OrgListNotFound { return &OrgListNotFound{} } -/* OrgListNotFound describes a response with status code 404, with default header values. +/* +OrgListNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type OrgListNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this org list not found response has a 2xx status code +func (o *OrgListNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this org list not found response has a 3xx status code +func (o *OrgListNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this org list not found response has a 4xx status code +func (o *OrgListNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this org list not found response has a 5xx status code +func (o *OrgListNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this org list not found response a status code equal to that given +func (o *OrgListNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *OrgListNotFound) Error() string { return fmt.Sprintf("[GET /organizations][%d] orgListNotFound %+v", 404, o.Payload) } + +func (o *OrgListNotFound) String() string { + return fmt.Sprintf("[GET /organizations][%d] orgListNotFound %+v", 404, o.Payload) +} + func (o *OrgListNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewOrgListInternalServerError() *OrgListInternalServerError { return &OrgListInternalServerError{} } -/* OrgListInternalServerError describes a response with status code 500, with default header values. +/* +OrgListInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type OrgListInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this org list internal server error response has a 2xx status code +func (o *OrgListInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this org list internal server error response has a 3xx status code +func (o *OrgListInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this org list internal server error response has a 4xx status code +func (o *OrgListInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this org list internal server error response has a 5xx status code +func (o *OrgListInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this org list internal server error response a status code equal to that given +func (o *OrgListInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *OrgListInternalServerError) Error() string { return fmt.Sprintf("[GET /organizations][%d] orgListInternalServerError %+v", 500, o.Payload) } + +func (o *OrgListInternalServerError) String() string { + return fmt.Sprintf("[GET /organizations][%d] orgListInternalServerError %+v", 500, o.Payload) +} + func (o *OrgListInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/org_show_parameters.go b/go/client/operations/org_show_parameters.go index 67cd8ee..37983aa 100644 --- a/go/client/operations/org_show_parameters.go +++ b/go/client/operations/org_show_parameters.go @@ -52,10 +52,12 @@ func NewOrgShowParamsWithHTTPClient(client *http.Client) *OrgShowParams { } } -/* OrgShowParams contains all the parameters to send to the API endpoint - for the org show operation. +/* +OrgShowParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the org show operation. + + Typically these are written to a http.Request. */ type OrgShowParams struct { diff --git a/go/client/operations/org_show_responses.go b/go/client/operations/org_show_responses.go index a633767..3d4425c 100644 --- a/go/client/operations/org_show_responses.go +++ b/go/client/operations/org_show_responses.go @@ -63,7 +63,8 @@ func NewOrgShowOK() *OrgShowOK { return &OrgShowOK{} } -/* OrgShowOK describes a response with status code 200, with default header values. +/* +OrgShowOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type OrgShowOK struct { Payload *models.V0OrganizationRespModel } +// IsSuccess returns true when this org show o k response has a 2xx status code +func (o *OrgShowOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this org show o k response has a 3xx status code +func (o *OrgShowOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this org show o k response has a 4xx status code +func (o *OrgShowOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this org show o k response has a 5xx status code +func (o *OrgShowOK) IsServerError() bool { + return false +} + +// IsCode returns true when this org show o k response a status code equal to that given +func (o *OrgShowOK) IsCode(code int) bool { + return code == 200 +} + func (o *OrgShowOK) Error() string { return fmt.Sprintf("[GET /organizations/{org-slug}][%d] orgShowOK %+v", 200, o.Payload) } + +func (o *OrgShowOK) String() string { + return fmt.Sprintf("[GET /organizations/{org-slug}][%d] orgShowOK %+v", 200, o.Payload) +} + func (o *OrgShowOK) GetPayload() *models.V0OrganizationRespModel { return o.Payload } @@ -95,7 +126,8 @@ func NewOrgShowBadRequest() *OrgShowBadRequest { return &OrgShowBadRequest{} } -/* OrgShowBadRequest describes a response with status code 400, with default header values. +/* +OrgShowBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type OrgShowBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this org show bad request response has a 2xx status code +func (o *OrgShowBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this org show bad request response has a 3xx status code +func (o *OrgShowBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this org show bad request response has a 4xx status code +func (o *OrgShowBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this org show bad request response has a 5xx status code +func (o *OrgShowBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this org show bad request response a status code equal to that given +func (o *OrgShowBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *OrgShowBadRequest) Error() string { return fmt.Sprintf("[GET /organizations/{org-slug}][%d] orgShowBadRequest %+v", 400, o.Payload) } + +func (o *OrgShowBadRequest) String() string { + return fmt.Sprintf("[GET /organizations/{org-slug}][%d] orgShowBadRequest %+v", 400, o.Payload) +} + func (o *OrgShowBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewOrgShowUnauthorized() *OrgShowUnauthorized { return &OrgShowUnauthorized{} } -/* OrgShowUnauthorized describes a response with status code 401, with default header values. +/* +OrgShowUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type OrgShowUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this org show unauthorized response has a 2xx status code +func (o *OrgShowUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this org show unauthorized response has a 3xx status code +func (o *OrgShowUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this org show unauthorized response has a 4xx status code +func (o *OrgShowUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this org show unauthorized response has a 5xx status code +func (o *OrgShowUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this org show unauthorized response a status code equal to that given +func (o *OrgShowUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *OrgShowUnauthorized) Error() string { return fmt.Sprintf("[GET /organizations/{org-slug}][%d] orgShowUnauthorized %+v", 401, o.Payload) } + +func (o *OrgShowUnauthorized) String() string { + return fmt.Sprintf("[GET /organizations/{org-slug}][%d] orgShowUnauthorized %+v", 401, o.Payload) +} + func (o *OrgShowUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewOrgShowNotFound() *OrgShowNotFound { return &OrgShowNotFound{} } -/* OrgShowNotFound describes a response with status code 404, with default header values. +/* +OrgShowNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type OrgShowNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this org show not found response has a 2xx status code +func (o *OrgShowNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this org show not found response has a 3xx status code +func (o *OrgShowNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this org show not found response has a 4xx status code +func (o *OrgShowNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this org show not found response has a 5xx status code +func (o *OrgShowNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this org show not found response a status code equal to that given +func (o *OrgShowNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *OrgShowNotFound) Error() string { return fmt.Sprintf("[GET /organizations/{org-slug}][%d] orgShowNotFound %+v", 404, o.Payload) } + +func (o *OrgShowNotFound) String() string { + return fmt.Sprintf("[GET /organizations/{org-slug}][%d] orgShowNotFound %+v", 404, o.Payload) +} + func (o *OrgShowNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewOrgShowInternalServerError() *OrgShowInternalServerError { return &OrgShowInternalServerError{} } -/* OrgShowInternalServerError describes a response with status code 500, with default header values. +/* +OrgShowInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type OrgShowInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this org show internal server error response has a 2xx status code +func (o *OrgShowInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this org show internal server error response has a 3xx status code +func (o *OrgShowInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this org show internal server error response has a 4xx status code +func (o *OrgShowInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this org show internal server error response has a 5xx status code +func (o *OrgShowInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this org show internal server error response a status code equal to that given +func (o *OrgShowInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *OrgShowInternalServerError) Error() string { return fmt.Sprintf("[GET /organizations/{org-slug}][%d] orgShowInternalServerError %+v", 500, o.Payload) } + +func (o *OrgShowInternalServerError) String() string { + return fmt.Sprintf("[GET /organizations/{org-slug}][%d] orgShowInternalServerError %+v", 500, o.Payload) +} + func (o *OrgShowInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/outgoing_webhook_create_parameters.go b/go/client/operations/outgoing_webhook_create_parameters.go index 520cf2b..05f07aa 100644 --- a/go/client/operations/outgoing_webhook_create_parameters.go +++ b/go/client/operations/outgoing_webhook_create_parameters.go @@ -54,10 +54,12 @@ func NewOutgoingWebhookCreateParamsWithHTTPClient(client *http.Client) *Outgoing } } -/* OutgoingWebhookCreateParams contains all the parameters to send to the API endpoint - for the outgoing webhook create operation. +/* +OutgoingWebhookCreateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the outgoing webhook create operation. + + Typically these are written to a http.Request. */ type OutgoingWebhookCreateParams struct { diff --git a/go/client/operations/outgoing_webhook_create_responses.go b/go/client/operations/outgoing_webhook_create_responses.go index 6087829..099cae5 100644 --- a/go/client/operations/outgoing_webhook_create_responses.go +++ b/go/client/operations/outgoing_webhook_create_responses.go @@ -63,7 +63,8 @@ func NewOutgoingWebhookCreateOK() *OutgoingWebhookCreateOK { return &OutgoingWebhookCreateOK{} } -/* OutgoingWebhookCreateOK describes a response with status code 200, with default header values. +/* +OutgoingWebhookCreateOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type OutgoingWebhookCreateOK struct { Payload *models.V0AppWebhookCreatedResponseModel } +// IsSuccess returns true when this outgoing webhook create o k response has a 2xx status code +func (o *OutgoingWebhookCreateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this outgoing webhook create o k response has a 3xx status code +func (o *OutgoingWebhookCreateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this outgoing webhook create o k response has a 4xx status code +func (o *OutgoingWebhookCreateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this outgoing webhook create o k response has a 5xx status code +func (o *OutgoingWebhookCreateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this outgoing webhook create o k response a status code equal to that given +func (o *OutgoingWebhookCreateOK) IsCode(code int) bool { + return code == 200 +} + func (o *OutgoingWebhookCreateOK) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/outgoing-webhooks][%d] outgoingWebhookCreateOK %+v", 200, o.Payload) } + +func (o *OutgoingWebhookCreateOK) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/outgoing-webhooks][%d] outgoingWebhookCreateOK %+v", 200, o.Payload) +} + func (o *OutgoingWebhookCreateOK) GetPayload() *models.V0AppWebhookCreatedResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewOutgoingWebhookCreateBadRequest() *OutgoingWebhookCreateBadRequest { return &OutgoingWebhookCreateBadRequest{} } -/* OutgoingWebhookCreateBadRequest describes a response with status code 400, with default header values. +/* +OutgoingWebhookCreateBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type OutgoingWebhookCreateBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this outgoing webhook create bad request response has a 2xx status code +func (o *OutgoingWebhookCreateBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this outgoing webhook create bad request response has a 3xx status code +func (o *OutgoingWebhookCreateBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this outgoing webhook create bad request response has a 4xx status code +func (o *OutgoingWebhookCreateBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this outgoing webhook create bad request response has a 5xx status code +func (o *OutgoingWebhookCreateBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this outgoing webhook create bad request response a status code equal to that given +func (o *OutgoingWebhookCreateBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *OutgoingWebhookCreateBadRequest) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/outgoing-webhooks][%d] outgoingWebhookCreateBadRequest %+v", 400, o.Payload) } + +func (o *OutgoingWebhookCreateBadRequest) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/outgoing-webhooks][%d] outgoingWebhookCreateBadRequest %+v", 400, o.Payload) +} + func (o *OutgoingWebhookCreateBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewOutgoingWebhookCreateUnauthorized() *OutgoingWebhookCreateUnauthorized { return &OutgoingWebhookCreateUnauthorized{} } -/* OutgoingWebhookCreateUnauthorized describes a response with status code 401, with default header values. +/* +OutgoingWebhookCreateUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type OutgoingWebhookCreateUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this outgoing webhook create unauthorized response has a 2xx status code +func (o *OutgoingWebhookCreateUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this outgoing webhook create unauthorized response has a 3xx status code +func (o *OutgoingWebhookCreateUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this outgoing webhook create unauthorized response has a 4xx status code +func (o *OutgoingWebhookCreateUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this outgoing webhook create unauthorized response has a 5xx status code +func (o *OutgoingWebhookCreateUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this outgoing webhook create unauthorized response a status code equal to that given +func (o *OutgoingWebhookCreateUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *OutgoingWebhookCreateUnauthorized) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/outgoing-webhooks][%d] outgoingWebhookCreateUnauthorized %+v", 401, o.Payload) } + +func (o *OutgoingWebhookCreateUnauthorized) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/outgoing-webhooks][%d] outgoingWebhookCreateUnauthorized %+v", 401, o.Payload) +} + func (o *OutgoingWebhookCreateUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewOutgoingWebhookCreateNotFound() *OutgoingWebhookCreateNotFound { return &OutgoingWebhookCreateNotFound{} } -/* OutgoingWebhookCreateNotFound describes a response with status code 404, with default header values. +/* +OutgoingWebhookCreateNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type OutgoingWebhookCreateNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this outgoing webhook create not found response has a 2xx status code +func (o *OutgoingWebhookCreateNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this outgoing webhook create not found response has a 3xx status code +func (o *OutgoingWebhookCreateNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this outgoing webhook create not found response has a 4xx status code +func (o *OutgoingWebhookCreateNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this outgoing webhook create not found response has a 5xx status code +func (o *OutgoingWebhookCreateNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this outgoing webhook create not found response a status code equal to that given +func (o *OutgoingWebhookCreateNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *OutgoingWebhookCreateNotFound) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/outgoing-webhooks][%d] outgoingWebhookCreateNotFound %+v", 404, o.Payload) } + +func (o *OutgoingWebhookCreateNotFound) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/outgoing-webhooks][%d] outgoingWebhookCreateNotFound %+v", 404, o.Payload) +} + func (o *OutgoingWebhookCreateNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewOutgoingWebhookCreateInternalServerError() *OutgoingWebhookCreateInterna return &OutgoingWebhookCreateInternalServerError{} } -/* OutgoingWebhookCreateInternalServerError describes a response with status code 500, with default header values. +/* +OutgoingWebhookCreateInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type OutgoingWebhookCreateInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this outgoing webhook create internal server error response has a 2xx status code +func (o *OutgoingWebhookCreateInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this outgoing webhook create internal server error response has a 3xx status code +func (o *OutgoingWebhookCreateInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this outgoing webhook create internal server error response has a 4xx status code +func (o *OutgoingWebhookCreateInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this outgoing webhook create internal server error response has a 5xx status code +func (o *OutgoingWebhookCreateInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this outgoing webhook create internal server error response a status code equal to that given +func (o *OutgoingWebhookCreateInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *OutgoingWebhookCreateInternalServerError) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/outgoing-webhooks][%d] outgoingWebhookCreateInternalServerError %+v", 500, o.Payload) } + +func (o *OutgoingWebhookCreateInternalServerError) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/outgoing-webhooks][%d] outgoingWebhookCreateInternalServerError %+v", 500, o.Payload) +} + func (o *OutgoingWebhookCreateInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/outgoing_webhook_delete_parameters.go b/go/client/operations/outgoing_webhook_delete_parameters.go index 1bb57a1..7c078cd 100644 --- a/go/client/operations/outgoing_webhook_delete_parameters.go +++ b/go/client/operations/outgoing_webhook_delete_parameters.go @@ -52,10 +52,12 @@ func NewOutgoingWebhookDeleteParamsWithHTTPClient(client *http.Client) *Outgoing } } -/* OutgoingWebhookDeleteParams contains all the parameters to send to the API endpoint - for the outgoing webhook delete operation. +/* +OutgoingWebhookDeleteParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the outgoing webhook delete operation. + + Typically these are written to a http.Request. */ type OutgoingWebhookDeleteParams struct { diff --git a/go/client/operations/outgoing_webhook_delete_responses.go b/go/client/operations/outgoing_webhook_delete_responses.go index 164fb41..2267094 100644 --- a/go/client/operations/outgoing_webhook_delete_responses.go +++ b/go/client/operations/outgoing_webhook_delete_responses.go @@ -63,7 +63,8 @@ func NewOutgoingWebhookDeleteOK() *OutgoingWebhookDeleteOK { return &OutgoingWebhookDeleteOK{} } -/* OutgoingWebhookDeleteOK describes a response with status code 200, with default header values. +/* +OutgoingWebhookDeleteOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type OutgoingWebhookDeleteOK struct { Payload *models.V0AppWebhookDeletedResponseModel } +// IsSuccess returns true when this outgoing webhook delete o k response has a 2xx status code +func (o *OutgoingWebhookDeleteOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this outgoing webhook delete o k response has a 3xx status code +func (o *OutgoingWebhookDeleteOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this outgoing webhook delete o k response has a 4xx status code +func (o *OutgoingWebhookDeleteOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this outgoing webhook delete o k response has a 5xx status code +func (o *OutgoingWebhookDeleteOK) IsServerError() bool { + return false +} + +// IsCode returns true when this outgoing webhook delete o k response a status code equal to that given +func (o *OutgoingWebhookDeleteOK) IsCode(code int) bool { + return code == 200 +} + func (o *OutgoingWebhookDeleteOK) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}][%d] outgoingWebhookDeleteOK %+v", 200, o.Payload) } + +func (o *OutgoingWebhookDeleteOK) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}][%d] outgoingWebhookDeleteOK %+v", 200, o.Payload) +} + func (o *OutgoingWebhookDeleteOK) GetPayload() *models.V0AppWebhookDeletedResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewOutgoingWebhookDeleteBadRequest() *OutgoingWebhookDeleteBadRequest { return &OutgoingWebhookDeleteBadRequest{} } -/* OutgoingWebhookDeleteBadRequest describes a response with status code 400, with default header values. +/* +OutgoingWebhookDeleteBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type OutgoingWebhookDeleteBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this outgoing webhook delete bad request response has a 2xx status code +func (o *OutgoingWebhookDeleteBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this outgoing webhook delete bad request response has a 3xx status code +func (o *OutgoingWebhookDeleteBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this outgoing webhook delete bad request response has a 4xx status code +func (o *OutgoingWebhookDeleteBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this outgoing webhook delete bad request response has a 5xx status code +func (o *OutgoingWebhookDeleteBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this outgoing webhook delete bad request response a status code equal to that given +func (o *OutgoingWebhookDeleteBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *OutgoingWebhookDeleteBadRequest) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}][%d] outgoingWebhookDeleteBadRequest %+v", 400, o.Payload) } + +func (o *OutgoingWebhookDeleteBadRequest) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}][%d] outgoingWebhookDeleteBadRequest %+v", 400, o.Payload) +} + func (o *OutgoingWebhookDeleteBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewOutgoingWebhookDeleteUnauthorized() *OutgoingWebhookDeleteUnauthorized { return &OutgoingWebhookDeleteUnauthorized{} } -/* OutgoingWebhookDeleteUnauthorized describes a response with status code 401, with default header values. +/* +OutgoingWebhookDeleteUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type OutgoingWebhookDeleteUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this outgoing webhook delete unauthorized response has a 2xx status code +func (o *OutgoingWebhookDeleteUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this outgoing webhook delete unauthorized response has a 3xx status code +func (o *OutgoingWebhookDeleteUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this outgoing webhook delete unauthorized response has a 4xx status code +func (o *OutgoingWebhookDeleteUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this outgoing webhook delete unauthorized response has a 5xx status code +func (o *OutgoingWebhookDeleteUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this outgoing webhook delete unauthorized response a status code equal to that given +func (o *OutgoingWebhookDeleteUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *OutgoingWebhookDeleteUnauthorized) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}][%d] outgoingWebhookDeleteUnauthorized %+v", 401, o.Payload) } + +func (o *OutgoingWebhookDeleteUnauthorized) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}][%d] outgoingWebhookDeleteUnauthorized %+v", 401, o.Payload) +} + func (o *OutgoingWebhookDeleteUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewOutgoingWebhookDeleteNotFound() *OutgoingWebhookDeleteNotFound { return &OutgoingWebhookDeleteNotFound{} } -/* OutgoingWebhookDeleteNotFound describes a response with status code 404, with default header values. +/* +OutgoingWebhookDeleteNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type OutgoingWebhookDeleteNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this outgoing webhook delete not found response has a 2xx status code +func (o *OutgoingWebhookDeleteNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this outgoing webhook delete not found response has a 3xx status code +func (o *OutgoingWebhookDeleteNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this outgoing webhook delete not found response has a 4xx status code +func (o *OutgoingWebhookDeleteNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this outgoing webhook delete not found response has a 5xx status code +func (o *OutgoingWebhookDeleteNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this outgoing webhook delete not found response a status code equal to that given +func (o *OutgoingWebhookDeleteNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *OutgoingWebhookDeleteNotFound) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}][%d] outgoingWebhookDeleteNotFound %+v", 404, o.Payload) } + +func (o *OutgoingWebhookDeleteNotFound) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}][%d] outgoingWebhookDeleteNotFound %+v", 404, o.Payload) +} + func (o *OutgoingWebhookDeleteNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewOutgoingWebhookDeleteInternalServerError() *OutgoingWebhookDeleteInterna return &OutgoingWebhookDeleteInternalServerError{} } -/* OutgoingWebhookDeleteInternalServerError describes a response with status code 500, with default header values. +/* +OutgoingWebhookDeleteInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type OutgoingWebhookDeleteInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this outgoing webhook delete internal server error response has a 2xx status code +func (o *OutgoingWebhookDeleteInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this outgoing webhook delete internal server error response has a 3xx status code +func (o *OutgoingWebhookDeleteInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this outgoing webhook delete internal server error response has a 4xx status code +func (o *OutgoingWebhookDeleteInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this outgoing webhook delete internal server error response has a 5xx status code +func (o *OutgoingWebhookDeleteInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this outgoing webhook delete internal server error response a status code equal to that given +func (o *OutgoingWebhookDeleteInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *OutgoingWebhookDeleteInternalServerError) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}][%d] outgoingWebhookDeleteInternalServerError %+v", 500, o.Payload) } + +func (o *OutgoingWebhookDeleteInternalServerError) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}][%d] outgoingWebhookDeleteInternalServerError %+v", 500, o.Payload) +} + func (o *OutgoingWebhookDeleteInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/outgoing_webhook_list_parameters.go b/go/client/operations/outgoing_webhook_list_parameters.go index 9212f74..a12e482 100644 --- a/go/client/operations/outgoing_webhook_list_parameters.go +++ b/go/client/operations/outgoing_webhook_list_parameters.go @@ -53,10 +53,12 @@ func NewOutgoingWebhookListParamsWithHTTPClient(client *http.Client) *OutgoingWe } } -/* OutgoingWebhookListParams contains all the parameters to send to the API endpoint - for the outgoing webhook list operation. +/* +OutgoingWebhookListParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the outgoing webhook list operation. + + Typically these are written to a http.Request. */ type OutgoingWebhookListParams struct { diff --git a/go/client/operations/outgoing_webhook_list_responses.go b/go/client/operations/outgoing_webhook_list_responses.go index c08b2f3..18e216b 100644 --- a/go/client/operations/outgoing_webhook_list_responses.go +++ b/go/client/operations/outgoing_webhook_list_responses.go @@ -57,7 +57,8 @@ func NewOutgoingWebhookListOK() *OutgoingWebhookListOK { return &OutgoingWebhookListOK{} } -/* OutgoingWebhookListOK describes a response with status code 200, with default header values. +/* +OutgoingWebhookListOK describes a response with status code 200, with default header values. OK */ @@ -65,9 +66,39 @@ type OutgoingWebhookListOK struct { Payload *models.V0AppWebhookListResponseModel } +// IsSuccess returns true when this outgoing webhook list o k response has a 2xx status code +func (o *OutgoingWebhookListOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this outgoing webhook list o k response has a 3xx status code +func (o *OutgoingWebhookListOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this outgoing webhook list o k response has a 4xx status code +func (o *OutgoingWebhookListOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this outgoing webhook list o k response has a 5xx status code +func (o *OutgoingWebhookListOK) IsServerError() bool { + return false +} + +// IsCode returns true when this outgoing webhook list o k response a status code equal to that given +func (o *OutgoingWebhookListOK) IsCode(code int) bool { + return code == 200 +} + func (o *OutgoingWebhookListOK) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/outgoing-webhooks][%d] outgoingWebhookListOK %+v", 200, o.Payload) } + +func (o *OutgoingWebhookListOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/outgoing-webhooks][%d] outgoingWebhookListOK %+v", 200, o.Payload) +} + func (o *OutgoingWebhookListOK) GetPayload() *models.V0AppWebhookListResponseModel { return o.Payload } @@ -89,7 +120,8 @@ func NewOutgoingWebhookListBadRequest() *OutgoingWebhookListBadRequest { return &OutgoingWebhookListBadRequest{} } -/* OutgoingWebhookListBadRequest describes a response with status code 400, with default header values. +/* +OutgoingWebhookListBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -97,9 +129,39 @@ type OutgoingWebhookListBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this outgoing webhook list bad request response has a 2xx status code +func (o *OutgoingWebhookListBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this outgoing webhook list bad request response has a 3xx status code +func (o *OutgoingWebhookListBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this outgoing webhook list bad request response has a 4xx status code +func (o *OutgoingWebhookListBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this outgoing webhook list bad request response has a 5xx status code +func (o *OutgoingWebhookListBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this outgoing webhook list bad request response a status code equal to that given +func (o *OutgoingWebhookListBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *OutgoingWebhookListBadRequest) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/outgoing-webhooks][%d] outgoingWebhookListBadRequest %+v", 400, o.Payload) } + +func (o *OutgoingWebhookListBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/outgoing-webhooks][%d] outgoingWebhookListBadRequest %+v", 400, o.Payload) +} + func (o *OutgoingWebhookListBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -121,7 +183,8 @@ func NewOutgoingWebhookListUnauthorized() *OutgoingWebhookListUnauthorized { return &OutgoingWebhookListUnauthorized{} } -/* OutgoingWebhookListUnauthorized describes a response with status code 401, with default header values. +/* +OutgoingWebhookListUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -129,9 +192,39 @@ type OutgoingWebhookListUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this outgoing webhook list unauthorized response has a 2xx status code +func (o *OutgoingWebhookListUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this outgoing webhook list unauthorized response has a 3xx status code +func (o *OutgoingWebhookListUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this outgoing webhook list unauthorized response has a 4xx status code +func (o *OutgoingWebhookListUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this outgoing webhook list unauthorized response has a 5xx status code +func (o *OutgoingWebhookListUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this outgoing webhook list unauthorized response a status code equal to that given +func (o *OutgoingWebhookListUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *OutgoingWebhookListUnauthorized) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/outgoing-webhooks][%d] outgoingWebhookListUnauthorized %+v", 401, o.Payload) } + +func (o *OutgoingWebhookListUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/outgoing-webhooks][%d] outgoingWebhookListUnauthorized %+v", 401, o.Payload) +} + func (o *OutgoingWebhookListUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -153,7 +246,8 @@ func NewOutgoingWebhookListInternalServerError() *OutgoingWebhookListInternalSer return &OutgoingWebhookListInternalServerError{} } -/* OutgoingWebhookListInternalServerError describes a response with status code 500, with default header values. +/* +OutgoingWebhookListInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -161,9 +255,39 @@ type OutgoingWebhookListInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this outgoing webhook list internal server error response has a 2xx status code +func (o *OutgoingWebhookListInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this outgoing webhook list internal server error response has a 3xx status code +func (o *OutgoingWebhookListInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this outgoing webhook list internal server error response has a 4xx status code +func (o *OutgoingWebhookListInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this outgoing webhook list internal server error response has a 5xx status code +func (o *OutgoingWebhookListInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this outgoing webhook list internal server error response a status code equal to that given +func (o *OutgoingWebhookListInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *OutgoingWebhookListInternalServerError) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/outgoing-webhooks][%d] outgoingWebhookListInternalServerError %+v", 500, o.Payload) } + +func (o *OutgoingWebhookListInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/outgoing-webhooks][%d] outgoingWebhookListInternalServerError %+v", 500, o.Payload) +} + func (o *OutgoingWebhookListInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/outgoing_webhook_update_parameters.go b/go/client/operations/outgoing_webhook_update_parameters.go index b3a0d91..0c03a2b 100644 --- a/go/client/operations/outgoing_webhook_update_parameters.go +++ b/go/client/operations/outgoing_webhook_update_parameters.go @@ -54,10 +54,12 @@ func NewOutgoingWebhookUpdateParamsWithHTTPClient(client *http.Client) *Outgoing } } -/* OutgoingWebhookUpdateParams contains all the parameters to send to the API endpoint - for the outgoing webhook update operation. +/* +OutgoingWebhookUpdateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the outgoing webhook update operation. + + Typically these are written to a http.Request. */ type OutgoingWebhookUpdateParams struct { diff --git a/go/client/operations/outgoing_webhook_update_responses.go b/go/client/operations/outgoing_webhook_update_responses.go index 66ab2a4..e9f0d75 100644 --- a/go/client/operations/outgoing_webhook_update_responses.go +++ b/go/client/operations/outgoing_webhook_update_responses.go @@ -63,7 +63,8 @@ func NewOutgoingWebhookUpdateOK() *OutgoingWebhookUpdateOK { return &OutgoingWebhookUpdateOK{} } -/* OutgoingWebhookUpdateOK describes a response with status code 200, with default header values. +/* +OutgoingWebhookUpdateOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type OutgoingWebhookUpdateOK struct { Payload *models.V0AppWebhookResponseModel } +// IsSuccess returns true when this outgoing webhook update o k response has a 2xx status code +func (o *OutgoingWebhookUpdateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this outgoing webhook update o k response has a 3xx status code +func (o *OutgoingWebhookUpdateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this outgoing webhook update o k response has a 4xx status code +func (o *OutgoingWebhookUpdateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this outgoing webhook update o k response has a 5xx status code +func (o *OutgoingWebhookUpdateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this outgoing webhook update o k response a status code equal to that given +func (o *OutgoingWebhookUpdateOK) IsCode(code int) bool { + return code == 200 +} + func (o *OutgoingWebhookUpdateOK) Error() string { return fmt.Sprintf("[PUT /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}][%d] outgoingWebhookUpdateOK %+v", 200, o.Payload) } + +func (o *OutgoingWebhookUpdateOK) String() string { + return fmt.Sprintf("[PUT /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}][%d] outgoingWebhookUpdateOK %+v", 200, o.Payload) +} + func (o *OutgoingWebhookUpdateOK) GetPayload() *models.V0AppWebhookResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewOutgoingWebhookUpdateBadRequest() *OutgoingWebhookUpdateBadRequest { return &OutgoingWebhookUpdateBadRequest{} } -/* OutgoingWebhookUpdateBadRequest describes a response with status code 400, with default header values. +/* +OutgoingWebhookUpdateBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type OutgoingWebhookUpdateBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this outgoing webhook update bad request response has a 2xx status code +func (o *OutgoingWebhookUpdateBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this outgoing webhook update bad request response has a 3xx status code +func (o *OutgoingWebhookUpdateBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this outgoing webhook update bad request response has a 4xx status code +func (o *OutgoingWebhookUpdateBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this outgoing webhook update bad request response has a 5xx status code +func (o *OutgoingWebhookUpdateBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this outgoing webhook update bad request response a status code equal to that given +func (o *OutgoingWebhookUpdateBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *OutgoingWebhookUpdateBadRequest) Error() string { return fmt.Sprintf("[PUT /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}][%d] outgoingWebhookUpdateBadRequest %+v", 400, o.Payload) } + +func (o *OutgoingWebhookUpdateBadRequest) String() string { + return fmt.Sprintf("[PUT /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}][%d] outgoingWebhookUpdateBadRequest %+v", 400, o.Payload) +} + func (o *OutgoingWebhookUpdateBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewOutgoingWebhookUpdateUnauthorized() *OutgoingWebhookUpdateUnauthorized { return &OutgoingWebhookUpdateUnauthorized{} } -/* OutgoingWebhookUpdateUnauthorized describes a response with status code 401, with default header values. +/* +OutgoingWebhookUpdateUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type OutgoingWebhookUpdateUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this outgoing webhook update unauthorized response has a 2xx status code +func (o *OutgoingWebhookUpdateUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this outgoing webhook update unauthorized response has a 3xx status code +func (o *OutgoingWebhookUpdateUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this outgoing webhook update unauthorized response has a 4xx status code +func (o *OutgoingWebhookUpdateUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this outgoing webhook update unauthorized response has a 5xx status code +func (o *OutgoingWebhookUpdateUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this outgoing webhook update unauthorized response a status code equal to that given +func (o *OutgoingWebhookUpdateUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *OutgoingWebhookUpdateUnauthorized) Error() string { return fmt.Sprintf("[PUT /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}][%d] outgoingWebhookUpdateUnauthorized %+v", 401, o.Payload) } + +func (o *OutgoingWebhookUpdateUnauthorized) String() string { + return fmt.Sprintf("[PUT /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}][%d] outgoingWebhookUpdateUnauthorized %+v", 401, o.Payload) +} + func (o *OutgoingWebhookUpdateUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewOutgoingWebhookUpdateNotFound() *OutgoingWebhookUpdateNotFound { return &OutgoingWebhookUpdateNotFound{} } -/* OutgoingWebhookUpdateNotFound describes a response with status code 404, with default header values. +/* +OutgoingWebhookUpdateNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type OutgoingWebhookUpdateNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this outgoing webhook update not found response has a 2xx status code +func (o *OutgoingWebhookUpdateNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this outgoing webhook update not found response has a 3xx status code +func (o *OutgoingWebhookUpdateNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this outgoing webhook update not found response has a 4xx status code +func (o *OutgoingWebhookUpdateNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this outgoing webhook update not found response has a 5xx status code +func (o *OutgoingWebhookUpdateNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this outgoing webhook update not found response a status code equal to that given +func (o *OutgoingWebhookUpdateNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *OutgoingWebhookUpdateNotFound) Error() string { return fmt.Sprintf("[PUT /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}][%d] outgoingWebhookUpdateNotFound %+v", 404, o.Payload) } + +func (o *OutgoingWebhookUpdateNotFound) String() string { + return fmt.Sprintf("[PUT /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}][%d] outgoingWebhookUpdateNotFound %+v", 404, o.Payload) +} + func (o *OutgoingWebhookUpdateNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewOutgoingWebhookUpdateInternalServerError() *OutgoingWebhookUpdateInterna return &OutgoingWebhookUpdateInternalServerError{} } -/* OutgoingWebhookUpdateInternalServerError describes a response with status code 500, with default header values. +/* +OutgoingWebhookUpdateInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type OutgoingWebhookUpdateInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this outgoing webhook update internal server error response has a 2xx status code +func (o *OutgoingWebhookUpdateInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this outgoing webhook update internal server error response has a 3xx status code +func (o *OutgoingWebhookUpdateInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this outgoing webhook update internal server error response has a 4xx status code +func (o *OutgoingWebhookUpdateInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this outgoing webhook update internal server error response has a 5xx status code +func (o *OutgoingWebhookUpdateInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this outgoing webhook update internal server error response a status code equal to that given +func (o *OutgoingWebhookUpdateInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *OutgoingWebhookUpdateInternalServerError) Error() string { return fmt.Sprintf("[PUT /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}][%d] outgoingWebhookUpdateInternalServerError %+v", 500, o.Payload) } + +func (o *OutgoingWebhookUpdateInternalServerError) String() string { + return fmt.Sprintf("[PUT /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}][%d] outgoingWebhookUpdateInternalServerError %+v", 500, o.Payload) +} + func (o *OutgoingWebhookUpdateInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/pipeline_abort_parameters.go b/go/client/operations/pipeline_abort_parameters.go new file mode 100644 index 0000000..a9df9aa --- /dev/null +++ b/go/client/operations/pipeline_abort_parameters.go @@ -0,0 +1,197 @@ +// 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" + "github.com/go-openapi/strfmt" + + "github.com/Staffbase/bitrise-api/go/models" +) + +// NewPipelineAbortParams creates a new PipelineAbortParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewPipelineAbortParams() *PipelineAbortParams { + return &PipelineAbortParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewPipelineAbortParamsWithTimeout creates a new PipelineAbortParams object +// with the ability to set a timeout on a request. +func NewPipelineAbortParamsWithTimeout(timeout time.Duration) *PipelineAbortParams { + return &PipelineAbortParams{ + timeout: timeout, + } +} + +// NewPipelineAbortParamsWithContext creates a new PipelineAbortParams object +// with the ability to set a context for a request. +func NewPipelineAbortParamsWithContext(ctx context.Context) *PipelineAbortParams { + return &PipelineAbortParams{ + Context: ctx, + } +} + +// NewPipelineAbortParamsWithHTTPClient creates a new PipelineAbortParams object +// with the ability to set a custom HTTPClient for a request. +func NewPipelineAbortParamsWithHTTPClient(client *http.Client) *PipelineAbortParams { + return &PipelineAbortParams{ + HTTPClient: client, + } +} + +/* +PipelineAbortParams contains all the parameters to send to the API endpoint + + for the pipeline abort operation. + + Typically these are written to a http.Request. +*/ +type PipelineAbortParams struct { + + /* AppSlug. + + App slug + */ + AppSlug string + + /* PipelineAbortParams. + + Pipeline abort parameters + */ + PipelineAbortParams *models.V0PipelineAbortParams + + /* PipelineID. + + Pipeline id + */ + PipelineID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the pipeline abort params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *PipelineAbortParams) WithDefaults() *PipelineAbortParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the pipeline abort params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *PipelineAbortParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the pipeline abort params +func (o *PipelineAbortParams) WithTimeout(timeout time.Duration) *PipelineAbortParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the pipeline abort params +func (o *PipelineAbortParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the pipeline abort params +func (o *PipelineAbortParams) WithContext(ctx context.Context) *PipelineAbortParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the pipeline abort params +func (o *PipelineAbortParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the pipeline abort params +func (o *PipelineAbortParams) WithHTTPClient(client *http.Client) *PipelineAbortParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the pipeline abort params +func (o *PipelineAbortParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAppSlug adds the appSlug to the pipeline abort params +func (o *PipelineAbortParams) WithAppSlug(appSlug string) *PipelineAbortParams { + o.SetAppSlug(appSlug) + return o +} + +// SetAppSlug adds the appSlug to the pipeline abort params +func (o *PipelineAbortParams) SetAppSlug(appSlug string) { + o.AppSlug = appSlug +} + +// WithPipelineAbortParams adds the pipelineAbortParams to the pipeline abort params +func (o *PipelineAbortParams) WithPipelineAbortParams(pipelineAbortParams *models.V0PipelineAbortParams) *PipelineAbortParams { + o.SetPipelineAbortParams(pipelineAbortParams) + return o +} + +// SetPipelineAbortParams adds the pipelineAbortParams to the pipeline abort params +func (o *PipelineAbortParams) SetPipelineAbortParams(pipelineAbortParams *models.V0PipelineAbortParams) { + o.PipelineAbortParams = pipelineAbortParams +} + +// WithPipelineID adds the pipelineID to the pipeline abort params +func (o *PipelineAbortParams) WithPipelineID(pipelineID string) *PipelineAbortParams { + o.SetPipelineID(pipelineID) + return o +} + +// SetPipelineID adds the pipelineId to the pipeline abort params +func (o *PipelineAbortParams) SetPipelineID(pipelineID string) { + o.PipelineID = pipelineID +} + +// WriteToRequest writes these params to a swagger request +func (o *PipelineAbortParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param app-slug + if err := r.SetPathParam("app-slug", o.AppSlug); err != nil { + return err + } + if o.PipelineAbortParams != nil { + if err := r.SetBodyParam(o.PipelineAbortParams); err != nil { + return err + } + } + + // path param pipeline-id + if err := r.SetPathParam("pipeline-id", o.PipelineID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/go/client/operations/pipeline_abort_responses.go b/go/client/operations/pipeline_abort_responses.go new file mode 100644 index 0000000..b1ca05b --- /dev/null +++ b/go/client/operations/pipeline_abort_responses.go @@ -0,0 +1,362 @@ +// 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" + "github.com/go-openapi/strfmt" + + "github.com/Staffbase/bitrise-api/go/models" +) + +// PipelineAbortReader is a Reader for the PipelineAbort structure. +type PipelineAbortReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *PipelineAbortReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewPipelineAbortOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 400: + result := NewPipelineAbortBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 401: + result := NewPipelineAbortUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewPipelineAbortNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewPipelineAbortInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewPipelineAbortOK creates a PipelineAbortOK with default headers values +func NewPipelineAbortOK() *PipelineAbortOK { + return &PipelineAbortOK{} +} + +/* +PipelineAbortOK describes a response with status code 200, with default header values. + +OK +*/ +type PipelineAbortOK struct { +} + +// IsSuccess returns true when this pipeline abort o k response has a 2xx status code +func (o *PipelineAbortOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this pipeline abort o k response has a 3xx status code +func (o *PipelineAbortOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline abort o k response has a 4xx status code +func (o *PipelineAbortOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this pipeline abort o k response has a 5xx status code +func (o *PipelineAbortOK) IsServerError() bool { + return false +} + +// IsCode returns true when this pipeline abort o k response a status code equal to that given +func (o *PipelineAbortOK) IsCode(code int) bool { + return code == 200 +} + +func (o *PipelineAbortOK) Error() string { + return fmt.Sprintf("[POST /apps/{app-slug}/pipelines/{pipeline-id}/abort][%d] pipelineAbortOK ", 200) +} + +func (o *PipelineAbortOK) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/pipelines/{pipeline-id}/abort][%d] pipelineAbortOK ", 200) +} + +func (o *PipelineAbortOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} + +// NewPipelineAbortBadRequest creates a PipelineAbortBadRequest with default headers values +func NewPipelineAbortBadRequest() *PipelineAbortBadRequest { + return &PipelineAbortBadRequest{} +} + +/* +PipelineAbortBadRequest describes a response with status code 400, with default header values. + +Bad Request +*/ +type PipelineAbortBadRequest struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this pipeline abort bad request response has a 2xx status code +func (o *PipelineAbortBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this pipeline abort bad request response has a 3xx status code +func (o *PipelineAbortBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline abort bad request response has a 4xx status code +func (o *PipelineAbortBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this pipeline abort bad request response has a 5xx status code +func (o *PipelineAbortBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this pipeline abort bad request response a status code equal to that given +func (o *PipelineAbortBadRequest) IsCode(code int) bool { + return code == 400 +} + +func (o *PipelineAbortBadRequest) Error() string { + return fmt.Sprintf("[POST /apps/{app-slug}/pipelines/{pipeline-id}/abort][%d] pipelineAbortBadRequest %+v", 400, o.Payload) +} + +func (o *PipelineAbortBadRequest) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/pipelines/{pipeline-id}/abort][%d] pipelineAbortBadRequest %+v", 400, o.Payload) +} + +func (o *PipelineAbortBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *PipelineAbortBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPipelineAbortUnauthorized creates a PipelineAbortUnauthorized with default headers values +func NewPipelineAbortUnauthorized() *PipelineAbortUnauthorized { + return &PipelineAbortUnauthorized{} +} + +/* +PipelineAbortUnauthorized describes a response with status code 401, with default header values. + +Unauthorized +*/ +type PipelineAbortUnauthorized struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this pipeline abort unauthorized response has a 2xx status code +func (o *PipelineAbortUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this pipeline abort unauthorized response has a 3xx status code +func (o *PipelineAbortUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline abort unauthorized response has a 4xx status code +func (o *PipelineAbortUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this pipeline abort unauthorized response has a 5xx status code +func (o *PipelineAbortUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this pipeline abort unauthorized response a status code equal to that given +func (o *PipelineAbortUnauthorized) IsCode(code int) bool { + return code == 401 +} + +func (o *PipelineAbortUnauthorized) Error() string { + return fmt.Sprintf("[POST /apps/{app-slug}/pipelines/{pipeline-id}/abort][%d] pipelineAbortUnauthorized %+v", 401, o.Payload) +} + +func (o *PipelineAbortUnauthorized) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/pipelines/{pipeline-id}/abort][%d] pipelineAbortUnauthorized %+v", 401, o.Payload) +} + +func (o *PipelineAbortUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *PipelineAbortUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPipelineAbortNotFound creates a PipelineAbortNotFound with default headers values +func NewPipelineAbortNotFound() *PipelineAbortNotFound { + return &PipelineAbortNotFound{} +} + +/* +PipelineAbortNotFound describes a response with status code 404, with default header values. + +Not Found +*/ +type PipelineAbortNotFound struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this pipeline abort not found response has a 2xx status code +func (o *PipelineAbortNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this pipeline abort not found response has a 3xx status code +func (o *PipelineAbortNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline abort not found response has a 4xx status code +func (o *PipelineAbortNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this pipeline abort not found response has a 5xx status code +func (o *PipelineAbortNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this pipeline abort not found response a status code equal to that given +func (o *PipelineAbortNotFound) IsCode(code int) bool { + return code == 404 +} + +func (o *PipelineAbortNotFound) Error() string { + return fmt.Sprintf("[POST /apps/{app-slug}/pipelines/{pipeline-id}/abort][%d] pipelineAbortNotFound %+v", 404, o.Payload) +} + +func (o *PipelineAbortNotFound) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/pipelines/{pipeline-id}/abort][%d] pipelineAbortNotFound %+v", 404, o.Payload) +} + +func (o *PipelineAbortNotFound) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *PipelineAbortNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPipelineAbortInternalServerError creates a PipelineAbortInternalServerError with default headers values +func NewPipelineAbortInternalServerError() *PipelineAbortInternalServerError { + return &PipelineAbortInternalServerError{} +} + +/* +PipelineAbortInternalServerError describes a response with status code 500, with default header values. + +Internal Server Error +*/ +type PipelineAbortInternalServerError struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this pipeline abort internal server error response has a 2xx status code +func (o *PipelineAbortInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this pipeline abort internal server error response has a 3xx status code +func (o *PipelineAbortInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline abort internal server error response has a 4xx status code +func (o *PipelineAbortInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this pipeline abort internal server error response has a 5xx status code +func (o *PipelineAbortInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this pipeline abort internal server error response a status code equal to that given +func (o *PipelineAbortInternalServerError) IsCode(code int) bool { + return code == 500 +} + +func (o *PipelineAbortInternalServerError) Error() string { + return fmt.Sprintf("[POST /apps/{app-slug}/pipelines/{pipeline-id}/abort][%d] pipelineAbortInternalServerError %+v", 500, o.Payload) +} + +func (o *PipelineAbortInternalServerError) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/pipelines/{pipeline-id}/abort][%d] pipelineAbortInternalServerError %+v", 500, o.Payload) +} + +func (o *PipelineAbortInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *PipelineAbortInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/go/client/operations/pipeline_list_all_parameters.go b/go/client/operations/pipeline_list_all_parameters.go new file mode 100644 index 0000000..da2b95e --- /dev/null +++ b/go/client/operations/pipeline_list_all_parameters.go @@ -0,0 +1,266 @@ +// 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" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewPipelineListAllParams creates a new PipelineListAllParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewPipelineListAllParams() *PipelineListAllParams { + return &PipelineListAllParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewPipelineListAllParamsWithTimeout creates a new PipelineListAllParams object +// with the ability to set a timeout on a request. +func NewPipelineListAllParamsWithTimeout(timeout time.Duration) *PipelineListAllParams { + return &PipelineListAllParams{ + timeout: timeout, + } +} + +// NewPipelineListAllParamsWithContext creates a new PipelineListAllParams object +// with the ability to set a context for a request. +func NewPipelineListAllParamsWithContext(ctx context.Context) *PipelineListAllParams { + return &PipelineListAllParams{ + Context: ctx, + } +} + +// NewPipelineListAllParamsWithHTTPClient creates a new PipelineListAllParams object +// with the ability to set a custom HTTPClient for a request. +func NewPipelineListAllParamsWithHTTPClient(client *http.Client) *PipelineListAllParams { + return &PipelineListAllParams{ + HTTPClient: client, + } +} + +/* +PipelineListAllParams contains all the parameters to send to the API endpoint + + for the pipeline list all operation. + + Typically these are written to a http.Request. +*/ +type PipelineListAllParams struct { + + /* Limit. + + Max number of elements per page (default: 10) + */ + Limit *int64 + + /* Next. + + Getting pipelines/standalone builds before the given parameter (RFC3339 time format) + */ + Next *string + + /* OwnerSlug. + + The slug of the owner of the app or apps + */ + OwnerSlug *string + + /* Status. + + The status of the pipelines/standalone build: initializing, on_hold, running, succeeded, failed, aborted, succeeded_with_abort + */ + Status *int64 + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the pipeline list all params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *PipelineListAllParams) WithDefaults() *PipelineListAllParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the pipeline list all params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *PipelineListAllParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the pipeline list all params +func (o *PipelineListAllParams) WithTimeout(timeout time.Duration) *PipelineListAllParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the pipeline list all params +func (o *PipelineListAllParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the pipeline list all params +func (o *PipelineListAllParams) WithContext(ctx context.Context) *PipelineListAllParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the pipeline list all params +func (o *PipelineListAllParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the pipeline list all params +func (o *PipelineListAllParams) WithHTTPClient(client *http.Client) *PipelineListAllParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the pipeline list all params +func (o *PipelineListAllParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithLimit adds the limit to the pipeline list all params +func (o *PipelineListAllParams) WithLimit(limit *int64) *PipelineListAllParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the pipeline list all params +func (o *PipelineListAllParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithNext adds the next to the pipeline list all params +func (o *PipelineListAllParams) WithNext(next *string) *PipelineListAllParams { + o.SetNext(next) + return o +} + +// SetNext adds the next to the pipeline list all params +func (o *PipelineListAllParams) SetNext(next *string) { + o.Next = next +} + +// WithOwnerSlug adds the ownerSlug to the pipeline list all params +func (o *PipelineListAllParams) WithOwnerSlug(ownerSlug *string) *PipelineListAllParams { + o.SetOwnerSlug(ownerSlug) + return o +} + +// SetOwnerSlug adds the ownerSlug to the pipeline list all params +func (o *PipelineListAllParams) SetOwnerSlug(ownerSlug *string) { + o.OwnerSlug = ownerSlug +} + +// WithStatus adds the status to the pipeline list all params +func (o *PipelineListAllParams) WithStatus(status *int64) *PipelineListAllParams { + o.SetStatus(status) + return o +} + +// SetStatus adds the status to the pipeline list all params +func (o *PipelineListAllParams) SetStatus(status *int64) { + o.Status = status +} + +// WriteToRequest writes these params to a swagger request +func (o *PipelineListAllParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Next != nil { + + // query param next + var qrNext string + + if o.Next != nil { + qrNext = *o.Next + } + qNext := qrNext + if qNext != "" { + + if err := r.SetQueryParam("next", qNext); err != nil { + return err + } + } + } + + if o.OwnerSlug != nil { + + // query param owner_slug + var qrOwnerSlug string + + if o.OwnerSlug != nil { + qrOwnerSlug = *o.OwnerSlug + } + qOwnerSlug := qrOwnerSlug + if qOwnerSlug != "" { + + if err := r.SetQueryParam("owner_slug", qOwnerSlug); err != nil { + return err + } + } + } + + if o.Status != nil { + + // query param status + var qrStatus int64 + + if o.Status != nil { + qrStatus = *o.Status + } + qStatus := swag.FormatInt64(qrStatus) + if qStatus != "" { + + if err := r.SetQueryParam("status", qStatus); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/go/client/operations/pipeline_list_all_responses.go b/go/client/operations/pipeline_list_all_responses.go new file mode 100644 index 0000000..cf5ba8c --- /dev/null +++ b/go/client/operations/pipeline_list_all_responses.go @@ -0,0 +1,374 @@ +// 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" + "github.com/go-openapi/strfmt" + + "github.com/Staffbase/bitrise-api/go/models" +) + +// PipelineListAllReader is a Reader for the PipelineListAll structure. +type PipelineListAllReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *PipelineListAllReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewPipelineListAllOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 400: + result := NewPipelineListAllBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 401: + result := NewPipelineListAllUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewPipelineListAllNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewPipelineListAllInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewPipelineListAllOK creates a PipelineListAllOK with default headers values +func NewPipelineListAllOK() *PipelineListAllOK { + return &PipelineListAllOK{} +} + +/* +PipelineListAllOK describes a response with status code 200, with default header values. + +OK +*/ +type PipelineListAllOK struct { + Payload *models.V0PipelineListAllResponseModel +} + +// IsSuccess returns true when this pipeline list all o k response has a 2xx status code +func (o *PipelineListAllOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this pipeline list all o k response has a 3xx status code +func (o *PipelineListAllOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline list all o k response has a 4xx status code +func (o *PipelineListAllOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this pipeline list all o k response has a 5xx status code +func (o *PipelineListAllOK) IsServerError() bool { + return false +} + +// IsCode returns true when this pipeline list all o k response a status code equal to that given +func (o *PipelineListAllOK) IsCode(code int) bool { + return code == 200 +} + +func (o *PipelineListAllOK) Error() string { + return fmt.Sprintf("[GET /pipelines][%d] pipelineListAllOK %+v", 200, o.Payload) +} + +func (o *PipelineListAllOK) String() string { + return fmt.Sprintf("[GET /pipelines][%d] pipelineListAllOK %+v", 200, o.Payload) +} + +func (o *PipelineListAllOK) GetPayload() *models.V0PipelineListAllResponseModel { + return o.Payload +} + +func (o *PipelineListAllOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.V0PipelineListAllResponseModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPipelineListAllBadRequest creates a PipelineListAllBadRequest with default headers values +func NewPipelineListAllBadRequest() *PipelineListAllBadRequest { + return &PipelineListAllBadRequest{} +} + +/* +PipelineListAllBadRequest describes a response with status code 400, with default header values. + +Bad Request +*/ +type PipelineListAllBadRequest struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this pipeline list all bad request response has a 2xx status code +func (o *PipelineListAllBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this pipeline list all bad request response has a 3xx status code +func (o *PipelineListAllBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline list all bad request response has a 4xx status code +func (o *PipelineListAllBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this pipeline list all bad request response has a 5xx status code +func (o *PipelineListAllBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this pipeline list all bad request response a status code equal to that given +func (o *PipelineListAllBadRequest) IsCode(code int) bool { + return code == 400 +} + +func (o *PipelineListAllBadRequest) Error() string { + return fmt.Sprintf("[GET /pipelines][%d] pipelineListAllBadRequest %+v", 400, o.Payload) +} + +func (o *PipelineListAllBadRequest) String() string { + return fmt.Sprintf("[GET /pipelines][%d] pipelineListAllBadRequest %+v", 400, o.Payload) +} + +func (o *PipelineListAllBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *PipelineListAllBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPipelineListAllUnauthorized creates a PipelineListAllUnauthorized with default headers values +func NewPipelineListAllUnauthorized() *PipelineListAllUnauthorized { + return &PipelineListAllUnauthorized{} +} + +/* +PipelineListAllUnauthorized describes a response with status code 401, with default header values. + +Unauthorized +*/ +type PipelineListAllUnauthorized struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this pipeline list all unauthorized response has a 2xx status code +func (o *PipelineListAllUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this pipeline list all unauthorized response has a 3xx status code +func (o *PipelineListAllUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline list all unauthorized response has a 4xx status code +func (o *PipelineListAllUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this pipeline list all unauthorized response has a 5xx status code +func (o *PipelineListAllUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this pipeline list all unauthorized response a status code equal to that given +func (o *PipelineListAllUnauthorized) IsCode(code int) bool { + return code == 401 +} + +func (o *PipelineListAllUnauthorized) Error() string { + return fmt.Sprintf("[GET /pipelines][%d] pipelineListAllUnauthorized %+v", 401, o.Payload) +} + +func (o *PipelineListAllUnauthorized) String() string { + return fmt.Sprintf("[GET /pipelines][%d] pipelineListAllUnauthorized %+v", 401, o.Payload) +} + +func (o *PipelineListAllUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *PipelineListAllUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPipelineListAllNotFound creates a PipelineListAllNotFound with default headers values +func NewPipelineListAllNotFound() *PipelineListAllNotFound { + return &PipelineListAllNotFound{} +} + +/* +PipelineListAllNotFound describes a response with status code 404, with default header values. + +Not Found +*/ +type PipelineListAllNotFound struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this pipeline list all not found response has a 2xx status code +func (o *PipelineListAllNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this pipeline list all not found response has a 3xx status code +func (o *PipelineListAllNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline list all not found response has a 4xx status code +func (o *PipelineListAllNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this pipeline list all not found response has a 5xx status code +func (o *PipelineListAllNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this pipeline list all not found response a status code equal to that given +func (o *PipelineListAllNotFound) IsCode(code int) bool { + return code == 404 +} + +func (o *PipelineListAllNotFound) Error() string { + return fmt.Sprintf("[GET /pipelines][%d] pipelineListAllNotFound %+v", 404, o.Payload) +} + +func (o *PipelineListAllNotFound) String() string { + return fmt.Sprintf("[GET /pipelines][%d] pipelineListAllNotFound %+v", 404, o.Payload) +} + +func (o *PipelineListAllNotFound) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *PipelineListAllNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPipelineListAllInternalServerError creates a PipelineListAllInternalServerError with default headers values +func NewPipelineListAllInternalServerError() *PipelineListAllInternalServerError { + return &PipelineListAllInternalServerError{} +} + +/* +PipelineListAllInternalServerError describes a response with status code 500, with default header values. + +Internal Server Error +*/ +type PipelineListAllInternalServerError struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this pipeline list all internal server error response has a 2xx status code +func (o *PipelineListAllInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this pipeline list all internal server error response has a 3xx status code +func (o *PipelineListAllInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline list all internal server error response has a 4xx status code +func (o *PipelineListAllInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this pipeline list all internal server error response has a 5xx status code +func (o *PipelineListAllInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this pipeline list all internal server error response a status code equal to that given +func (o *PipelineListAllInternalServerError) IsCode(code int) bool { + return code == 500 +} + +func (o *PipelineListAllInternalServerError) Error() string { + return fmt.Sprintf("[GET /pipelines][%d] pipelineListAllInternalServerError %+v", 500, o.Payload) +} + +func (o *PipelineListAllInternalServerError) String() string { + return fmt.Sprintf("[GET /pipelines][%d] pipelineListAllInternalServerError %+v", 500, o.Payload) +} + +func (o *PipelineListAllInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *PipelineListAllInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/go/client/operations/pipeline_list_parameters.go b/go/client/operations/pipeline_list_parameters.go new file mode 100644 index 0000000..b0b088a --- /dev/null +++ b/go/client/operations/pipeline_list_parameters.go @@ -0,0 +1,424 @@ +// 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" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// NewPipelineListParams creates a new PipelineListParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewPipelineListParams() *PipelineListParams { + return &PipelineListParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewPipelineListParamsWithTimeout creates a new PipelineListParams object +// with the ability to set a timeout on a request. +func NewPipelineListParamsWithTimeout(timeout time.Duration) *PipelineListParams { + return &PipelineListParams{ + timeout: timeout, + } +} + +// NewPipelineListParamsWithContext creates a new PipelineListParams object +// with the ability to set a context for a request. +func NewPipelineListParamsWithContext(ctx context.Context) *PipelineListParams { + return &PipelineListParams{ + Context: ctx, + } +} + +// NewPipelineListParamsWithHTTPClient creates a new PipelineListParams object +// with the ability to set a custom HTTPClient for a request. +func NewPipelineListParamsWithHTTPClient(client *http.Client) *PipelineListParams { + return &PipelineListParams{ + HTTPClient: client, + } +} + +/* +PipelineListParams contains all the parameters to send to the API endpoint + + for the pipeline list operation. + + Typically these are written to a http.Request. +*/ +type PipelineListParams struct { + + /* AppSlug. + + App slug + */ + AppSlug string + + /* Branch. + + The branch which was built + */ + Branch *string + + /* BuildNumber. + + The pipeline/standalone build number + */ + BuildNumber *int64 + + /* CommitMessage. + + The commit message of the pipeline/standalone build + */ + CommitMessage *string + + /* Limit. + + Max number of elements per page (default: 10) + */ + Limit *int64 + + /* Next. + + List pipelines/standalone builds run before a given date (RFC3339 time format) + */ + Next *string + + /* Status. + + The status of the pipeline/standalone build: initializing, on_hold, running, succeeded, failed, aborted, succeeded_with_abort + */ + Status *string + + /* TriggerEventType. + + The event that triggered the pipeline/standalone build (push, pull-request, tag) + */ + TriggerEventType *string + + /* Workflow. + + The name of the workflow used for the pipeline/standalone build + */ + Workflow *string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the pipeline list params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *PipelineListParams) WithDefaults() *PipelineListParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the pipeline list params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *PipelineListParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the pipeline list params +func (o *PipelineListParams) WithTimeout(timeout time.Duration) *PipelineListParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the pipeline list params +func (o *PipelineListParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the pipeline list params +func (o *PipelineListParams) WithContext(ctx context.Context) *PipelineListParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the pipeline list params +func (o *PipelineListParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the pipeline list params +func (o *PipelineListParams) WithHTTPClient(client *http.Client) *PipelineListParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the pipeline list params +func (o *PipelineListParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAppSlug adds the appSlug to the pipeline list params +func (o *PipelineListParams) WithAppSlug(appSlug string) *PipelineListParams { + o.SetAppSlug(appSlug) + return o +} + +// SetAppSlug adds the appSlug to the pipeline list params +func (o *PipelineListParams) SetAppSlug(appSlug string) { + o.AppSlug = appSlug +} + +// WithBranch adds the branch to the pipeline list params +func (o *PipelineListParams) WithBranch(branch *string) *PipelineListParams { + o.SetBranch(branch) + return o +} + +// SetBranch adds the branch to the pipeline list params +func (o *PipelineListParams) SetBranch(branch *string) { + o.Branch = branch +} + +// WithBuildNumber adds the buildNumber to the pipeline list params +func (o *PipelineListParams) WithBuildNumber(buildNumber *int64) *PipelineListParams { + o.SetBuildNumber(buildNumber) + return o +} + +// SetBuildNumber adds the buildNumber to the pipeline list params +func (o *PipelineListParams) SetBuildNumber(buildNumber *int64) { + o.BuildNumber = buildNumber +} + +// WithCommitMessage adds the commitMessage to the pipeline list params +func (o *PipelineListParams) WithCommitMessage(commitMessage *string) *PipelineListParams { + o.SetCommitMessage(commitMessage) + return o +} + +// SetCommitMessage adds the commitMessage to the pipeline list params +func (o *PipelineListParams) SetCommitMessage(commitMessage *string) { + o.CommitMessage = commitMessage +} + +// WithLimit adds the limit to the pipeline list params +func (o *PipelineListParams) WithLimit(limit *int64) *PipelineListParams { + o.SetLimit(limit) + return o +} + +// SetLimit adds the limit to the pipeline list params +func (o *PipelineListParams) SetLimit(limit *int64) { + o.Limit = limit +} + +// WithNext adds the next to the pipeline list params +func (o *PipelineListParams) WithNext(next *string) *PipelineListParams { + o.SetNext(next) + return o +} + +// SetNext adds the next to the pipeline list params +func (o *PipelineListParams) SetNext(next *string) { + o.Next = next +} + +// WithStatus adds the status to the pipeline list params +func (o *PipelineListParams) WithStatus(status *string) *PipelineListParams { + o.SetStatus(status) + return o +} + +// SetStatus adds the status to the pipeline list params +func (o *PipelineListParams) SetStatus(status *string) { + o.Status = status +} + +// WithTriggerEventType adds the triggerEventType to the pipeline list params +func (o *PipelineListParams) WithTriggerEventType(triggerEventType *string) *PipelineListParams { + o.SetTriggerEventType(triggerEventType) + return o +} + +// SetTriggerEventType adds the triggerEventType to the pipeline list params +func (o *PipelineListParams) SetTriggerEventType(triggerEventType *string) { + o.TriggerEventType = triggerEventType +} + +// WithWorkflow adds the workflow to the pipeline list params +func (o *PipelineListParams) WithWorkflow(workflow *string) *PipelineListParams { + o.SetWorkflow(workflow) + return o +} + +// SetWorkflow adds the workflow to the pipeline list params +func (o *PipelineListParams) SetWorkflow(workflow *string) { + o.Workflow = workflow +} + +// WriteToRequest writes these params to a swagger request +func (o *PipelineListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param app-slug + if err := r.SetPathParam("app-slug", o.AppSlug); err != nil { + return err + } + + if o.Branch != nil { + + // query param branch + var qrBranch string + + if o.Branch != nil { + qrBranch = *o.Branch + } + qBranch := qrBranch + if qBranch != "" { + + if err := r.SetQueryParam("branch", qBranch); err != nil { + return err + } + } + } + + if o.BuildNumber != nil { + + // query param build_number + var qrBuildNumber int64 + + if o.BuildNumber != nil { + qrBuildNumber = *o.BuildNumber + } + qBuildNumber := swag.FormatInt64(qrBuildNumber) + if qBuildNumber != "" { + + if err := r.SetQueryParam("build_number", qBuildNumber); err != nil { + return err + } + } + } + + if o.CommitMessage != nil { + + // query param commit_message + var qrCommitMessage string + + if o.CommitMessage != nil { + qrCommitMessage = *o.CommitMessage + } + qCommitMessage := qrCommitMessage + if qCommitMessage != "" { + + if err := r.SetQueryParam("commit_message", qCommitMessage); err != nil { + return err + } + } + } + + if o.Limit != nil { + + // query param limit + var qrLimit int64 + + if o.Limit != nil { + qrLimit = *o.Limit + } + qLimit := swag.FormatInt64(qrLimit) + if qLimit != "" { + + if err := r.SetQueryParam("limit", qLimit); err != nil { + return err + } + } + } + + if o.Next != nil { + + // query param next + var qrNext string + + if o.Next != nil { + qrNext = *o.Next + } + qNext := qrNext + if qNext != "" { + + if err := r.SetQueryParam("next", qNext); err != nil { + return err + } + } + } + + if o.Status != nil { + + // query param status + var qrStatus string + + if o.Status != nil { + qrStatus = *o.Status + } + qStatus := qrStatus + if qStatus != "" { + + if err := r.SetQueryParam("status", qStatus); err != nil { + return err + } + } + } + + if o.TriggerEventType != nil { + + // query param trigger_event_type + var qrTriggerEventType string + + if o.TriggerEventType != nil { + qrTriggerEventType = *o.TriggerEventType + } + qTriggerEventType := qrTriggerEventType + if qTriggerEventType != "" { + + if err := r.SetQueryParam("trigger_event_type", qTriggerEventType); err != nil { + return err + } + } + } + + if o.Workflow != nil { + + // query param workflow + var qrWorkflow string + + if o.Workflow != nil { + qrWorkflow = *o.Workflow + } + qWorkflow := qrWorkflow + if qWorkflow != "" { + + if err := r.SetQueryParam("workflow", qWorkflow); err != nil { + return err + } + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/go/client/operations/pipeline_list_responses.go b/go/client/operations/pipeline_list_responses.go new file mode 100644 index 0000000..730ef7b --- /dev/null +++ b/go/client/operations/pipeline_list_responses.go @@ -0,0 +1,374 @@ +// 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" + "github.com/go-openapi/strfmt" + + "github.com/Staffbase/bitrise-api/go/models" +) + +// PipelineListReader is a Reader for the PipelineList structure. +type PipelineListReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *PipelineListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewPipelineListOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 400: + result := NewPipelineListBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 401: + result := NewPipelineListUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewPipelineListNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewPipelineListInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewPipelineListOK creates a PipelineListOK with default headers values +func NewPipelineListOK() *PipelineListOK { + return &PipelineListOK{} +} + +/* +PipelineListOK describes a response with status code 200, with default header values. + +OK +*/ +type PipelineListOK struct { + Payload *models.V0PipelineListResponseModel +} + +// IsSuccess returns true when this pipeline list o k response has a 2xx status code +func (o *PipelineListOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this pipeline list o k response has a 3xx status code +func (o *PipelineListOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline list o k response has a 4xx status code +func (o *PipelineListOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this pipeline list o k response has a 5xx status code +func (o *PipelineListOK) IsServerError() bool { + return false +} + +// IsCode returns true when this pipeline list o k response a status code equal to that given +func (o *PipelineListOK) IsCode(code int) bool { + return code == 200 +} + +func (o *PipelineListOK) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/pipelines][%d] pipelineListOK %+v", 200, o.Payload) +} + +func (o *PipelineListOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/pipelines][%d] pipelineListOK %+v", 200, o.Payload) +} + +func (o *PipelineListOK) GetPayload() *models.V0PipelineListResponseModel { + return o.Payload +} + +func (o *PipelineListOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.V0PipelineListResponseModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPipelineListBadRequest creates a PipelineListBadRequest with default headers values +func NewPipelineListBadRequest() *PipelineListBadRequest { + return &PipelineListBadRequest{} +} + +/* +PipelineListBadRequest describes a response with status code 400, with default header values. + +Bad Request +*/ +type PipelineListBadRequest struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this pipeline list bad request response has a 2xx status code +func (o *PipelineListBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this pipeline list bad request response has a 3xx status code +func (o *PipelineListBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline list bad request response has a 4xx status code +func (o *PipelineListBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this pipeline list bad request response has a 5xx status code +func (o *PipelineListBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this pipeline list bad request response a status code equal to that given +func (o *PipelineListBadRequest) IsCode(code int) bool { + return code == 400 +} + +func (o *PipelineListBadRequest) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/pipelines][%d] pipelineListBadRequest %+v", 400, o.Payload) +} + +func (o *PipelineListBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/pipelines][%d] pipelineListBadRequest %+v", 400, o.Payload) +} + +func (o *PipelineListBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *PipelineListBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPipelineListUnauthorized creates a PipelineListUnauthorized with default headers values +func NewPipelineListUnauthorized() *PipelineListUnauthorized { + return &PipelineListUnauthorized{} +} + +/* +PipelineListUnauthorized describes a response with status code 401, with default header values. + +Unauthorized +*/ +type PipelineListUnauthorized struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this pipeline list unauthorized response has a 2xx status code +func (o *PipelineListUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this pipeline list unauthorized response has a 3xx status code +func (o *PipelineListUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline list unauthorized response has a 4xx status code +func (o *PipelineListUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this pipeline list unauthorized response has a 5xx status code +func (o *PipelineListUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this pipeline list unauthorized response a status code equal to that given +func (o *PipelineListUnauthorized) IsCode(code int) bool { + return code == 401 +} + +func (o *PipelineListUnauthorized) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/pipelines][%d] pipelineListUnauthorized %+v", 401, o.Payload) +} + +func (o *PipelineListUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/pipelines][%d] pipelineListUnauthorized %+v", 401, o.Payload) +} + +func (o *PipelineListUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *PipelineListUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPipelineListNotFound creates a PipelineListNotFound with default headers values +func NewPipelineListNotFound() *PipelineListNotFound { + return &PipelineListNotFound{} +} + +/* +PipelineListNotFound describes a response with status code 404, with default header values. + +Not Found +*/ +type PipelineListNotFound struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this pipeline list not found response has a 2xx status code +func (o *PipelineListNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this pipeline list not found response has a 3xx status code +func (o *PipelineListNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline list not found response has a 4xx status code +func (o *PipelineListNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this pipeline list not found response has a 5xx status code +func (o *PipelineListNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this pipeline list not found response a status code equal to that given +func (o *PipelineListNotFound) IsCode(code int) bool { + return code == 404 +} + +func (o *PipelineListNotFound) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/pipelines][%d] pipelineListNotFound %+v", 404, o.Payload) +} + +func (o *PipelineListNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/pipelines][%d] pipelineListNotFound %+v", 404, o.Payload) +} + +func (o *PipelineListNotFound) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *PipelineListNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPipelineListInternalServerError creates a PipelineListInternalServerError with default headers values +func NewPipelineListInternalServerError() *PipelineListInternalServerError { + return &PipelineListInternalServerError{} +} + +/* +PipelineListInternalServerError describes a response with status code 500, with default header values. + +Internal Server Error +*/ +type PipelineListInternalServerError struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this pipeline list internal server error response has a 2xx status code +func (o *PipelineListInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this pipeline list internal server error response has a 3xx status code +func (o *PipelineListInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline list internal server error response has a 4xx status code +func (o *PipelineListInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this pipeline list internal server error response has a 5xx status code +func (o *PipelineListInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this pipeline list internal server error response a status code equal to that given +func (o *PipelineListInternalServerError) IsCode(code int) bool { + return code == 500 +} + +func (o *PipelineListInternalServerError) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/pipelines][%d] pipelineListInternalServerError %+v", 500, o.Payload) +} + +func (o *PipelineListInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/pipelines][%d] pipelineListInternalServerError %+v", 500, o.Payload) +} + +func (o *PipelineListInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *PipelineListInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/go/client/operations/pipeline_rebuild_parameters.go b/go/client/operations/pipeline_rebuild_parameters.go new file mode 100644 index 0000000..d128bac --- /dev/null +++ b/go/client/operations/pipeline_rebuild_parameters.go @@ -0,0 +1,197 @@ +// 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" + "github.com/go-openapi/strfmt" + + "github.com/Staffbase/bitrise-api/go/models" +) + +// NewPipelineRebuildParams creates a new PipelineRebuildParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewPipelineRebuildParams() *PipelineRebuildParams { + return &PipelineRebuildParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewPipelineRebuildParamsWithTimeout creates a new PipelineRebuildParams object +// with the ability to set a timeout on a request. +func NewPipelineRebuildParamsWithTimeout(timeout time.Duration) *PipelineRebuildParams { + return &PipelineRebuildParams{ + timeout: timeout, + } +} + +// NewPipelineRebuildParamsWithContext creates a new PipelineRebuildParams object +// with the ability to set a context for a request. +func NewPipelineRebuildParamsWithContext(ctx context.Context) *PipelineRebuildParams { + return &PipelineRebuildParams{ + Context: ctx, + } +} + +// NewPipelineRebuildParamsWithHTTPClient creates a new PipelineRebuildParams object +// with the ability to set a custom HTTPClient for a request. +func NewPipelineRebuildParamsWithHTTPClient(client *http.Client) *PipelineRebuildParams { + return &PipelineRebuildParams{ + HTTPClient: client, + } +} + +/* +PipelineRebuildParams contains all the parameters to send to the API endpoint + + for the pipeline rebuild operation. + + Typically these are written to a http.Request. +*/ +type PipelineRebuildParams struct { + + /* AppSlug. + + App slug + */ + AppSlug string + + /* PipelineID. + + Pipeline id + */ + PipelineID string + + /* PipelineRebuildParams. + + Pipeline rebuild parameters + */ + PipelineRebuildParams *models.V0PipelineRebuildParams + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the pipeline rebuild params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *PipelineRebuildParams) WithDefaults() *PipelineRebuildParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the pipeline rebuild params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *PipelineRebuildParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the pipeline rebuild params +func (o *PipelineRebuildParams) WithTimeout(timeout time.Duration) *PipelineRebuildParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the pipeline rebuild params +func (o *PipelineRebuildParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the pipeline rebuild params +func (o *PipelineRebuildParams) WithContext(ctx context.Context) *PipelineRebuildParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the pipeline rebuild params +func (o *PipelineRebuildParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the pipeline rebuild params +func (o *PipelineRebuildParams) WithHTTPClient(client *http.Client) *PipelineRebuildParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the pipeline rebuild params +func (o *PipelineRebuildParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAppSlug adds the appSlug to the pipeline rebuild params +func (o *PipelineRebuildParams) WithAppSlug(appSlug string) *PipelineRebuildParams { + o.SetAppSlug(appSlug) + return o +} + +// SetAppSlug adds the appSlug to the pipeline rebuild params +func (o *PipelineRebuildParams) SetAppSlug(appSlug string) { + o.AppSlug = appSlug +} + +// WithPipelineID adds the pipelineID to the pipeline rebuild params +func (o *PipelineRebuildParams) WithPipelineID(pipelineID string) *PipelineRebuildParams { + o.SetPipelineID(pipelineID) + return o +} + +// SetPipelineID adds the pipelineId to the pipeline rebuild params +func (o *PipelineRebuildParams) SetPipelineID(pipelineID string) { + o.PipelineID = pipelineID +} + +// WithPipelineRebuildParams adds the pipelineRebuildParams to the pipeline rebuild params +func (o *PipelineRebuildParams) WithPipelineRebuildParams(pipelineRebuildParams *models.V0PipelineRebuildParams) *PipelineRebuildParams { + o.SetPipelineRebuildParams(pipelineRebuildParams) + return o +} + +// SetPipelineRebuildParams adds the pipelineRebuildParams to the pipeline rebuild params +func (o *PipelineRebuildParams) SetPipelineRebuildParams(pipelineRebuildParams *models.V0PipelineRebuildParams) { + o.PipelineRebuildParams = pipelineRebuildParams +} + +// WriteToRequest writes these params to a swagger request +func (o *PipelineRebuildParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param app-slug + if err := r.SetPathParam("app-slug", o.AppSlug); err != nil { + return err + } + + // path param pipeline-id + if err := r.SetPathParam("pipeline-id", o.PipelineID); err != nil { + return err + } + if o.PipelineRebuildParams != nil { + if err := r.SetBodyParam(o.PipelineRebuildParams); err != nil { + return err + } + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/go/client/operations/pipeline_rebuild_responses.go b/go/client/operations/pipeline_rebuild_responses.go new file mode 100644 index 0000000..f779ad5 --- /dev/null +++ b/go/client/operations/pipeline_rebuild_responses.go @@ -0,0 +1,431 @@ +// 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" + "github.com/go-openapi/strfmt" + + "github.com/Staffbase/bitrise-api/go/models" +) + +// PipelineRebuildReader is a Reader for the PipelineRebuild structure. +type PipelineRebuildReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *PipelineRebuildReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewPipelineRebuildOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 400: + result := NewPipelineRebuildBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 401: + result := NewPipelineRebuildUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewPipelineRebuildNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 412: + result := NewPipelineRebuildPreconditionFailed() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewPipelineRebuildInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewPipelineRebuildOK creates a PipelineRebuildOK with default headers values +func NewPipelineRebuildOK() *PipelineRebuildOK { + return &PipelineRebuildOK{} +} + +/* +PipelineRebuildOK describes a response with status code 200, with default header values. + +OK +*/ +type PipelineRebuildOK struct { +} + +// IsSuccess returns true when this pipeline rebuild o k response has a 2xx status code +func (o *PipelineRebuildOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this pipeline rebuild o k response has a 3xx status code +func (o *PipelineRebuildOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline rebuild o k response has a 4xx status code +func (o *PipelineRebuildOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this pipeline rebuild o k response has a 5xx status code +func (o *PipelineRebuildOK) IsServerError() bool { + return false +} + +// IsCode returns true when this pipeline rebuild o k response a status code equal to that given +func (o *PipelineRebuildOK) IsCode(code int) bool { + return code == 200 +} + +func (o *PipelineRebuildOK) Error() string { + return fmt.Sprintf("[POST /apps/{app-slug}/pipelines/{pipeline-id}/rebuild][%d] pipelineRebuildOK ", 200) +} + +func (o *PipelineRebuildOK) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/pipelines/{pipeline-id}/rebuild][%d] pipelineRebuildOK ", 200) +} + +func (o *PipelineRebuildOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} + +// NewPipelineRebuildBadRequest creates a PipelineRebuildBadRequest with default headers values +func NewPipelineRebuildBadRequest() *PipelineRebuildBadRequest { + return &PipelineRebuildBadRequest{} +} + +/* +PipelineRebuildBadRequest describes a response with status code 400, with default header values. + +Bad Request +*/ +type PipelineRebuildBadRequest struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this pipeline rebuild bad request response has a 2xx status code +func (o *PipelineRebuildBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this pipeline rebuild bad request response has a 3xx status code +func (o *PipelineRebuildBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline rebuild bad request response has a 4xx status code +func (o *PipelineRebuildBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this pipeline rebuild bad request response has a 5xx status code +func (o *PipelineRebuildBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this pipeline rebuild bad request response a status code equal to that given +func (o *PipelineRebuildBadRequest) IsCode(code int) bool { + return code == 400 +} + +func (o *PipelineRebuildBadRequest) Error() string { + return fmt.Sprintf("[POST /apps/{app-slug}/pipelines/{pipeline-id}/rebuild][%d] pipelineRebuildBadRequest %+v", 400, o.Payload) +} + +func (o *PipelineRebuildBadRequest) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/pipelines/{pipeline-id}/rebuild][%d] pipelineRebuildBadRequest %+v", 400, o.Payload) +} + +func (o *PipelineRebuildBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *PipelineRebuildBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPipelineRebuildUnauthorized creates a PipelineRebuildUnauthorized with default headers values +func NewPipelineRebuildUnauthorized() *PipelineRebuildUnauthorized { + return &PipelineRebuildUnauthorized{} +} + +/* +PipelineRebuildUnauthorized describes a response with status code 401, with default header values. + +Unauthorized +*/ +type PipelineRebuildUnauthorized struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this pipeline rebuild unauthorized response has a 2xx status code +func (o *PipelineRebuildUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this pipeline rebuild unauthorized response has a 3xx status code +func (o *PipelineRebuildUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline rebuild unauthorized response has a 4xx status code +func (o *PipelineRebuildUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this pipeline rebuild unauthorized response has a 5xx status code +func (o *PipelineRebuildUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this pipeline rebuild unauthorized response a status code equal to that given +func (o *PipelineRebuildUnauthorized) IsCode(code int) bool { + return code == 401 +} + +func (o *PipelineRebuildUnauthorized) Error() string { + return fmt.Sprintf("[POST /apps/{app-slug}/pipelines/{pipeline-id}/rebuild][%d] pipelineRebuildUnauthorized %+v", 401, o.Payload) +} + +func (o *PipelineRebuildUnauthorized) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/pipelines/{pipeline-id}/rebuild][%d] pipelineRebuildUnauthorized %+v", 401, o.Payload) +} + +func (o *PipelineRebuildUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *PipelineRebuildUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPipelineRebuildNotFound creates a PipelineRebuildNotFound with default headers values +func NewPipelineRebuildNotFound() *PipelineRebuildNotFound { + return &PipelineRebuildNotFound{} +} + +/* +PipelineRebuildNotFound describes a response with status code 404, with default header values. + +Not Found +*/ +type PipelineRebuildNotFound struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this pipeline rebuild not found response has a 2xx status code +func (o *PipelineRebuildNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this pipeline rebuild not found response has a 3xx status code +func (o *PipelineRebuildNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline rebuild not found response has a 4xx status code +func (o *PipelineRebuildNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this pipeline rebuild not found response has a 5xx status code +func (o *PipelineRebuildNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this pipeline rebuild not found response a status code equal to that given +func (o *PipelineRebuildNotFound) IsCode(code int) bool { + return code == 404 +} + +func (o *PipelineRebuildNotFound) Error() string { + return fmt.Sprintf("[POST /apps/{app-slug}/pipelines/{pipeline-id}/rebuild][%d] pipelineRebuildNotFound %+v", 404, o.Payload) +} + +func (o *PipelineRebuildNotFound) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/pipelines/{pipeline-id}/rebuild][%d] pipelineRebuildNotFound %+v", 404, o.Payload) +} + +func (o *PipelineRebuildNotFound) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *PipelineRebuildNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPipelineRebuildPreconditionFailed creates a PipelineRebuildPreconditionFailed with default headers values +func NewPipelineRebuildPreconditionFailed() *PipelineRebuildPreconditionFailed { + return &PipelineRebuildPreconditionFailed{} +} + +/* +PipelineRebuildPreconditionFailed describes a response with status code 412, with default header values. + +Precondition Failed +*/ +type PipelineRebuildPreconditionFailed struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this pipeline rebuild precondition failed response has a 2xx status code +func (o *PipelineRebuildPreconditionFailed) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this pipeline rebuild precondition failed response has a 3xx status code +func (o *PipelineRebuildPreconditionFailed) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline rebuild precondition failed response has a 4xx status code +func (o *PipelineRebuildPreconditionFailed) IsClientError() bool { + return true +} + +// IsServerError returns true when this pipeline rebuild precondition failed response has a 5xx status code +func (o *PipelineRebuildPreconditionFailed) IsServerError() bool { + return false +} + +// IsCode returns true when this pipeline rebuild precondition failed response a status code equal to that given +func (o *PipelineRebuildPreconditionFailed) IsCode(code int) bool { + return code == 412 +} + +func (o *PipelineRebuildPreconditionFailed) Error() string { + return fmt.Sprintf("[POST /apps/{app-slug}/pipelines/{pipeline-id}/rebuild][%d] pipelineRebuildPreconditionFailed %+v", 412, o.Payload) +} + +func (o *PipelineRebuildPreconditionFailed) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/pipelines/{pipeline-id}/rebuild][%d] pipelineRebuildPreconditionFailed %+v", 412, o.Payload) +} + +func (o *PipelineRebuildPreconditionFailed) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *PipelineRebuildPreconditionFailed) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPipelineRebuildInternalServerError creates a PipelineRebuildInternalServerError with default headers values +func NewPipelineRebuildInternalServerError() *PipelineRebuildInternalServerError { + return &PipelineRebuildInternalServerError{} +} + +/* +PipelineRebuildInternalServerError describes a response with status code 500, with default header values. + +Internal Server Error +*/ +type PipelineRebuildInternalServerError struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this pipeline rebuild internal server error response has a 2xx status code +func (o *PipelineRebuildInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this pipeline rebuild internal server error response has a 3xx status code +func (o *PipelineRebuildInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline rebuild internal server error response has a 4xx status code +func (o *PipelineRebuildInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this pipeline rebuild internal server error response has a 5xx status code +func (o *PipelineRebuildInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this pipeline rebuild internal server error response a status code equal to that given +func (o *PipelineRebuildInternalServerError) IsCode(code int) bool { + return code == 500 +} + +func (o *PipelineRebuildInternalServerError) Error() string { + return fmt.Sprintf("[POST /apps/{app-slug}/pipelines/{pipeline-id}/rebuild][%d] pipelineRebuildInternalServerError %+v", 500, o.Payload) +} + +func (o *PipelineRebuildInternalServerError) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/pipelines/{pipeline-id}/rebuild][%d] pipelineRebuildInternalServerError %+v", 500, o.Payload) +} + +func (o *PipelineRebuildInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *PipelineRebuildInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/go/client/operations/pipeline_show_parameters.go b/go/client/operations/pipeline_show_parameters.go new file mode 100644 index 0000000..4a975cd --- /dev/null +++ b/go/client/operations/pipeline_show_parameters.go @@ -0,0 +1,173 @@ +// 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" + "github.com/go-openapi/strfmt" +) + +// NewPipelineShowParams creates a new PipelineShowParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewPipelineShowParams() *PipelineShowParams { + return &PipelineShowParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewPipelineShowParamsWithTimeout creates a new PipelineShowParams object +// with the ability to set a timeout on a request. +func NewPipelineShowParamsWithTimeout(timeout time.Duration) *PipelineShowParams { + return &PipelineShowParams{ + timeout: timeout, + } +} + +// NewPipelineShowParamsWithContext creates a new PipelineShowParams object +// with the ability to set a context for a request. +func NewPipelineShowParamsWithContext(ctx context.Context) *PipelineShowParams { + return &PipelineShowParams{ + Context: ctx, + } +} + +// NewPipelineShowParamsWithHTTPClient creates a new PipelineShowParams object +// with the ability to set a custom HTTPClient for a request. +func NewPipelineShowParamsWithHTTPClient(client *http.Client) *PipelineShowParams { + return &PipelineShowParams{ + HTTPClient: client, + } +} + +/* +PipelineShowParams contains all the parameters to send to the API endpoint + + for the pipeline show operation. + + Typically these are written to a http.Request. +*/ +type PipelineShowParams struct { + + /* AppSlug. + + App slug + */ + AppSlug string + + /* PipelineID. + + Pipeline id + */ + PipelineID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the pipeline show params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *PipelineShowParams) WithDefaults() *PipelineShowParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the pipeline show params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *PipelineShowParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the pipeline show params +func (o *PipelineShowParams) WithTimeout(timeout time.Duration) *PipelineShowParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the pipeline show params +func (o *PipelineShowParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the pipeline show params +func (o *PipelineShowParams) WithContext(ctx context.Context) *PipelineShowParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the pipeline show params +func (o *PipelineShowParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the pipeline show params +func (o *PipelineShowParams) WithHTTPClient(client *http.Client) *PipelineShowParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the pipeline show params +func (o *PipelineShowParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAppSlug adds the appSlug to the pipeline show params +func (o *PipelineShowParams) WithAppSlug(appSlug string) *PipelineShowParams { + o.SetAppSlug(appSlug) + return o +} + +// SetAppSlug adds the appSlug to the pipeline show params +func (o *PipelineShowParams) SetAppSlug(appSlug string) { + o.AppSlug = appSlug +} + +// WithPipelineID adds the pipelineID to the pipeline show params +func (o *PipelineShowParams) WithPipelineID(pipelineID string) *PipelineShowParams { + o.SetPipelineID(pipelineID) + return o +} + +// SetPipelineID adds the pipelineId to the pipeline show params +func (o *PipelineShowParams) SetPipelineID(pipelineID string) { + o.PipelineID = pipelineID +} + +// WriteToRequest writes these params to a swagger request +func (o *PipelineShowParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param app-slug + if err := r.SetPathParam("app-slug", o.AppSlug); err != nil { + return err + } + + // path param pipeline-id + if err := r.SetPathParam("pipeline-id", o.PipelineID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/go/client/operations/pipeline_show_responses.go b/go/client/operations/pipeline_show_responses.go new file mode 100644 index 0000000..6f28dcc --- /dev/null +++ b/go/client/operations/pipeline_show_responses.go @@ -0,0 +1,374 @@ +// 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" + "github.com/go-openapi/strfmt" + + "github.com/Staffbase/bitrise-api/go/models" +) + +// PipelineShowReader is a Reader for the PipelineShow structure. +type PipelineShowReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *PipelineShowReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewPipelineShowOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 400: + result := NewPipelineShowBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 401: + result := NewPipelineShowUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewPipelineShowNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewPipelineShowInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewPipelineShowOK creates a PipelineShowOK with default headers values +func NewPipelineShowOK() *PipelineShowOK { + return &PipelineShowOK{} +} + +/* +PipelineShowOK describes a response with status code 200, with default header values. + +OK +*/ +type PipelineShowOK struct { + Payload *models.V0PipelineShowResponseModel +} + +// IsSuccess returns true when this pipeline show o k response has a 2xx status code +func (o *PipelineShowOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this pipeline show o k response has a 3xx status code +func (o *PipelineShowOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline show o k response has a 4xx status code +func (o *PipelineShowOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this pipeline show o k response has a 5xx status code +func (o *PipelineShowOK) IsServerError() bool { + return false +} + +// IsCode returns true when this pipeline show o k response a status code equal to that given +func (o *PipelineShowOK) IsCode(code int) bool { + return code == 200 +} + +func (o *PipelineShowOK) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/pipelines/{pipeline-id}][%d] pipelineShowOK %+v", 200, o.Payload) +} + +func (o *PipelineShowOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/pipelines/{pipeline-id}][%d] pipelineShowOK %+v", 200, o.Payload) +} + +func (o *PipelineShowOK) GetPayload() *models.V0PipelineShowResponseModel { + return o.Payload +} + +func (o *PipelineShowOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.V0PipelineShowResponseModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPipelineShowBadRequest creates a PipelineShowBadRequest with default headers values +func NewPipelineShowBadRequest() *PipelineShowBadRequest { + return &PipelineShowBadRequest{} +} + +/* +PipelineShowBadRequest describes a response with status code 400, with default header values. + +Bad Request +*/ +type PipelineShowBadRequest struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this pipeline show bad request response has a 2xx status code +func (o *PipelineShowBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this pipeline show bad request response has a 3xx status code +func (o *PipelineShowBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline show bad request response has a 4xx status code +func (o *PipelineShowBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this pipeline show bad request response has a 5xx status code +func (o *PipelineShowBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this pipeline show bad request response a status code equal to that given +func (o *PipelineShowBadRequest) IsCode(code int) bool { + return code == 400 +} + +func (o *PipelineShowBadRequest) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/pipelines/{pipeline-id}][%d] pipelineShowBadRequest %+v", 400, o.Payload) +} + +func (o *PipelineShowBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/pipelines/{pipeline-id}][%d] pipelineShowBadRequest %+v", 400, o.Payload) +} + +func (o *PipelineShowBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *PipelineShowBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPipelineShowUnauthorized creates a PipelineShowUnauthorized with default headers values +func NewPipelineShowUnauthorized() *PipelineShowUnauthorized { + return &PipelineShowUnauthorized{} +} + +/* +PipelineShowUnauthorized describes a response with status code 401, with default header values. + +Unauthorized +*/ +type PipelineShowUnauthorized struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this pipeline show unauthorized response has a 2xx status code +func (o *PipelineShowUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this pipeline show unauthorized response has a 3xx status code +func (o *PipelineShowUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline show unauthorized response has a 4xx status code +func (o *PipelineShowUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this pipeline show unauthorized response has a 5xx status code +func (o *PipelineShowUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this pipeline show unauthorized response a status code equal to that given +func (o *PipelineShowUnauthorized) IsCode(code int) bool { + return code == 401 +} + +func (o *PipelineShowUnauthorized) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/pipelines/{pipeline-id}][%d] pipelineShowUnauthorized %+v", 401, o.Payload) +} + +func (o *PipelineShowUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/pipelines/{pipeline-id}][%d] pipelineShowUnauthorized %+v", 401, o.Payload) +} + +func (o *PipelineShowUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *PipelineShowUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPipelineShowNotFound creates a PipelineShowNotFound with default headers values +func NewPipelineShowNotFound() *PipelineShowNotFound { + return &PipelineShowNotFound{} +} + +/* +PipelineShowNotFound describes a response with status code 404, with default header values. + +Not Found +*/ +type PipelineShowNotFound struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this pipeline show not found response has a 2xx status code +func (o *PipelineShowNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this pipeline show not found response has a 3xx status code +func (o *PipelineShowNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline show not found response has a 4xx status code +func (o *PipelineShowNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this pipeline show not found response has a 5xx status code +func (o *PipelineShowNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this pipeline show not found response a status code equal to that given +func (o *PipelineShowNotFound) IsCode(code int) bool { + return code == 404 +} + +func (o *PipelineShowNotFound) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/pipelines/{pipeline-id}][%d] pipelineShowNotFound %+v", 404, o.Payload) +} + +func (o *PipelineShowNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/pipelines/{pipeline-id}][%d] pipelineShowNotFound %+v", 404, o.Payload) +} + +func (o *PipelineShowNotFound) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *PipelineShowNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewPipelineShowInternalServerError creates a PipelineShowInternalServerError with default headers values +func NewPipelineShowInternalServerError() *PipelineShowInternalServerError { + return &PipelineShowInternalServerError{} +} + +/* +PipelineShowInternalServerError describes a response with status code 500, with default header values. + +Internal Server Error +*/ +type PipelineShowInternalServerError struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this pipeline show internal server error response has a 2xx status code +func (o *PipelineShowInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this pipeline show internal server error response has a 3xx status code +func (o *PipelineShowInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this pipeline show internal server error response has a 4xx status code +func (o *PipelineShowInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this pipeline show internal server error response has a 5xx status code +func (o *PipelineShowInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this pipeline show internal server error response a status code equal to that given +func (o *PipelineShowInternalServerError) IsCode(code int) bool { + return code == 500 +} + +func (o *PipelineShowInternalServerError) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/pipelines/{pipeline-id}][%d] pipelineShowInternalServerError %+v", 500, o.Payload) +} + +func (o *PipelineShowInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/pipelines/{pipeline-id}][%d] pipelineShowInternalServerError %+v", 500, o.Payload) +} + +func (o *PipelineShowInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *PipelineShowInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/go/client/operations/provisioning_profile_confirm_parameters.go b/go/client/operations/provisioning_profile_confirm_parameters.go index c86df63..9633951 100644 --- a/go/client/operations/provisioning_profile_confirm_parameters.go +++ b/go/client/operations/provisioning_profile_confirm_parameters.go @@ -52,10 +52,12 @@ func NewProvisioningProfileConfirmParamsWithHTTPClient(client *http.Client) *Pro } } -/* ProvisioningProfileConfirmParams contains all the parameters to send to the API endpoint - for the provisioning profile confirm operation. +/* +ProvisioningProfileConfirmParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the provisioning profile confirm operation. + + Typically these are written to a http.Request. */ type ProvisioningProfileConfirmParams struct { diff --git a/go/client/operations/provisioning_profile_confirm_responses.go b/go/client/operations/provisioning_profile_confirm_responses.go index 919bfcc..e8dbce2 100644 --- a/go/client/operations/provisioning_profile_confirm_responses.go +++ b/go/client/operations/provisioning_profile_confirm_responses.go @@ -63,7 +63,8 @@ func NewProvisioningProfileConfirmOK() *ProvisioningProfileConfirmOK { return &ProvisioningProfileConfirmOK{} } -/* ProvisioningProfileConfirmOK describes a response with status code 200, with default header values. +/* +ProvisioningProfileConfirmOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type ProvisioningProfileConfirmOK struct { Payload *models.V0ProvisionProfileResponseModel } +// IsSuccess returns true when this provisioning profile confirm o k response has a 2xx status code +func (o *ProvisioningProfileConfirmOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this provisioning profile confirm o k response has a 3xx status code +func (o *ProvisioningProfileConfirmOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile confirm o k response has a 4xx status code +func (o *ProvisioningProfileConfirmOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this provisioning profile confirm o k response has a 5xx status code +func (o *ProvisioningProfileConfirmOK) IsServerError() bool { + return false +} + +// IsCode returns true when this provisioning profile confirm o k response a status code equal to that given +func (o *ProvisioningProfileConfirmOK) IsCode(code int) bool { + return code == 200 +} + func (o *ProvisioningProfileConfirmOK) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded][%d] provisioningProfileConfirmOK %+v", 200, o.Payload) } + +func (o *ProvisioningProfileConfirmOK) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded][%d] provisioningProfileConfirmOK %+v", 200, o.Payload) +} + func (o *ProvisioningProfileConfirmOK) GetPayload() *models.V0ProvisionProfileResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewProvisioningProfileConfirmBadRequest() *ProvisioningProfileConfirmBadReq return &ProvisioningProfileConfirmBadRequest{} } -/* ProvisioningProfileConfirmBadRequest describes a response with status code 400, with default header values. +/* +ProvisioningProfileConfirmBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type ProvisioningProfileConfirmBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this provisioning profile confirm bad request response has a 2xx status code +func (o *ProvisioningProfileConfirmBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this provisioning profile confirm bad request response has a 3xx status code +func (o *ProvisioningProfileConfirmBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile confirm bad request response has a 4xx status code +func (o *ProvisioningProfileConfirmBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this provisioning profile confirm bad request response has a 5xx status code +func (o *ProvisioningProfileConfirmBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this provisioning profile confirm bad request response a status code equal to that given +func (o *ProvisioningProfileConfirmBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *ProvisioningProfileConfirmBadRequest) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded][%d] provisioningProfileConfirmBadRequest %+v", 400, o.Payload) } + +func (o *ProvisioningProfileConfirmBadRequest) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded][%d] provisioningProfileConfirmBadRequest %+v", 400, o.Payload) +} + func (o *ProvisioningProfileConfirmBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewProvisioningProfileConfirmUnauthorized() *ProvisioningProfileConfirmUnau return &ProvisioningProfileConfirmUnauthorized{} } -/* ProvisioningProfileConfirmUnauthorized describes a response with status code 401, with default header values. +/* +ProvisioningProfileConfirmUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type ProvisioningProfileConfirmUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this provisioning profile confirm unauthorized response has a 2xx status code +func (o *ProvisioningProfileConfirmUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this provisioning profile confirm unauthorized response has a 3xx status code +func (o *ProvisioningProfileConfirmUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile confirm unauthorized response has a 4xx status code +func (o *ProvisioningProfileConfirmUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this provisioning profile confirm unauthorized response has a 5xx status code +func (o *ProvisioningProfileConfirmUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this provisioning profile confirm unauthorized response a status code equal to that given +func (o *ProvisioningProfileConfirmUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *ProvisioningProfileConfirmUnauthorized) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded][%d] provisioningProfileConfirmUnauthorized %+v", 401, o.Payload) } + +func (o *ProvisioningProfileConfirmUnauthorized) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded][%d] provisioningProfileConfirmUnauthorized %+v", 401, o.Payload) +} + func (o *ProvisioningProfileConfirmUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewProvisioningProfileConfirmNotFound() *ProvisioningProfileConfirmNotFound return &ProvisioningProfileConfirmNotFound{} } -/* ProvisioningProfileConfirmNotFound describes a response with status code 404, with default header values. +/* +ProvisioningProfileConfirmNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type ProvisioningProfileConfirmNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this provisioning profile confirm not found response has a 2xx status code +func (o *ProvisioningProfileConfirmNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this provisioning profile confirm not found response has a 3xx status code +func (o *ProvisioningProfileConfirmNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile confirm not found response has a 4xx status code +func (o *ProvisioningProfileConfirmNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this provisioning profile confirm not found response has a 5xx status code +func (o *ProvisioningProfileConfirmNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this provisioning profile confirm not found response a status code equal to that given +func (o *ProvisioningProfileConfirmNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *ProvisioningProfileConfirmNotFound) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded][%d] provisioningProfileConfirmNotFound %+v", 404, o.Payload) } + +func (o *ProvisioningProfileConfirmNotFound) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded][%d] provisioningProfileConfirmNotFound %+v", 404, o.Payload) +} + func (o *ProvisioningProfileConfirmNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewProvisioningProfileConfirmInternalServerError() *ProvisioningProfileConf return &ProvisioningProfileConfirmInternalServerError{} } -/* ProvisioningProfileConfirmInternalServerError describes a response with status code 500, with default header values. +/* +ProvisioningProfileConfirmInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type ProvisioningProfileConfirmInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this provisioning profile confirm internal server error response has a 2xx status code +func (o *ProvisioningProfileConfirmInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this provisioning profile confirm internal server error response has a 3xx status code +func (o *ProvisioningProfileConfirmInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile confirm internal server error response has a 4xx status code +func (o *ProvisioningProfileConfirmInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this provisioning profile confirm internal server error response has a 5xx status code +func (o *ProvisioningProfileConfirmInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this provisioning profile confirm internal server error response a status code equal to that given +func (o *ProvisioningProfileConfirmInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *ProvisioningProfileConfirmInternalServerError) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded][%d] provisioningProfileConfirmInternalServerError %+v", 500, o.Payload) } + +func (o *ProvisioningProfileConfirmInternalServerError) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded][%d] provisioningProfileConfirmInternalServerError %+v", 500, o.Payload) +} + func (o *ProvisioningProfileConfirmInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/provisioning_profile_create_parameters.go b/go/client/operations/provisioning_profile_create_parameters.go index 57afd58..277cf8f 100644 --- a/go/client/operations/provisioning_profile_create_parameters.go +++ b/go/client/operations/provisioning_profile_create_parameters.go @@ -54,10 +54,12 @@ func NewProvisioningProfileCreateParamsWithHTTPClient(client *http.Client) *Prov } } -/* ProvisioningProfileCreateParams contains all the parameters to send to the API endpoint - for the provisioning profile create operation. +/* +ProvisioningProfileCreateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the provisioning profile create operation. + + Typically these are written to a http.Request. */ type ProvisioningProfileCreateParams struct { diff --git a/go/client/operations/provisioning_profile_create_responses.go b/go/client/operations/provisioning_profile_create_responses.go index 5c1ccef..d591233 100644 --- a/go/client/operations/provisioning_profile_create_responses.go +++ b/go/client/operations/provisioning_profile_create_responses.go @@ -63,7 +63,8 @@ func NewProvisioningProfileCreateCreated() *ProvisioningProfileCreateCreated { return &ProvisioningProfileCreateCreated{} } -/* ProvisioningProfileCreateCreated describes a response with status code 201, with default header values. +/* +ProvisioningProfileCreateCreated describes a response with status code 201, with default header values. Created */ @@ -71,9 +72,39 @@ type ProvisioningProfileCreateCreated struct { Payload *models.V0ProvisionProfileResponseModel } +// IsSuccess returns true when this provisioning profile create created response has a 2xx status code +func (o *ProvisioningProfileCreateCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this provisioning profile create created response has a 3xx status code +func (o *ProvisioningProfileCreateCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile create created response has a 4xx status code +func (o *ProvisioningProfileCreateCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this provisioning profile create created response has a 5xx status code +func (o *ProvisioningProfileCreateCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this provisioning profile create created response a status code equal to that given +func (o *ProvisioningProfileCreateCreated) IsCode(code int) bool { + return code == 201 +} + func (o *ProvisioningProfileCreateCreated) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/provisioning-profiles][%d] provisioningProfileCreateCreated %+v", 201, o.Payload) } + +func (o *ProvisioningProfileCreateCreated) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/provisioning-profiles][%d] provisioningProfileCreateCreated %+v", 201, o.Payload) +} + func (o *ProvisioningProfileCreateCreated) GetPayload() *models.V0ProvisionProfileResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewProvisioningProfileCreateBadRequest() *ProvisioningProfileCreateBadReque return &ProvisioningProfileCreateBadRequest{} } -/* ProvisioningProfileCreateBadRequest describes a response with status code 400, with default header values. +/* +ProvisioningProfileCreateBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type ProvisioningProfileCreateBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this provisioning profile create bad request response has a 2xx status code +func (o *ProvisioningProfileCreateBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this provisioning profile create bad request response has a 3xx status code +func (o *ProvisioningProfileCreateBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile create bad request response has a 4xx status code +func (o *ProvisioningProfileCreateBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this provisioning profile create bad request response has a 5xx status code +func (o *ProvisioningProfileCreateBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this provisioning profile create bad request response a status code equal to that given +func (o *ProvisioningProfileCreateBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *ProvisioningProfileCreateBadRequest) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/provisioning-profiles][%d] provisioningProfileCreateBadRequest %+v", 400, o.Payload) } + +func (o *ProvisioningProfileCreateBadRequest) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/provisioning-profiles][%d] provisioningProfileCreateBadRequest %+v", 400, o.Payload) +} + func (o *ProvisioningProfileCreateBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewProvisioningProfileCreateUnauthorized() *ProvisioningProfileCreateUnauth return &ProvisioningProfileCreateUnauthorized{} } -/* ProvisioningProfileCreateUnauthorized describes a response with status code 401, with default header values. +/* +ProvisioningProfileCreateUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type ProvisioningProfileCreateUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this provisioning profile create unauthorized response has a 2xx status code +func (o *ProvisioningProfileCreateUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this provisioning profile create unauthorized response has a 3xx status code +func (o *ProvisioningProfileCreateUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile create unauthorized response has a 4xx status code +func (o *ProvisioningProfileCreateUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this provisioning profile create unauthorized response has a 5xx status code +func (o *ProvisioningProfileCreateUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this provisioning profile create unauthorized response a status code equal to that given +func (o *ProvisioningProfileCreateUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *ProvisioningProfileCreateUnauthorized) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/provisioning-profiles][%d] provisioningProfileCreateUnauthorized %+v", 401, o.Payload) } + +func (o *ProvisioningProfileCreateUnauthorized) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/provisioning-profiles][%d] provisioningProfileCreateUnauthorized %+v", 401, o.Payload) +} + func (o *ProvisioningProfileCreateUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewProvisioningProfileCreateNotFound() *ProvisioningProfileCreateNotFound { return &ProvisioningProfileCreateNotFound{} } -/* ProvisioningProfileCreateNotFound describes a response with status code 404, with default header values. +/* +ProvisioningProfileCreateNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type ProvisioningProfileCreateNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this provisioning profile create not found response has a 2xx status code +func (o *ProvisioningProfileCreateNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this provisioning profile create not found response has a 3xx status code +func (o *ProvisioningProfileCreateNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile create not found response has a 4xx status code +func (o *ProvisioningProfileCreateNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this provisioning profile create not found response has a 5xx status code +func (o *ProvisioningProfileCreateNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this provisioning profile create not found response a status code equal to that given +func (o *ProvisioningProfileCreateNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *ProvisioningProfileCreateNotFound) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/provisioning-profiles][%d] provisioningProfileCreateNotFound %+v", 404, o.Payload) } + +func (o *ProvisioningProfileCreateNotFound) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/provisioning-profiles][%d] provisioningProfileCreateNotFound %+v", 404, o.Payload) +} + func (o *ProvisioningProfileCreateNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewProvisioningProfileCreateInternalServerError() *ProvisioningProfileCreat return &ProvisioningProfileCreateInternalServerError{} } -/* ProvisioningProfileCreateInternalServerError describes a response with status code 500, with default header values. +/* +ProvisioningProfileCreateInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type ProvisioningProfileCreateInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this provisioning profile create internal server error response has a 2xx status code +func (o *ProvisioningProfileCreateInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this provisioning profile create internal server error response has a 3xx status code +func (o *ProvisioningProfileCreateInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile create internal server error response has a 4xx status code +func (o *ProvisioningProfileCreateInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this provisioning profile create internal server error response has a 5xx status code +func (o *ProvisioningProfileCreateInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this provisioning profile create internal server error response a status code equal to that given +func (o *ProvisioningProfileCreateInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *ProvisioningProfileCreateInternalServerError) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/provisioning-profiles][%d] provisioningProfileCreateInternalServerError %+v", 500, o.Payload) } + +func (o *ProvisioningProfileCreateInternalServerError) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/provisioning-profiles][%d] provisioningProfileCreateInternalServerError %+v", 500, o.Payload) +} + func (o *ProvisioningProfileCreateInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/provisioning_profile_delete_parameters.go b/go/client/operations/provisioning_profile_delete_parameters.go index cb0aeb3..1ffc0bc 100644 --- a/go/client/operations/provisioning_profile_delete_parameters.go +++ b/go/client/operations/provisioning_profile_delete_parameters.go @@ -52,10 +52,12 @@ func NewProvisioningProfileDeleteParamsWithHTTPClient(client *http.Client) *Prov } } -/* ProvisioningProfileDeleteParams contains all the parameters to send to the API endpoint - for the provisioning profile delete operation. +/* +ProvisioningProfileDeleteParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the provisioning profile delete operation. + + Typically these are written to a http.Request. */ type ProvisioningProfileDeleteParams struct { diff --git a/go/client/operations/provisioning_profile_delete_responses.go b/go/client/operations/provisioning_profile_delete_responses.go index 7cff86f..3984b29 100644 --- a/go/client/operations/provisioning_profile_delete_responses.go +++ b/go/client/operations/provisioning_profile_delete_responses.go @@ -63,7 +63,8 @@ func NewProvisioningProfileDeleteOK() *ProvisioningProfileDeleteOK { return &ProvisioningProfileDeleteOK{} } -/* ProvisioningProfileDeleteOK describes a response with status code 200, with default header values. +/* +ProvisioningProfileDeleteOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type ProvisioningProfileDeleteOK struct { Payload *models.V0ProvisionProfileResponseModel } +// IsSuccess returns true when this provisioning profile delete o k response has a 2xx status code +func (o *ProvisioningProfileDeleteOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this provisioning profile delete o k response has a 3xx status code +func (o *ProvisioningProfileDeleteOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile delete o k response has a 4xx status code +func (o *ProvisioningProfileDeleteOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this provisioning profile delete o k response has a 5xx status code +func (o *ProvisioningProfileDeleteOK) IsServerError() bool { + return false +} + +// IsCode returns true when this provisioning profile delete o k response a status code equal to that given +func (o *ProvisioningProfileDeleteOK) IsCode(code int) bool { + return code == 200 +} + func (o *ProvisioningProfileDeleteOK) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileDeleteOK %+v", 200, o.Payload) } + +func (o *ProvisioningProfileDeleteOK) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileDeleteOK %+v", 200, o.Payload) +} + func (o *ProvisioningProfileDeleteOK) GetPayload() *models.V0ProvisionProfileResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewProvisioningProfileDeleteBadRequest() *ProvisioningProfileDeleteBadReque return &ProvisioningProfileDeleteBadRequest{} } -/* ProvisioningProfileDeleteBadRequest describes a response with status code 400, with default header values. +/* +ProvisioningProfileDeleteBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type ProvisioningProfileDeleteBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this provisioning profile delete bad request response has a 2xx status code +func (o *ProvisioningProfileDeleteBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this provisioning profile delete bad request response has a 3xx status code +func (o *ProvisioningProfileDeleteBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile delete bad request response has a 4xx status code +func (o *ProvisioningProfileDeleteBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this provisioning profile delete bad request response has a 5xx status code +func (o *ProvisioningProfileDeleteBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this provisioning profile delete bad request response a status code equal to that given +func (o *ProvisioningProfileDeleteBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *ProvisioningProfileDeleteBadRequest) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileDeleteBadRequest %+v", 400, o.Payload) } + +func (o *ProvisioningProfileDeleteBadRequest) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileDeleteBadRequest %+v", 400, o.Payload) +} + func (o *ProvisioningProfileDeleteBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewProvisioningProfileDeleteUnauthorized() *ProvisioningProfileDeleteUnauth return &ProvisioningProfileDeleteUnauthorized{} } -/* ProvisioningProfileDeleteUnauthorized describes a response with status code 401, with default header values. +/* +ProvisioningProfileDeleteUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type ProvisioningProfileDeleteUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this provisioning profile delete unauthorized response has a 2xx status code +func (o *ProvisioningProfileDeleteUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this provisioning profile delete unauthorized response has a 3xx status code +func (o *ProvisioningProfileDeleteUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile delete unauthorized response has a 4xx status code +func (o *ProvisioningProfileDeleteUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this provisioning profile delete unauthorized response has a 5xx status code +func (o *ProvisioningProfileDeleteUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this provisioning profile delete unauthorized response a status code equal to that given +func (o *ProvisioningProfileDeleteUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *ProvisioningProfileDeleteUnauthorized) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileDeleteUnauthorized %+v", 401, o.Payload) } + +func (o *ProvisioningProfileDeleteUnauthorized) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileDeleteUnauthorized %+v", 401, o.Payload) +} + func (o *ProvisioningProfileDeleteUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewProvisioningProfileDeleteNotFound() *ProvisioningProfileDeleteNotFound { return &ProvisioningProfileDeleteNotFound{} } -/* ProvisioningProfileDeleteNotFound describes a response with status code 404, with default header values. +/* +ProvisioningProfileDeleteNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type ProvisioningProfileDeleteNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this provisioning profile delete not found response has a 2xx status code +func (o *ProvisioningProfileDeleteNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this provisioning profile delete not found response has a 3xx status code +func (o *ProvisioningProfileDeleteNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile delete not found response has a 4xx status code +func (o *ProvisioningProfileDeleteNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this provisioning profile delete not found response has a 5xx status code +func (o *ProvisioningProfileDeleteNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this provisioning profile delete not found response a status code equal to that given +func (o *ProvisioningProfileDeleteNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *ProvisioningProfileDeleteNotFound) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileDeleteNotFound %+v", 404, o.Payload) } + +func (o *ProvisioningProfileDeleteNotFound) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileDeleteNotFound %+v", 404, o.Payload) +} + func (o *ProvisioningProfileDeleteNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewProvisioningProfileDeleteInternalServerError() *ProvisioningProfileDelet return &ProvisioningProfileDeleteInternalServerError{} } -/* ProvisioningProfileDeleteInternalServerError describes a response with status code 500, with default header values. +/* +ProvisioningProfileDeleteInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type ProvisioningProfileDeleteInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this provisioning profile delete internal server error response has a 2xx status code +func (o *ProvisioningProfileDeleteInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this provisioning profile delete internal server error response has a 3xx status code +func (o *ProvisioningProfileDeleteInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile delete internal server error response has a 4xx status code +func (o *ProvisioningProfileDeleteInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this provisioning profile delete internal server error response has a 5xx status code +func (o *ProvisioningProfileDeleteInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this provisioning profile delete internal server error response a status code equal to that given +func (o *ProvisioningProfileDeleteInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *ProvisioningProfileDeleteInternalServerError) Error() string { return fmt.Sprintf("[DELETE /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileDeleteInternalServerError %+v", 500, o.Payload) } + +func (o *ProvisioningProfileDeleteInternalServerError) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileDeleteInternalServerError %+v", 500, o.Payload) +} + func (o *ProvisioningProfileDeleteInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/provisioning_profile_list_parameters.go b/go/client/operations/provisioning_profile_list_parameters.go index 1eb91e2..81503b4 100644 --- a/go/client/operations/provisioning_profile_list_parameters.go +++ b/go/client/operations/provisioning_profile_list_parameters.go @@ -53,10 +53,12 @@ func NewProvisioningProfileListParamsWithHTTPClient(client *http.Client) *Provis } } -/* ProvisioningProfileListParams contains all the parameters to send to the API endpoint - for the provisioning profile list operation. +/* +ProvisioningProfileListParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the provisioning profile list operation. + + Typically these are written to a http.Request. */ type ProvisioningProfileListParams struct { diff --git a/go/client/operations/provisioning_profile_list_responses.go b/go/client/operations/provisioning_profile_list_responses.go index 6189d80..f690865 100644 --- a/go/client/operations/provisioning_profile_list_responses.go +++ b/go/client/operations/provisioning_profile_list_responses.go @@ -63,7 +63,8 @@ func NewProvisioningProfileListOK() *ProvisioningProfileListOK { return &ProvisioningProfileListOK{} } -/* ProvisioningProfileListOK describes a response with status code 200, with default header values. +/* +ProvisioningProfileListOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type ProvisioningProfileListOK struct { Payload *models.V0ProvisionProfileListResponseModel } +// IsSuccess returns true when this provisioning profile list o k response has a 2xx status code +func (o *ProvisioningProfileListOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this provisioning profile list o k response has a 3xx status code +func (o *ProvisioningProfileListOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile list o k response has a 4xx status code +func (o *ProvisioningProfileListOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this provisioning profile list o k response has a 5xx status code +func (o *ProvisioningProfileListOK) IsServerError() bool { + return false +} + +// IsCode returns true when this provisioning profile list o k response a status code equal to that given +func (o *ProvisioningProfileListOK) IsCode(code int) bool { + return code == 200 +} + func (o *ProvisioningProfileListOK) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/provisioning-profiles][%d] provisioningProfileListOK %+v", 200, o.Payload) } + +func (o *ProvisioningProfileListOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/provisioning-profiles][%d] provisioningProfileListOK %+v", 200, o.Payload) +} + func (o *ProvisioningProfileListOK) GetPayload() *models.V0ProvisionProfileListResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewProvisioningProfileListBadRequest() *ProvisioningProfileListBadRequest { return &ProvisioningProfileListBadRequest{} } -/* ProvisioningProfileListBadRequest describes a response with status code 400, with default header values. +/* +ProvisioningProfileListBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type ProvisioningProfileListBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this provisioning profile list bad request response has a 2xx status code +func (o *ProvisioningProfileListBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this provisioning profile list bad request response has a 3xx status code +func (o *ProvisioningProfileListBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile list bad request response has a 4xx status code +func (o *ProvisioningProfileListBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this provisioning profile list bad request response has a 5xx status code +func (o *ProvisioningProfileListBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this provisioning profile list bad request response a status code equal to that given +func (o *ProvisioningProfileListBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *ProvisioningProfileListBadRequest) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/provisioning-profiles][%d] provisioningProfileListBadRequest %+v", 400, o.Payload) } + +func (o *ProvisioningProfileListBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/provisioning-profiles][%d] provisioningProfileListBadRequest %+v", 400, o.Payload) +} + func (o *ProvisioningProfileListBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewProvisioningProfileListUnauthorized() *ProvisioningProfileListUnauthoriz return &ProvisioningProfileListUnauthorized{} } -/* ProvisioningProfileListUnauthorized describes a response with status code 401, with default header values. +/* +ProvisioningProfileListUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type ProvisioningProfileListUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this provisioning profile list unauthorized response has a 2xx status code +func (o *ProvisioningProfileListUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this provisioning profile list unauthorized response has a 3xx status code +func (o *ProvisioningProfileListUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile list unauthorized response has a 4xx status code +func (o *ProvisioningProfileListUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this provisioning profile list unauthorized response has a 5xx status code +func (o *ProvisioningProfileListUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this provisioning profile list unauthorized response a status code equal to that given +func (o *ProvisioningProfileListUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *ProvisioningProfileListUnauthorized) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/provisioning-profiles][%d] provisioningProfileListUnauthorized %+v", 401, o.Payload) } + +func (o *ProvisioningProfileListUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/provisioning-profiles][%d] provisioningProfileListUnauthorized %+v", 401, o.Payload) +} + func (o *ProvisioningProfileListUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewProvisioningProfileListNotFound() *ProvisioningProfileListNotFound { return &ProvisioningProfileListNotFound{} } -/* ProvisioningProfileListNotFound describes a response with status code 404, with default header values. +/* +ProvisioningProfileListNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type ProvisioningProfileListNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this provisioning profile list not found response has a 2xx status code +func (o *ProvisioningProfileListNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this provisioning profile list not found response has a 3xx status code +func (o *ProvisioningProfileListNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile list not found response has a 4xx status code +func (o *ProvisioningProfileListNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this provisioning profile list not found response has a 5xx status code +func (o *ProvisioningProfileListNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this provisioning profile list not found response a status code equal to that given +func (o *ProvisioningProfileListNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *ProvisioningProfileListNotFound) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/provisioning-profiles][%d] provisioningProfileListNotFound %+v", 404, o.Payload) } + +func (o *ProvisioningProfileListNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/provisioning-profiles][%d] provisioningProfileListNotFound %+v", 404, o.Payload) +} + func (o *ProvisioningProfileListNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewProvisioningProfileListInternalServerError() *ProvisioningProfileListInt return &ProvisioningProfileListInternalServerError{} } -/* ProvisioningProfileListInternalServerError describes a response with status code 500, with default header values. +/* +ProvisioningProfileListInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type ProvisioningProfileListInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this provisioning profile list internal server error response has a 2xx status code +func (o *ProvisioningProfileListInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this provisioning profile list internal server error response has a 3xx status code +func (o *ProvisioningProfileListInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile list internal server error response has a 4xx status code +func (o *ProvisioningProfileListInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this provisioning profile list internal server error response has a 5xx status code +func (o *ProvisioningProfileListInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this provisioning profile list internal server error response a status code equal to that given +func (o *ProvisioningProfileListInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *ProvisioningProfileListInternalServerError) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/provisioning-profiles][%d] provisioningProfileListInternalServerError %+v", 500, o.Payload) } + +func (o *ProvisioningProfileListInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/provisioning-profiles][%d] provisioningProfileListInternalServerError %+v", 500, o.Payload) +} + func (o *ProvisioningProfileListInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/provisioning_profile_show_parameters.go b/go/client/operations/provisioning_profile_show_parameters.go index 14283dd..d02e814 100644 --- a/go/client/operations/provisioning_profile_show_parameters.go +++ b/go/client/operations/provisioning_profile_show_parameters.go @@ -52,10 +52,12 @@ func NewProvisioningProfileShowParamsWithHTTPClient(client *http.Client) *Provis } } -/* ProvisioningProfileShowParams contains all the parameters to send to the API endpoint - for the provisioning profile show operation. +/* +ProvisioningProfileShowParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the provisioning profile show operation. + + Typically these are written to a http.Request. */ type ProvisioningProfileShowParams struct { diff --git a/go/client/operations/provisioning_profile_show_responses.go b/go/client/operations/provisioning_profile_show_responses.go index 1851556..137a252 100644 --- a/go/client/operations/provisioning_profile_show_responses.go +++ b/go/client/operations/provisioning_profile_show_responses.go @@ -63,7 +63,8 @@ func NewProvisioningProfileShowOK() *ProvisioningProfileShowOK { return &ProvisioningProfileShowOK{} } -/* ProvisioningProfileShowOK describes a response with status code 200, with default header values. +/* +ProvisioningProfileShowOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type ProvisioningProfileShowOK struct { Payload *models.V0ProvisionProfileResponseModel } +// IsSuccess returns true when this provisioning profile show o k response has a 2xx status code +func (o *ProvisioningProfileShowOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this provisioning profile show o k response has a 3xx status code +func (o *ProvisioningProfileShowOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile show o k response has a 4xx status code +func (o *ProvisioningProfileShowOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this provisioning profile show o k response has a 5xx status code +func (o *ProvisioningProfileShowOK) IsServerError() bool { + return false +} + +// IsCode returns true when this provisioning profile show o k response a status code equal to that given +func (o *ProvisioningProfileShowOK) IsCode(code int) bool { + return code == 200 +} + func (o *ProvisioningProfileShowOK) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileShowOK %+v", 200, o.Payload) } + +func (o *ProvisioningProfileShowOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileShowOK %+v", 200, o.Payload) +} + func (o *ProvisioningProfileShowOK) GetPayload() *models.V0ProvisionProfileResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewProvisioningProfileShowBadRequest() *ProvisioningProfileShowBadRequest { return &ProvisioningProfileShowBadRequest{} } -/* ProvisioningProfileShowBadRequest describes a response with status code 400, with default header values. +/* +ProvisioningProfileShowBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type ProvisioningProfileShowBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this provisioning profile show bad request response has a 2xx status code +func (o *ProvisioningProfileShowBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this provisioning profile show bad request response has a 3xx status code +func (o *ProvisioningProfileShowBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile show bad request response has a 4xx status code +func (o *ProvisioningProfileShowBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this provisioning profile show bad request response has a 5xx status code +func (o *ProvisioningProfileShowBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this provisioning profile show bad request response a status code equal to that given +func (o *ProvisioningProfileShowBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *ProvisioningProfileShowBadRequest) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileShowBadRequest %+v", 400, o.Payload) } + +func (o *ProvisioningProfileShowBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileShowBadRequest %+v", 400, o.Payload) +} + func (o *ProvisioningProfileShowBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewProvisioningProfileShowUnauthorized() *ProvisioningProfileShowUnauthoriz return &ProvisioningProfileShowUnauthorized{} } -/* ProvisioningProfileShowUnauthorized describes a response with status code 401, with default header values. +/* +ProvisioningProfileShowUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type ProvisioningProfileShowUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this provisioning profile show unauthorized response has a 2xx status code +func (o *ProvisioningProfileShowUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this provisioning profile show unauthorized response has a 3xx status code +func (o *ProvisioningProfileShowUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile show unauthorized response has a 4xx status code +func (o *ProvisioningProfileShowUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this provisioning profile show unauthorized response has a 5xx status code +func (o *ProvisioningProfileShowUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this provisioning profile show unauthorized response a status code equal to that given +func (o *ProvisioningProfileShowUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *ProvisioningProfileShowUnauthorized) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileShowUnauthorized %+v", 401, o.Payload) } + +func (o *ProvisioningProfileShowUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileShowUnauthorized %+v", 401, o.Payload) +} + func (o *ProvisioningProfileShowUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewProvisioningProfileShowNotFound() *ProvisioningProfileShowNotFound { return &ProvisioningProfileShowNotFound{} } -/* ProvisioningProfileShowNotFound describes a response with status code 404, with default header values. +/* +ProvisioningProfileShowNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type ProvisioningProfileShowNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this provisioning profile show not found response has a 2xx status code +func (o *ProvisioningProfileShowNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this provisioning profile show not found response has a 3xx status code +func (o *ProvisioningProfileShowNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile show not found response has a 4xx status code +func (o *ProvisioningProfileShowNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this provisioning profile show not found response has a 5xx status code +func (o *ProvisioningProfileShowNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this provisioning profile show not found response a status code equal to that given +func (o *ProvisioningProfileShowNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *ProvisioningProfileShowNotFound) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileShowNotFound %+v", 404, o.Payload) } + +func (o *ProvisioningProfileShowNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileShowNotFound %+v", 404, o.Payload) +} + func (o *ProvisioningProfileShowNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewProvisioningProfileShowInternalServerError() *ProvisioningProfileShowInt return &ProvisioningProfileShowInternalServerError{} } -/* ProvisioningProfileShowInternalServerError describes a response with status code 500, with default header values. +/* +ProvisioningProfileShowInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type ProvisioningProfileShowInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this provisioning profile show internal server error response has a 2xx status code +func (o *ProvisioningProfileShowInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this provisioning profile show internal server error response has a 3xx status code +func (o *ProvisioningProfileShowInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile show internal server error response has a 4xx status code +func (o *ProvisioningProfileShowInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this provisioning profile show internal server error response has a 5xx status code +func (o *ProvisioningProfileShowInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this provisioning profile show internal server error response a status code equal to that given +func (o *ProvisioningProfileShowInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *ProvisioningProfileShowInternalServerError) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileShowInternalServerError %+v", 500, o.Payload) } + +func (o *ProvisioningProfileShowInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileShowInternalServerError %+v", 500, o.Payload) +} + func (o *ProvisioningProfileShowInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/provisioning_profile_update_parameters.go b/go/client/operations/provisioning_profile_update_parameters.go index 8458348..cf95643 100644 --- a/go/client/operations/provisioning_profile_update_parameters.go +++ b/go/client/operations/provisioning_profile_update_parameters.go @@ -54,10 +54,12 @@ func NewProvisioningProfileUpdateParamsWithHTTPClient(client *http.Client) *Prov } } -/* ProvisioningProfileUpdateParams contains all the parameters to send to the API endpoint - for the provisioning profile update operation. +/* +ProvisioningProfileUpdateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the provisioning profile update operation. + + Typically these are written to a http.Request. */ type ProvisioningProfileUpdateParams struct { diff --git a/go/client/operations/provisioning_profile_update_responses.go b/go/client/operations/provisioning_profile_update_responses.go index 0063ee9..056188c 100644 --- a/go/client/operations/provisioning_profile_update_responses.go +++ b/go/client/operations/provisioning_profile_update_responses.go @@ -63,7 +63,8 @@ func NewProvisioningProfileUpdateOK() *ProvisioningProfileUpdateOK { return &ProvisioningProfileUpdateOK{} } -/* ProvisioningProfileUpdateOK describes a response with status code 200, with default header values. +/* +ProvisioningProfileUpdateOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type ProvisioningProfileUpdateOK struct { Payload *models.V0ProvisionProfileResponseModel } +// IsSuccess returns true when this provisioning profile update o k response has a 2xx status code +func (o *ProvisioningProfileUpdateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this provisioning profile update o k response has a 3xx status code +func (o *ProvisioningProfileUpdateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile update o k response has a 4xx status code +func (o *ProvisioningProfileUpdateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this provisioning profile update o k response has a 5xx status code +func (o *ProvisioningProfileUpdateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this provisioning profile update o k response a status code equal to that given +func (o *ProvisioningProfileUpdateOK) IsCode(code int) bool { + return code == 200 +} + func (o *ProvisioningProfileUpdateOK) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileUpdateOK %+v", 200, o.Payload) } + +func (o *ProvisioningProfileUpdateOK) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileUpdateOK %+v", 200, o.Payload) +} + func (o *ProvisioningProfileUpdateOK) GetPayload() *models.V0ProvisionProfileResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewProvisioningProfileUpdateBadRequest() *ProvisioningProfileUpdateBadReque return &ProvisioningProfileUpdateBadRequest{} } -/* ProvisioningProfileUpdateBadRequest describes a response with status code 400, with default header values. +/* +ProvisioningProfileUpdateBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type ProvisioningProfileUpdateBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this provisioning profile update bad request response has a 2xx status code +func (o *ProvisioningProfileUpdateBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this provisioning profile update bad request response has a 3xx status code +func (o *ProvisioningProfileUpdateBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile update bad request response has a 4xx status code +func (o *ProvisioningProfileUpdateBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this provisioning profile update bad request response has a 5xx status code +func (o *ProvisioningProfileUpdateBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this provisioning profile update bad request response a status code equal to that given +func (o *ProvisioningProfileUpdateBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *ProvisioningProfileUpdateBadRequest) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileUpdateBadRequest %+v", 400, o.Payload) } + +func (o *ProvisioningProfileUpdateBadRequest) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileUpdateBadRequest %+v", 400, o.Payload) +} + func (o *ProvisioningProfileUpdateBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewProvisioningProfileUpdateUnauthorized() *ProvisioningProfileUpdateUnauth return &ProvisioningProfileUpdateUnauthorized{} } -/* ProvisioningProfileUpdateUnauthorized describes a response with status code 401, with default header values. +/* +ProvisioningProfileUpdateUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type ProvisioningProfileUpdateUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this provisioning profile update unauthorized response has a 2xx status code +func (o *ProvisioningProfileUpdateUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this provisioning profile update unauthorized response has a 3xx status code +func (o *ProvisioningProfileUpdateUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile update unauthorized response has a 4xx status code +func (o *ProvisioningProfileUpdateUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this provisioning profile update unauthorized response has a 5xx status code +func (o *ProvisioningProfileUpdateUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this provisioning profile update unauthorized response a status code equal to that given +func (o *ProvisioningProfileUpdateUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *ProvisioningProfileUpdateUnauthorized) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileUpdateUnauthorized %+v", 401, o.Payload) } + +func (o *ProvisioningProfileUpdateUnauthorized) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileUpdateUnauthorized %+v", 401, o.Payload) +} + func (o *ProvisioningProfileUpdateUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewProvisioningProfileUpdateNotFound() *ProvisioningProfileUpdateNotFound { return &ProvisioningProfileUpdateNotFound{} } -/* ProvisioningProfileUpdateNotFound describes a response with status code 404, with default header values. +/* +ProvisioningProfileUpdateNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type ProvisioningProfileUpdateNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this provisioning profile update not found response has a 2xx status code +func (o *ProvisioningProfileUpdateNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this provisioning profile update not found response has a 3xx status code +func (o *ProvisioningProfileUpdateNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile update not found response has a 4xx status code +func (o *ProvisioningProfileUpdateNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this provisioning profile update not found response has a 5xx status code +func (o *ProvisioningProfileUpdateNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this provisioning profile update not found response a status code equal to that given +func (o *ProvisioningProfileUpdateNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *ProvisioningProfileUpdateNotFound) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileUpdateNotFound %+v", 404, o.Payload) } + +func (o *ProvisioningProfileUpdateNotFound) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileUpdateNotFound %+v", 404, o.Payload) +} + func (o *ProvisioningProfileUpdateNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewProvisioningProfileUpdateInternalServerError() *ProvisioningProfileUpdat return &ProvisioningProfileUpdateInternalServerError{} } -/* ProvisioningProfileUpdateInternalServerError describes a response with status code 500, with default header values. +/* +ProvisioningProfileUpdateInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type ProvisioningProfileUpdateInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this provisioning profile update internal server error response has a 2xx status code +func (o *ProvisioningProfileUpdateInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this provisioning profile update internal server error response has a 3xx status code +func (o *ProvisioningProfileUpdateInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this provisioning profile update internal server error response has a 4xx status code +func (o *ProvisioningProfileUpdateInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this provisioning profile update internal server error response has a 5xx status code +func (o *ProvisioningProfileUpdateInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this provisioning profile update internal server error response a status code equal to that given +func (o *ProvisioningProfileUpdateInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *ProvisioningProfileUpdateInternalServerError) Error() string { return fmt.Sprintf("[PATCH /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileUpdateInternalServerError %+v", 500, o.Payload) } + +func (o *ProvisioningProfileUpdateInternalServerError) String() string { + return fmt.Sprintf("[PATCH /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}][%d] provisioningProfileUpdateInternalServerError %+v", 500, o.Payload) +} + func (o *ProvisioningProfileUpdateInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/secret_delete_parameters.go b/go/client/operations/secret_delete_parameters.go new file mode 100644 index 0000000..9584bb0 --- /dev/null +++ b/go/client/operations/secret_delete_parameters.go @@ -0,0 +1,173 @@ +// 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" + "github.com/go-openapi/strfmt" +) + +// NewSecretDeleteParams creates a new SecretDeleteParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewSecretDeleteParams() *SecretDeleteParams { + return &SecretDeleteParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewSecretDeleteParamsWithTimeout creates a new SecretDeleteParams object +// with the ability to set a timeout on a request. +func NewSecretDeleteParamsWithTimeout(timeout time.Duration) *SecretDeleteParams { + return &SecretDeleteParams{ + timeout: timeout, + } +} + +// NewSecretDeleteParamsWithContext creates a new SecretDeleteParams object +// with the ability to set a context for a request. +func NewSecretDeleteParamsWithContext(ctx context.Context) *SecretDeleteParams { + return &SecretDeleteParams{ + Context: ctx, + } +} + +// NewSecretDeleteParamsWithHTTPClient creates a new SecretDeleteParams object +// with the ability to set a custom HTTPClient for a request. +func NewSecretDeleteParamsWithHTTPClient(client *http.Client) *SecretDeleteParams { + return &SecretDeleteParams{ + HTTPClient: client, + } +} + +/* +SecretDeleteParams contains all the parameters to send to the API endpoint + + for the secret delete operation. + + Typically these are written to a http.Request. +*/ +type SecretDeleteParams struct { + + /* AppSlug. + + App slug + */ + AppSlug string + + /* SecretName. + + Secret name + */ + SecretName string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the secret delete params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *SecretDeleteParams) WithDefaults() *SecretDeleteParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the secret delete params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *SecretDeleteParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the secret delete params +func (o *SecretDeleteParams) WithTimeout(timeout time.Duration) *SecretDeleteParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the secret delete params +func (o *SecretDeleteParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the secret delete params +func (o *SecretDeleteParams) WithContext(ctx context.Context) *SecretDeleteParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the secret delete params +func (o *SecretDeleteParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the secret delete params +func (o *SecretDeleteParams) WithHTTPClient(client *http.Client) *SecretDeleteParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the secret delete params +func (o *SecretDeleteParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAppSlug adds the appSlug to the secret delete params +func (o *SecretDeleteParams) WithAppSlug(appSlug string) *SecretDeleteParams { + o.SetAppSlug(appSlug) + return o +} + +// SetAppSlug adds the appSlug to the secret delete params +func (o *SecretDeleteParams) SetAppSlug(appSlug string) { + o.AppSlug = appSlug +} + +// WithSecretName adds the secretName to the secret delete params +func (o *SecretDeleteParams) WithSecretName(secretName string) *SecretDeleteParams { + o.SetSecretName(secretName) + return o +} + +// SetSecretName adds the secretName to the secret delete params +func (o *SecretDeleteParams) SetSecretName(secretName string) { + o.SecretName = secretName +} + +// WriteToRequest writes these params to a swagger request +func (o *SecretDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param app-slug + if err := r.SetPathParam("app-slug", o.AppSlug); err != nil { + return err + } + + // path param secret-name + if err := r.SetPathParam("secret-name", o.SecretName); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/go/client/operations/secret_delete_responses.go b/go/client/operations/secret_delete_responses.go new file mode 100644 index 0000000..9d65f69 --- /dev/null +++ b/go/client/operations/secret_delete_responses.go @@ -0,0 +1,362 @@ +// 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" + "github.com/go-openapi/strfmt" + + "github.com/Staffbase/bitrise-api/go/models" +) + +// SecretDeleteReader is a Reader for the SecretDelete structure. +type SecretDeleteReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *SecretDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 204: + result := NewSecretDeleteNoContent() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 400: + result := NewSecretDeleteBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 401: + result := NewSecretDeleteUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewSecretDeleteNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewSecretDeleteInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewSecretDeleteNoContent creates a SecretDeleteNoContent with default headers values +func NewSecretDeleteNoContent() *SecretDeleteNoContent { + return &SecretDeleteNoContent{} +} + +/* +SecretDeleteNoContent describes a response with status code 204, with default header values. + +No Content +*/ +type SecretDeleteNoContent struct { +} + +// IsSuccess returns true when this secret delete no content response has a 2xx status code +func (o *SecretDeleteNoContent) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this secret delete no content response has a 3xx status code +func (o *SecretDeleteNoContent) IsRedirect() bool { + return false +} + +// IsClientError returns true when this secret delete no content response has a 4xx status code +func (o *SecretDeleteNoContent) IsClientError() bool { + return false +} + +// IsServerError returns true when this secret delete no content response has a 5xx status code +func (o *SecretDeleteNoContent) IsServerError() bool { + return false +} + +// IsCode returns true when this secret delete no content response a status code equal to that given +func (o *SecretDeleteNoContent) IsCode(code int) bool { + return code == 204 +} + +func (o *SecretDeleteNoContent) Error() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/secrets/{secret-name}][%d] secretDeleteNoContent ", 204) +} + +func (o *SecretDeleteNoContent) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/secrets/{secret-name}][%d] secretDeleteNoContent ", 204) +} + +func (o *SecretDeleteNoContent) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} + +// NewSecretDeleteBadRequest creates a SecretDeleteBadRequest with default headers values +func NewSecretDeleteBadRequest() *SecretDeleteBadRequest { + return &SecretDeleteBadRequest{} +} + +/* +SecretDeleteBadRequest describes a response with status code 400, with default header values. + +Bad Request +*/ +type SecretDeleteBadRequest struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this secret delete bad request response has a 2xx status code +func (o *SecretDeleteBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this secret delete bad request response has a 3xx status code +func (o *SecretDeleteBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this secret delete bad request response has a 4xx status code +func (o *SecretDeleteBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this secret delete bad request response has a 5xx status code +func (o *SecretDeleteBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this secret delete bad request response a status code equal to that given +func (o *SecretDeleteBadRequest) IsCode(code int) bool { + return code == 400 +} + +func (o *SecretDeleteBadRequest) Error() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/secrets/{secret-name}][%d] secretDeleteBadRequest %+v", 400, o.Payload) +} + +func (o *SecretDeleteBadRequest) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/secrets/{secret-name}][%d] secretDeleteBadRequest %+v", 400, o.Payload) +} + +func (o *SecretDeleteBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *SecretDeleteBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewSecretDeleteUnauthorized creates a SecretDeleteUnauthorized with default headers values +func NewSecretDeleteUnauthorized() *SecretDeleteUnauthorized { + return &SecretDeleteUnauthorized{} +} + +/* +SecretDeleteUnauthorized describes a response with status code 401, with default header values. + +Unauthorized +*/ +type SecretDeleteUnauthorized struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this secret delete unauthorized response has a 2xx status code +func (o *SecretDeleteUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this secret delete unauthorized response has a 3xx status code +func (o *SecretDeleteUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this secret delete unauthorized response has a 4xx status code +func (o *SecretDeleteUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this secret delete unauthorized response has a 5xx status code +func (o *SecretDeleteUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this secret delete unauthorized response a status code equal to that given +func (o *SecretDeleteUnauthorized) IsCode(code int) bool { + return code == 401 +} + +func (o *SecretDeleteUnauthorized) Error() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/secrets/{secret-name}][%d] secretDeleteUnauthorized %+v", 401, o.Payload) +} + +func (o *SecretDeleteUnauthorized) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/secrets/{secret-name}][%d] secretDeleteUnauthorized %+v", 401, o.Payload) +} + +func (o *SecretDeleteUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *SecretDeleteUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewSecretDeleteNotFound creates a SecretDeleteNotFound with default headers values +func NewSecretDeleteNotFound() *SecretDeleteNotFound { + return &SecretDeleteNotFound{} +} + +/* +SecretDeleteNotFound describes a response with status code 404, with default header values. + +Not Found +*/ +type SecretDeleteNotFound struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this secret delete not found response has a 2xx status code +func (o *SecretDeleteNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this secret delete not found response has a 3xx status code +func (o *SecretDeleteNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this secret delete not found response has a 4xx status code +func (o *SecretDeleteNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this secret delete not found response has a 5xx status code +func (o *SecretDeleteNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this secret delete not found response a status code equal to that given +func (o *SecretDeleteNotFound) IsCode(code int) bool { + return code == 404 +} + +func (o *SecretDeleteNotFound) Error() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/secrets/{secret-name}][%d] secretDeleteNotFound %+v", 404, o.Payload) +} + +func (o *SecretDeleteNotFound) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/secrets/{secret-name}][%d] secretDeleteNotFound %+v", 404, o.Payload) +} + +func (o *SecretDeleteNotFound) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *SecretDeleteNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewSecretDeleteInternalServerError creates a SecretDeleteInternalServerError with default headers values +func NewSecretDeleteInternalServerError() *SecretDeleteInternalServerError { + return &SecretDeleteInternalServerError{} +} + +/* +SecretDeleteInternalServerError describes a response with status code 500, with default header values. + +Internal Server Error +*/ +type SecretDeleteInternalServerError struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this secret delete internal server error response has a 2xx status code +func (o *SecretDeleteInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this secret delete internal server error response has a 3xx status code +func (o *SecretDeleteInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this secret delete internal server error response has a 4xx status code +func (o *SecretDeleteInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this secret delete internal server error response has a 5xx status code +func (o *SecretDeleteInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this secret delete internal server error response a status code equal to that given +func (o *SecretDeleteInternalServerError) IsCode(code int) bool { + return code == 500 +} + +func (o *SecretDeleteInternalServerError) Error() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/secrets/{secret-name}][%d] secretDeleteInternalServerError %+v", 500, o.Payload) +} + +func (o *SecretDeleteInternalServerError) String() string { + return fmt.Sprintf("[DELETE /apps/{app-slug}/secrets/{secret-name}][%d] secretDeleteInternalServerError %+v", 500, o.Payload) +} + +func (o *SecretDeleteInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *SecretDeleteInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/go/client/operations/secret_list_parameters.go b/go/client/operations/secret_list_parameters.go new file mode 100644 index 0000000..5ae118e --- /dev/null +++ b/go/client/operations/secret_list_parameters.go @@ -0,0 +1,151 @@ +// 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" + "github.com/go-openapi/strfmt" +) + +// NewSecretListParams creates a new SecretListParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewSecretListParams() *SecretListParams { + return &SecretListParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewSecretListParamsWithTimeout creates a new SecretListParams object +// with the ability to set a timeout on a request. +func NewSecretListParamsWithTimeout(timeout time.Duration) *SecretListParams { + return &SecretListParams{ + timeout: timeout, + } +} + +// NewSecretListParamsWithContext creates a new SecretListParams object +// with the ability to set a context for a request. +func NewSecretListParamsWithContext(ctx context.Context) *SecretListParams { + return &SecretListParams{ + Context: ctx, + } +} + +// NewSecretListParamsWithHTTPClient creates a new SecretListParams object +// with the ability to set a custom HTTPClient for a request. +func NewSecretListParamsWithHTTPClient(client *http.Client) *SecretListParams { + return &SecretListParams{ + HTTPClient: client, + } +} + +/* +SecretListParams contains all the parameters to send to the API endpoint + + for the secret list operation. + + Typically these are written to a http.Request. +*/ +type SecretListParams struct { + + /* AppSlug. + + App slug + */ + AppSlug string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the secret list params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *SecretListParams) WithDefaults() *SecretListParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the secret list params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *SecretListParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the secret list params +func (o *SecretListParams) WithTimeout(timeout time.Duration) *SecretListParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the secret list params +func (o *SecretListParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the secret list params +func (o *SecretListParams) WithContext(ctx context.Context) *SecretListParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the secret list params +func (o *SecretListParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the secret list params +func (o *SecretListParams) WithHTTPClient(client *http.Client) *SecretListParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the secret list params +func (o *SecretListParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAppSlug adds the appSlug to the secret list params +func (o *SecretListParams) WithAppSlug(appSlug string) *SecretListParams { + o.SetAppSlug(appSlug) + return o +} + +// SetAppSlug adds the appSlug to the secret list params +func (o *SecretListParams) SetAppSlug(appSlug string) { + o.AppSlug = appSlug +} + +// WriteToRequest writes these params to a swagger request +func (o *SecretListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param app-slug + if err := r.SetPathParam("app-slug", o.AppSlug); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/go/client/operations/secret_list_responses.go b/go/client/operations/secret_list_responses.go new file mode 100644 index 0000000..25421d8 --- /dev/null +++ b/go/client/operations/secret_list_responses.go @@ -0,0 +1,374 @@ +// 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" + "github.com/go-openapi/strfmt" + + "github.com/Staffbase/bitrise-api/go/models" +) + +// SecretListReader is a Reader for the SecretList structure. +type SecretListReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *SecretListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewSecretListOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 400: + result := NewSecretListBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 401: + result := NewSecretListUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewSecretListNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewSecretListInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewSecretListOK creates a SecretListOK with default headers values +func NewSecretListOK() *SecretListOK { + return &SecretListOK{} +} + +/* +SecretListOK describes a response with status code 200, with default header values. + +OK +*/ +type SecretListOK struct { + Payload *models.V0AppSecretListResponse +} + +// IsSuccess returns true when this secret list o k response has a 2xx status code +func (o *SecretListOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this secret list o k response has a 3xx status code +func (o *SecretListOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this secret list o k response has a 4xx status code +func (o *SecretListOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this secret list o k response has a 5xx status code +func (o *SecretListOK) IsServerError() bool { + return false +} + +// IsCode returns true when this secret list o k response a status code equal to that given +func (o *SecretListOK) IsCode(code int) bool { + return code == 200 +} + +func (o *SecretListOK) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/secrets][%d] secretListOK %+v", 200, o.Payload) +} + +func (o *SecretListOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/secrets][%d] secretListOK %+v", 200, o.Payload) +} + +func (o *SecretListOK) GetPayload() *models.V0AppSecretListResponse { + return o.Payload +} + +func (o *SecretListOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.V0AppSecretListResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewSecretListBadRequest creates a SecretListBadRequest with default headers values +func NewSecretListBadRequest() *SecretListBadRequest { + return &SecretListBadRequest{} +} + +/* +SecretListBadRequest describes a response with status code 400, with default header values. + +Bad Request +*/ +type SecretListBadRequest struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this secret list bad request response has a 2xx status code +func (o *SecretListBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this secret list bad request response has a 3xx status code +func (o *SecretListBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this secret list bad request response has a 4xx status code +func (o *SecretListBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this secret list bad request response has a 5xx status code +func (o *SecretListBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this secret list bad request response a status code equal to that given +func (o *SecretListBadRequest) IsCode(code int) bool { + return code == 400 +} + +func (o *SecretListBadRequest) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/secrets][%d] secretListBadRequest %+v", 400, o.Payload) +} + +func (o *SecretListBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/secrets][%d] secretListBadRequest %+v", 400, o.Payload) +} + +func (o *SecretListBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *SecretListBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewSecretListUnauthorized creates a SecretListUnauthorized with default headers values +func NewSecretListUnauthorized() *SecretListUnauthorized { + return &SecretListUnauthorized{} +} + +/* +SecretListUnauthorized describes a response with status code 401, with default header values. + +Unauthorized +*/ +type SecretListUnauthorized struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this secret list unauthorized response has a 2xx status code +func (o *SecretListUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this secret list unauthorized response has a 3xx status code +func (o *SecretListUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this secret list unauthorized response has a 4xx status code +func (o *SecretListUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this secret list unauthorized response has a 5xx status code +func (o *SecretListUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this secret list unauthorized response a status code equal to that given +func (o *SecretListUnauthorized) IsCode(code int) bool { + return code == 401 +} + +func (o *SecretListUnauthorized) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/secrets][%d] secretListUnauthorized %+v", 401, o.Payload) +} + +func (o *SecretListUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/secrets][%d] secretListUnauthorized %+v", 401, o.Payload) +} + +func (o *SecretListUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *SecretListUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewSecretListNotFound creates a SecretListNotFound with default headers values +func NewSecretListNotFound() *SecretListNotFound { + return &SecretListNotFound{} +} + +/* +SecretListNotFound describes a response with status code 404, with default header values. + +Not Found +*/ +type SecretListNotFound struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this secret list not found response has a 2xx status code +func (o *SecretListNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this secret list not found response has a 3xx status code +func (o *SecretListNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this secret list not found response has a 4xx status code +func (o *SecretListNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this secret list not found response has a 5xx status code +func (o *SecretListNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this secret list not found response a status code equal to that given +func (o *SecretListNotFound) IsCode(code int) bool { + return code == 404 +} + +func (o *SecretListNotFound) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/secrets][%d] secretListNotFound %+v", 404, o.Payload) +} + +func (o *SecretListNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/secrets][%d] secretListNotFound %+v", 404, o.Payload) +} + +func (o *SecretListNotFound) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *SecretListNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewSecretListInternalServerError creates a SecretListInternalServerError with default headers values +func NewSecretListInternalServerError() *SecretListInternalServerError { + return &SecretListInternalServerError{} +} + +/* +SecretListInternalServerError describes a response with status code 500, with default header values. + +Internal Server Error +*/ +type SecretListInternalServerError struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this secret list internal server error response has a 2xx status code +func (o *SecretListInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this secret list internal server error response has a 3xx status code +func (o *SecretListInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this secret list internal server error response has a 4xx status code +func (o *SecretListInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this secret list internal server error response has a 5xx status code +func (o *SecretListInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this secret list internal server error response a status code equal to that given +func (o *SecretListInternalServerError) IsCode(code int) bool { + return code == 500 +} + +func (o *SecretListInternalServerError) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/secrets][%d] secretListInternalServerError %+v", 500, o.Payload) +} + +func (o *SecretListInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/secrets][%d] secretListInternalServerError %+v", 500, o.Payload) +} + +func (o *SecretListInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *SecretListInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/go/client/operations/secret_upsert_parameters.go b/go/client/operations/secret_upsert_parameters.go new file mode 100644 index 0000000..62e178e --- /dev/null +++ b/go/client/operations/secret_upsert_parameters.go @@ -0,0 +1,197 @@ +// 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" + "github.com/go-openapi/strfmt" + + "github.com/Staffbase/bitrise-api/go/models" +) + +// NewSecretUpsertParams creates a new SecretUpsertParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewSecretUpsertParams() *SecretUpsertParams { + return &SecretUpsertParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewSecretUpsertParamsWithTimeout creates a new SecretUpsertParams object +// with the ability to set a timeout on a request. +func NewSecretUpsertParamsWithTimeout(timeout time.Duration) *SecretUpsertParams { + return &SecretUpsertParams{ + timeout: timeout, + } +} + +// NewSecretUpsertParamsWithContext creates a new SecretUpsertParams object +// with the ability to set a context for a request. +func NewSecretUpsertParamsWithContext(ctx context.Context) *SecretUpsertParams { + return &SecretUpsertParams{ + Context: ctx, + } +} + +// NewSecretUpsertParamsWithHTTPClient creates a new SecretUpsertParams object +// with the ability to set a custom HTTPClient for a request. +func NewSecretUpsertParamsWithHTTPClient(client *http.Client) *SecretUpsertParams { + return &SecretUpsertParams{ + HTTPClient: client, + } +} + +/* +SecretUpsertParams contains all the parameters to send to the API endpoint + + for the secret upsert operation. + + Typically these are written to a http.Request. +*/ +type SecretUpsertParams struct { + + /* App. + + Secret parameters + */ + App *models.V0AppSecretUpsertParams + + /* AppSlug. + + App slug + */ + AppSlug string + + /* SecretName. + + Secret name + */ + SecretName string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the secret upsert params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *SecretUpsertParams) WithDefaults() *SecretUpsertParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the secret upsert params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *SecretUpsertParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the secret upsert params +func (o *SecretUpsertParams) WithTimeout(timeout time.Duration) *SecretUpsertParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the secret upsert params +func (o *SecretUpsertParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the secret upsert params +func (o *SecretUpsertParams) WithContext(ctx context.Context) *SecretUpsertParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the secret upsert params +func (o *SecretUpsertParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the secret upsert params +func (o *SecretUpsertParams) WithHTTPClient(client *http.Client) *SecretUpsertParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the secret upsert params +func (o *SecretUpsertParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithApp adds the app to the secret upsert params +func (o *SecretUpsertParams) WithApp(app *models.V0AppSecretUpsertParams) *SecretUpsertParams { + o.SetApp(app) + return o +} + +// SetApp adds the app to the secret upsert params +func (o *SecretUpsertParams) SetApp(app *models.V0AppSecretUpsertParams) { + o.App = app +} + +// WithAppSlug adds the appSlug to the secret upsert params +func (o *SecretUpsertParams) WithAppSlug(appSlug string) *SecretUpsertParams { + o.SetAppSlug(appSlug) + return o +} + +// SetAppSlug adds the appSlug to the secret upsert params +func (o *SecretUpsertParams) SetAppSlug(appSlug string) { + o.AppSlug = appSlug +} + +// WithSecretName adds the secretName to the secret upsert params +func (o *SecretUpsertParams) WithSecretName(secretName string) *SecretUpsertParams { + o.SetSecretName(secretName) + return o +} + +// SetSecretName adds the secretName to the secret upsert params +func (o *SecretUpsertParams) SetSecretName(secretName string) { + o.SecretName = secretName +} + +// WriteToRequest writes these params to a swagger request +func (o *SecretUpsertParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + if o.App != nil { + if err := r.SetBodyParam(o.App); err != nil { + return err + } + } + + // path param app-slug + if err := r.SetPathParam("app-slug", o.AppSlug); err != nil { + return err + } + + // path param secret-name + if err := r.SetPathParam("secret-name", o.SecretName); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/go/client/operations/secret_upsert_responses.go b/go/client/operations/secret_upsert_responses.go new file mode 100644 index 0000000..754eaa9 --- /dev/null +++ b/go/client/operations/secret_upsert_responses.go @@ -0,0 +1,362 @@ +// 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" + "github.com/go-openapi/strfmt" + + "github.com/Staffbase/bitrise-api/go/models" +) + +// SecretUpsertReader is a Reader for the SecretUpsert structure. +type SecretUpsertReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *SecretUpsertReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 201: + result := NewSecretUpsertCreated() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 400: + result := NewSecretUpsertBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 401: + result := NewSecretUpsertUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewSecretUpsertNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewSecretUpsertInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewSecretUpsertCreated creates a SecretUpsertCreated with default headers values +func NewSecretUpsertCreated() *SecretUpsertCreated { + return &SecretUpsertCreated{} +} + +/* +SecretUpsertCreated describes a response with status code 201, with default header values. + +Created +*/ +type SecretUpsertCreated struct { +} + +// IsSuccess returns true when this secret upsert created response has a 2xx status code +func (o *SecretUpsertCreated) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this secret upsert created response has a 3xx status code +func (o *SecretUpsertCreated) IsRedirect() bool { + return false +} + +// IsClientError returns true when this secret upsert created response has a 4xx status code +func (o *SecretUpsertCreated) IsClientError() bool { + return false +} + +// IsServerError returns true when this secret upsert created response has a 5xx status code +func (o *SecretUpsertCreated) IsServerError() bool { + return false +} + +// IsCode returns true when this secret upsert created response a status code equal to that given +func (o *SecretUpsertCreated) IsCode(code int) bool { + return code == 201 +} + +func (o *SecretUpsertCreated) Error() string { + return fmt.Sprintf("[PUT /apps/{app-slug}/secrets/{secret-name}][%d] secretUpsertCreated ", 201) +} + +func (o *SecretUpsertCreated) String() string { + return fmt.Sprintf("[PUT /apps/{app-slug}/secrets/{secret-name}][%d] secretUpsertCreated ", 201) +} + +func (o *SecretUpsertCreated) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} + +// NewSecretUpsertBadRequest creates a SecretUpsertBadRequest with default headers values +func NewSecretUpsertBadRequest() *SecretUpsertBadRequest { + return &SecretUpsertBadRequest{} +} + +/* +SecretUpsertBadRequest describes a response with status code 400, with default header values. + +Bad Request +*/ +type SecretUpsertBadRequest struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this secret upsert bad request response has a 2xx status code +func (o *SecretUpsertBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this secret upsert bad request response has a 3xx status code +func (o *SecretUpsertBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this secret upsert bad request response has a 4xx status code +func (o *SecretUpsertBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this secret upsert bad request response has a 5xx status code +func (o *SecretUpsertBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this secret upsert bad request response a status code equal to that given +func (o *SecretUpsertBadRequest) IsCode(code int) bool { + return code == 400 +} + +func (o *SecretUpsertBadRequest) Error() string { + return fmt.Sprintf("[PUT /apps/{app-slug}/secrets/{secret-name}][%d] secretUpsertBadRequest %+v", 400, o.Payload) +} + +func (o *SecretUpsertBadRequest) String() string { + return fmt.Sprintf("[PUT /apps/{app-slug}/secrets/{secret-name}][%d] secretUpsertBadRequest %+v", 400, o.Payload) +} + +func (o *SecretUpsertBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *SecretUpsertBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewSecretUpsertUnauthorized creates a SecretUpsertUnauthorized with default headers values +func NewSecretUpsertUnauthorized() *SecretUpsertUnauthorized { + return &SecretUpsertUnauthorized{} +} + +/* +SecretUpsertUnauthorized describes a response with status code 401, with default header values. + +Unauthorized +*/ +type SecretUpsertUnauthorized struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this secret upsert unauthorized response has a 2xx status code +func (o *SecretUpsertUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this secret upsert unauthorized response has a 3xx status code +func (o *SecretUpsertUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this secret upsert unauthorized response has a 4xx status code +func (o *SecretUpsertUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this secret upsert unauthorized response has a 5xx status code +func (o *SecretUpsertUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this secret upsert unauthorized response a status code equal to that given +func (o *SecretUpsertUnauthorized) IsCode(code int) bool { + return code == 401 +} + +func (o *SecretUpsertUnauthorized) Error() string { + return fmt.Sprintf("[PUT /apps/{app-slug}/secrets/{secret-name}][%d] secretUpsertUnauthorized %+v", 401, o.Payload) +} + +func (o *SecretUpsertUnauthorized) String() string { + return fmt.Sprintf("[PUT /apps/{app-slug}/secrets/{secret-name}][%d] secretUpsertUnauthorized %+v", 401, o.Payload) +} + +func (o *SecretUpsertUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *SecretUpsertUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewSecretUpsertNotFound creates a SecretUpsertNotFound with default headers values +func NewSecretUpsertNotFound() *SecretUpsertNotFound { + return &SecretUpsertNotFound{} +} + +/* +SecretUpsertNotFound describes a response with status code 404, with default header values. + +Not Found +*/ +type SecretUpsertNotFound struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this secret upsert not found response has a 2xx status code +func (o *SecretUpsertNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this secret upsert not found response has a 3xx status code +func (o *SecretUpsertNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this secret upsert not found response has a 4xx status code +func (o *SecretUpsertNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this secret upsert not found response has a 5xx status code +func (o *SecretUpsertNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this secret upsert not found response a status code equal to that given +func (o *SecretUpsertNotFound) IsCode(code int) bool { + return code == 404 +} + +func (o *SecretUpsertNotFound) Error() string { + return fmt.Sprintf("[PUT /apps/{app-slug}/secrets/{secret-name}][%d] secretUpsertNotFound %+v", 404, o.Payload) +} + +func (o *SecretUpsertNotFound) String() string { + return fmt.Sprintf("[PUT /apps/{app-slug}/secrets/{secret-name}][%d] secretUpsertNotFound %+v", 404, o.Payload) +} + +func (o *SecretUpsertNotFound) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *SecretUpsertNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewSecretUpsertInternalServerError creates a SecretUpsertInternalServerError with default headers values +func NewSecretUpsertInternalServerError() *SecretUpsertInternalServerError { + return &SecretUpsertInternalServerError{} +} + +/* +SecretUpsertInternalServerError describes a response with status code 500, with default header values. + +Internal Server Error +*/ +type SecretUpsertInternalServerError struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this secret upsert internal server error response has a 2xx status code +func (o *SecretUpsertInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this secret upsert internal server error response has a 3xx status code +func (o *SecretUpsertInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this secret upsert internal server error response has a 4xx status code +func (o *SecretUpsertInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this secret upsert internal server error response has a 5xx status code +func (o *SecretUpsertInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this secret upsert internal server error response a status code equal to that given +func (o *SecretUpsertInternalServerError) IsCode(code int) bool { + return code == 500 +} + +func (o *SecretUpsertInternalServerError) Error() string { + return fmt.Sprintf("[PUT /apps/{app-slug}/secrets/{secret-name}][%d] secretUpsertInternalServerError %+v", 500, o.Payload) +} + +func (o *SecretUpsertInternalServerError) String() string { + return fmt.Sprintf("[PUT /apps/{app-slug}/secrets/{secret-name}][%d] secretUpsertInternalServerError %+v", 500, o.Payload) +} + +func (o *SecretUpsertInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *SecretUpsertInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/go/client/operations/secret_value_get_parameters.go b/go/client/operations/secret_value_get_parameters.go new file mode 100644 index 0000000..87e0ee3 --- /dev/null +++ b/go/client/operations/secret_value_get_parameters.go @@ -0,0 +1,173 @@ +// 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" + "github.com/go-openapi/strfmt" +) + +// NewSecretValueGetParams creates a new SecretValueGetParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewSecretValueGetParams() *SecretValueGetParams { + return &SecretValueGetParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewSecretValueGetParamsWithTimeout creates a new SecretValueGetParams object +// with the ability to set a timeout on a request. +func NewSecretValueGetParamsWithTimeout(timeout time.Duration) *SecretValueGetParams { + return &SecretValueGetParams{ + timeout: timeout, + } +} + +// NewSecretValueGetParamsWithContext creates a new SecretValueGetParams object +// with the ability to set a context for a request. +func NewSecretValueGetParamsWithContext(ctx context.Context) *SecretValueGetParams { + return &SecretValueGetParams{ + Context: ctx, + } +} + +// NewSecretValueGetParamsWithHTTPClient creates a new SecretValueGetParams object +// with the ability to set a custom HTTPClient for a request. +func NewSecretValueGetParamsWithHTTPClient(client *http.Client) *SecretValueGetParams { + return &SecretValueGetParams{ + HTTPClient: client, + } +} + +/* +SecretValueGetParams contains all the parameters to send to the API endpoint + + for the secret value get operation. + + Typically these are written to a http.Request. +*/ +type SecretValueGetParams struct { + + /* AppSlug. + + App slug + */ + AppSlug string + + /* SecretName. + + Secret name + */ + SecretName string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the secret value get params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *SecretValueGetParams) WithDefaults() *SecretValueGetParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the secret value get params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *SecretValueGetParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the secret value get params +func (o *SecretValueGetParams) WithTimeout(timeout time.Duration) *SecretValueGetParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the secret value get params +func (o *SecretValueGetParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the secret value get params +func (o *SecretValueGetParams) WithContext(ctx context.Context) *SecretValueGetParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the secret value get params +func (o *SecretValueGetParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the secret value get params +func (o *SecretValueGetParams) WithHTTPClient(client *http.Client) *SecretValueGetParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the secret value get params +func (o *SecretValueGetParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAppSlug adds the appSlug to the secret value get params +func (o *SecretValueGetParams) WithAppSlug(appSlug string) *SecretValueGetParams { + o.SetAppSlug(appSlug) + return o +} + +// SetAppSlug adds the appSlug to the secret value get params +func (o *SecretValueGetParams) SetAppSlug(appSlug string) { + o.AppSlug = appSlug +} + +// WithSecretName adds the secretName to the secret value get params +func (o *SecretValueGetParams) WithSecretName(secretName string) *SecretValueGetParams { + o.SetSecretName(secretName) + return o +} + +// SetSecretName adds the secretName to the secret value get params +func (o *SecretValueGetParams) SetSecretName(secretName string) { + o.SecretName = secretName +} + +// WriteToRequest writes these params to a swagger request +func (o *SecretValueGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param app-slug + if err := r.SetPathParam("app-slug", o.AppSlug); err != nil { + return err + } + + // path param secret-name + if err := r.SetPathParam("secret-name", o.SecretName); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/go/client/operations/secret_value_get_responses.go b/go/client/operations/secret_value_get_responses.go new file mode 100644 index 0000000..2e4c5f9 --- /dev/null +++ b/go/client/operations/secret_value_get_responses.go @@ -0,0 +1,374 @@ +// 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" + "github.com/go-openapi/strfmt" + + "github.com/Staffbase/bitrise-api/go/models" +) + +// SecretValueGetReader is a Reader for the SecretValueGet structure. +type SecretValueGetReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *SecretValueGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewSecretValueGetOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 400: + result := NewSecretValueGetBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 401: + result := NewSecretValueGetUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewSecretValueGetNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewSecretValueGetInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewSecretValueGetOK creates a SecretValueGetOK with default headers values +func NewSecretValueGetOK() *SecretValueGetOK { + return &SecretValueGetOK{} +} + +/* +SecretValueGetOK describes a response with status code 200, with default header values. + +OK +*/ +type SecretValueGetOK struct { + Payload *models.V0AppSecretGetValueResponse +} + +// IsSuccess returns true when this secret value get o k response has a 2xx status code +func (o *SecretValueGetOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this secret value get o k response has a 3xx status code +func (o *SecretValueGetOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this secret value get o k response has a 4xx status code +func (o *SecretValueGetOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this secret value get o k response has a 5xx status code +func (o *SecretValueGetOK) IsServerError() bool { + return false +} + +// IsCode returns true when this secret value get o k response a status code equal to that given +func (o *SecretValueGetOK) IsCode(code int) bool { + return code == 200 +} + +func (o *SecretValueGetOK) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/secrets/{secret-name}/value][%d] secretValueGetOK %+v", 200, o.Payload) +} + +func (o *SecretValueGetOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/secrets/{secret-name}/value][%d] secretValueGetOK %+v", 200, o.Payload) +} + +func (o *SecretValueGetOK) GetPayload() *models.V0AppSecretGetValueResponse { + return o.Payload +} + +func (o *SecretValueGetOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.V0AppSecretGetValueResponse) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewSecretValueGetBadRequest creates a SecretValueGetBadRequest with default headers values +func NewSecretValueGetBadRequest() *SecretValueGetBadRequest { + return &SecretValueGetBadRequest{} +} + +/* +SecretValueGetBadRequest describes a response with status code 400, with default header values. + +Bad Request +*/ +type SecretValueGetBadRequest struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this secret value get bad request response has a 2xx status code +func (o *SecretValueGetBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this secret value get bad request response has a 3xx status code +func (o *SecretValueGetBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this secret value get bad request response has a 4xx status code +func (o *SecretValueGetBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this secret value get bad request response has a 5xx status code +func (o *SecretValueGetBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this secret value get bad request response a status code equal to that given +func (o *SecretValueGetBadRequest) IsCode(code int) bool { + return code == 400 +} + +func (o *SecretValueGetBadRequest) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/secrets/{secret-name}/value][%d] secretValueGetBadRequest %+v", 400, o.Payload) +} + +func (o *SecretValueGetBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/secrets/{secret-name}/value][%d] secretValueGetBadRequest %+v", 400, o.Payload) +} + +func (o *SecretValueGetBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *SecretValueGetBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewSecretValueGetUnauthorized creates a SecretValueGetUnauthorized with default headers values +func NewSecretValueGetUnauthorized() *SecretValueGetUnauthorized { + return &SecretValueGetUnauthorized{} +} + +/* +SecretValueGetUnauthorized describes a response with status code 401, with default header values. + +Unauthorized +*/ +type SecretValueGetUnauthorized struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this secret value get unauthorized response has a 2xx status code +func (o *SecretValueGetUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this secret value get unauthorized response has a 3xx status code +func (o *SecretValueGetUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this secret value get unauthorized response has a 4xx status code +func (o *SecretValueGetUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this secret value get unauthorized response has a 5xx status code +func (o *SecretValueGetUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this secret value get unauthorized response a status code equal to that given +func (o *SecretValueGetUnauthorized) IsCode(code int) bool { + return code == 401 +} + +func (o *SecretValueGetUnauthorized) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/secrets/{secret-name}/value][%d] secretValueGetUnauthorized %+v", 401, o.Payload) +} + +func (o *SecretValueGetUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/secrets/{secret-name}/value][%d] secretValueGetUnauthorized %+v", 401, o.Payload) +} + +func (o *SecretValueGetUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *SecretValueGetUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewSecretValueGetNotFound creates a SecretValueGetNotFound with default headers values +func NewSecretValueGetNotFound() *SecretValueGetNotFound { + return &SecretValueGetNotFound{} +} + +/* +SecretValueGetNotFound describes a response with status code 404, with default header values. + +Not Found +*/ +type SecretValueGetNotFound struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this secret value get not found response has a 2xx status code +func (o *SecretValueGetNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this secret value get not found response has a 3xx status code +func (o *SecretValueGetNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this secret value get not found response has a 4xx status code +func (o *SecretValueGetNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this secret value get not found response has a 5xx status code +func (o *SecretValueGetNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this secret value get not found response a status code equal to that given +func (o *SecretValueGetNotFound) IsCode(code int) bool { + return code == 404 +} + +func (o *SecretValueGetNotFound) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/secrets/{secret-name}/value][%d] secretValueGetNotFound %+v", 404, o.Payload) +} + +func (o *SecretValueGetNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/secrets/{secret-name}/value][%d] secretValueGetNotFound %+v", 404, o.Payload) +} + +func (o *SecretValueGetNotFound) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *SecretValueGetNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewSecretValueGetInternalServerError creates a SecretValueGetInternalServerError with default headers values +func NewSecretValueGetInternalServerError() *SecretValueGetInternalServerError { + return &SecretValueGetInternalServerError{} +} + +/* +SecretValueGetInternalServerError describes a response with status code 500, with default header values. + +Internal Server Error +*/ +type SecretValueGetInternalServerError struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this secret value get internal server error response has a 2xx status code +func (o *SecretValueGetInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this secret value get internal server error response has a 3xx status code +func (o *SecretValueGetInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this secret value get internal server error response has a 4xx status code +func (o *SecretValueGetInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this secret value get internal server error response has a 5xx status code +func (o *SecretValueGetInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this secret value get internal server error response a status code equal to that given +func (o *SecretValueGetInternalServerError) IsCode(code int) bool { + return code == 500 +} + +func (o *SecretValueGetInternalServerError) Error() string { + return fmt.Sprintf("[GET /apps/{app-slug}/secrets/{secret-name}/value][%d] secretValueGetInternalServerError %+v", 500, o.Payload) +} + +func (o *SecretValueGetInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/secrets/{secret-name}/value][%d] secretValueGetInternalServerError %+v", 500, o.Payload) +} + +func (o *SecretValueGetInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *SecretValueGetInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/go/client/operations/ssh_key_create_parameters.go b/go/client/operations/ssh_key_create_parameters.go index 4f510e2..b000452 100644 --- a/go/client/operations/ssh_key_create_parameters.go +++ b/go/client/operations/ssh_key_create_parameters.go @@ -54,10 +54,12 @@ func NewSSHKeyCreateParamsWithHTTPClient(client *http.Client) *SSHKeyCreateParam } } -/* SSHKeyCreateParams contains all the parameters to send to the API endpoint - for the ssh key create operation. +/* +SSHKeyCreateParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the ssh key create operation. + + Typically these are written to a http.Request. */ type SSHKeyCreateParams struct { diff --git a/go/client/operations/ssh_key_create_responses.go b/go/client/operations/ssh_key_create_responses.go index da0e048..b7ef145 100644 --- a/go/client/operations/ssh_key_create_responses.go +++ b/go/client/operations/ssh_key_create_responses.go @@ -63,7 +63,8 @@ func NewSSHKeyCreateOK() *SSHKeyCreateOK { return &SSHKeyCreateOK{} } -/* SSHKeyCreateOK describes a response with status code 200, with default header values. +/* +SSHKeyCreateOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type SSHKeyCreateOK struct { Payload *models.V0SSHKeyRespModel } +// IsSuccess returns true when this ssh key create o k response has a 2xx status code +func (o *SSHKeyCreateOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this ssh key create o k response has a 3xx status code +func (o *SSHKeyCreateOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this ssh key create o k response has a 4xx status code +func (o *SSHKeyCreateOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this ssh key create o k response has a 5xx status code +func (o *SSHKeyCreateOK) IsServerError() bool { + return false +} + +// IsCode returns true when this ssh key create o k response a status code equal to that given +func (o *SSHKeyCreateOK) IsCode(code int) bool { + return code == 200 +} + func (o *SSHKeyCreateOK) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/register-ssh-key][%d] sshKeyCreateOK %+v", 200, o.Payload) } + +func (o *SSHKeyCreateOK) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/register-ssh-key][%d] sshKeyCreateOK %+v", 200, o.Payload) +} + func (o *SSHKeyCreateOK) GetPayload() *models.V0SSHKeyRespModel { return o.Payload } @@ -95,7 +126,8 @@ func NewSSHKeyCreateBadRequest() *SSHKeyCreateBadRequest { return &SSHKeyCreateBadRequest{} } -/* SSHKeyCreateBadRequest describes a response with status code 400, with default header values. +/* +SSHKeyCreateBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type SSHKeyCreateBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this ssh key create bad request response has a 2xx status code +func (o *SSHKeyCreateBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this ssh key create bad request response has a 3xx status code +func (o *SSHKeyCreateBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this ssh key create bad request response has a 4xx status code +func (o *SSHKeyCreateBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this ssh key create bad request response has a 5xx status code +func (o *SSHKeyCreateBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this ssh key create bad request response a status code equal to that given +func (o *SSHKeyCreateBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *SSHKeyCreateBadRequest) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/register-ssh-key][%d] sshKeyCreateBadRequest %+v", 400, o.Payload) } + +func (o *SSHKeyCreateBadRequest) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/register-ssh-key][%d] sshKeyCreateBadRequest %+v", 400, o.Payload) +} + func (o *SSHKeyCreateBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewSSHKeyCreateUnauthorized() *SSHKeyCreateUnauthorized { return &SSHKeyCreateUnauthorized{} } -/* SSHKeyCreateUnauthorized describes a response with status code 401, with default header values. +/* +SSHKeyCreateUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type SSHKeyCreateUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this ssh key create unauthorized response has a 2xx status code +func (o *SSHKeyCreateUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this ssh key create unauthorized response has a 3xx status code +func (o *SSHKeyCreateUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this ssh key create unauthorized response has a 4xx status code +func (o *SSHKeyCreateUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this ssh key create unauthorized response has a 5xx status code +func (o *SSHKeyCreateUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this ssh key create unauthorized response a status code equal to that given +func (o *SSHKeyCreateUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *SSHKeyCreateUnauthorized) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/register-ssh-key][%d] sshKeyCreateUnauthorized %+v", 401, o.Payload) } + +func (o *SSHKeyCreateUnauthorized) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/register-ssh-key][%d] sshKeyCreateUnauthorized %+v", 401, o.Payload) +} + func (o *SSHKeyCreateUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewSSHKeyCreateNotFound() *SSHKeyCreateNotFound { return &SSHKeyCreateNotFound{} } -/* SSHKeyCreateNotFound describes a response with status code 404, with default header values. +/* +SSHKeyCreateNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type SSHKeyCreateNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this ssh key create not found response has a 2xx status code +func (o *SSHKeyCreateNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this ssh key create not found response has a 3xx status code +func (o *SSHKeyCreateNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this ssh key create not found response has a 4xx status code +func (o *SSHKeyCreateNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this ssh key create not found response has a 5xx status code +func (o *SSHKeyCreateNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this ssh key create not found response a status code equal to that given +func (o *SSHKeyCreateNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *SSHKeyCreateNotFound) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/register-ssh-key][%d] sshKeyCreateNotFound %+v", 404, o.Payload) } + +func (o *SSHKeyCreateNotFound) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/register-ssh-key][%d] sshKeyCreateNotFound %+v", 404, o.Payload) +} + func (o *SSHKeyCreateNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewSSHKeyCreateInternalServerError() *SSHKeyCreateInternalServerError { return &SSHKeyCreateInternalServerError{} } -/* SSHKeyCreateInternalServerError describes a response with status code 500, with default header values. +/* +SSHKeyCreateInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type SSHKeyCreateInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this ssh key create internal server error response has a 2xx status code +func (o *SSHKeyCreateInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this ssh key create internal server error response has a 3xx status code +func (o *SSHKeyCreateInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this ssh key create internal server error response has a 4xx status code +func (o *SSHKeyCreateInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this ssh key create internal server error response has a 5xx status code +func (o *SSHKeyCreateInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this ssh key create internal server error response a status code equal to that given +func (o *SSHKeyCreateInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *SSHKeyCreateInternalServerError) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/register-ssh-key][%d] sshKeyCreateInternalServerError %+v", 500, o.Payload) } + +func (o *SSHKeyCreateInternalServerError) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/register-ssh-key][%d] sshKeyCreateInternalServerError %+v", 500, o.Payload) +} + func (o *SSHKeyCreateInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/test_device_list_parameters.go b/go/client/operations/test_device_list_parameters.go index f2d0e93..591f698 100644 --- a/go/client/operations/test_device_list_parameters.go +++ b/go/client/operations/test_device_list_parameters.go @@ -52,10 +52,12 @@ func NewTestDeviceListParamsWithHTTPClient(client *http.Client) *TestDeviceListP } } -/* TestDeviceListParams contains all the parameters to send to the API endpoint - for the test device list operation. +/* +TestDeviceListParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the test device list operation. + + Typically these are written to a http.Request. */ type TestDeviceListParams struct { diff --git a/go/client/operations/test_device_list_responses.go b/go/client/operations/test_device_list_responses.go index ec28c8c..c49e529 100644 --- a/go/client/operations/test_device_list_responses.go +++ b/go/client/operations/test_device_list_responses.go @@ -63,7 +63,8 @@ func NewTestDeviceListOK() *TestDeviceListOK { return &TestDeviceListOK{} } -/* TestDeviceListOK describes a response with status code 200, with default header values. +/* +TestDeviceListOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type TestDeviceListOK struct { Payload *models.V0TestDeviceListResponseModel } +// IsSuccess returns true when this test device list o k response has a 2xx status code +func (o *TestDeviceListOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this test device list o k response has a 3xx status code +func (o *TestDeviceListOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this test device list o k response has a 4xx status code +func (o *TestDeviceListOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this test device list o k response has a 5xx status code +func (o *TestDeviceListOK) IsServerError() bool { + return false +} + +// IsCode returns true when this test device list o k response a status code equal to that given +func (o *TestDeviceListOK) IsCode(code int) bool { + return code == 200 +} + func (o *TestDeviceListOK) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/test-devices][%d] testDeviceListOK %+v", 200, o.Payload) } + +func (o *TestDeviceListOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/test-devices][%d] testDeviceListOK %+v", 200, o.Payload) +} + func (o *TestDeviceListOK) GetPayload() *models.V0TestDeviceListResponseModel { return o.Payload } @@ -95,7 +126,8 @@ func NewTestDeviceListBadRequest() *TestDeviceListBadRequest { return &TestDeviceListBadRequest{} } -/* TestDeviceListBadRequest describes a response with status code 400, with default header values. +/* +TestDeviceListBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type TestDeviceListBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this test device list bad request response has a 2xx status code +func (o *TestDeviceListBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this test device list bad request response has a 3xx status code +func (o *TestDeviceListBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this test device list bad request response has a 4xx status code +func (o *TestDeviceListBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this test device list bad request response has a 5xx status code +func (o *TestDeviceListBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this test device list bad request response a status code equal to that given +func (o *TestDeviceListBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *TestDeviceListBadRequest) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/test-devices][%d] testDeviceListBadRequest %+v", 400, o.Payload) } + +func (o *TestDeviceListBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/test-devices][%d] testDeviceListBadRequest %+v", 400, o.Payload) +} + func (o *TestDeviceListBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewTestDeviceListUnauthorized() *TestDeviceListUnauthorized { return &TestDeviceListUnauthorized{} } -/* TestDeviceListUnauthorized describes a response with status code 401, with default header values. +/* +TestDeviceListUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type TestDeviceListUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this test device list unauthorized response has a 2xx status code +func (o *TestDeviceListUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this test device list unauthorized response has a 3xx status code +func (o *TestDeviceListUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this test device list unauthorized response has a 4xx status code +func (o *TestDeviceListUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this test device list unauthorized response has a 5xx status code +func (o *TestDeviceListUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this test device list unauthorized response a status code equal to that given +func (o *TestDeviceListUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *TestDeviceListUnauthorized) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/test-devices][%d] testDeviceListUnauthorized %+v", 401, o.Payload) } + +func (o *TestDeviceListUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/test-devices][%d] testDeviceListUnauthorized %+v", 401, o.Payload) +} + func (o *TestDeviceListUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewTestDeviceListNotFound() *TestDeviceListNotFound { return &TestDeviceListNotFound{} } -/* TestDeviceListNotFound describes a response with status code 404, with default header values. +/* +TestDeviceListNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type TestDeviceListNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this test device list not found response has a 2xx status code +func (o *TestDeviceListNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this test device list not found response has a 3xx status code +func (o *TestDeviceListNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this test device list not found response has a 4xx status code +func (o *TestDeviceListNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this test device list not found response has a 5xx status code +func (o *TestDeviceListNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this test device list not found response a status code equal to that given +func (o *TestDeviceListNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *TestDeviceListNotFound) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/test-devices][%d] testDeviceListNotFound %+v", 404, o.Payload) } + +func (o *TestDeviceListNotFound) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/test-devices][%d] testDeviceListNotFound %+v", 404, o.Payload) +} + func (o *TestDeviceListNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewTestDeviceListInternalServerError() *TestDeviceListInternalServerError { return &TestDeviceListInternalServerError{} } -/* TestDeviceListInternalServerError describes a response with status code 500, with default header values. +/* +TestDeviceListInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type TestDeviceListInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this test device list internal server error response has a 2xx status code +func (o *TestDeviceListInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this test device list internal server error response has a 3xx status code +func (o *TestDeviceListInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this test device list internal server error response has a 4xx status code +func (o *TestDeviceListInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this test device list internal server error response has a 5xx status code +func (o *TestDeviceListInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this test device list internal server error response a status code equal to that given +func (o *TestDeviceListInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *TestDeviceListInternalServerError) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/test-devices][%d] testDeviceListInternalServerError %+v", 500, o.Payload) } + +func (o *TestDeviceListInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/test-devices][%d] testDeviceListInternalServerError %+v", 500, o.Payload) +} + func (o *TestDeviceListInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/user_addon_tokens_delete_parameters.go b/go/client/operations/user_addon_tokens_delete_parameters.go new file mode 100644 index 0000000..105a201 --- /dev/null +++ b/go/client/operations/user_addon_tokens_delete_parameters.go @@ -0,0 +1,151 @@ +// 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" + "github.com/go-openapi/strfmt" +) + +// NewUserAddonTokensDeleteParams creates a new UserAddonTokensDeleteParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUserAddonTokensDeleteParams() *UserAddonTokensDeleteParams { + return &UserAddonTokensDeleteParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUserAddonTokensDeleteParamsWithTimeout creates a new UserAddonTokensDeleteParams object +// with the ability to set a timeout on a request. +func NewUserAddonTokensDeleteParamsWithTimeout(timeout time.Duration) *UserAddonTokensDeleteParams { + return &UserAddonTokensDeleteParams{ + timeout: timeout, + } +} + +// NewUserAddonTokensDeleteParamsWithContext creates a new UserAddonTokensDeleteParams object +// with the ability to set a context for a request. +func NewUserAddonTokensDeleteParamsWithContext(ctx context.Context) *UserAddonTokensDeleteParams { + return &UserAddonTokensDeleteParams{ + Context: ctx, + } +} + +// NewUserAddonTokensDeleteParamsWithHTTPClient creates a new UserAddonTokensDeleteParams object +// with the ability to set a custom HTTPClient for a request. +func NewUserAddonTokensDeleteParamsWithHTTPClient(client *http.Client) *UserAddonTokensDeleteParams { + return &UserAddonTokensDeleteParams{ + HTTPClient: client, + } +} + +/* +UserAddonTokensDeleteParams contains all the parameters to send to the API endpoint + + for the user addon tokens delete operation. + + Typically these are written to a http.Request. +*/ +type UserAddonTokensDeleteParams struct { + + /* AddonID. + + Addon ID + */ + AddonID string + + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the user addon tokens delete params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UserAddonTokensDeleteParams) WithDefaults() *UserAddonTokensDeleteParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the user addon tokens delete params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UserAddonTokensDeleteParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the user addon tokens delete params +func (o *UserAddonTokensDeleteParams) WithTimeout(timeout time.Duration) *UserAddonTokensDeleteParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the user addon tokens delete params +func (o *UserAddonTokensDeleteParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the user addon tokens delete params +func (o *UserAddonTokensDeleteParams) WithContext(ctx context.Context) *UserAddonTokensDeleteParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the user addon tokens delete params +func (o *UserAddonTokensDeleteParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the user addon tokens delete params +func (o *UserAddonTokensDeleteParams) WithHTTPClient(client *http.Client) *UserAddonTokensDeleteParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the user addon tokens delete params +func (o *UserAddonTokensDeleteParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WithAddonID adds the addonID to the user addon tokens delete params +func (o *UserAddonTokensDeleteParams) WithAddonID(addonID string) *UserAddonTokensDeleteParams { + o.SetAddonID(addonID) + return o +} + +// SetAddonID adds the addonId to the user addon tokens delete params +func (o *UserAddonTokensDeleteParams) SetAddonID(addonID string) { + o.AddonID = addonID +} + +// WriteToRequest writes these params to a swagger request +func (o *UserAddonTokensDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + // path param addon-id + if err := r.SetPathParam("addon-id", o.AddonID); err != nil { + return err + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/go/client/operations/user_addon_tokens_delete_responses.go b/go/client/operations/user_addon_tokens_delete_responses.go new file mode 100644 index 0000000..9af2598 --- /dev/null +++ b/go/client/operations/user_addon_tokens_delete_responses.go @@ -0,0 +1,362 @@ +// 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" + "github.com/go-openapi/strfmt" + + "github.com/Staffbase/bitrise-api/go/models" +) + +// UserAddonTokensDeleteReader is a Reader for the UserAddonTokensDelete structure. +type UserAddonTokensDeleteReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UserAddonTokensDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUserAddonTokensDeleteOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 400: + result := NewUserAddonTokensDeleteBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 401: + result := NewUserAddonTokensDeleteUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewUserAddonTokensDeleteNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewUserAddonTokensDeleteInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewUserAddonTokensDeleteOK creates a UserAddonTokensDeleteOK with default headers values +func NewUserAddonTokensDeleteOK() *UserAddonTokensDeleteOK { + return &UserAddonTokensDeleteOK{} +} + +/* +UserAddonTokensDeleteOK describes a response with status code 200, with default header values. + +OK +*/ +type UserAddonTokensDeleteOK struct { +} + +// IsSuccess returns true when this user addon tokens delete o k response has a 2xx status code +func (o *UserAddonTokensDeleteOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this user addon tokens delete o k response has a 3xx status code +func (o *UserAddonTokensDeleteOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user addon tokens delete o k response has a 4xx status code +func (o *UserAddonTokensDeleteOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this user addon tokens delete o k response has a 5xx status code +func (o *UserAddonTokensDeleteOK) IsServerError() bool { + return false +} + +// IsCode returns true when this user addon tokens delete o k response a status code equal to that given +func (o *UserAddonTokensDeleteOK) IsCode(code int) bool { + return code == 200 +} + +func (o *UserAddonTokensDeleteOK) Error() string { + return fmt.Sprintf("[DELETE /me/addon-tokens/{addon-id}][%d] userAddonTokensDeleteOK ", 200) +} + +func (o *UserAddonTokensDeleteOK) String() string { + return fmt.Sprintf("[DELETE /me/addon-tokens/{addon-id}][%d] userAddonTokensDeleteOK ", 200) +} + +func (o *UserAddonTokensDeleteOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + return nil +} + +// NewUserAddonTokensDeleteBadRequest creates a UserAddonTokensDeleteBadRequest with default headers values +func NewUserAddonTokensDeleteBadRequest() *UserAddonTokensDeleteBadRequest { + return &UserAddonTokensDeleteBadRequest{} +} + +/* +UserAddonTokensDeleteBadRequest describes a response with status code 400, with default header values. + +Bad Request +*/ +type UserAddonTokensDeleteBadRequest struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this user addon tokens delete bad request response has a 2xx status code +func (o *UserAddonTokensDeleteBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this user addon tokens delete bad request response has a 3xx status code +func (o *UserAddonTokensDeleteBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user addon tokens delete bad request response has a 4xx status code +func (o *UserAddonTokensDeleteBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this user addon tokens delete bad request response has a 5xx status code +func (o *UserAddonTokensDeleteBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this user addon tokens delete bad request response a status code equal to that given +func (o *UserAddonTokensDeleteBadRequest) IsCode(code int) bool { + return code == 400 +} + +func (o *UserAddonTokensDeleteBadRequest) Error() string { + return fmt.Sprintf("[DELETE /me/addon-tokens/{addon-id}][%d] userAddonTokensDeleteBadRequest %+v", 400, o.Payload) +} + +func (o *UserAddonTokensDeleteBadRequest) String() string { + return fmt.Sprintf("[DELETE /me/addon-tokens/{addon-id}][%d] userAddonTokensDeleteBadRequest %+v", 400, o.Payload) +} + +func (o *UserAddonTokensDeleteBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *UserAddonTokensDeleteBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewUserAddonTokensDeleteUnauthorized creates a UserAddonTokensDeleteUnauthorized with default headers values +func NewUserAddonTokensDeleteUnauthorized() *UserAddonTokensDeleteUnauthorized { + return &UserAddonTokensDeleteUnauthorized{} +} + +/* +UserAddonTokensDeleteUnauthorized describes a response with status code 401, with default header values. + +Unauthorized +*/ +type UserAddonTokensDeleteUnauthorized struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this user addon tokens delete unauthorized response has a 2xx status code +func (o *UserAddonTokensDeleteUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this user addon tokens delete unauthorized response has a 3xx status code +func (o *UserAddonTokensDeleteUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user addon tokens delete unauthorized response has a 4xx status code +func (o *UserAddonTokensDeleteUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this user addon tokens delete unauthorized response has a 5xx status code +func (o *UserAddonTokensDeleteUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this user addon tokens delete unauthorized response a status code equal to that given +func (o *UserAddonTokensDeleteUnauthorized) IsCode(code int) bool { + return code == 401 +} + +func (o *UserAddonTokensDeleteUnauthorized) Error() string { + return fmt.Sprintf("[DELETE /me/addon-tokens/{addon-id}][%d] userAddonTokensDeleteUnauthorized %+v", 401, o.Payload) +} + +func (o *UserAddonTokensDeleteUnauthorized) String() string { + return fmt.Sprintf("[DELETE /me/addon-tokens/{addon-id}][%d] userAddonTokensDeleteUnauthorized %+v", 401, o.Payload) +} + +func (o *UserAddonTokensDeleteUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *UserAddonTokensDeleteUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewUserAddonTokensDeleteNotFound creates a UserAddonTokensDeleteNotFound with default headers values +func NewUserAddonTokensDeleteNotFound() *UserAddonTokensDeleteNotFound { + return &UserAddonTokensDeleteNotFound{} +} + +/* +UserAddonTokensDeleteNotFound describes a response with status code 404, with default header values. + +Not Found +*/ +type UserAddonTokensDeleteNotFound struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this user addon tokens delete not found response has a 2xx status code +func (o *UserAddonTokensDeleteNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this user addon tokens delete not found response has a 3xx status code +func (o *UserAddonTokensDeleteNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user addon tokens delete not found response has a 4xx status code +func (o *UserAddonTokensDeleteNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this user addon tokens delete not found response has a 5xx status code +func (o *UserAddonTokensDeleteNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this user addon tokens delete not found response a status code equal to that given +func (o *UserAddonTokensDeleteNotFound) IsCode(code int) bool { + return code == 404 +} + +func (o *UserAddonTokensDeleteNotFound) Error() string { + return fmt.Sprintf("[DELETE /me/addon-tokens/{addon-id}][%d] userAddonTokensDeleteNotFound %+v", 404, o.Payload) +} + +func (o *UserAddonTokensDeleteNotFound) String() string { + return fmt.Sprintf("[DELETE /me/addon-tokens/{addon-id}][%d] userAddonTokensDeleteNotFound %+v", 404, o.Payload) +} + +func (o *UserAddonTokensDeleteNotFound) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *UserAddonTokensDeleteNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewUserAddonTokensDeleteInternalServerError creates a UserAddonTokensDeleteInternalServerError with default headers values +func NewUserAddonTokensDeleteInternalServerError() *UserAddonTokensDeleteInternalServerError { + return &UserAddonTokensDeleteInternalServerError{} +} + +/* +UserAddonTokensDeleteInternalServerError describes a response with status code 500, with default header values. + +Internal Server Error +*/ +type UserAddonTokensDeleteInternalServerError struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this user addon tokens delete internal server error response has a 2xx status code +func (o *UserAddonTokensDeleteInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this user addon tokens delete internal server error response has a 3xx status code +func (o *UserAddonTokensDeleteInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user addon tokens delete internal server error response has a 4xx status code +func (o *UserAddonTokensDeleteInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this user addon tokens delete internal server error response has a 5xx status code +func (o *UserAddonTokensDeleteInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this user addon tokens delete internal server error response a status code equal to that given +func (o *UserAddonTokensDeleteInternalServerError) IsCode(code int) bool { + return code == 500 +} + +func (o *UserAddonTokensDeleteInternalServerError) Error() string { + return fmt.Sprintf("[DELETE /me/addon-tokens/{addon-id}][%d] userAddonTokensDeleteInternalServerError %+v", 500, o.Payload) +} + +func (o *UserAddonTokensDeleteInternalServerError) String() string { + return fmt.Sprintf("[DELETE /me/addon-tokens/{addon-id}][%d] userAddonTokensDeleteInternalServerError %+v", 500, o.Payload) +} + +func (o *UserAddonTokensDeleteInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *UserAddonTokensDeleteInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/go/client/operations/user_addon_tokens_parameters.go b/go/client/operations/user_addon_tokens_parameters.go new file mode 100644 index 0000000..76c5cbf --- /dev/null +++ b/go/client/operations/user_addon_tokens_parameters.go @@ -0,0 +1,128 @@ +// 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" + "github.com/go-openapi/strfmt" +) + +// NewUserAddonTokensParams creates a new UserAddonTokensParams object, +// with the default timeout for this client. +// +// Default values are not hydrated, since defaults are normally applied by the API server side. +// +// To enforce default values in parameter, use SetDefaults or WithDefaults. +func NewUserAddonTokensParams() *UserAddonTokensParams { + return &UserAddonTokensParams{ + timeout: cr.DefaultTimeout, + } +} + +// NewUserAddonTokensParamsWithTimeout creates a new UserAddonTokensParams object +// with the ability to set a timeout on a request. +func NewUserAddonTokensParamsWithTimeout(timeout time.Duration) *UserAddonTokensParams { + return &UserAddonTokensParams{ + timeout: timeout, + } +} + +// NewUserAddonTokensParamsWithContext creates a new UserAddonTokensParams object +// with the ability to set a context for a request. +func NewUserAddonTokensParamsWithContext(ctx context.Context) *UserAddonTokensParams { + return &UserAddonTokensParams{ + Context: ctx, + } +} + +// NewUserAddonTokensParamsWithHTTPClient creates a new UserAddonTokensParams object +// with the ability to set a custom HTTPClient for a request. +func NewUserAddonTokensParamsWithHTTPClient(client *http.Client) *UserAddonTokensParams { + return &UserAddonTokensParams{ + HTTPClient: client, + } +} + +/* +UserAddonTokensParams contains all the parameters to send to the API endpoint + + for the user addon tokens operation. + + Typically these are written to a http.Request. +*/ +type UserAddonTokensParams struct { + timeout time.Duration + Context context.Context + HTTPClient *http.Client +} + +// WithDefaults hydrates default values in the user addon tokens params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UserAddonTokensParams) WithDefaults() *UserAddonTokensParams { + o.SetDefaults() + return o +} + +// SetDefaults hydrates default values in the user addon tokens params (not the query body). +// +// All values with no default are reset to their zero value. +func (o *UserAddonTokensParams) SetDefaults() { + // no default values defined for this parameter +} + +// WithTimeout adds the timeout to the user addon tokens params +func (o *UserAddonTokensParams) WithTimeout(timeout time.Duration) *UserAddonTokensParams { + o.SetTimeout(timeout) + return o +} + +// SetTimeout adds the timeout to the user addon tokens params +func (o *UserAddonTokensParams) SetTimeout(timeout time.Duration) { + o.timeout = timeout +} + +// WithContext adds the context to the user addon tokens params +func (o *UserAddonTokensParams) WithContext(ctx context.Context) *UserAddonTokensParams { + o.SetContext(ctx) + return o +} + +// SetContext adds the context to the user addon tokens params +func (o *UserAddonTokensParams) SetContext(ctx context.Context) { + o.Context = ctx +} + +// WithHTTPClient adds the HTTPClient to the user addon tokens params +func (o *UserAddonTokensParams) WithHTTPClient(client *http.Client) *UserAddonTokensParams { + o.SetHTTPClient(client) + return o +} + +// SetHTTPClient adds the HTTPClient to the user addon tokens params +func (o *UserAddonTokensParams) SetHTTPClient(client *http.Client) { + o.HTTPClient = client +} + +// WriteToRequest writes these params to a swagger request +func (o *UserAddonTokensParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { + + if err := r.SetTimeout(o.timeout); err != nil { + return err + } + var res []error + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} diff --git a/go/client/operations/user_addon_tokens_responses.go b/go/client/operations/user_addon_tokens_responses.go new file mode 100644 index 0000000..c52a6fa --- /dev/null +++ b/go/client/operations/user_addon_tokens_responses.go @@ -0,0 +1,372 @@ +// 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" + "github.com/go-openapi/strfmt" + + "github.com/Staffbase/bitrise-api/go/models" +) + +// UserAddonTokensReader is a Reader for the UserAddonTokens structure. +type UserAddonTokensReader struct { + formats strfmt.Registry +} + +// ReadResponse reads a server response into the received o. +func (o *UserAddonTokensReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { + switch response.Code() { + case 200: + result := NewUserAddonTokensOK() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return result, nil + case 400: + result := NewUserAddonTokensBadRequest() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 401: + result := NewUserAddonTokensUnauthorized() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 404: + result := NewUserAddonTokensNotFound() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + case 500: + result := NewUserAddonTokensInternalServerError() + if err := result.readResponse(response, consumer, o.formats); err != nil { + return nil, err + } + return nil, result + default: + return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code()) + } +} + +// NewUserAddonTokensOK creates a UserAddonTokensOK with default headers values +func NewUserAddonTokensOK() *UserAddonTokensOK { + return &UserAddonTokensOK{} +} + +/* +UserAddonTokensOK describes a response with status code 200, with default header values. + +OK +*/ +type UserAddonTokensOK struct { + Payload []string +} + +// IsSuccess returns true when this user addon tokens o k response has a 2xx status code +func (o *UserAddonTokensOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this user addon tokens o k response has a 3xx status code +func (o *UserAddonTokensOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user addon tokens o k response has a 4xx status code +func (o *UserAddonTokensOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this user addon tokens o k response has a 5xx status code +func (o *UserAddonTokensOK) IsServerError() bool { + return false +} + +// IsCode returns true when this user addon tokens o k response a status code equal to that given +func (o *UserAddonTokensOK) IsCode(code int) bool { + return code == 200 +} + +func (o *UserAddonTokensOK) Error() string { + return fmt.Sprintf("[GET /me/addon-tokens][%d] userAddonTokensOK %+v", 200, o.Payload) +} + +func (o *UserAddonTokensOK) String() string { + return fmt.Sprintf("[GET /me/addon-tokens][%d] userAddonTokensOK %+v", 200, o.Payload) +} + +func (o *UserAddonTokensOK) GetPayload() []string { + return o.Payload +} + +func (o *UserAddonTokensOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + // response payload + if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewUserAddonTokensBadRequest creates a UserAddonTokensBadRequest with default headers values +func NewUserAddonTokensBadRequest() *UserAddonTokensBadRequest { + return &UserAddonTokensBadRequest{} +} + +/* +UserAddonTokensBadRequest describes a response with status code 400, with default header values. + +Bad Request +*/ +type UserAddonTokensBadRequest struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this user addon tokens bad request response has a 2xx status code +func (o *UserAddonTokensBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this user addon tokens bad request response has a 3xx status code +func (o *UserAddonTokensBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user addon tokens bad request response has a 4xx status code +func (o *UserAddonTokensBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this user addon tokens bad request response has a 5xx status code +func (o *UserAddonTokensBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this user addon tokens bad request response a status code equal to that given +func (o *UserAddonTokensBadRequest) IsCode(code int) bool { + return code == 400 +} + +func (o *UserAddonTokensBadRequest) Error() string { + return fmt.Sprintf("[GET /me/addon-tokens][%d] userAddonTokensBadRequest %+v", 400, o.Payload) +} + +func (o *UserAddonTokensBadRequest) String() string { + return fmt.Sprintf("[GET /me/addon-tokens][%d] userAddonTokensBadRequest %+v", 400, o.Payload) +} + +func (o *UserAddonTokensBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *UserAddonTokensBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewUserAddonTokensUnauthorized creates a UserAddonTokensUnauthorized with default headers values +func NewUserAddonTokensUnauthorized() *UserAddonTokensUnauthorized { + return &UserAddonTokensUnauthorized{} +} + +/* +UserAddonTokensUnauthorized describes a response with status code 401, with default header values. + +Unauthorized +*/ +type UserAddonTokensUnauthorized struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this user addon tokens unauthorized response has a 2xx status code +func (o *UserAddonTokensUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this user addon tokens unauthorized response has a 3xx status code +func (o *UserAddonTokensUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user addon tokens unauthorized response has a 4xx status code +func (o *UserAddonTokensUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this user addon tokens unauthorized response has a 5xx status code +func (o *UserAddonTokensUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this user addon tokens unauthorized response a status code equal to that given +func (o *UserAddonTokensUnauthorized) IsCode(code int) bool { + return code == 401 +} + +func (o *UserAddonTokensUnauthorized) Error() string { + return fmt.Sprintf("[GET /me/addon-tokens][%d] userAddonTokensUnauthorized %+v", 401, o.Payload) +} + +func (o *UserAddonTokensUnauthorized) String() string { + return fmt.Sprintf("[GET /me/addon-tokens][%d] userAddonTokensUnauthorized %+v", 401, o.Payload) +} + +func (o *UserAddonTokensUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *UserAddonTokensUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewUserAddonTokensNotFound creates a UserAddonTokensNotFound with default headers values +func NewUserAddonTokensNotFound() *UserAddonTokensNotFound { + return &UserAddonTokensNotFound{} +} + +/* +UserAddonTokensNotFound describes a response with status code 404, with default header values. + +Not Found +*/ +type UserAddonTokensNotFound struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this user addon tokens not found response has a 2xx status code +func (o *UserAddonTokensNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this user addon tokens not found response has a 3xx status code +func (o *UserAddonTokensNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user addon tokens not found response has a 4xx status code +func (o *UserAddonTokensNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this user addon tokens not found response has a 5xx status code +func (o *UserAddonTokensNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this user addon tokens not found response a status code equal to that given +func (o *UserAddonTokensNotFound) IsCode(code int) bool { + return code == 404 +} + +func (o *UserAddonTokensNotFound) Error() string { + return fmt.Sprintf("[GET /me/addon-tokens][%d] userAddonTokensNotFound %+v", 404, o.Payload) +} + +func (o *UserAddonTokensNotFound) String() string { + return fmt.Sprintf("[GET /me/addon-tokens][%d] userAddonTokensNotFound %+v", 404, o.Payload) +} + +func (o *UserAddonTokensNotFound) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *UserAddonTokensNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} + +// NewUserAddonTokensInternalServerError creates a UserAddonTokensInternalServerError with default headers values +func NewUserAddonTokensInternalServerError() *UserAddonTokensInternalServerError { + return &UserAddonTokensInternalServerError{} +} + +/* +UserAddonTokensInternalServerError describes a response with status code 500, with default header values. + +Internal Server Error +*/ +type UserAddonTokensInternalServerError struct { + Payload *models.ServiceStandardErrorRespModel +} + +// IsSuccess returns true when this user addon tokens internal server error response has a 2xx status code +func (o *UserAddonTokensInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this user addon tokens internal server error response has a 3xx status code +func (o *UserAddonTokensInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user addon tokens internal server error response has a 4xx status code +func (o *UserAddonTokensInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this user addon tokens internal server error response has a 5xx status code +func (o *UserAddonTokensInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this user addon tokens internal server error response a status code equal to that given +func (o *UserAddonTokensInternalServerError) IsCode(code int) bool { + return code == 500 +} + +func (o *UserAddonTokensInternalServerError) Error() string { + return fmt.Sprintf("[GET /me/addon-tokens][%d] userAddonTokensInternalServerError %+v", 500, o.Payload) +} + +func (o *UserAddonTokensInternalServerError) String() string { + return fmt.Sprintf("[GET /me/addon-tokens][%d] userAddonTokensInternalServerError %+v", 500, o.Payload) +} + +func (o *UserAddonTokensInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { + return o.Payload +} + +func (o *UserAddonTokensInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { + + o.Payload = new(models.ServiceStandardErrorRespModel) + + // response payload + if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { + return err + } + + return nil +} diff --git a/go/client/operations/user_plan_parameters.go b/go/client/operations/user_plan_parameters.go index 6d8ca70..e8bf4b7 100644 --- a/go/client/operations/user_plan_parameters.go +++ b/go/client/operations/user_plan_parameters.go @@ -52,10 +52,12 @@ func NewUserPlanParamsWithHTTPClient(client *http.Client) *UserPlanParams { } } -/* UserPlanParams contains all the parameters to send to the API endpoint - for the user plan operation. +/* +UserPlanParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the user plan operation. + + Typically these are written to a http.Request. */ type UserPlanParams struct { timeout time.Duration diff --git a/go/client/operations/user_plan_responses.go b/go/client/operations/user_plan_responses.go index 9a56aaf..d8e400e 100644 --- a/go/client/operations/user_plan_responses.go +++ b/go/client/operations/user_plan_responses.go @@ -63,7 +63,8 @@ func NewUserPlanOK() *UserPlanOK { return &UserPlanOK{} } -/* UserPlanOK describes a response with status code 200, with default header values. +/* +UserPlanOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type UserPlanOK struct { Payload *models.V0UserPlanRespModel } +// IsSuccess returns true when this user plan o k response has a 2xx status code +func (o *UserPlanOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this user plan o k response has a 3xx status code +func (o *UserPlanOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user plan o k response has a 4xx status code +func (o *UserPlanOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this user plan o k response has a 5xx status code +func (o *UserPlanOK) IsServerError() bool { + return false +} + +// IsCode returns true when this user plan o k response a status code equal to that given +func (o *UserPlanOK) IsCode(code int) bool { + return code == 200 +} + func (o *UserPlanOK) Error() string { return fmt.Sprintf("[GET /me/plan][%d] userPlanOK %+v", 200, o.Payload) } + +func (o *UserPlanOK) String() string { + return fmt.Sprintf("[GET /me/plan][%d] userPlanOK %+v", 200, o.Payload) +} + func (o *UserPlanOK) GetPayload() *models.V0UserPlanRespModel { return o.Payload } @@ -95,7 +126,8 @@ func NewUserPlanBadRequest() *UserPlanBadRequest { return &UserPlanBadRequest{} } -/* UserPlanBadRequest describes a response with status code 400, with default header values. +/* +UserPlanBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type UserPlanBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this user plan bad request response has a 2xx status code +func (o *UserPlanBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this user plan bad request response has a 3xx status code +func (o *UserPlanBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user plan bad request response has a 4xx status code +func (o *UserPlanBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this user plan bad request response has a 5xx status code +func (o *UserPlanBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this user plan bad request response a status code equal to that given +func (o *UserPlanBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *UserPlanBadRequest) Error() string { return fmt.Sprintf("[GET /me/plan][%d] userPlanBadRequest %+v", 400, o.Payload) } + +func (o *UserPlanBadRequest) String() string { + return fmt.Sprintf("[GET /me/plan][%d] userPlanBadRequest %+v", 400, o.Payload) +} + func (o *UserPlanBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewUserPlanUnauthorized() *UserPlanUnauthorized { return &UserPlanUnauthorized{} } -/* UserPlanUnauthorized describes a response with status code 401, with default header values. +/* +UserPlanUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type UserPlanUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this user plan unauthorized response has a 2xx status code +func (o *UserPlanUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this user plan unauthorized response has a 3xx status code +func (o *UserPlanUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user plan unauthorized response has a 4xx status code +func (o *UserPlanUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this user plan unauthorized response has a 5xx status code +func (o *UserPlanUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this user plan unauthorized response a status code equal to that given +func (o *UserPlanUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *UserPlanUnauthorized) Error() string { return fmt.Sprintf("[GET /me/plan][%d] userPlanUnauthorized %+v", 401, o.Payload) } + +func (o *UserPlanUnauthorized) String() string { + return fmt.Sprintf("[GET /me/plan][%d] userPlanUnauthorized %+v", 401, o.Payload) +} + func (o *UserPlanUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewUserPlanNotFound() *UserPlanNotFound { return &UserPlanNotFound{} } -/* UserPlanNotFound describes a response with status code 404, with default header values. +/* +UserPlanNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type UserPlanNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this user plan not found response has a 2xx status code +func (o *UserPlanNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this user plan not found response has a 3xx status code +func (o *UserPlanNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user plan not found response has a 4xx status code +func (o *UserPlanNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this user plan not found response has a 5xx status code +func (o *UserPlanNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this user plan not found response a status code equal to that given +func (o *UserPlanNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *UserPlanNotFound) Error() string { return fmt.Sprintf("[GET /me/plan][%d] userPlanNotFound %+v", 404, o.Payload) } + +func (o *UserPlanNotFound) String() string { + return fmt.Sprintf("[GET /me/plan][%d] userPlanNotFound %+v", 404, o.Payload) +} + func (o *UserPlanNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewUserPlanInternalServerError() *UserPlanInternalServerError { return &UserPlanInternalServerError{} } -/* UserPlanInternalServerError describes a response with status code 500, with default header values. +/* +UserPlanInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type UserPlanInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this user plan internal server error response has a 2xx status code +func (o *UserPlanInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this user plan internal server error response has a 3xx status code +func (o *UserPlanInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user plan internal server error response has a 4xx status code +func (o *UserPlanInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this user plan internal server error response has a 5xx status code +func (o *UserPlanInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this user plan internal server error response a status code equal to that given +func (o *UserPlanInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *UserPlanInternalServerError) Error() string { return fmt.Sprintf("[GET /me/plan][%d] userPlanInternalServerError %+v", 500, o.Payload) } + +func (o *UserPlanInternalServerError) String() string { + return fmt.Sprintf("[GET /me/plan][%d] userPlanInternalServerError %+v", 500, o.Payload) +} + func (o *UserPlanInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/user_profile_parameters.go b/go/client/operations/user_profile_parameters.go index 9a1b528..3d96b09 100644 --- a/go/client/operations/user_profile_parameters.go +++ b/go/client/operations/user_profile_parameters.go @@ -52,10 +52,12 @@ func NewUserProfileParamsWithHTTPClient(client *http.Client) *UserProfileParams } } -/* UserProfileParams contains all the parameters to send to the API endpoint - for the user profile operation. +/* +UserProfileParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the user profile operation. + + Typically these are written to a http.Request. */ type UserProfileParams struct { timeout time.Duration diff --git a/go/client/operations/user_profile_responses.go b/go/client/operations/user_profile_responses.go index c93c193..5c283de 100644 --- a/go/client/operations/user_profile_responses.go +++ b/go/client/operations/user_profile_responses.go @@ -57,7 +57,8 @@ func NewUserProfileOK() *UserProfileOK { return &UserProfileOK{} } -/* UserProfileOK describes a response with status code 200, with default header values. +/* +UserProfileOK describes a response with status code 200, with default header values. OK */ @@ -65,9 +66,39 @@ type UserProfileOK struct { Payload *models.V0UserProfileRespModel } +// IsSuccess returns true when this user profile o k response has a 2xx status code +func (o *UserProfileOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this user profile o k response has a 3xx status code +func (o *UserProfileOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user profile o k response has a 4xx status code +func (o *UserProfileOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this user profile o k response has a 5xx status code +func (o *UserProfileOK) IsServerError() bool { + return false +} + +// IsCode returns true when this user profile o k response a status code equal to that given +func (o *UserProfileOK) IsCode(code int) bool { + return code == 200 +} + func (o *UserProfileOK) Error() string { return fmt.Sprintf("[GET /me][%d] userProfileOK %+v", 200, o.Payload) } + +func (o *UserProfileOK) String() string { + return fmt.Sprintf("[GET /me][%d] userProfileOK %+v", 200, o.Payload) +} + func (o *UserProfileOK) GetPayload() *models.V0UserProfileRespModel { return o.Payload } @@ -89,7 +120,8 @@ func NewUserProfileUnauthorized() *UserProfileUnauthorized { return &UserProfileUnauthorized{} } -/* UserProfileUnauthorized describes a response with status code 401, with default header values. +/* +UserProfileUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -97,9 +129,39 @@ type UserProfileUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this user profile unauthorized response has a 2xx status code +func (o *UserProfileUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this user profile unauthorized response has a 3xx status code +func (o *UserProfileUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user profile unauthorized response has a 4xx status code +func (o *UserProfileUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this user profile unauthorized response has a 5xx status code +func (o *UserProfileUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this user profile unauthorized response a status code equal to that given +func (o *UserProfileUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *UserProfileUnauthorized) Error() string { return fmt.Sprintf("[GET /me][%d] userProfileUnauthorized %+v", 401, o.Payload) } + +func (o *UserProfileUnauthorized) String() string { + return fmt.Sprintf("[GET /me][%d] userProfileUnauthorized %+v", 401, o.Payload) +} + func (o *UserProfileUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -121,7 +183,8 @@ func NewUserProfileNotFound() *UserProfileNotFound { return &UserProfileNotFound{} } -/* UserProfileNotFound describes a response with status code 404, with default header values. +/* +UserProfileNotFound describes a response with status code 404, with default header values. Not Found */ @@ -129,9 +192,39 @@ type UserProfileNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this user profile not found response has a 2xx status code +func (o *UserProfileNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this user profile not found response has a 3xx status code +func (o *UserProfileNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user profile not found response has a 4xx status code +func (o *UserProfileNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this user profile not found response has a 5xx status code +func (o *UserProfileNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this user profile not found response a status code equal to that given +func (o *UserProfileNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *UserProfileNotFound) Error() string { return fmt.Sprintf("[GET /me][%d] userProfileNotFound %+v", 404, o.Payload) } + +func (o *UserProfileNotFound) String() string { + return fmt.Sprintf("[GET /me][%d] userProfileNotFound %+v", 404, o.Payload) +} + func (o *UserProfileNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -153,7 +246,8 @@ func NewUserProfileInternalServerError() *UserProfileInternalServerError { return &UserProfileInternalServerError{} } -/* UserProfileInternalServerError describes a response with status code 500, with default header values. +/* +UserProfileInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -161,9 +255,39 @@ type UserProfileInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this user profile internal server error response has a 2xx status code +func (o *UserProfileInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this user profile internal server error response has a 3xx status code +func (o *UserProfileInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user profile internal server error response has a 4xx status code +func (o *UserProfileInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this user profile internal server error response has a 5xx status code +func (o *UserProfileInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this user profile internal server error response a status code equal to that given +func (o *UserProfileInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *UserProfileInternalServerError) Error() string { return fmt.Sprintf("[GET /me][%d] userProfileInternalServerError %+v", 500, o.Payload) } + +func (o *UserProfileInternalServerError) String() string { + return fmt.Sprintf("[GET /me][%d] userProfileInternalServerError %+v", 500, o.Payload) +} + func (o *UserProfileInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/user_show_parameters.go b/go/client/operations/user_show_parameters.go index c47ff43..21290ea 100644 --- a/go/client/operations/user_show_parameters.go +++ b/go/client/operations/user_show_parameters.go @@ -52,10 +52,12 @@ func NewUserShowParamsWithHTTPClient(client *http.Client) *UserShowParams { } } -/* UserShowParams contains all the parameters to send to the API endpoint - for the user show operation. +/* +UserShowParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the user show operation. + + Typically these are written to a http.Request. */ type UserShowParams struct { diff --git a/go/client/operations/user_show_responses.go b/go/client/operations/user_show_responses.go index 76421fa..8409221 100644 --- a/go/client/operations/user_show_responses.go +++ b/go/client/operations/user_show_responses.go @@ -63,7 +63,8 @@ func NewUserShowOK() *UserShowOK { return &UserShowOK{} } -/* UserShowOK describes a response with status code 200, with default header values. +/* +UserShowOK describes a response with status code 200, with default header values. OK */ @@ -71,9 +72,39 @@ type UserShowOK struct { Payload *models.V0UserProfileRespModel } +// IsSuccess returns true when this user show o k response has a 2xx status code +func (o *UserShowOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this user show o k response has a 3xx status code +func (o *UserShowOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user show o k response has a 4xx status code +func (o *UserShowOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this user show o k response has a 5xx status code +func (o *UserShowOK) IsServerError() bool { + return false +} + +// IsCode returns true when this user show o k response a status code equal to that given +func (o *UserShowOK) IsCode(code int) bool { + return code == 200 +} + func (o *UserShowOK) Error() string { return fmt.Sprintf("[GET /users/{user-slug}][%d] userShowOK %+v", 200, o.Payload) } + +func (o *UserShowOK) String() string { + return fmt.Sprintf("[GET /users/{user-slug}][%d] userShowOK %+v", 200, o.Payload) +} + func (o *UserShowOK) GetPayload() *models.V0UserProfileRespModel { return o.Payload } @@ -95,7 +126,8 @@ func NewUserShowBadRequest() *UserShowBadRequest { return &UserShowBadRequest{} } -/* UserShowBadRequest describes a response with status code 400, with default header values. +/* +UserShowBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -103,9 +135,39 @@ type UserShowBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this user show bad request response has a 2xx status code +func (o *UserShowBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this user show bad request response has a 3xx status code +func (o *UserShowBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user show bad request response has a 4xx status code +func (o *UserShowBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this user show bad request response has a 5xx status code +func (o *UserShowBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this user show bad request response a status code equal to that given +func (o *UserShowBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *UserShowBadRequest) Error() string { return fmt.Sprintf("[GET /users/{user-slug}][%d] userShowBadRequest %+v", 400, o.Payload) } + +func (o *UserShowBadRequest) String() string { + return fmt.Sprintf("[GET /users/{user-slug}][%d] userShowBadRequest %+v", 400, o.Payload) +} + func (o *UserShowBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -127,7 +189,8 @@ func NewUserShowUnauthorized() *UserShowUnauthorized { return &UserShowUnauthorized{} } -/* UserShowUnauthorized describes a response with status code 401, with default header values. +/* +UserShowUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -135,9 +198,39 @@ type UserShowUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this user show unauthorized response has a 2xx status code +func (o *UserShowUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this user show unauthorized response has a 3xx status code +func (o *UserShowUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user show unauthorized response has a 4xx status code +func (o *UserShowUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this user show unauthorized response has a 5xx status code +func (o *UserShowUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this user show unauthorized response a status code equal to that given +func (o *UserShowUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *UserShowUnauthorized) Error() string { return fmt.Sprintf("[GET /users/{user-slug}][%d] userShowUnauthorized %+v", 401, o.Payload) } + +func (o *UserShowUnauthorized) String() string { + return fmt.Sprintf("[GET /users/{user-slug}][%d] userShowUnauthorized %+v", 401, o.Payload) +} + func (o *UserShowUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -159,7 +252,8 @@ func NewUserShowNotFound() *UserShowNotFound { return &UserShowNotFound{} } -/* UserShowNotFound describes a response with status code 404, with default header values. +/* +UserShowNotFound describes a response with status code 404, with default header values. Not Found */ @@ -167,9 +261,39 @@ type UserShowNotFound struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this user show not found response has a 2xx status code +func (o *UserShowNotFound) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this user show not found response has a 3xx status code +func (o *UserShowNotFound) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user show not found response has a 4xx status code +func (o *UserShowNotFound) IsClientError() bool { + return true +} + +// IsServerError returns true when this user show not found response has a 5xx status code +func (o *UserShowNotFound) IsServerError() bool { + return false +} + +// IsCode returns true when this user show not found response a status code equal to that given +func (o *UserShowNotFound) IsCode(code int) bool { + return code == 404 +} + func (o *UserShowNotFound) Error() string { return fmt.Sprintf("[GET /users/{user-slug}][%d] userShowNotFound %+v", 404, o.Payload) } + +func (o *UserShowNotFound) String() string { + return fmt.Sprintf("[GET /users/{user-slug}][%d] userShowNotFound %+v", 404, o.Payload) +} + func (o *UserShowNotFound) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -191,7 +315,8 @@ func NewUserShowInternalServerError() *UserShowInternalServerError { return &UserShowInternalServerError{} } -/* UserShowInternalServerError describes a response with status code 500, with default header values. +/* +UserShowInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -199,9 +324,39 @@ type UserShowInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this user show internal server error response has a 2xx status code +func (o *UserShowInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this user show internal server error response has a 3xx status code +func (o *UserShowInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this user show internal server error response has a 4xx status code +func (o *UserShowInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this user show internal server error response has a 5xx status code +func (o *UserShowInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this user show internal server error response a status code equal to that given +func (o *UserShowInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *UserShowInternalServerError) Error() string { return fmt.Sprintf("[GET /users/{user-slug}][%d] userShowInternalServerError %+v", 500, o.Payload) } + +func (o *UserShowInternalServerError) String() string { + return fmt.Sprintf("[GET /users/{user-slug}][%d] userShowInternalServerError %+v", 500, o.Payload) +} + func (o *UserShowInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/webhook_delivery_item_list_parameters.go b/go/client/operations/webhook_delivery_item_list_parameters.go index d8d56a9..f386c4c 100644 --- a/go/client/operations/webhook_delivery_item_list_parameters.go +++ b/go/client/operations/webhook_delivery_item_list_parameters.go @@ -53,10 +53,12 @@ func NewWebhookDeliveryItemListParamsWithHTTPClient(client *http.Client) *Webhoo } } -/* WebhookDeliveryItemListParams contains all the parameters to send to the API endpoint - for the webhook delivery item list operation. +/* +WebhookDeliveryItemListParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the webhook delivery item list operation. + + Typically these are written to a http.Request. */ type WebhookDeliveryItemListParams struct { diff --git a/go/client/operations/webhook_delivery_item_list_responses.go b/go/client/operations/webhook_delivery_item_list_responses.go index 64bb8e3..554b63a 100644 --- a/go/client/operations/webhook_delivery_item_list_responses.go +++ b/go/client/operations/webhook_delivery_item_list_responses.go @@ -57,7 +57,8 @@ func NewWebhookDeliveryItemListOK() *WebhookDeliveryItemListOK { return &WebhookDeliveryItemListOK{} } -/* WebhookDeliveryItemListOK describes a response with status code 200, with default header values. +/* +WebhookDeliveryItemListOK describes a response with status code 200, with default header values. OK */ @@ -65,9 +66,39 @@ type WebhookDeliveryItemListOK struct { Payload *models.V0WebhookDeliveryItemShowResponseModel } +// IsSuccess returns true when this webhook delivery item list o k response has a 2xx status code +func (o *WebhookDeliveryItemListOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this webhook delivery item list o k response has a 3xx status code +func (o *WebhookDeliveryItemListOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this webhook delivery item list o k response has a 4xx status code +func (o *WebhookDeliveryItemListOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this webhook delivery item list o k response has a 5xx status code +func (o *WebhookDeliveryItemListOK) IsServerError() bool { + return false +} + +// IsCode returns true when this webhook delivery item list o k response a status code equal to that given +func (o *WebhookDeliveryItemListOK) IsCode(code int) bool { + return code == 200 +} + func (o *WebhookDeliveryItemListOK) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items][%d] webhookDeliveryItemListOK %+v", 200, o.Payload) } + +func (o *WebhookDeliveryItemListOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items][%d] webhookDeliveryItemListOK %+v", 200, o.Payload) +} + func (o *WebhookDeliveryItemListOK) GetPayload() *models.V0WebhookDeliveryItemShowResponseModel { return o.Payload } @@ -89,7 +120,8 @@ func NewWebhookDeliveryItemListBadRequest() *WebhookDeliveryItemListBadRequest { return &WebhookDeliveryItemListBadRequest{} } -/* WebhookDeliveryItemListBadRequest describes a response with status code 400, with default header values. +/* +WebhookDeliveryItemListBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -97,9 +129,39 @@ type WebhookDeliveryItemListBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this webhook delivery item list bad request response has a 2xx status code +func (o *WebhookDeliveryItemListBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this webhook delivery item list bad request response has a 3xx status code +func (o *WebhookDeliveryItemListBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this webhook delivery item list bad request response has a 4xx status code +func (o *WebhookDeliveryItemListBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this webhook delivery item list bad request response has a 5xx status code +func (o *WebhookDeliveryItemListBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this webhook delivery item list bad request response a status code equal to that given +func (o *WebhookDeliveryItemListBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *WebhookDeliveryItemListBadRequest) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items][%d] webhookDeliveryItemListBadRequest %+v", 400, o.Payload) } + +func (o *WebhookDeliveryItemListBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items][%d] webhookDeliveryItemListBadRequest %+v", 400, o.Payload) +} + func (o *WebhookDeliveryItemListBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -121,7 +183,8 @@ func NewWebhookDeliveryItemListUnauthorized() *WebhookDeliveryItemListUnauthoriz return &WebhookDeliveryItemListUnauthorized{} } -/* WebhookDeliveryItemListUnauthorized describes a response with status code 401, with default header values. +/* +WebhookDeliveryItemListUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -129,9 +192,39 @@ type WebhookDeliveryItemListUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this webhook delivery item list unauthorized response has a 2xx status code +func (o *WebhookDeliveryItemListUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this webhook delivery item list unauthorized response has a 3xx status code +func (o *WebhookDeliveryItemListUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this webhook delivery item list unauthorized response has a 4xx status code +func (o *WebhookDeliveryItemListUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this webhook delivery item list unauthorized response has a 5xx status code +func (o *WebhookDeliveryItemListUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this webhook delivery item list unauthorized response a status code equal to that given +func (o *WebhookDeliveryItemListUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *WebhookDeliveryItemListUnauthorized) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items][%d] webhookDeliveryItemListUnauthorized %+v", 401, o.Payload) } + +func (o *WebhookDeliveryItemListUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items][%d] webhookDeliveryItemListUnauthorized %+v", 401, o.Payload) +} + func (o *WebhookDeliveryItemListUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -153,7 +246,8 @@ func NewWebhookDeliveryItemListInternalServerError() *WebhookDeliveryItemListInt return &WebhookDeliveryItemListInternalServerError{} } -/* WebhookDeliveryItemListInternalServerError describes a response with status code 500, with default header values. +/* +WebhookDeliveryItemListInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -161,9 +255,39 @@ type WebhookDeliveryItemListInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this webhook delivery item list internal server error response has a 2xx status code +func (o *WebhookDeliveryItemListInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this webhook delivery item list internal server error response has a 3xx status code +func (o *WebhookDeliveryItemListInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this webhook delivery item list internal server error response has a 4xx status code +func (o *WebhookDeliveryItemListInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this webhook delivery item list internal server error response has a 5xx status code +func (o *WebhookDeliveryItemListInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this webhook delivery item list internal server error response a status code equal to that given +func (o *WebhookDeliveryItemListInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *WebhookDeliveryItemListInternalServerError) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items][%d] webhookDeliveryItemListInternalServerError %+v", 500, o.Payload) } + +func (o *WebhookDeliveryItemListInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items][%d] webhookDeliveryItemListInternalServerError %+v", 500, o.Payload) +} + func (o *WebhookDeliveryItemListInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/webhook_delivery_item_redeliver_parameters.go b/go/client/operations/webhook_delivery_item_redeliver_parameters.go index 0bb44bb..57cbe5b 100644 --- a/go/client/operations/webhook_delivery_item_redeliver_parameters.go +++ b/go/client/operations/webhook_delivery_item_redeliver_parameters.go @@ -52,10 +52,12 @@ func NewWebhookDeliveryItemRedeliverParamsWithHTTPClient(client *http.Client) *W } } -/* WebhookDeliveryItemRedeliverParams contains all the parameters to send to the API endpoint - for the webhook delivery item redeliver operation. +/* +WebhookDeliveryItemRedeliverParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the webhook delivery item redeliver operation. + + Typically these are written to a http.Request. */ type WebhookDeliveryItemRedeliverParams struct { diff --git a/go/client/operations/webhook_delivery_item_redeliver_responses.go b/go/client/operations/webhook_delivery_item_redeliver_responses.go index 63d1450..362a608 100644 --- a/go/client/operations/webhook_delivery_item_redeliver_responses.go +++ b/go/client/operations/webhook_delivery_item_redeliver_responses.go @@ -57,7 +57,8 @@ func NewWebhookDeliveryItemRedeliverOK() *WebhookDeliveryItemRedeliverOK { return &WebhookDeliveryItemRedeliverOK{} } -/* WebhookDeliveryItemRedeliverOK describes a response with status code 200, with default header values. +/* +WebhookDeliveryItemRedeliverOK describes a response with status code 200, with default header values. OK */ @@ -65,9 +66,39 @@ type WebhookDeliveryItemRedeliverOK struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this webhook delivery item redeliver o k response has a 2xx status code +func (o *WebhookDeliveryItemRedeliverOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this webhook delivery item redeliver o k response has a 3xx status code +func (o *WebhookDeliveryItemRedeliverOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this webhook delivery item redeliver o k response has a 4xx status code +func (o *WebhookDeliveryItemRedeliverOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this webhook delivery item redeliver o k response has a 5xx status code +func (o *WebhookDeliveryItemRedeliverOK) IsServerError() bool { + return false +} + +// IsCode returns true when this webhook delivery item redeliver o k response a status code equal to that given +func (o *WebhookDeliveryItemRedeliverOK) IsCode(code int) bool { + return code == 200 +} + func (o *WebhookDeliveryItemRedeliverOK) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items/{webhook-delivery-item-slug}/redeliver][%d] webhookDeliveryItemRedeliverOK %+v", 200, o.Payload) } + +func (o *WebhookDeliveryItemRedeliverOK) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items/{webhook-delivery-item-slug}/redeliver][%d] webhookDeliveryItemRedeliverOK %+v", 200, o.Payload) +} + func (o *WebhookDeliveryItemRedeliverOK) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -89,7 +120,8 @@ func NewWebhookDeliveryItemRedeliverBadRequest() *WebhookDeliveryItemRedeliverBa return &WebhookDeliveryItemRedeliverBadRequest{} } -/* WebhookDeliveryItemRedeliverBadRequest describes a response with status code 400, with default header values. +/* +WebhookDeliveryItemRedeliverBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -97,9 +129,39 @@ type WebhookDeliveryItemRedeliverBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this webhook delivery item redeliver bad request response has a 2xx status code +func (o *WebhookDeliveryItemRedeliverBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this webhook delivery item redeliver bad request response has a 3xx status code +func (o *WebhookDeliveryItemRedeliverBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this webhook delivery item redeliver bad request response has a 4xx status code +func (o *WebhookDeliveryItemRedeliverBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this webhook delivery item redeliver bad request response has a 5xx status code +func (o *WebhookDeliveryItemRedeliverBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this webhook delivery item redeliver bad request response a status code equal to that given +func (o *WebhookDeliveryItemRedeliverBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *WebhookDeliveryItemRedeliverBadRequest) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items/{webhook-delivery-item-slug}/redeliver][%d] webhookDeliveryItemRedeliverBadRequest %+v", 400, o.Payload) } + +func (o *WebhookDeliveryItemRedeliverBadRequest) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items/{webhook-delivery-item-slug}/redeliver][%d] webhookDeliveryItemRedeliverBadRequest %+v", 400, o.Payload) +} + func (o *WebhookDeliveryItemRedeliverBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -121,7 +183,8 @@ func NewWebhookDeliveryItemRedeliverUnauthorized() *WebhookDeliveryItemRedeliver return &WebhookDeliveryItemRedeliverUnauthorized{} } -/* WebhookDeliveryItemRedeliverUnauthorized describes a response with status code 401, with default header values. +/* +WebhookDeliveryItemRedeliverUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -129,9 +192,39 @@ type WebhookDeliveryItemRedeliverUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this webhook delivery item redeliver unauthorized response has a 2xx status code +func (o *WebhookDeliveryItemRedeliverUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this webhook delivery item redeliver unauthorized response has a 3xx status code +func (o *WebhookDeliveryItemRedeliverUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this webhook delivery item redeliver unauthorized response has a 4xx status code +func (o *WebhookDeliveryItemRedeliverUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this webhook delivery item redeliver unauthorized response has a 5xx status code +func (o *WebhookDeliveryItemRedeliverUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this webhook delivery item redeliver unauthorized response a status code equal to that given +func (o *WebhookDeliveryItemRedeliverUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *WebhookDeliveryItemRedeliverUnauthorized) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items/{webhook-delivery-item-slug}/redeliver][%d] webhookDeliveryItemRedeliverUnauthorized %+v", 401, o.Payload) } + +func (o *WebhookDeliveryItemRedeliverUnauthorized) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items/{webhook-delivery-item-slug}/redeliver][%d] webhookDeliveryItemRedeliverUnauthorized %+v", 401, o.Payload) +} + func (o *WebhookDeliveryItemRedeliverUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -153,7 +246,8 @@ func NewWebhookDeliveryItemRedeliverInternalServerError() *WebhookDeliveryItemRe return &WebhookDeliveryItemRedeliverInternalServerError{} } -/* WebhookDeliveryItemRedeliverInternalServerError describes a response with status code 500, with default header values. +/* +WebhookDeliveryItemRedeliverInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -161,9 +255,39 @@ type WebhookDeliveryItemRedeliverInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this webhook delivery item redeliver internal server error response has a 2xx status code +func (o *WebhookDeliveryItemRedeliverInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this webhook delivery item redeliver internal server error response has a 3xx status code +func (o *WebhookDeliveryItemRedeliverInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this webhook delivery item redeliver internal server error response has a 4xx status code +func (o *WebhookDeliveryItemRedeliverInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this webhook delivery item redeliver internal server error response has a 5xx status code +func (o *WebhookDeliveryItemRedeliverInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this webhook delivery item redeliver internal server error response a status code equal to that given +func (o *WebhookDeliveryItemRedeliverInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *WebhookDeliveryItemRedeliverInternalServerError) Error() string { return fmt.Sprintf("[POST /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items/{webhook-delivery-item-slug}/redeliver][%d] webhookDeliveryItemRedeliverInternalServerError %+v", 500, o.Payload) } + +func (o *WebhookDeliveryItemRedeliverInternalServerError) String() string { + return fmt.Sprintf("[POST /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items/{webhook-delivery-item-slug}/redeliver][%d] webhookDeliveryItemRedeliverInternalServerError %+v", 500, o.Payload) +} + func (o *WebhookDeliveryItemRedeliverInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/client/operations/webhook_delivery_item_show_parameters.go b/go/client/operations/webhook_delivery_item_show_parameters.go index cdc9264..0dc62fe 100644 --- a/go/client/operations/webhook_delivery_item_show_parameters.go +++ b/go/client/operations/webhook_delivery_item_show_parameters.go @@ -52,10 +52,12 @@ func NewWebhookDeliveryItemShowParamsWithHTTPClient(client *http.Client) *Webhoo } } -/* WebhookDeliveryItemShowParams contains all the parameters to send to the API endpoint - for the webhook delivery item show operation. +/* +WebhookDeliveryItemShowParams contains all the parameters to send to the API endpoint - Typically these are written to a http.Request. + for the webhook delivery item show operation. + + Typically these are written to a http.Request. */ type WebhookDeliveryItemShowParams struct { diff --git a/go/client/operations/webhook_delivery_item_show_responses.go b/go/client/operations/webhook_delivery_item_show_responses.go index 871d579..3bcecca 100644 --- a/go/client/operations/webhook_delivery_item_show_responses.go +++ b/go/client/operations/webhook_delivery_item_show_responses.go @@ -57,7 +57,8 @@ func NewWebhookDeliveryItemShowOK() *WebhookDeliveryItemShowOK { return &WebhookDeliveryItemShowOK{} } -/* WebhookDeliveryItemShowOK describes a response with status code 200, with default header values. +/* +WebhookDeliveryItemShowOK describes a response with status code 200, with default header values. OK */ @@ -65,9 +66,39 @@ type WebhookDeliveryItemShowOK struct { Payload *models.V0WebhookDeliveryItemResponseModel } +// IsSuccess returns true when this webhook delivery item show o k response has a 2xx status code +func (o *WebhookDeliveryItemShowOK) IsSuccess() bool { + return true +} + +// IsRedirect returns true when this webhook delivery item show o k response has a 3xx status code +func (o *WebhookDeliveryItemShowOK) IsRedirect() bool { + return false +} + +// IsClientError returns true when this webhook delivery item show o k response has a 4xx status code +func (o *WebhookDeliveryItemShowOK) IsClientError() bool { + return false +} + +// IsServerError returns true when this webhook delivery item show o k response has a 5xx status code +func (o *WebhookDeliveryItemShowOK) IsServerError() bool { + return false +} + +// IsCode returns true when this webhook delivery item show o k response a status code equal to that given +func (o *WebhookDeliveryItemShowOK) IsCode(code int) bool { + return code == 200 +} + func (o *WebhookDeliveryItemShowOK) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items/{webhook-delivery-item-slug}][%d] webhookDeliveryItemShowOK %+v", 200, o.Payload) } + +func (o *WebhookDeliveryItemShowOK) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items/{webhook-delivery-item-slug}][%d] webhookDeliveryItemShowOK %+v", 200, o.Payload) +} + func (o *WebhookDeliveryItemShowOK) GetPayload() *models.V0WebhookDeliveryItemResponseModel { return o.Payload } @@ -89,7 +120,8 @@ func NewWebhookDeliveryItemShowBadRequest() *WebhookDeliveryItemShowBadRequest { return &WebhookDeliveryItemShowBadRequest{} } -/* WebhookDeliveryItemShowBadRequest describes a response with status code 400, with default header values. +/* +WebhookDeliveryItemShowBadRequest describes a response with status code 400, with default header values. Bad Request */ @@ -97,9 +129,39 @@ type WebhookDeliveryItemShowBadRequest struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this webhook delivery item show bad request response has a 2xx status code +func (o *WebhookDeliveryItemShowBadRequest) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this webhook delivery item show bad request response has a 3xx status code +func (o *WebhookDeliveryItemShowBadRequest) IsRedirect() bool { + return false +} + +// IsClientError returns true when this webhook delivery item show bad request response has a 4xx status code +func (o *WebhookDeliveryItemShowBadRequest) IsClientError() bool { + return true +} + +// IsServerError returns true when this webhook delivery item show bad request response has a 5xx status code +func (o *WebhookDeliveryItemShowBadRequest) IsServerError() bool { + return false +} + +// IsCode returns true when this webhook delivery item show bad request response a status code equal to that given +func (o *WebhookDeliveryItemShowBadRequest) IsCode(code int) bool { + return code == 400 +} + func (o *WebhookDeliveryItemShowBadRequest) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items/{webhook-delivery-item-slug}][%d] webhookDeliveryItemShowBadRequest %+v", 400, o.Payload) } + +func (o *WebhookDeliveryItemShowBadRequest) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items/{webhook-delivery-item-slug}][%d] webhookDeliveryItemShowBadRequest %+v", 400, o.Payload) +} + func (o *WebhookDeliveryItemShowBadRequest) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -121,7 +183,8 @@ func NewWebhookDeliveryItemShowUnauthorized() *WebhookDeliveryItemShowUnauthoriz return &WebhookDeliveryItemShowUnauthorized{} } -/* WebhookDeliveryItemShowUnauthorized describes a response with status code 401, with default header values. +/* +WebhookDeliveryItemShowUnauthorized describes a response with status code 401, with default header values. Unauthorized */ @@ -129,9 +192,39 @@ type WebhookDeliveryItemShowUnauthorized struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this webhook delivery item show unauthorized response has a 2xx status code +func (o *WebhookDeliveryItemShowUnauthorized) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this webhook delivery item show unauthorized response has a 3xx status code +func (o *WebhookDeliveryItemShowUnauthorized) IsRedirect() bool { + return false +} + +// IsClientError returns true when this webhook delivery item show unauthorized response has a 4xx status code +func (o *WebhookDeliveryItemShowUnauthorized) IsClientError() bool { + return true +} + +// IsServerError returns true when this webhook delivery item show unauthorized response has a 5xx status code +func (o *WebhookDeliveryItemShowUnauthorized) IsServerError() bool { + return false +} + +// IsCode returns true when this webhook delivery item show unauthorized response a status code equal to that given +func (o *WebhookDeliveryItemShowUnauthorized) IsCode(code int) bool { + return code == 401 +} + func (o *WebhookDeliveryItemShowUnauthorized) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items/{webhook-delivery-item-slug}][%d] webhookDeliveryItemShowUnauthorized %+v", 401, o.Payload) } + +func (o *WebhookDeliveryItemShowUnauthorized) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items/{webhook-delivery-item-slug}][%d] webhookDeliveryItemShowUnauthorized %+v", 401, o.Payload) +} + func (o *WebhookDeliveryItemShowUnauthorized) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } @@ -153,7 +246,8 @@ func NewWebhookDeliveryItemShowInternalServerError() *WebhookDeliveryItemShowInt return &WebhookDeliveryItemShowInternalServerError{} } -/* WebhookDeliveryItemShowInternalServerError describes a response with status code 500, with default header values. +/* +WebhookDeliveryItemShowInternalServerError describes a response with status code 500, with default header values. Internal Server Error */ @@ -161,9 +255,39 @@ type WebhookDeliveryItemShowInternalServerError struct { Payload *models.ServiceStandardErrorRespModel } +// IsSuccess returns true when this webhook delivery item show internal server error response has a 2xx status code +func (o *WebhookDeliveryItemShowInternalServerError) IsSuccess() bool { + return false +} + +// IsRedirect returns true when this webhook delivery item show internal server error response has a 3xx status code +func (o *WebhookDeliveryItemShowInternalServerError) IsRedirect() bool { + return false +} + +// IsClientError returns true when this webhook delivery item show internal server error response has a 4xx status code +func (o *WebhookDeliveryItemShowInternalServerError) IsClientError() bool { + return false +} + +// IsServerError returns true when this webhook delivery item show internal server error response has a 5xx status code +func (o *WebhookDeliveryItemShowInternalServerError) IsServerError() bool { + return true +} + +// IsCode returns true when this webhook delivery item show internal server error response a status code equal to that given +func (o *WebhookDeliveryItemShowInternalServerError) IsCode(code int) bool { + return code == 500 +} + func (o *WebhookDeliveryItemShowInternalServerError) Error() string { return fmt.Sprintf("[GET /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items/{webhook-delivery-item-slug}][%d] webhookDeliveryItemShowInternalServerError %+v", 500, o.Payload) } + +func (o *WebhookDeliveryItemShowInternalServerError) String() string { + return fmt.Sprintf("[GET /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items/{webhook-delivery-item-slug}][%d] webhookDeliveryItemShowInternalServerError %+v", 500, o.Payload) +} + func (o *WebhookDeliveryItemShowInternalServerError) GetPayload() *models.ServiceStandardErrorRespModel { return o.Payload } diff --git a/go/models/addons_addon.go b/go/models/addons_addon.go index 1c57278..efc9b97 100644 --- a/go/models/addons_addon.go +++ b/go/models/addons_addon.go @@ -107,6 +107,8 @@ func (m *AddonsAddon) validateDeveloperLinks(formats strfmt.Registry) error { if err := m.DeveloperLinks[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("developer_links" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("developer_links" + "." + strconv.Itoa(i)) } return err } @@ -131,6 +133,8 @@ func (m *AddonsAddon) validatePlans(formats strfmt.Registry) error { if err := m.Plans[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plans" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plans" + "." + strconv.Itoa(i)) } return err } @@ -150,6 +154,8 @@ func (m *AddonsAddon) validateSetupGuide(formats strfmt.Registry) error { if err := m.SetupGuide.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("setup_guide") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("setup_guide") } return err } @@ -188,6 +194,8 @@ func (m *AddonsAddon) contextValidateDeveloperLinks(ctx context.Context, formats if err := m.DeveloperLinks[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("developer_links" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("developer_links" + "." + strconv.Itoa(i)) } return err } @@ -206,6 +214,8 @@ func (m *AddonsAddon) contextValidatePlans(ctx context.Context, formats strfmt.R if err := m.Plans[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plans" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plans" + "." + strconv.Itoa(i)) } return err } @@ -222,6 +232,8 @@ func (m *AddonsAddon) contextValidateSetupGuide(ctx context.Context, formats str if err := m.SetupGuide.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("setup_guide") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("setup_guide") } return err } diff --git a/go/models/addons_plan.go b/go/models/addons_plan.go index 9288f39..d967207 100644 --- a/go/models/addons_plan.go +++ b/go/models/addons_plan.go @@ -60,6 +60,8 @@ func (m *AddonsPlan) validateFeatures(formats strfmt.Registry) error { if err := m.Features[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("features" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("features" + "." + strconv.Itoa(i)) } return err } @@ -92,6 +94,8 @@ func (m *AddonsPlan) contextValidateFeatures(ctx context.Context, formats strfmt if err := m.Features[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("features" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("features" + "." + strconv.Itoa(i)) } return err } diff --git a/go/models/addons_setup_guide.go b/go/models/addons_setup_guide.go index dee6f61..9ffe975 100644 --- a/go/models/addons_setup_guide.go +++ b/go/models/addons_setup_guide.go @@ -54,6 +54,8 @@ func (m *AddonsSetupGuide) validateInstructions(formats strfmt.Registry) error { if err := m.Instructions[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instructions" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("instructions" + "." + strconv.Itoa(i)) } return err } @@ -86,6 +88,8 @@ func (m *AddonsSetupGuide) contextValidateInstructions(ctx context.Context, form if err := m.Instructions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instructions" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("instructions" + "." + strconv.Itoa(i)) } return err } diff --git a/go/models/github_com_gobuffalo_nulls_int64.go b/go/models/github_com_gobuffalo_nulls_int64.go new file mode 100644 index 0000000..d91a2eb --- /dev/null +++ b/go/models/github_com_gobuffalo_nulls_int64.go @@ -0,0 +1,53 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// GithubComGobuffaloNullsInt64 github com gobuffalo nulls int64 +// +// swagger:model github.com_gobuffalo_nulls.Int64 +type GithubComGobuffaloNullsInt64 struct { + + // int64 + Int64 int64 `json:"int64,omitempty"` + + // Valid is true if Int64 is not NULL + Valid bool `json:"valid,omitempty"` +} + +// Validate validates this github com gobuffalo nulls int64 +func (m *GithubComGobuffaloNullsInt64) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this github com gobuffalo nulls int64 based on context it is used +func (m *GithubComGobuffaloNullsInt64) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *GithubComGobuffaloNullsInt64) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *GithubComGobuffaloNullsInt64) UnmarshalBinary(b []byte) error { + var res GithubComGobuffaloNullsInt64 + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/github_com_gobuffalo_nulls_string.go b/go/models/github_com_gobuffalo_nulls_string.go new file mode 100644 index 0000000..834d920 --- /dev/null +++ b/go/models/github_com_gobuffalo_nulls_string.go @@ -0,0 +1,53 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// GithubComGobuffaloNullsString github com gobuffalo nulls string +// +// swagger:model github.com_gobuffalo_nulls.String +type GithubComGobuffaloNullsString struct { + + // string + String string `json:"string,omitempty"` + + // Valid is true if String is not NULL + Valid bool `json:"valid,omitempty"` +} + +// Validate validates this github com gobuffalo nulls string +func (m *GithubComGobuffaloNullsString) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this github com gobuffalo nulls string based on context it is used +func (m *GithubComGobuffaloNullsString) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *GithubComGobuffaloNullsString) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *GithubComGobuffaloNullsString) UnmarshalBinary(b []byte) error { + var res GithubComGobuffaloNullsString + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/github_com_markbates_pop_nulls_int64.go b/go/models/github_com_markbates_pop_nulls_int64.go new file mode 100644 index 0000000..3f0ff66 --- /dev/null +++ b/go/models/github_com_markbates_pop_nulls_int64.go @@ -0,0 +1,53 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// GithubComMarkbatesPopNullsInt64 github com markbates pop nulls int64 +// +// swagger:model github.com_markbates_pop_nulls.Int64 +type GithubComMarkbatesPopNullsInt64 struct { + + // int64 + Int64 int64 `json:"int64,omitempty"` + + // Valid is true if Int64 is not NULL + Valid bool `json:"valid,omitempty"` +} + +// Validate validates this github com markbates pop nulls int64 +func (m *GithubComMarkbatesPopNullsInt64) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this github com markbates pop nulls int64 based on context it is used +func (m *GithubComMarkbatesPopNullsInt64) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *GithubComMarkbatesPopNullsInt64) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *GithubComMarkbatesPopNullsInt64) UnmarshalBinary(b []byte) error { + var res GithubComMarkbatesPopNullsInt64 + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/github_com_markbates_pop_nulls_string.go b/go/models/github_com_markbates_pop_nulls_string.go new file mode 100644 index 0000000..0ee951e --- /dev/null +++ b/go/models/github_com_markbates_pop_nulls_string.go @@ -0,0 +1,53 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// GithubComMarkbatesPopNullsString github com markbates pop nulls string +// +// swagger:model github.com_markbates_pop_nulls.String +type GithubComMarkbatesPopNullsString struct { + + // string + String string `json:"string,omitempty"` + + // Valid is true if String is not NULL + Valid bool `json:"valid,omitempty"` +} + +// Validate validates this github com markbates pop nulls string +func (m *GithubComMarkbatesPopNullsString) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this github com markbates pop nulls string based on context it is used +func (m *GithubComMarkbatesPopNullsString) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *GithubComMarkbatesPopNullsString) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *GithubComMarkbatesPopNullsString) UnmarshalBinary(b []byte) error { + var res GithubComMarkbatesPopNullsString + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/pipelineabledomain_environments.go b/go/models/pipelineabledomain_environments.go new file mode 100644 index 0000000..3244b16 --- /dev/null +++ b/go/models/pipelineabledomain_environments.go @@ -0,0 +1,56 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// PipelineabledomainEnvironments pipelineabledomain environments +// +// swagger:model pipelineabledomain.Environments +type PipelineabledomainEnvironments struct { + + // is expand + IsExpand interface{} `json:"is_expand,omitempty"` + + // key + Key string `json:"key,omitempty"` + + // value + Value interface{} `json:"value,omitempty"` +} + +// Validate validates this pipelineabledomain environments +func (m *PipelineabledomainEnvironments) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this pipelineabledomain environments based on context it is used +func (m *PipelineabledomainEnvironments) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *PipelineabledomainEnvironments) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *PipelineabledomainEnvironments) UnmarshalBinary(b []byte) error { + var res PipelineabledomainEnvironments + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/pipelineabledomain_trigger_params.go b/go/models/pipelineabledomain_trigger_params.go new file mode 100644 index 0000000..8ab7e6b --- /dev/null +++ b/go/models/pipelineabledomain_trigger_params.go @@ -0,0 +1,155 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// PipelineabledomainTriggerParams pipelineabledomain trigger params +// +// swagger:model pipelineabledomain.TriggerParams +type PipelineabledomainTriggerParams struct { + + // branch + Branch string `json:"branch,omitempty"` + + // branch dest + BranchDest string `json:"branch_dest,omitempty"` + + // branch dest repo owner + BranchDestRepoOwner string `json:"branch_dest_repo_owner,omitempty"` + + // branch repo owner + BranchRepoOwner string `json:"branch_repo_owner,omitempty"` + + // commit hash + CommitHash string `json:"commit_hash,omitempty"` + + // commit message + CommitMessage string `json:"commit_message,omitempty"` + + // commit paths + CommitPaths interface{} `json:"commit_paths,omitempty"` + + // diff url + DiffURL string `json:"diff_url,omitempty"` + + // environments + Environments []*PipelineabledomainEnvironments `json:"environments"` + + // pull request author + PullRequestAuthor string `json:"pull_request_author,omitempty"` + + // pull request head branch + PullRequestHeadBranch string `json:"pull_request_head_branch,omitempty"` + + // pull request id + PullRequestID interface{} `json:"pull_request_id,omitempty"` + + // pull request repository url + PullRequestRepositoryURL string `json:"pull_request_repository_url,omitempty"` + + // tag + Tag string `json:"tag,omitempty"` +} + +// Validate validates this pipelineabledomain trigger params +func (m *PipelineabledomainTriggerParams) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateEnvironments(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *PipelineabledomainTriggerParams) validateEnvironments(formats strfmt.Registry) error { + if swag.IsZero(m.Environments) { // not required + return nil + } + + for i := 0; i < len(m.Environments); i++ { + if swag.IsZero(m.Environments[i]) { // not required + continue + } + + if m.Environments[i] != nil { + if err := m.Environments[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("environments" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("environments" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this pipelineabledomain trigger params based on the context it is used +func (m *PipelineabledomainTriggerParams) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateEnvironments(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *PipelineabledomainTriggerParams) contextValidateEnvironments(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Environments); i++ { + + if m.Environments[i] != nil { + if err := m.Environments[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("environments" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("environments" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *PipelineabledomainTriggerParams) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *PipelineabledomainTriggerParams) UnmarshalBinary(b []byte) error { + var res PipelineabledomainTriggerParams + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_activity_event_list_response_model.go b/go/models/v0_activity_event_list_response_model.go index 18913b6..c25b8b3 100644 --- a/go/models/v0_activity_event_list_response_model.go +++ b/go/models/v0_activity_event_list_response_model.go @@ -58,6 +58,8 @@ func (m *V0ActivityEventListResponseModel) validateData(formats strfmt.Registry) if err := m.Data[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -77,6 +79,8 @@ func (m *V0ActivityEventListResponseModel) validatePaging(formats strfmt.Registr if err := m.Paging.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") } return err } @@ -111,6 +115,8 @@ func (m *V0ActivityEventListResponseModel) contextValidateData(ctx context.Conte if err := m.Data[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -127,6 +133,8 @@ func (m *V0ActivityEventListResponseModel) contextValidatePaging(ctx context.Con if err := m.Paging.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") } return err } diff --git a/go/models/v0_activity_event_response_item_model.go b/go/models/v0_activity_event_response_item_model.go index 0755498..367d6fa 100644 --- a/go/models/v0_activity_event_response_item_model.go +++ b/go/models/v0_activity_event_response_item_model.go @@ -22,13 +22,13 @@ type V0ActivityEventResponseItemModel struct { CreatedAt string `json:"created_at,omitempty"` // description - Description *NullsString `json:"description,omitempty"` + Description *GithubComMarkbatesPopNullsString `json:"description,omitempty"` // event icon - EventIcon *NullsString `json:"event_icon,omitempty"` + EventIcon *GithubComMarkbatesPopNullsString `json:"event_icon,omitempty"` // event stype - EventStype *NullsString `json:"event_stype,omitempty"` + EventStype *GithubComMarkbatesPopNullsString `json:"event_stype,omitempty"` // repository avatar icon url RepositoryAvatarIconURL string `json:"repository_avatar_icon_url,omitempty"` @@ -40,10 +40,10 @@ type V0ActivityEventResponseItemModel struct { Slug string `json:"slug,omitempty"` // target path string - TargetPathString *NullsString `json:"target_path_string,omitempty"` + TargetPathString *GithubComMarkbatesPopNullsString `json:"target_path_string,omitempty"` // title - Title *NullsString `json:"title,omitempty"` + Title *GithubComMarkbatesPopNullsString `json:"title,omitempty"` } // Validate validates this v0 activity event response item model @@ -85,6 +85,8 @@ func (m *V0ActivityEventResponseItemModel) validateDescription(formats strfmt.Re if err := m.Description.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("description") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("description") } return err } @@ -102,6 +104,8 @@ func (m *V0ActivityEventResponseItemModel) validateEventIcon(formats strfmt.Regi if err := m.EventIcon.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("event_icon") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("event_icon") } return err } @@ -119,6 +123,8 @@ func (m *V0ActivityEventResponseItemModel) validateEventStype(formats strfmt.Reg if err := m.EventStype.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("event_stype") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("event_stype") } return err } @@ -136,6 +142,8 @@ func (m *V0ActivityEventResponseItemModel) validateTargetPathString(formats strf if err := m.TargetPathString.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("target_path_string") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("target_path_string") } return err } @@ -153,6 +161,8 @@ func (m *V0ActivityEventResponseItemModel) validateTitle(formats strfmt.Registry if err := m.Title.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("title") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("title") } return err } @@ -197,6 +207,8 @@ func (m *V0ActivityEventResponseItemModel) contextValidateDescription(ctx contex if err := m.Description.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("description") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("description") } return err } @@ -211,6 +223,8 @@ func (m *V0ActivityEventResponseItemModel) contextValidateEventIcon(ctx context. if err := m.EventIcon.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("event_icon") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("event_icon") } return err } @@ -225,6 +239,8 @@ func (m *V0ActivityEventResponseItemModel) contextValidateEventStype(ctx context if err := m.EventStype.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("event_stype") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("event_stype") } return err } @@ -239,6 +255,8 @@ func (m *V0ActivityEventResponseItemModel) contextValidateTargetPathString(ctx c if err := m.TargetPathString.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("target_path_string") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("target_path_string") } return err } @@ -253,6 +271,8 @@ func (m *V0ActivityEventResponseItemModel) contextValidateTitle(ctx context.Cont if err := m.Title.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("title") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("title") } return err } diff --git a/go/models/v0_add_on_app_response_item_model.go b/go/models/v0_add_on_app_response_item_model.go index 240ed81..c657e3e 100644 --- a/go/models/v0_add_on_app_response_item_model.go +++ b/go/models/v0_add_on_app_response_item_model.go @@ -19,7 +19,7 @@ import ( type V0AddOnAppResponseItemModel struct { // icon - Icon *NullsString `json:"icon,omitempty"` + Icon *GithubComMarkbatesPopNullsString `json:"icon,omitempty"` // plan Plan *AddonsPlan `json:"plan,omitempty"` @@ -61,6 +61,8 @@ func (m *V0AddOnAppResponseItemModel) validateIcon(formats strfmt.Registry) erro if err := m.Icon.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("icon") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("icon") } return err } @@ -78,6 +80,8 @@ func (m *V0AddOnAppResponseItemModel) validatePlan(formats strfmt.Registry) erro if err := m.Plan.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -110,6 +114,8 @@ func (m *V0AddOnAppResponseItemModel) contextValidateIcon(ctx context.Context, f if err := m.Icon.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("icon") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("icon") } return err } @@ -124,6 +130,8 @@ func (m *V0AddOnAppResponseItemModel) contextValidatePlan(ctx context.Context, f if err := m.Plan.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } diff --git a/go/models/v0_addons_list_response_model.go b/go/models/v0_addons_list_response_model.go index 08f2e24..13047b6 100644 --- a/go/models/v0_addons_list_response_model.go +++ b/go/models/v0_addons_list_response_model.go @@ -51,6 +51,8 @@ func (m *V0AddonsListResponseModel) validateData(formats strfmt.Registry) error if err := m.Data[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -83,6 +85,8 @@ func (m *V0AddonsListResponseModel) contextValidateData(ctx context.Context, for if err := m.Data[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } diff --git a/go/models/v0_addons_show_response_model.go b/go/models/v0_addons_show_response_model.go index bd399d9..e31fdd9 100644 --- a/go/models/v0_addons_show_response_model.go +++ b/go/models/v0_addons_show_response_model.go @@ -45,6 +45,8 @@ func (m *V0AddonsShowResponseModel) validateData(formats strfmt.Registry) error if err := m.Data.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } @@ -73,6 +75,8 @@ func (m *V0AddonsShowResponseModel) contextValidateData(ctx context.Context, for if err := m.Data.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } diff --git a/go/models/v0_android_keystore_file_upload_params.go b/go/models/v0_android_keystore_file_upload_params.go index f973b1d..024e513 100644 --- a/go/models/v0_android_keystore_file_upload_params.go +++ b/go/models/v0_android_keystore_file_upload_params.go @@ -23,6 +23,9 @@ type V0AndroidKeystoreFileUploadParams struct { // Required: true Alias *string `json:"alias"` + // keystore file name + KeystoreFileName string `json:"keystore_file_name,omitempty"` + // password // Required: true Password *string `json:"password"` diff --git a/go/models/v0_app_add_on_response_item_model.go b/go/models/v0_app_add_on_response_item_model.go index a09ad2b..0c62d2f 100644 --- a/go/models/v0_app_add_on_response_item_model.go +++ b/go/models/v0_app_add_on_response_item_model.go @@ -36,15 +36,27 @@ type V0AppAddOnResponseItemModel struct { // is beta IsBeta bool `json:"is_beta,omitempty"` + // is enabled + IsEnabled bool `json:"is_enabled,omitempty"` + + // login url + LoginURL string `json:"login_url,omitempty"` + // plan Plan *AddonsPlan `json:"plan,omitempty"` + // scopes + Scopes []string `json:"scopes"` + // setup guide SetupGuide *AddonsSetupGuide `json:"setup_guide,omitempty"` // summary Summary string `json:"summary,omitempty"` + // terms url + TermsURL string `json:"terms_url,omitempty"` + // title Title string `json:"title,omitempty"` } @@ -76,6 +88,8 @@ func (m *V0AppAddOnResponseItemModel) validatePlan(formats strfmt.Registry) erro if err := m.Plan.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -93,6 +107,8 @@ func (m *V0AppAddOnResponseItemModel) validateSetupGuide(formats strfmt.Registry if err := m.SetupGuide.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("setup_guide") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("setup_guide") } return err } @@ -125,6 +141,8 @@ func (m *V0AppAddOnResponseItemModel) contextValidatePlan(ctx context.Context, f if err := m.Plan.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("plan") } return err } @@ -139,6 +157,8 @@ func (m *V0AppAddOnResponseItemModel) contextValidateSetupGuide(ctx context.Cont if err := m.SetupGuide.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("setup_guide") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("setup_guide") } return err } diff --git a/go/models/v0_app_add_ons_list_response_model.go b/go/models/v0_app_add_ons_list_response_model.go index 6c1ea16..3993109 100644 --- a/go/models/v0_app_add_ons_list_response_model.go +++ b/go/models/v0_app_add_ons_list_response_model.go @@ -51,6 +51,8 @@ func (m *V0AppAddOnsListResponseModel) validateData(formats strfmt.Registry) err if err := m.Data[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -83,6 +85,8 @@ func (m *V0AppAddOnsListResponseModel) contextValidateData(ctx context.Context, if err := m.Data[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } diff --git a/go/models/v0_app_config_request_param.go b/go/models/v0_app_config_request_param.go index 5e869d5..b334428 100644 --- a/go/models/v0_app_config_request_param.go +++ b/go/models/v0_app_config_request_param.go @@ -19,7 +19,7 @@ import ( // swagger:model v0.AppConfigRequestParam type V0AppConfigRequestParam struct { - // app config datastore yaml + // The bitrise.yml of your application, defined in JSON format // Required: true AppConfigDatastoreYaml *string `json:"app_config_datastore_yaml"` } diff --git a/go/models/v0_app_finish_params.go b/go/models/v0_app_finish_params.go index 117ede1..2ed404c 100644 --- a/go/models/v0_app_finish_params.go +++ b/go/models/v0_app_finish_params.go @@ -19,7 +19,7 @@ import ( // swagger:model v0.AppFinishParams type V0AppFinishParams struct { - // Which config to use `default-android-config`, `default-cordova-config`, `default-fastlane-config`, `default-ionic-config`, `default-ios-config`,`default-macos-config`, `default-react-native-config`, `default-xamarin-config`, `other-config` (default if parameter is not speficied) + // Which config to use. Specify a config that matches your project type (e. g. `default-android-config` for `android`, etc.). If not speficied, default value is `other-config`. The available values are `default-android-config`, `default-cordova-config`, `default-fastlane-android-config`, `default-fastlane-ios-config`, `flutter-config-notest-app-android`, `flutter-config-notest-app-both`, `flutter-config-notest-app-ios`, `flutter-config-test-app-android`, `flutter-config-test-app-both`, `flutter-config-test-app-ios`, `default-ionic-config`, `default-ios-config`, `default-macos-config`, `default-react-native-config`, `default-react-native-expo-config`, `other-config`. Config string `json:"config,omitempty"` // Environment variables for the application workflows, e.g. {"env1":"val1","env2":"val2"} diff --git a/go/models/v0_app_list_response_model.go b/go/models/v0_app_list_response_model.go index d687eb8..a63e4d7 100644 --- a/go/models/v0_app_list_response_model.go +++ b/go/models/v0_app_list_response_model.go @@ -58,6 +58,8 @@ func (m *V0AppListResponseModel) validateData(formats strfmt.Registry) error { if err := m.Data[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -77,6 +79,8 @@ func (m *V0AppListResponseModel) validatePaging(formats strfmt.Registry) error { if err := m.Paging.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") } return err } @@ -111,6 +115,8 @@ func (m *V0AppListResponseModel) contextValidateData(ctx context.Context, format if err := m.Data[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -127,6 +133,8 @@ func (m *V0AppListResponseModel) contextValidatePaging(ctx context.Context, form if err := m.Paging.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") } return err } diff --git a/go/models/v0_app_response_item_model.go b/go/models/v0_app_response_item_model.go index 45ecb03..2b01878 100644 --- a/go/models/v0_app_response_item_model.go +++ b/go/models/v0_app_response_item_model.go @@ -19,11 +19,14 @@ import ( type V0AppResponseItemModel struct { // avatar url - AvatarURL *NullsString `json:"avatar_url,omitempty"` + AvatarURL *GithubComMarkbatesPopNullsString `json:"avatar_url,omitempty"` // is disabled IsDisabled bool `json:"is_disabled,omitempty"` + // is github checks enabled + IsGithubChecksEnabled bool `json:"is_github_checks_enabled,omitempty"` + // is public IsPublic bool `json:"is_public,omitempty"` @@ -31,19 +34,19 @@ type V0AppResponseItemModel struct { Owner *V0OwnerAccountResponseModel `json:"owner,omitempty"` // project type - ProjectType string `json:"project_type,omitempty"` + ProjectType *GithubComMarkbatesPopNullsString `json:"project_type,omitempty"` // provider - Provider string `json:"provider,omitempty"` + Provider *GithubComMarkbatesPopNullsString `json:"provider,omitempty"` // repo owner - RepoOwner string `json:"repo_owner,omitempty"` + RepoOwner *GithubComMarkbatesPopNullsString `json:"repo_owner,omitempty"` // repo slug - RepoSlug string `json:"repo_slug,omitempty"` + RepoSlug *GithubComMarkbatesPopNullsString `json:"repo_slug,omitempty"` // repo url - RepoURL string `json:"repo_url,omitempty"` + RepoURL *GithubComMarkbatesPopNullsString `json:"repo_url,omitempty"` // slug Slug string `json:"slug,omitempty"` @@ -67,6 +70,26 @@ func (m *V0AppResponseItemModel) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateProjectType(formats); err != nil { + res = append(res, err) + } + + if err := m.validateProvider(formats); err != nil { + res = append(res, err) + } + + if err := m.validateRepoOwner(formats); err != nil { + res = append(res, err) + } + + if err := m.validateRepoSlug(formats); err != nil { + res = append(res, err) + } + + if err := m.validateRepoURL(formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } @@ -82,6 +105,8 @@ func (m *V0AppResponseItemModel) validateAvatarURL(formats strfmt.Registry) erro if err := m.AvatarURL.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("avatar_url") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("avatar_url") } return err } @@ -99,6 +124,103 @@ func (m *V0AppResponseItemModel) validateOwner(formats strfmt.Registry) error { if err := m.Owner.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("owner") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("owner") + } + return err + } + } + + return nil +} + +func (m *V0AppResponseItemModel) validateProjectType(formats strfmt.Registry) error { + if swag.IsZero(m.ProjectType) { // not required + return nil + } + + if m.ProjectType != nil { + if err := m.ProjectType.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("project_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("project_type") + } + return err + } + } + + return nil +} + +func (m *V0AppResponseItemModel) validateProvider(formats strfmt.Registry) error { + if swag.IsZero(m.Provider) { // not required + return nil + } + + if m.Provider != nil { + if err := m.Provider.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("provider") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("provider") + } + return err + } + } + + return nil +} + +func (m *V0AppResponseItemModel) validateRepoOwner(formats strfmt.Registry) error { + if swag.IsZero(m.RepoOwner) { // not required + return nil + } + + if m.RepoOwner != nil { + if err := m.RepoOwner.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("repo_owner") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("repo_owner") + } + return err + } + } + + return nil +} + +func (m *V0AppResponseItemModel) validateRepoSlug(formats strfmt.Registry) error { + if swag.IsZero(m.RepoSlug) { // not required + return nil + } + + if m.RepoSlug != nil { + if err := m.RepoSlug.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("repo_slug") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("repo_slug") + } + return err + } + } + + return nil +} + +func (m *V0AppResponseItemModel) validateRepoURL(formats strfmt.Registry) error { + if swag.IsZero(m.RepoURL) { // not required + return nil + } + + if m.RepoURL != nil { + if err := m.RepoURL.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("repo_url") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("repo_url") } return err } @@ -119,6 +241,26 @@ func (m *V0AppResponseItemModel) ContextValidate(ctx context.Context, formats st res = append(res, err) } + if err := m.contextValidateProjectType(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateProvider(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateRepoOwner(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateRepoSlug(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateRepoURL(ctx, formats); err != nil { + res = append(res, err) + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } @@ -131,6 +273,8 @@ func (m *V0AppResponseItemModel) contextValidateAvatarURL(ctx context.Context, f if err := m.AvatarURL.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("avatar_url") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("avatar_url") } return err } @@ -145,6 +289,88 @@ func (m *V0AppResponseItemModel) contextValidateOwner(ctx context.Context, forma if err := m.Owner.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("owner") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("owner") + } + return err + } + } + + return nil +} + +func (m *V0AppResponseItemModel) contextValidateProjectType(ctx context.Context, formats strfmt.Registry) error { + + if m.ProjectType != nil { + if err := m.ProjectType.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("project_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("project_type") + } + return err + } + } + + return nil +} + +func (m *V0AppResponseItemModel) contextValidateProvider(ctx context.Context, formats strfmt.Registry) error { + + if m.Provider != nil { + if err := m.Provider.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("provider") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("provider") + } + return err + } + } + + return nil +} + +func (m *V0AppResponseItemModel) contextValidateRepoOwner(ctx context.Context, formats strfmt.Registry) error { + + if m.RepoOwner != nil { + if err := m.RepoOwner.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("repo_owner") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("repo_owner") + } + return err + } + } + + return nil +} + +func (m *V0AppResponseItemModel) contextValidateRepoSlug(ctx context.Context, formats strfmt.Registry) error { + + if m.RepoSlug != nil { + if err := m.RepoSlug.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("repo_slug") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("repo_slug") + } + return err + } + } + + return nil +} + +func (m *V0AppResponseItemModel) contextValidateRepoURL(ctx context.Context, formats strfmt.Registry) error { + + if m.RepoURL != nil { + if err := m.RepoURL.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("repo_url") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("repo_url") } return err } diff --git a/go/models/v0_app_secret.go b/go/models/v0_app_secret.go new file mode 100644 index 0000000..1699b85 --- /dev/null +++ b/go/models/v0_app_secret.go @@ -0,0 +1,59 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0AppSecret v0 app secret +// +// swagger:model v0.AppSecret +type V0AppSecret struct { + + // Replace variable in inputs? https://devcenter.bitrise.io/en/references/steps-reference/step-inputs-reference.html#step-input-properties + ExpandInStepInputs bool `json:"expand_in_step_inputs,omitempty"` + + // Expose for Pull Requests? + IsExposedForPullRequests bool `json:"is_exposed_for_pull_requests,omitempty"` + + // Secret marked as protected? + IsProtected bool `json:"is_protected,omitempty"` + + // Name of the secret + Name string `json:"name,omitempty"` +} + +// Validate validates this v0 app secret +func (m *V0AppSecret) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this v0 app secret based on context it is used +func (m *V0AppSecret) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *V0AppSecret) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0AppSecret) UnmarshalBinary(b []byte) error { + var res V0AppSecret + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_app_secret_get_value_response.go b/go/models/v0_app_secret_get_value_response.go new file mode 100644 index 0000000..6c8def8 --- /dev/null +++ b/go/models/v0_app_secret_get_value_response.go @@ -0,0 +1,50 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0AppSecretGetValueResponse v0 app secret get value response +// +// swagger:model v0.AppSecretGetValueResponse +type V0AppSecretGetValueResponse struct { + + // value + Value string `json:"value,omitempty"` +} + +// Validate validates this v0 app secret get value response +func (m *V0AppSecretGetValueResponse) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this v0 app secret get value response based on context it is used +func (m *V0AppSecretGetValueResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *V0AppSecretGetValueResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0AppSecretGetValueResponse) UnmarshalBinary(b []byte) error { + var res V0AppSecretGetValueResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_app_secret_list_response.go b/go/models/v0_app_secret_list_response.go new file mode 100644 index 0000000..a3bbdf7 --- /dev/null +++ b/go/models/v0_app_secret_list_response.go @@ -0,0 +1,116 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0AppSecretListResponse v0 app secret list response +// +// swagger:model v0.AppSecretListResponse +type V0AppSecretListResponse struct { + + // secrets + Secrets []*V0AppSecret `json:"secrets"` +} + +// Validate validates this v0 app secret list response +func (m *V0AppSecretListResponse) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateSecrets(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0AppSecretListResponse) validateSecrets(formats strfmt.Registry) error { + if swag.IsZero(m.Secrets) { // not required + return nil + } + + for i := 0; i < len(m.Secrets); i++ { + if swag.IsZero(m.Secrets[i]) { // not required + continue + } + + if m.Secrets[i] != nil { + if err := m.Secrets[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("secrets" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("secrets" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this v0 app secret list response based on the context it is used +func (m *V0AppSecretListResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateSecrets(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0AppSecretListResponse) contextValidateSecrets(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Secrets); i++ { + + if m.Secrets[i] != nil { + if err := m.Secrets[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("secrets" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("secrets" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V0AppSecretListResponse) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0AppSecretListResponse) UnmarshalBinary(b []byte) error { + var res V0AppSecretListResponse + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_app_secret_upsert_params.go b/go/models/v0_app_secret_upsert_params.go new file mode 100644 index 0000000..315ca7f --- /dev/null +++ b/go/models/v0_app_secret_upsert_params.go @@ -0,0 +1,59 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0AppSecretUpsertParams v0 app secret upsert params +// +// swagger:model v0.AppSecretUpsertParams +type V0AppSecretUpsertParams struct { + + // Replace variable in inputs? https://devcenter.bitrise.io/en/references/steps-reference/step-inputs-reference.html#step-input-properties + ExpandInStepInputs bool `json:"expand_in_step_inputs,omitempty"` + + // Expose for Pull Requests? + IsExposedForPullRequests bool `json:"is_exposed_for_pull_requests,omitempty"` + + // Secret marked as protected? + IsProtected bool `json:"is_protected,omitempty"` + + // Value of the secret + Value string `json:"value,omitempty"` +} + +// Validate validates this v0 app secret upsert params +func (m *V0AppSecretUpsertParams) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this v0 app secret upsert params based on context it is used +func (m *V0AppSecretUpsertParams) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *V0AppSecretUpsertParams) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0AppSecretUpsertParams) UnmarshalBinary(b []byte) error { + var res V0AppSecretUpsertParams + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_app_show_response_model.go b/go/models/v0_app_show_response_model.go index af9eee1..e888105 100644 --- a/go/models/v0_app_show_response_model.go +++ b/go/models/v0_app_show_response_model.go @@ -45,6 +45,8 @@ func (m *V0AppShowResponseModel) validateData(formats strfmt.Registry) error { if err := m.Data.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } @@ -73,6 +75,8 @@ func (m *V0AppShowResponseModel) contextValidateData(ctx context.Context, format if err := m.Data.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } diff --git a/go/models/v0_app_update_params.go b/go/models/v0_app_update_params.go new file mode 100644 index 0000000..29715e7 --- /dev/null +++ b/go/models/v0_app_update_params.go @@ -0,0 +1,68 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0AppUpdateParams v0 app update params +// +// swagger:model v0.AppUpdateParams +type V0AppUpdateParams struct { + + // The new apple credential user ID (recommendation: use the UI to set this) + AppleCredentialUserID int64 `json:"apple_credential_user_id,omitempty"` + + // The new apple credential user slug (recommendation: use the UI to set this) + AppleCredentialUserSlug string `json:"apple_credential_user_slug,omitempty"` + + // The new default branch for the application. + DefaultBranch string `json:"default_branch,omitempty"` + + // The new value of whether an application should be publicly visible + IsPublic bool `json:"is_public,omitempty"` + + // The new repository URL for the application. + RepositoryURL string `json:"repository_url,omitempty"` + + // The new service credential user ID (recommendation: use the UI to set this) + ServicesCredentialUserID int64 `json:"services_credential_user_id,omitempty"` + + // The new title of the application. + Title string `json:"title,omitempty"` +} + +// Validate validates this v0 app update params +func (m *V0AppUpdateParams) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this v0 app update params based on context it is used +func (m *V0AppUpdateParams) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *V0AppUpdateParams) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0AppUpdateParams) UnmarshalBinary(b []byte) error { + var res V0AppUpdateParams + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_app_update_resp_model.go b/go/models/v0_app_update_resp_model.go new file mode 100644 index 0000000..44b0830 --- /dev/null +++ b/go/models/v0_app_update_resp_model.go @@ -0,0 +1,50 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0AppUpdateRespModel v0 app update resp model +// +// swagger:model v0.AppUpdateRespModel +type V0AppUpdateRespModel struct { + + // status + Status string `json:"status,omitempty"` +} + +// Validate validates this v0 app update resp model +func (m *V0AppUpdateRespModel) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this v0 app update resp model based on context it is used +func (m *V0AppUpdateRespModel) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *V0AppUpdateRespModel) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0AppUpdateRespModel) UnmarshalBinary(b []byte) error { + var res V0AppUpdateRespModel + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_app_upload_params.go b/go/models/v0_app_upload_params.go index c0ed8de..2161747 100644 --- a/go/models/v0_app_upload_params.go +++ b/go/models/v0_app_upload_params.go @@ -19,6 +19,9 @@ import ( // swagger:model v0.AppUploadParams type V0AppUploadParams struct { + // The default branch of the repository. If it's not specified, it will be `master`. + DefaultBranchName string `json:"default_branch_name,omitempty"` + // The slug of the owner of the repository at the git provider // Required: true GitOwner *string `json:"git_owner"` @@ -31,7 +34,7 @@ type V0AppUploadParams struct { // Required: true IsPublic *bool `json:"is_public"` - // Property added by Staffbase as this is missing within open-api spec. This can be removed when bitrise has fixed it + // The slug of the organization, who will be the owner of the application. If it's not specified, then the authenticated user will be the owner. OrganizationSlug string `json:"organization_slug,omitempty"` // The git provider you are using, it can be `github`, `bitbucket`, `gitlab`, `gitlab-self-hosted` or `custom` @@ -42,6 +45,9 @@ type V0AppUploadParams struct { // Required: true RepoURL *string `json:"repo_url"` + // The title of the application. If it's not specified, it will be the git repository's name. + Title string `json:"title,omitempty"` + // It has to be provided by legacy reasons and has to have the `git` value // Required: true Type *string `json:"type"` diff --git a/go/models/v0_app_webhook_created_response_model.go b/go/models/v0_app_webhook_created_response_model.go index 9e5d6bd..5bc6be6 100644 --- a/go/models/v0_app_webhook_created_response_model.go +++ b/go/models/v0_app_webhook_created_response_model.go @@ -45,6 +45,8 @@ func (m *V0AppWebhookCreatedResponseModel) validateData(formats strfmt.Registry) if err := m.Data.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } @@ -73,6 +75,8 @@ func (m *V0AppWebhookCreatedResponseModel) contextValidateData(ctx context.Conte if err := m.Data.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } diff --git a/go/models/v0_app_webhook_deleted_response_model.go b/go/models/v0_app_webhook_deleted_response_model.go index 5bc9e28..73fc007 100644 --- a/go/models/v0_app_webhook_deleted_response_model.go +++ b/go/models/v0_app_webhook_deleted_response_model.go @@ -45,6 +45,8 @@ func (m *V0AppWebhookDeletedResponseModel) validateData(formats strfmt.Registry) if err := m.Data.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } @@ -73,6 +75,8 @@ func (m *V0AppWebhookDeletedResponseModel) contextValidateData(ctx context.Conte if err := m.Data.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } diff --git a/go/models/v0_app_webhook_list_response_model.go b/go/models/v0_app_webhook_list_response_model.go index e6f3230..490d036 100644 --- a/go/models/v0_app_webhook_list_response_model.go +++ b/go/models/v0_app_webhook_list_response_model.go @@ -58,6 +58,8 @@ func (m *V0AppWebhookListResponseModel) validateData(formats strfmt.Registry) er if err := m.Data[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -77,6 +79,8 @@ func (m *V0AppWebhookListResponseModel) validatePaging(formats strfmt.Registry) if err := m.Paging.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") } return err } @@ -111,6 +115,8 @@ func (m *V0AppWebhookListResponseModel) contextValidateData(ctx context.Context, if err := m.Data[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -127,6 +133,8 @@ func (m *V0AppWebhookListResponseModel) contextValidatePaging(ctx context.Contex if err := m.Paging.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") } return err } diff --git a/go/models/v0_app_webhook_response_model.go b/go/models/v0_app_webhook_response_model.go index 4923170..8507c69 100644 --- a/go/models/v0_app_webhook_response_model.go +++ b/go/models/v0_app_webhook_response_model.go @@ -45,6 +45,8 @@ func (m *V0AppWebhookResponseModel) validateData(formats strfmt.Registry) error if err := m.Data.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } @@ -73,6 +75,8 @@ func (m *V0AppWebhookResponseModel) contextValidateData(ctx context.Context, for if err := m.Data.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } diff --git a/go/models/v0_apple_api_credentials_list_response.go b/go/models/v0_apple_api_credentials_list_response.go index 5fe384b..238b6d5 100644 --- a/go/models/v0_apple_api_credentials_list_response.go +++ b/go/models/v0_apple_api_credentials_list_response.go @@ -51,6 +51,8 @@ func (m *V0AppleAPICredentialsListResponse) validateData(formats strfmt.Registry if err := m.Data[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -83,6 +85,8 @@ func (m *V0AppleAPICredentialsListResponse) contextValidateData(ctx context.Cont if err := m.Data[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } diff --git a/go/models/v0_archived_build_artifact.go b/go/models/v0_archived_build_artifact.go new file mode 100644 index 0000000..d7bdae2 --- /dev/null +++ b/go/models/v0_archived_build_artifact.go @@ -0,0 +1,71 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0ArchivedBuildArtifact v0 archived build artifact +// +// swagger:model v0.ArchivedBuildArtifact +type V0ArchivedBuildArtifact struct { + + // artifact meta + ArtifactMeta interface{} `json:"artifact_meta,omitempty"` + + // artifact type + ArtifactType string `json:"artifact_type,omitempty"` + + // created at + CreatedAt string `json:"created_at,omitempty"` + + // file size bytes + FileSizeBytes int64 `json:"file_size_bytes,omitempty"` + + // id + ID string `json:"id,omitempty"` + + // is public page enabled + IsPublicPageEnabled bool `json:"is_public_page_enabled,omitempty"` + + // public page token + PublicPageToken string `json:"public_page_token,omitempty"` + + // title + Title string `json:"title,omitempty"` +} + +// Validate validates this v0 archived build artifact +func (m *V0ArchivedBuildArtifact) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this v0 archived build artifact based on context it is used +func (m *V0ArchivedBuildArtifact) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *V0ArchivedBuildArtifact) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0ArchivedBuildArtifact) UnmarshalBinary(b []byte) error { + var res V0ArchivedBuildArtifact + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_archived_build_list_response_model.go b/go/models/v0_archived_build_list_response_model.go new file mode 100644 index 0000000..11b836f --- /dev/null +++ b/go/models/v0_archived_build_list_response_model.go @@ -0,0 +1,162 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0ArchivedBuildListResponseModel v0 archived build list response model +// +// swagger:model v0.ArchivedBuildListResponseModel +type V0ArchivedBuildListResponseModel struct { + + // data + Data []*V0ArchivedBuildResponseItemModel `json:"data"` + + // pagination + Paging *V0PagingResponseModel `json:"paging,omitempty"` +} + +// Validate validates this v0 archived build list response model +func (m *V0ArchivedBuildListResponseModel) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if err := m.validatePaging(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0ArchivedBuildListResponseModel) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *V0ArchivedBuildListResponseModel) validatePaging(formats strfmt.Registry) error { + if swag.IsZero(m.Paging) { // not required + return nil + } + + if m.Paging != nil { + if err := m.Paging.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") + } + return err + } + } + + return nil +} + +// ContextValidate validate this v0 archived build list response model based on the context it is used +func (m *V0ArchivedBuildListResponseModel) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidatePaging(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0ArchivedBuildListResponseModel) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *V0ArchivedBuildListResponseModel) contextValidatePaging(ctx context.Context, formats strfmt.Registry) error { + + if m.Paging != nil { + if err := m.Paging.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V0ArchivedBuildListResponseModel) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0ArchivedBuildListResponseModel) UnmarshalBinary(b []byte) error { + var res V0ArchivedBuildListResponseModel + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_archived_build_response_item_model.go b/go/models/v0_archived_build_response_item_model.go new file mode 100644 index 0000000..6d79619 --- /dev/null +++ b/go/models/v0_archived_build_response_item_model.go @@ -0,0 +1,179 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0ArchivedBuildResponseItemModel v0 archived build response item model +// +// swagger:model v0.ArchivedBuildResponseItemModel +type V0ArchivedBuildResponseItemModel struct { + + // abort reason + AbortReason string `json:"abort_reason,omitempty"` + + // branch + Branch string `json:"branch,omitempty"` + + // build artifacts + BuildArtifacts []*V0ArchivedBuildArtifact `json:"build_artifacts"` + + // build number + BuildNumber int64 `json:"build_number,omitempty"` + + // commit hash + CommitHash string `json:"commit_hash,omitempty"` + + // commit message + CommitMessage string `json:"commit_message,omitempty"` + + // credit cost + CreditCost int64 `json:"credit_cost,omitempty"` + + // finished at + FinishedAt string `json:"finished_at,omitempty"` + + // machine type id + MachineTypeID string `json:"machine_type_id,omitempty"` + + // original build params + OriginalBuildParams []int64 `json:"original_build_params"` + + // pipeline workflow id + PipelineWorkflowID string `json:"pipeline_workflow_id,omitempty"` + + // pull request id + PullRequestID int64 `json:"pull_request_id,omitempty"` + + // pull request target branch + PullRequestTargetBranch string `json:"pull_request_target_branch,omitempty"` + + // pull request view url + PullRequestViewURL string `json:"pull_request_view_url,omitempty"` + + // slug + Slug string `json:"slug,omitempty"` + + // stack identifier + StackIdentifier string `json:"stack_identifier,omitempty"` + + // started on worker at + StartedOnWorkerAt string `json:"started_on_worker_at,omitempty"` + + // status + Status int64 `json:"status,omitempty"` + + // status text + StatusText string `json:"status_text,omitempty"` + + // tag + Tag string `json:"tag,omitempty"` + + // triggered by + TriggeredBy string `json:"triggered_by,omitempty"` + + // triggered workflow + TriggeredWorkflow string `json:"triggered_workflow,omitempty"` +} + +// Validate validates this v0 archived build response item model +func (m *V0ArchivedBuildResponseItemModel) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateBuildArtifacts(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0ArchivedBuildResponseItemModel) validateBuildArtifacts(formats strfmt.Registry) error { + if swag.IsZero(m.BuildArtifacts) { // not required + return nil + } + + for i := 0; i < len(m.BuildArtifacts); i++ { + if swag.IsZero(m.BuildArtifacts[i]) { // not required + continue + } + + if m.BuildArtifacts[i] != nil { + if err := m.BuildArtifacts[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("build_artifacts" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("build_artifacts" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this v0 archived build response item model based on the context it is used +func (m *V0ArchivedBuildResponseItemModel) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateBuildArtifacts(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0ArchivedBuildResponseItemModel) contextValidateBuildArtifacts(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.BuildArtifacts); i++ { + + if m.BuildArtifacts[i] != nil { + if err := m.BuildArtifacts[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("build_artifacts" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("build_artifacts" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V0ArchivedBuildResponseItemModel) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0ArchivedBuildResponseItemModel) UnmarshalBinary(b []byte) error { + var res V0ArchivedBuildResponseItemModel + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_artifact_delete_response_model.go b/go/models/v0_artifact_delete_response_model.go index cd2b35e..b35a8a2 100644 --- a/go/models/v0_artifact_delete_response_model.go +++ b/go/models/v0_artifact_delete_response_model.go @@ -45,6 +45,8 @@ func (m *V0ArtifactDeleteResponseModel) validateData(formats strfmt.Registry) er if err := m.Data.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } @@ -73,6 +75,8 @@ func (m *V0ArtifactDeleteResponseModel) contextValidateData(ctx context.Context, if err := m.Data.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } diff --git a/go/models/v0_artifact_list_element_response_model.go b/go/models/v0_artifact_list_element_response_model.go index e83c393..3ffe659 100644 --- a/go/models/v0_artifact_list_element_response_model.go +++ b/go/models/v0_artifact_list_element_response_model.go @@ -22,11 +22,14 @@ type V0ArtifactListElementResponseModel struct { ArtifactMeta []int64 `json:"artifact_meta"` // artifact type - ArtifactType *NullsString `json:"artifact_type,omitempty"` + ArtifactType *GithubComMarkbatesPopNullsString `json:"artifact_type,omitempty"` // file size bytes FileSizeBytes int64 `json:"file_size_bytes,omitempty"` + // intermediate file info + IntermediateFileInfo []int64 `json:"intermediate_file_info"` + // is public page enabled IsPublicPageEnabled bool `json:"is_public_page_enabled,omitempty"` @@ -34,7 +37,7 @@ type V0ArtifactListElementResponseModel struct { Slug string `json:"slug,omitempty"` // title - Title *NullsString `json:"title,omitempty"` + Title *GithubComMarkbatesPopNullsString `json:"title,omitempty"` } // Validate validates this v0 artifact list element response model @@ -64,6 +67,8 @@ func (m *V0ArtifactListElementResponseModel) validateArtifactType(formats strfmt if err := m.ArtifactType.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("artifact_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("artifact_type") } return err } @@ -81,6 +86,8 @@ func (m *V0ArtifactListElementResponseModel) validateTitle(formats strfmt.Regist if err := m.Title.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("title") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("title") } return err } @@ -113,6 +120,8 @@ func (m *V0ArtifactListElementResponseModel) contextValidateArtifactType(ctx con if err := m.ArtifactType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("artifact_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("artifact_type") } return err } @@ -127,6 +136,8 @@ func (m *V0ArtifactListElementResponseModel) contextValidateTitle(ctx context.Co if err := m.Title.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("title") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("title") } return err } diff --git a/go/models/v0_artifact_list_response_model.go b/go/models/v0_artifact_list_response_model.go index fa01108..d3fe46b 100644 --- a/go/models/v0_artifact_list_response_model.go +++ b/go/models/v0_artifact_list_response_model.go @@ -58,6 +58,8 @@ func (m *V0ArtifactListResponseModel) validateData(formats strfmt.Registry) erro if err := m.Data[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -77,6 +79,8 @@ func (m *V0ArtifactListResponseModel) validatePaging(formats strfmt.Registry) er if err := m.Paging.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") } return err } @@ -111,6 +115,8 @@ func (m *V0ArtifactListResponseModel) contextValidateData(ctx context.Context, f if err := m.Data[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -127,6 +133,8 @@ func (m *V0ArtifactListResponseModel) contextValidatePaging(ctx context.Context, if err := m.Paging.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") } return err } diff --git a/go/models/v0_artifact_response_item_model.go b/go/models/v0_artifact_response_item_model.go index 1bf0034..7256c45 100644 --- a/go/models/v0_artifact_response_item_model.go +++ b/go/models/v0_artifact_response_item_model.go @@ -22,7 +22,7 @@ type V0ArtifactResponseItemModel struct { ArtifactMeta []int64 `json:"artifact_meta"` // artifact type - ArtifactType *NullsString `json:"artifact_type,omitempty"` + ArtifactType *GithubComMarkbatesPopNullsString `json:"artifact_type,omitempty"` // expiring download url ExpiringDownloadURL string `json:"expiring_download_url,omitempty"` @@ -30,6 +30,9 @@ type V0ArtifactResponseItemModel struct { // file size bytes FileSizeBytes int64 `json:"file_size_bytes,omitempty"` + // intermediate file info + IntermediateFileInfo []int64 `json:"intermediate_file_info"` + // is public page enabled IsPublicPageEnabled bool `json:"is_public_page_enabled,omitempty"` @@ -40,7 +43,7 @@ type V0ArtifactResponseItemModel struct { Slug string `json:"slug,omitempty"` // title - Title *NullsString `json:"title,omitempty"` + Title *GithubComMarkbatesPopNullsString `json:"title,omitempty"` } // Validate validates this v0 artifact response item model @@ -70,6 +73,8 @@ func (m *V0ArtifactResponseItemModel) validateArtifactType(formats strfmt.Regist if err := m.ArtifactType.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("artifact_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("artifact_type") } return err } @@ -87,6 +92,8 @@ func (m *V0ArtifactResponseItemModel) validateTitle(formats strfmt.Registry) err if err := m.Title.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("title") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("title") } return err } @@ -119,6 +126,8 @@ func (m *V0ArtifactResponseItemModel) contextValidateArtifactType(ctx context.Co if err := m.ArtifactType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("artifact_type") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("artifact_type") } return err } @@ -133,6 +142,8 @@ func (m *V0ArtifactResponseItemModel) contextValidateTitle(ctx context.Context, if err := m.Title.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("title") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("title") } return err } diff --git a/go/models/v0_artifact_show_response_model.go b/go/models/v0_artifact_show_response_model.go index caeacba..5981b92 100644 --- a/go/models/v0_artifact_show_response_model.go +++ b/go/models/v0_artifact_show_response_model.go @@ -45,6 +45,8 @@ func (m *V0ArtifactShowResponseModel) validateData(formats strfmt.Registry) erro if err := m.Data.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } @@ -73,6 +75,8 @@ func (m *V0ArtifactShowResponseModel) contextValidateData(ctx context.Context, f if err := m.Data.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } diff --git a/go/models/v0_avatar_promote_response_model.go b/go/models/v0_avatar_promote_response_model.go index fa5a0dc..7b69fff 100644 --- a/go/models/v0_avatar_promote_response_model.go +++ b/go/models/v0_avatar_promote_response_model.go @@ -45,6 +45,8 @@ func (m *V0AvatarPromoteResponseModel) validateData(formats strfmt.Registry) err if err := m.Data.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } @@ -73,6 +75,8 @@ func (m *V0AvatarPromoteResponseModel) contextValidateData(ctx context.Context, if err := m.Data.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } diff --git a/go/models/v0_build_certificate_list_response_model.go b/go/models/v0_build_certificate_list_response_model.go index 5955c06..bf038bb 100644 --- a/go/models/v0_build_certificate_list_response_model.go +++ b/go/models/v0_build_certificate_list_response_model.go @@ -58,6 +58,8 @@ func (m *V0BuildCertificateListResponseModel) validateData(formats strfmt.Regist if err := m.Data[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -77,6 +79,8 @@ func (m *V0BuildCertificateListResponseModel) validatePaging(formats strfmt.Regi if err := m.Paging.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") } return err } @@ -111,6 +115,8 @@ func (m *V0BuildCertificateListResponseModel) contextValidateData(ctx context.Co if err := m.Data[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -127,6 +133,8 @@ func (m *V0BuildCertificateListResponseModel) contextValidatePaging(ctx context. if err := m.Paging.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") } return err } diff --git a/go/models/v0_build_certificate_response_model.go b/go/models/v0_build_certificate_response_model.go index 6d666d9..4293357 100644 --- a/go/models/v0_build_certificate_response_model.go +++ b/go/models/v0_build_certificate_response_model.go @@ -45,6 +45,8 @@ func (m *V0BuildCertificateResponseModel) validateData(formats strfmt.Registry) if err := m.Data.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } @@ -73,6 +75,8 @@ func (m *V0BuildCertificateResponseModel) contextValidateData(ctx context.Contex if err := m.Data.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } diff --git a/go/models/v0_build_list_all_response_item_model.go b/go/models/v0_build_list_all_response_item_model.go index 43cf846..eb0efab 100644 --- a/go/models/v0_build_list_all_response_item_model.go +++ b/go/models/v0_build_list_all_response_item_model.go @@ -19,22 +19,25 @@ import ( type V0BuildListAllResponseItemModel struct { // abort reason - AbortReason *NullsString `json:"abort_reason,omitempty"` + AbortReason *GithubComMarkbatesPopNullsString `json:"abort_reason,omitempty"` // branch - Branch *NullsString `json:"branch,omitempty"` + Branch *GithubComMarkbatesPopNullsString `json:"branch,omitempty"` // build number BuildNumber int64 `json:"build_number,omitempty"` // commit hash - CommitHash *NullsString `json:"commit_hash,omitempty"` + CommitHash *GithubComMarkbatesPopNullsString `json:"commit_hash,omitempty"` // commit message - CommitMessage *NullsString `json:"commit_message,omitempty"` + CommitMessage *GithubComMarkbatesPopNullsString `json:"commit_message,omitempty"` // commit view url - CommitViewURL *NullsString `json:"commit_view_url,omitempty"` + CommitViewURL *GithubComMarkbatesPopNullsString `json:"commit_view_url,omitempty"` + + // credit cost + CreditCost *GithubComMarkbatesPopNullsInt64 `json:"credit_cost,omitempty"` // environment prepare finished at EnvironmentPrepareFinishedAt string `json:"environment_prepare_finished_at,omitempty"` @@ -45,8 +48,11 @@ type V0BuildListAllResponseItemModel struct { // is on hold IsOnHold bool `json:"is_on_hold,omitempty"` + // is processed + IsProcessed bool `json:"is_processed,omitempty"` + // machine type id - MachineTypeID *NullsString `json:"machine_type_id,omitempty"` + MachineTypeID *GithubComMarkbatesPopNullsString `json:"machine_type_id,omitempty"` // original build params OriginalBuildParams []int64 `json:"original_build_params"` @@ -55,10 +61,10 @@ type V0BuildListAllResponseItemModel struct { PullRequestID int64 `json:"pull_request_id,omitempty"` // pull request target branch - PullRequestTargetBranch *NullsString `json:"pull_request_target_branch,omitempty"` + PullRequestTargetBranch *GithubComMarkbatesPopNullsString `json:"pull_request_target_branch,omitempty"` // pull request view url - PullRequestViewURL *NullsString `json:"pull_request_view_url,omitempty"` + PullRequestViewURL *GithubComMarkbatesPopNullsString `json:"pull_request_view_url,omitempty"` // repository Repository *V0AppResponseItemModel `json:"repository,omitempty"` @@ -67,7 +73,7 @@ type V0BuildListAllResponseItemModel struct { Slug string `json:"slug,omitempty"` // stack identifier - StackIdentifier *NullsString `json:"stack_identifier,omitempty"` + StackIdentifier *GithubComMarkbatesPopNullsString `json:"stack_identifier,omitempty"` // started on worker at StartedOnWorkerAt string `json:"started_on_worker_at,omitempty"` @@ -79,13 +85,13 @@ type V0BuildListAllResponseItemModel struct { StatusText string `json:"status_text,omitempty"` // tag - Tag *NullsString `json:"tag,omitempty"` + Tag *GithubComMarkbatesPopNullsString `json:"tag,omitempty"` // triggered at TriggeredAt string `json:"triggered_at,omitempty"` // triggered by - TriggeredBy *NullsString `json:"triggered_by,omitempty"` + TriggeredBy *GithubComMarkbatesPopNullsString `json:"triggered_by,omitempty"` // triggered workflow TriggeredWorkflow string `json:"triggered_workflow,omitempty"` @@ -115,6 +121,10 @@ func (m *V0BuildListAllResponseItemModel) Validate(formats strfmt.Registry) erro res = append(res, err) } + if err := m.validateCreditCost(formats); err != nil { + res = append(res, err) + } + if err := m.validateMachineTypeID(formats); err != nil { res = append(res, err) } @@ -158,6 +168,8 @@ func (m *V0BuildListAllResponseItemModel) validateAbortReason(formats strfmt.Reg if err := m.AbortReason.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("abort_reason") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("abort_reason") } return err } @@ -175,6 +187,8 @@ func (m *V0BuildListAllResponseItemModel) validateBranch(formats strfmt.Registry if err := m.Branch.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("branch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("branch") } return err } @@ -192,6 +206,8 @@ func (m *V0BuildListAllResponseItemModel) validateCommitHash(formats strfmt.Regi if err := m.CommitHash.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("commit_hash") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("commit_hash") } return err } @@ -209,6 +225,8 @@ func (m *V0BuildListAllResponseItemModel) validateCommitMessage(formats strfmt.R if err := m.CommitMessage.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("commit_message") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("commit_message") } return err } @@ -226,6 +244,27 @@ func (m *V0BuildListAllResponseItemModel) validateCommitViewURL(formats strfmt.R if err := m.CommitViewURL.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("commit_view_url") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("commit_view_url") + } + return err + } + } + + return nil +} + +func (m *V0BuildListAllResponseItemModel) validateCreditCost(formats strfmt.Registry) error { + if swag.IsZero(m.CreditCost) { // not required + return nil + } + + if m.CreditCost != nil { + if err := m.CreditCost.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("credit_cost") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("credit_cost") } return err } @@ -243,6 +282,8 @@ func (m *V0BuildListAllResponseItemModel) validateMachineTypeID(formats strfmt.R if err := m.MachineTypeID.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("machine_type_id") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("machine_type_id") } return err } @@ -260,6 +301,8 @@ func (m *V0BuildListAllResponseItemModel) validatePullRequestTargetBranch(format if err := m.PullRequestTargetBranch.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pull_request_target_branch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pull_request_target_branch") } return err } @@ -277,6 +320,8 @@ func (m *V0BuildListAllResponseItemModel) validatePullRequestViewURL(formats str if err := m.PullRequestViewURL.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pull_request_view_url") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pull_request_view_url") } return err } @@ -294,6 +339,8 @@ func (m *V0BuildListAllResponseItemModel) validateRepository(formats strfmt.Regi if err := m.Repository.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("repository") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("repository") } return err } @@ -311,6 +358,8 @@ func (m *V0BuildListAllResponseItemModel) validateStackIdentifier(formats strfmt if err := m.StackIdentifier.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("stack_identifier") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("stack_identifier") } return err } @@ -328,6 +377,8 @@ func (m *V0BuildListAllResponseItemModel) validateTag(formats strfmt.Registry) e if err := m.Tag.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tag") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tag") } return err } @@ -345,6 +396,8 @@ func (m *V0BuildListAllResponseItemModel) validateTriggeredBy(formats strfmt.Reg if err := m.TriggeredBy.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("triggered_by") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("triggered_by") } return err } @@ -377,6 +430,10 @@ func (m *V0BuildListAllResponseItemModel) ContextValidate(ctx context.Context, f res = append(res, err) } + if err := m.contextValidateCreditCost(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateMachineTypeID(ctx, formats); err != nil { res = append(res, err) } @@ -417,6 +474,8 @@ func (m *V0BuildListAllResponseItemModel) contextValidateAbortReason(ctx context if err := m.AbortReason.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("abort_reason") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("abort_reason") } return err } @@ -431,6 +490,8 @@ func (m *V0BuildListAllResponseItemModel) contextValidateBranch(ctx context.Cont if err := m.Branch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("branch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("branch") } return err } @@ -445,6 +506,8 @@ func (m *V0BuildListAllResponseItemModel) contextValidateCommitHash(ctx context. if err := m.CommitHash.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("commit_hash") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("commit_hash") } return err } @@ -459,6 +522,8 @@ func (m *V0BuildListAllResponseItemModel) contextValidateCommitMessage(ctx conte if err := m.CommitMessage.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("commit_message") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("commit_message") } return err } @@ -473,6 +538,24 @@ func (m *V0BuildListAllResponseItemModel) contextValidateCommitViewURL(ctx conte if err := m.CommitViewURL.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("commit_view_url") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("commit_view_url") + } + return err + } + } + + return nil +} + +func (m *V0BuildListAllResponseItemModel) contextValidateCreditCost(ctx context.Context, formats strfmt.Registry) error { + + if m.CreditCost != nil { + if err := m.CreditCost.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("credit_cost") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("credit_cost") } return err } @@ -487,6 +570,8 @@ func (m *V0BuildListAllResponseItemModel) contextValidateMachineTypeID(ctx conte if err := m.MachineTypeID.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("machine_type_id") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("machine_type_id") } return err } @@ -501,6 +586,8 @@ func (m *V0BuildListAllResponseItemModel) contextValidatePullRequestTargetBranch if err := m.PullRequestTargetBranch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pull_request_target_branch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pull_request_target_branch") } return err } @@ -515,6 +602,8 @@ func (m *V0BuildListAllResponseItemModel) contextValidatePullRequestViewURL(ctx if err := m.PullRequestViewURL.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pull_request_view_url") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pull_request_view_url") } return err } @@ -529,6 +618,8 @@ func (m *V0BuildListAllResponseItemModel) contextValidateRepository(ctx context. if err := m.Repository.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("repository") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("repository") } return err } @@ -543,6 +634,8 @@ func (m *V0BuildListAllResponseItemModel) contextValidateStackIdentifier(ctx con if err := m.StackIdentifier.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("stack_identifier") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("stack_identifier") } return err } @@ -557,6 +650,8 @@ func (m *V0BuildListAllResponseItemModel) contextValidateTag(ctx context.Context if err := m.Tag.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tag") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tag") } return err } @@ -571,6 +666,8 @@ func (m *V0BuildListAllResponseItemModel) contextValidateTriggeredBy(ctx context if err := m.TriggeredBy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("triggered_by") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("triggered_by") } return err } diff --git a/go/models/v0_build_list_all_response_model.go b/go/models/v0_build_list_all_response_model.go index 76ebde4..58b84b3 100644 --- a/go/models/v0_build_list_all_response_model.go +++ b/go/models/v0_build_list_all_response_model.go @@ -58,6 +58,8 @@ func (m *V0BuildListAllResponseModel) validateData(formats strfmt.Registry) erro if err := m.Data[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -77,6 +79,8 @@ func (m *V0BuildListAllResponseModel) validatePaging(formats strfmt.Registry) er if err := m.Paging.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") } return err } @@ -111,6 +115,8 @@ func (m *V0BuildListAllResponseModel) contextValidateData(ctx context.Context, f if err := m.Data[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -127,6 +133,8 @@ func (m *V0BuildListAllResponseModel) contextValidatePaging(ctx context.Context, if err := m.Paging.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") } return err } diff --git a/go/models/v0_build_list_response_model.go b/go/models/v0_build_list_response_model.go index fb3cfcc..2354e21 100644 --- a/go/models/v0_build_list_response_model.go +++ b/go/models/v0_build_list_response_model.go @@ -58,6 +58,8 @@ func (m *V0BuildListResponseModel) validateData(formats strfmt.Registry) error { if err := m.Data[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -77,6 +79,8 @@ func (m *V0BuildListResponseModel) validatePaging(formats strfmt.Registry) error if err := m.Paging.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") } return err } @@ -111,6 +115,8 @@ func (m *V0BuildListResponseModel) contextValidateData(ctx context.Context, form if err := m.Data[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -127,6 +133,8 @@ func (m *V0BuildListResponseModel) contextValidatePaging(ctx context.Context, fo if err := m.Paging.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") } return err } diff --git a/go/models/v0_build_request_list_response_model.go b/go/models/v0_build_request_list_response_model.go index 5e7c566..9d9b865 100644 --- a/go/models/v0_build_request_list_response_model.go +++ b/go/models/v0_build_request_list_response_model.go @@ -51,6 +51,8 @@ func (m *V0BuildRequestListResponseModel) validateData(formats strfmt.Registry) if err := m.Data[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -83,6 +85,8 @@ func (m *V0BuildRequestListResponseModel) contextValidateData(ctx context.Contex if err := m.Data[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } diff --git a/go/models/v0_build_request_update_response_model.go b/go/models/v0_build_request_update_response_model.go index b33a15b..59cdfad 100644 --- a/go/models/v0_build_request_update_response_model.go +++ b/go/models/v0_build_request_update_response_model.go @@ -45,6 +45,8 @@ func (m *V0BuildRequestUpdateResponseModel) validateData(formats strfmt.Registry if err := m.Data.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } @@ -73,6 +75,8 @@ func (m *V0BuildRequestUpdateResponseModel) contextValidateData(ctx context.Cont if err := m.Data.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } diff --git a/go/models/v0_build_response_item_model.go b/go/models/v0_build_response_item_model.go index 625773c..17355ce 100644 --- a/go/models/v0_build_response_item_model.go +++ b/go/models/v0_build_response_item_model.go @@ -19,22 +19,25 @@ import ( type V0BuildResponseItemModel struct { // abort reason - AbortReason *NullsString `json:"abort_reason,omitempty"` + AbortReason *GithubComMarkbatesPopNullsString `json:"abort_reason,omitempty"` // branch - Branch *NullsString `json:"branch,omitempty"` + Branch *GithubComMarkbatesPopNullsString `json:"branch,omitempty"` // build number BuildNumber int64 `json:"build_number,omitempty"` // commit hash - CommitHash *NullsString `json:"commit_hash,omitempty"` + CommitHash *GithubComMarkbatesPopNullsString `json:"commit_hash,omitempty"` // commit message - CommitMessage *NullsString `json:"commit_message,omitempty"` + CommitMessage *GithubComMarkbatesPopNullsString `json:"commit_message,omitempty"` // commit view url - CommitViewURL *NullsString `json:"commit_view_url,omitempty"` + CommitViewURL *GithubComMarkbatesPopNullsString `json:"commit_view_url,omitempty"` + + // credit cost + CreditCost *GithubComMarkbatesPopNullsInt64 `json:"credit_cost,omitempty"` // environment prepare finished at EnvironmentPrepareFinishedAt string `json:"environment_prepare_finished_at,omitempty"` @@ -45,26 +48,35 @@ type V0BuildResponseItemModel struct { // is on hold IsOnHold bool `json:"is_on_hold,omitempty"` + // is processed + IsProcessed bool `json:"is_processed,omitempty"` + + // is status sent + IsStatusSent bool `json:"is_status_sent,omitempty"` + // machine type id - MachineTypeID *NullsString `json:"machine_type_id,omitempty"` + MachineTypeID *GithubComMarkbatesPopNullsString `json:"machine_type_id,omitempty"` // original build params OriginalBuildParams []int64 `json:"original_build_params"` + // pipeline workflow id + PipelineWorkflowID string `json:"pipeline_workflow_id,omitempty"` + // pull request id PullRequestID int64 `json:"pull_request_id,omitempty"` // pull request target branch - PullRequestTargetBranch *NullsString `json:"pull_request_target_branch,omitempty"` + PullRequestTargetBranch *GithubComMarkbatesPopNullsString `json:"pull_request_target_branch,omitempty"` // pull request view url - PullRequestViewURL *NullsString `json:"pull_request_view_url,omitempty"` + PullRequestViewURL *GithubComMarkbatesPopNullsString `json:"pull_request_view_url,omitempty"` // slug Slug string `json:"slug,omitempty"` // stack identifier - StackIdentifier *NullsString `json:"stack_identifier,omitempty"` + StackIdentifier *GithubComMarkbatesPopNullsString `json:"stack_identifier,omitempty"` // started on worker at StartedOnWorkerAt string `json:"started_on_worker_at,omitempty"` @@ -76,13 +88,13 @@ type V0BuildResponseItemModel struct { StatusText string `json:"status_text,omitempty"` // tag - Tag *NullsString `json:"tag,omitempty"` + Tag *GithubComMarkbatesPopNullsString `json:"tag,omitempty"` // triggered at TriggeredAt string `json:"triggered_at,omitempty"` // triggered by - TriggeredBy *NullsString `json:"triggered_by,omitempty"` + TriggeredBy *GithubComMarkbatesPopNullsString `json:"triggered_by,omitempty"` // triggered workflow TriggeredWorkflow string `json:"triggered_workflow,omitempty"` @@ -112,6 +124,10 @@ func (m *V0BuildResponseItemModel) Validate(formats strfmt.Registry) error { res = append(res, err) } + if err := m.validateCreditCost(formats); err != nil { + res = append(res, err) + } + if err := m.validateMachineTypeID(formats); err != nil { res = append(res, err) } @@ -151,6 +167,8 @@ func (m *V0BuildResponseItemModel) validateAbortReason(formats strfmt.Registry) if err := m.AbortReason.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("abort_reason") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("abort_reason") } return err } @@ -168,6 +186,8 @@ func (m *V0BuildResponseItemModel) validateBranch(formats strfmt.Registry) error if err := m.Branch.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("branch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("branch") } return err } @@ -185,6 +205,8 @@ func (m *V0BuildResponseItemModel) validateCommitHash(formats strfmt.Registry) e if err := m.CommitHash.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("commit_hash") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("commit_hash") } return err } @@ -202,6 +224,8 @@ func (m *V0BuildResponseItemModel) validateCommitMessage(formats strfmt.Registry if err := m.CommitMessage.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("commit_message") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("commit_message") } return err } @@ -219,6 +243,27 @@ func (m *V0BuildResponseItemModel) validateCommitViewURL(formats strfmt.Registry if err := m.CommitViewURL.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("commit_view_url") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("commit_view_url") + } + return err + } + } + + return nil +} + +func (m *V0BuildResponseItemModel) validateCreditCost(formats strfmt.Registry) error { + if swag.IsZero(m.CreditCost) { // not required + return nil + } + + if m.CreditCost != nil { + if err := m.CreditCost.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("credit_cost") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("credit_cost") } return err } @@ -236,6 +281,8 @@ func (m *V0BuildResponseItemModel) validateMachineTypeID(formats strfmt.Registry if err := m.MachineTypeID.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("machine_type_id") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("machine_type_id") } return err } @@ -253,6 +300,8 @@ func (m *V0BuildResponseItemModel) validatePullRequestTargetBranch(formats strfm if err := m.PullRequestTargetBranch.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pull_request_target_branch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pull_request_target_branch") } return err } @@ -270,6 +319,8 @@ func (m *V0BuildResponseItemModel) validatePullRequestViewURL(formats strfmt.Reg if err := m.PullRequestViewURL.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pull_request_view_url") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pull_request_view_url") } return err } @@ -287,6 +338,8 @@ func (m *V0BuildResponseItemModel) validateStackIdentifier(formats strfmt.Regist if err := m.StackIdentifier.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("stack_identifier") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("stack_identifier") } return err } @@ -304,6 +357,8 @@ func (m *V0BuildResponseItemModel) validateTag(formats strfmt.Registry) error { if err := m.Tag.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tag") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tag") } return err } @@ -321,6 +376,8 @@ func (m *V0BuildResponseItemModel) validateTriggeredBy(formats strfmt.Registry) if err := m.TriggeredBy.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("triggered_by") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("triggered_by") } return err } @@ -353,6 +410,10 @@ func (m *V0BuildResponseItemModel) ContextValidate(ctx context.Context, formats res = append(res, err) } + if err := m.contextValidateCreditCost(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateMachineTypeID(ctx, formats); err != nil { res = append(res, err) } @@ -389,6 +450,8 @@ func (m *V0BuildResponseItemModel) contextValidateAbortReason(ctx context.Contex if err := m.AbortReason.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("abort_reason") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("abort_reason") } return err } @@ -403,6 +466,8 @@ func (m *V0BuildResponseItemModel) contextValidateBranch(ctx context.Context, fo if err := m.Branch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("branch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("branch") } return err } @@ -417,6 +482,8 @@ func (m *V0BuildResponseItemModel) contextValidateCommitHash(ctx context.Context if err := m.CommitHash.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("commit_hash") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("commit_hash") } return err } @@ -431,6 +498,8 @@ func (m *V0BuildResponseItemModel) contextValidateCommitMessage(ctx context.Cont if err := m.CommitMessage.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("commit_message") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("commit_message") } return err } @@ -445,6 +514,24 @@ func (m *V0BuildResponseItemModel) contextValidateCommitViewURL(ctx context.Cont if err := m.CommitViewURL.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("commit_view_url") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("commit_view_url") + } + return err + } + } + + return nil +} + +func (m *V0BuildResponseItemModel) contextValidateCreditCost(ctx context.Context, formats strfmt.Registry) error { + + if m.CreditCost != nil { + if err := m.CreditCost.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("credit_cost") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("credit_cost") } return err } @@ -459,6 +546,8 @@ func (m *V0BuildResponseItemModel) contextValidateMachineTypeID(ctx context.Cont if err := m.MachineTypeID.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("machine_type_id") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("machine_type_id") } return err } @@ -473,6 +562,8 @@ func (m *V0BuildResponseItemModel) contextValidatePullRequestTargetBranch(ctx co if err := m.PullRequestTargetBranch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pull_request_target_branch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pull_request_target_branch") } return err } @@ -487,6 +578,8 @@ func (m *V0BuildResponseItemModel) contextValidatePullRequestViewURL(ctx context if err := m.PullRequestViewURL.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pull_request_view_url") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pull_request_view_url") } return err } @@ -501,6 +594,8 @@ func (m *V0BuildResponseItemModel) contextValidateStackIdentifier(ctx context.Co if err := m.StackIdentifier.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("stack_identifier") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("stack_identifier") } return err } @@ -515,6 +610,8 @@ func (m *V0BuildResponseItemModel) contextValidateTag(ctx context.Context, forma if err := m.Tag.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tag") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tag") } return err } @@ -529,6 +626,8 @@ func (m *V0BuildResponseItemModel) contextValidateTriggeredBy(ctx context.Contex if err := m.TriggeredBy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("triggered_by") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("triggered_by") } return err } diff --git a/go/models/v0_build_show_response_model.go b/go/models/v0_build_show_response_model.go index 13e314c..27cc0d6 100644 --- a/go/models/v0_build_show_response_model.go +++ b/go/models/v0_build_show_response_model.go @@ -45,6 +45,8 @@ func (m *V0BuildShowResponseModel) validateData(formats strfmt.Registry) error { if err := m.Data.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } @@ -73,6 +75,8 @@ func (m *V0BuildShowResponseModel) contextValidateData(ctx context.Context, form if err := m.Data.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } diff --git a/go/models/v0_build_trigger_params.go b/go/models/v0_build_trigger_params.go index b3551ed..fe403d2 100644 --- a/go/models/v0_build_trigger_params.go +++ b/go/models/v0_build_trigger_params.go @@ -52,6 +52,8 @@ func (m *V0BuildTriggerParams) validateBuildParams(formats strfmt.Registry) erro if err := m.BuildParams.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("build_params") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("build_params") } return err } @@ -69,6 +71,8 @@ func (m *V0BuildTriggerParams) validateHookInfo(formats strfmt.Registry) error { if err := m.HookInfo.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("hook_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("hook_info") } return err } @@ -101,6 +105,8 @@ func (m *V0BuildTriggerParams) contextValidateBuildParams(ctx context.Context, f if err := m.BuildParams.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("build_params") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("build_params") } return err } @@ -115,6 +121,8 @@ func (m *V0BuildTriggerParams) contextValidateHookInfo(ctx context.Context, form if err := m.HookInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("hook_info") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("hook_info") } return err } diff --git a/go/models/v0_build_trigger_params_build_params.go b/go/models/v0_build_trigger_params_build_params.go index 1dabd6f..dceab87 100644 --- a/go/models/v0_build_trigger_params_build_params.go +++ b/go/models/v0_build_trigger_params_build_params.go @@ -55,6 +55,9 @@ type V0BuildTriggerParamsBuildParams struct { // head repository url HeadRepositoryURL string `json:"head_repository_url,omitempty"` + // pipeline id + PipelineID string `json:"pipeline_id,omitempty"` + // pull request author PullRequestAuthor string `json:"pull_request_author,omitempty"` @@ -112,6 +115,8 @@ func (m *V0BuildTriggerParamsBuildParams) validateCommitPaths(formats strfmt.Reg if err := m.CommitPaths[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("commit_paths" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("commit_paths" + "." + strconv.Itoa(i)) } return err } @@ -136,6 +141,8 @@ func (m *V0BuildTriggerParamsBuildParams) validateEnvironments(formats strfmt.Re if err := m.Environments[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("environments" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("environments" + "." + strconv.Itoa(i)) } return err } @@ -172,6 +179,8 @@ func (m *V0BuildTriggerParamsBuildParams) contextValidateCommitPaths(ctx context if err := m.CommitPaths[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("commit_paths" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("commit_paths" + "." + strconv.Itoa(i)) } return err } @@ -190,6 +199,8 @@ func (m *V0BuildTriggerParamsBuildParams) contextValidateEnvironments(ctx contex if err := m.Environments[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("environments" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("environments" + "." + strconv.Itoa(i)) } return err } diff --git a/go/models/v0_cache_item_download_response_model.go b/go/models/v0_cache_item_download_response_model.go new file mode 100644 index 0000000..2dc1d26 --- /dev/null +++ b/go/models/v0_cache_item_download_response_model.go @@ -0,0 +1,104 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0CacheItemDownloadResponseModel v0 cache item download response model +// +// swagger:model v0.CacheItemDownloadResponseModel +type V0CacheItemDownloadResponseModel struct { + + // data + Data *V0CacheItemDownloadURLResponseModel `json:"data,omitempty"` +} + +// Validate validates this v0 cache item download response model +func (m *V0CacheItemDownloadResponseModel) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0CacheItemDownloadResponseModel) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + if m.Data != nil { + if err := m.Data.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") + } + return err + } + } + + return nil +} + +// ContextValidate validate this v0 cache item download response model based on the context it is used +func (m *V0CacheItemDownloadResponseModel) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0CacheItemDownloadResponseModel) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + if m.Data != nil { + if err := m.Data.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V0CacheItemDownloadResponseModel) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0CacheItemDownloadResponseModel) UnmarshalBinary(b []byte) error { + var res V0CacheItemDownloadResponseModel + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_cache_item_download_url_response_model.go b/go/models/v0_cache_item_download_url_response_model.go new file mode 100644 index 0000000..5e989ba --- /dev/null +++ b/go/models/v0_cache_item_download_url_response_model.go @@ -0,0 +1,50 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0CacheItemDownloadURLResponseModel v0 cache item download URL response model +// +// swagger:model v0.CacheItemDownloadURLResponseModel +type V0CacheItemDownloadURLResponseModel struct { + + // download url + DownloadURL string `json:"download_url,omitempty"` +} + +// Validate validates this v0 cache item download URL response model +func (m *V0CacheItemDownloadURLResponseModel) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this v0 cache item download URL response model based on context it is used +func (m *V0CacheItemDownloadURLResponseModel) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *V0CacheItemDownloadURLResponseModel) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0CacheItemDownloadURLResponseModel) UnmarshalBinary(b []byte) error { + var res V0CacheItemDownloadURLResponseModel + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_cache_item_list_response_item_model.go b/go/models/v0_cache_item_list_response_item_model.go new file mode 100644 index 0000000..7cbb4c4 --- /dev/null +++ b/go/models/v0_cache_item_list_response_item_model.go @@ -0,0 +1,68 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0CacheItemListResponseItemModel v0 cache item list response item model +// +// swagger:model v0.CacheItemListResponseItemModel +type V0CacheItemListResponseItemModel struct { + + // app id + AppID string `json:"app_id,omitempty"` + + // archive filename + ArchiveFilename string `json:"archive_filename,omitempty"` + + // archive size + ArchiveSize int64 `json:"archive_size,omitempty"` + + // cache key + CacheKey string `json:"cache_key,omitempty"` + + // created at + CreatedAt string `json:"created_at,omitempty"` + + // expires at + ExpiresAt string `json:"expires_at,omitempty"` + + // id + ID string `json:"id,omitempty"` +} + +// Validate validates this v0 cache item list response item model +func (m *V0CacheItemListResponseItemModel) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this v0 cache item list response item model based on context it is used +func (m *V0CacheItemListResponseItemModel) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *V0CacheItemListResponseItemModel) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0CacheItemListResponseItemModel) UnmarshalBinary(b []byte) error { + var res V0CacheItemListResponseItemModel + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_cache_item_list_response_model.go b/go/models/v0_cache_item_list_response_model.go new file mode 100644 index 0000000..e4f253f --- /dev/null +++ b/go/models/v0_cache_item_list_response_model.go @@ -0,0 +1,162 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0CacheItemListResponseModel v0 cache item list response model +// +// swagger:model v0.CacheItemListResponseModel +type V0CacheItemListResponseModel struct { + + // data + Data []*V0CacheItemListResponseItemModel `json:"data"` + + // paging + Paging *V0PagingResponseModel `json:"paging,omitempty"` +} + +// Validate validates this v0 cache item list response model +func (m *V0CacheItemListResponseModel) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if err := m.validatePaging(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0CacheItemListResponseModel) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *V0CacheItemListResponseModel) validatePaging(formats strfmt.Registry) error { + if swag.IsZero(m.Paging) { // not required + return nil + } + + if m.Paging != nil { + if err := m.Paging.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") + } + return err + } + } + + return nil +} + +// ContextValidate validate this v0 cache item list response model based on the context it is used +func (m *V0CacheItemListResponseModel) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidatePaging(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0CacheItemListResponseModel) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *V0CacheItemListResponseModel) contextValidatePaging(ctx context.Context, formats strfmt.Registry) error { + + if m.Paging != nil { + if err := m.Paging.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V0CacheItemListResponseModel) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0CacheItemListResponseModel) UnmarshalBinary(b []byte) error { + var res V0CacheItemListResponseModel + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_find_avatar_candidate_response.go b/go/models/v0_find_avatar_candidate_response.go index 7a1aef7..ca0543f 100644 --- a/go/models/v0_find_avatar_candidate_response.go +++ b/go/models/v0_find_avatar_candidate_response.go @@ -51,6 +51,8 @@ func (m *V0FindAvatarCandidateResponse) validateData(formats strfmt.Registry) er if err := m.Data[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -83,6 +85,8 @@ func (m *V0FindAvatarCandidateResponse) contextValidateData(ctx context.Context, if err := m.Data[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } diff --git a/go/models/v0_organization_data_model.go b/go/models/v0_organization_data_model.go index 01ba4c8..64e5df4 100644 --- a/go/models/v0_organization_data_model.go +++ b/go/models/v0_organization_data_model.go @@ -20,7 +20,7 @@ import ( type V0OrganizationDataModel struct { // avatar icon url - AvatarIconURL *NullsString `json:"avatar_icon_url,omitempty"` + AvatarIconURL *GithubComMarkbatesPopNullsString `json:"avatar_icon_url,omitempty"` // concurrency count ConcurrencyCount int64 `json:"concurrency_count,omitempty"` @@ -62,6 +62,8 @@ func (m *V0OrganizationDataModel) validateAvatarIconURL(formats strfmt.Registry) if err := m.AvatarIconURL.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("avatar_icon_url") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("avatar_icon_url") } return err } @@ -84,6 +86,8 @@ func (m *V0OrganizationDataModel) validateOwners(formats strfmt.Registry) error if err := m.Owners[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("owners" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("owners" + "." + strconv.Itoa(i)) } return err } @@ -118,6 +122,8 @@ func (m *V0OrganizationDataModel) contextValidateAvatarIconURL(ctx context.Conte if err := m.AvatarIconURL.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("avatar_icon_url") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("avatar_icon_url") } return err } @@ -134,6 +140,8 @@ func (m *V0OrganizationDataModel) contextValidateOwners(ctx context.Context, for if err := m.Owners[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("owners" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("owners" + "." + strconv.Itoa(i)) } return err } diff --git a/go/models/v0_organization_list_resp_model.go b/go/models/v0_organization_list_resp_model.go index f065249..00d0c57 100644 --- a/go/models/v0_organization_list_resp_model.go +++ b/go/models/v0_organization_list_resp_model.go @@ -51,6 +51,8 @@ func (m *V0OrganizationListRespModel) validateData(formats strfmt.Registry) erro if err := m.Data[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -83,6 +85,8 @@ func (m *V0OrganizationListRespModel) contextValidateData(ctx context.Context, f if err := m.Data[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } diff --git a/go/models/v0_organization_resp_model.go b/go/models/v0_organization_resp_model.go index 767e624..a02a422 100644 --- a/go/models/v0_organization_resp_model.go +++ b/go/models/v0_organization_resp_model.go @@ -45,6 +45,8 @@ func (m *V0OrganizationRespModel) validateData(formats strfmt.Registry) error { if err := m.Data.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } @@ -73,6 +75,8 @@ func (m *V0OrganizationRespModel) contextValidateData(ctx context.Context, forma if err := m.Data.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } diff --git a/go/models/v0_owner_add_on_response_item_model.go b/go/models/v0_owner_add_on_response_item_model.go index 5116ac7..30ff04e 100644 --- a/go/models/v0_owner_add_on_response_item_model.go +++ b/go/models/v0_owner_add_on_response_item_model.go @@ -72,6 +72,8 @@ func (m *V0OwnerAddOnResponseItemModel) validateApps(formats strfmt.Registry) er if err := m.Apps[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apps" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("apps" + "." + strconv.Itoa(i)) } return err } @@ -104,6 +106,8 @@ func (m *V0OwnerAddOnResponseItemModel) contextValidateApps(ctx context.Context, if err := m.Apps[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apps" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("apps" + "." + strconv.Itoa(i)) } return err } diff --git a/go/models/v0_owner_add_ons_list_response_model.go b/go/models/v0_owner_add_ons_list_response_model.go index 7debda2..a73639f 100644 --- a/go/models/v0_owner_add_ons_list_response_model.go +++ b/go/models/v0_owner_add_ons_list_response_model.go @@ -51,6 +51,8 @@ func (m *V0OwnerAddOnsListResponseModel) validateData(formats strfmt.Registry) e if err := m.Data[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -83,6 +85,8 @@ func (m *V0OwnerAddOnsListResponseModel) contextValidateData(ctx context.Context if err := m.Data[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } diff --git a/go/models/v0_pipeline_abort_params.go b/go/models/v0_pipeline_abort_params.go new file mode 100644 index 0000000..903a771 --- /dev/null +++ b/go/models/v0_pipeline_abort_params.go @@ -0,0 +1,105 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" + "github.com/go-openapi/validate" +) + +// V0PipelineAbortParams v0 pipeline abort params +// +// swagger:model v0.PipelineAbortParams +type V0PipelineAbortParams struct { + + // abort reason + // Required: true + AbortReason *string `json:"abort_reason"` + + // abort with success + // Required: true + AbortWithSuccess *bool `json:"abort_with_success"` + + // skip notifications + // Required: true + SkipNotifications *bool `json:"skip_notifications"` +} + +// Validate validates this v0 pipeline abort params +func (m *V0PipelineAbortParams) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateAbortReason(formats); err != nil { + res = append(res, err) + } + + if err := m.validateAbortWithSuccess(formats); err != nil { + res = append(res, err) + } + + if err := m.validateSkipNotifications(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0PipelineAbortParams) validateAbortReason(formats strfmt.Registry) error { + + if err := validate.Required("abort_reason", "body", m.AbortReason); err != nil { + return err + } + + return nil +} + +func (m *V0PipelineAbortParams) validateAbortWithSuccess(formats strfmt.Registry) error { + + if err := validate.Required("abort_with_success", "body", m.AbortWithSuccess); err != nil { + return err + } + + return nil +} + +func (m *V0PipelineAbortParams) validateSkipNotifications(formats strfmt.Registry) error { + + if err := validate.Required("skip_notifications", "body", m.SkipNotifications); err != nil { + return err + } + + return nil +} + +// ContextValidate validates this v0 pipeline abort params based on context it is used +func (m *V0PipelineAbortParams) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *V0PipelineAbortParams) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0PipelineAbortParams) UnmarshalBinary(b []byte) error { + var res V0PipelineAbortParams + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_pipeline_list_all_response_item_model.go b/go/models/v0_pipeline_list_all_response_item_model.go new file mode 100644 index 0000000..e1f854d --- /dev/null +++ b/go/models/v0_pipeline_list_all_response_item_model.go @@ -0,0 +1,413 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0PipelineListAllResponseItemModel v0 pipeline list all response item model +// +// swagger:model v0.PipelineListAllResponseItemModel +type V0PipelineListAllResponseItemModel struct { + + // branch + Branch *GithubComGobuffaloNullsString `json:"branch,omitempty"` + + // build number + BuildNumber int64 `json:"build_number,omitempty"` + + // commit hash + CommitHash *GithubComGobuffaloNullsString `json:"commit_hash,omitempty"` + + // commit message + CommitMessage *GithubComGobuffaloNullsString `json:"commit_message,omitempty"` + + // finished at + FinishedAt string `json:"finished_at,omitempty"` + + // is on hold + IsOnHold bool `json:"is_on_hold,omitempty"` + + // is pipeline + IsPipeline bool `json:"is_pipeline,omitempty"` + + // is processed + IsProcessed bool `json:"is_processed,omitempty"` + + // pull request id + PullRequestID int64 `json:"pull_request_id,omitempty"` + + // pull request target branch + PullRequestTargetBranch *GithubComGobuffaloNullsString `json:"pull_request_target_branch,omitempty"` + + // repository + Repository *V0AppResponseItemModel `json:"repository,omitempty"` + + // slug + Slug string `json:"slug,omitempty"` + + // started at + StartedAt string `json:"started_at,omitempty"` + + // status + Status int64 `json:"status,omitempty"` + + // tag + Tag *GithubComGobuffaloNullsString `json:"tag,omitempty"` + + // triggered at + TriggeredAt string `json:"triggered_at,omitempty"` + + // triggered by + TriggeredBy *GithubComGobuffaloNullsString `json:"triggered_by,omitempty"` + + // triggered workflow + TriggeredWorkflow string `json:"triggered_workflow,omitempty"` +} + +// Validate validates this v0 pipeline list all response item model +func (m *V0PipelineListAllResponseItemModel) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateBranch(formats); err != nil { + res = append(res, err) + } + + if err := m.validateCommitHash(formats); err != nil { + res = append(res, err) + } + + if err := m.validateCommitMessage(formats); err != nil { + res = append(res, err) + } + + if err := m.validatePullRequestTargetBranch(formats); err != nil { + res = append(res, err) + } + + if err := m.validateRepository(formats); err != nil { + res = append(res, err) + } + + if err := m.validateTag(formats); err != nil { + res = append(res, err) + } + + if err := m.validateTriggeredBy(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0PipelineListAllResponseItemModel) validateBranch(formats strfmt.Registry) error { + if swag.IsZero(m.Branch) { // not required + return nil + } + + if m.Branch != nil { + if err := m.Branch.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("branch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("branch") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListAllResponseItemModel) validateCommitHash(formats strfmt.Registry) error { + if swag.IsZero(m.CommitHash) { // not required + return nil + } + + if m.CommitHash != nil { + if err := m.CommitHash.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("commit_hash") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("commit_hash") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListAllResponseItemModel) validateCommitMessage(formats strfmt.Registry) error { + if swag.IsZero(m.CommitMessage) { // not required + return nil + } + + if m.CommitMessage != nil { + if err := m.CommitMessage.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("commit_message") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("commit_message") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListAllResponseItemModel) validatePullRequestTargetBranch(formats strfmt.Registry) error { + if swag.IsZero(m.PullRequestTargetBranch) { // not required + return nil + } + + if m.PullRequestTargetBranch != nil { + if err := m.PullRequestTargetBranch.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("pull_request_target_branch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pull_request_target_branch") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListAllResponseItemModel) validateRepository(formats strfmt.Registry) error { + if swag.IsZero(m.Repository) { // not required + return nil + } + + if m.Repository != nil { + if err := m.Repository.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("repository") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("repository") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListAllResponseItemModel) validateTag(formats strfmt.Registry) error { + if swag.IsZero(m.Tag) { // not required + return nil + } + + if m.Tag != nil { + if err := m.Tag.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("tag") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tag") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListAllResponseItemModel) validateTriggeredBy(formats strfmt.Registry) error { + if swag.IsZero(m.TriggeredBy) { // not required + return nil + } + + if m.TriggeredBy != nil { + if err := m.TriggeredBy.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("triggered_by") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("triggered_by") + } + return err + } + } + + return nil +} + +// ContextValidate validate this v0 pipeline list all response item model based on the context it is used +func (m *V0PipelineListAllResponseItemModel) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateBranch(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateCommitHash(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateCommitMessage(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidatePullRequestTargetBranch(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateRepository(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateTag(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateTriggeredBy(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0PipelineListAllResponseItemModel) contextValidateBranch(ctx context.Context, formats strfmt.Registry) error { + + if m.Branch != nil { + if err := m.Branch.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("branch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("branch") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListAllResponseItemModel) contextValidateCommitHash(ctx context.Context, formats strfmt.Registry) error { + + if m.CommitHash != nil { + if err := m.CommitHash.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("commit_hash") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("commit_hash") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListAllResponseItemModel) contextValidateCommitMessage(ctx context.Context, formats strfmt.Registry) error { + + if m.CommitMessage != nil { + if err := m.CommitMessage.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("commit_message") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("commit_message") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListAllResponseItemModel) contextValidatePullRequestTargetBranch(ctx context.Context, formats strfmt.Registry) error { + + if m.PullRequestTargetBranch != nil { + if err := m.PullRequestTargetBranch.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("pull_request_target_branch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pull_request_target_branch") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListAllResponseItemModel) contextValidateRepository(ctx context.Context, formats strfmt.Registry) error { + + if m.Repository != nil { + if err := m.Repository.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("repository") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("repository") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListAllResponseItemModel) contextValidateTag(ctx context.Context, formats strfmt.Registry) error { + + if m.Tag != nil { + if err := m.Tag.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("tag") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tag") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListAllResponseItemModel) contextValidateTriggeredBy(ctx context.Context, formats strfmt.Registry) error { + + if m.TriggeredBy != nil { + if err := m.TriggeredBy.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("triggered_by") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("triggered_by") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V0PipelineListAllResponseItemModel) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0PipelineListAllResponseItemModel) UnmarshalBinary(b []byte) error { + var res V0PipelineListAllResponseItemModel + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_pipeline_list_all_response_model.go b/go/models/v0_pipeline_list_all_response_model.go new file mode 100644 index 0000000..5d934ae --- /dev/null +++ b/go/models/v0_pipeline_list_all_response_model.go @@ -0,0 +1,162 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0PipelineListAllResponseModel v0 pipeline list all response model +// +// swagger:model v0.PipelineListAllResponseModel +type V0PipelineListAllResponseModel struct { + + // data + Data []*V0PipelineListAllResponseItemModel `json:"data"` + + // paging + Paging *V0PagingResponseModel `json:"paging,omitempty"` +} + +// Validate validates this v0 pipeline list all response model +func (m *V0PipelineListAllResponseModel) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if err := m.validatePaging(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0PipelineListAllResponseModel) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *V0PipelineListAllResponseModel) validatePaging(formats strfmt.Registry) error { + if swag.IsZero(m.Paging) { // not required + return nil + } + + if m.Paging != nil { + if err := m.Paging.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") + } + return err + } + } + + return nil +} + +// ContextValidate validate this v0 pipeline list all response model based on the context it is used +func (m *V0PipelineListAllResponseModel) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidatePaging(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0PipelineListAllResponseModel) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *V0PipelineListAllResponseModel) contextValidatePaging(ctx context.Context, formats strfmt.Registry) error { + + if m.Paging != nil { + if err := m.Paging.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V0PipelineListAllResponseModel) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0PipelineListAllResponseModel) UnmarshalBinary(b []byte) error { + var res V0PipelineListAllResponseModel + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_pipeline_list_response_item_model.go b/go/models/v0_pipeline_list_response_item_model.go new file mode 100644 index 0000000..c4f6ecb --- /dev/null +++ b/go/models/v0_pipeline_list_response_item_model.go @@ -0,0 +1,459 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0PipelineListResponseItemModel v0 pipeline list response item model +// +// swagger:model v0.PipelineListResponseItemModel +type V0PipelineListResponseItemModel struct { + + // branch + Branch *GithubComGobuffaloNullsString `json:"branch,omitempty"` + + // build number + BuildNumber int64 `json:"build_number,omitempty"` + + // commit hash + CommitHash *GithubComGobuffaloNullsString `json:"commit_hash,omitempty"` + + // commit message + CommitMessage *GithubComGobuffaloNullsString `json:"commit_message,omitempty"` + + // credit cost + CreditCost *GithubComGobuffaloNullsInt64 `json:"credit_cost,omitempty"` + + // finished at + FinishedAt string `json:"finished_at,omitempty"` + + // is on hold + IsOnHold bool `json:"is_on_hold,omitempty"` + + // is pipeline + IsPipeline bool `json:"is_pipeline,omitempty"` + + // is processed + IsProcessed bool `json:"is_processed,omitempty"` + + // pull request id + PullRequestID int64 `json:"pull_request_id,omitempty"` + + // pull request target branch + PullRequestTargetBranch *GithubComGobuffaloNullsString `json:"pull_request_target_branch,omitempty"` + + // slug + Slug string `json:"slug,omitempty"` + + // started at + StartedAt string `json:"started_at,omitempty"` + + // status + Status int64 `json:"status,omitempty"` + + // tag + Tag *GithubComGobuffaloNullsString `json:"tag,omitempty"` + + // trigger params + TriggerParams *PipelineabledomainTriggerParams `json:"trigger_params,omitempty"` + + // triggered at + TriggeredAt string `json:"triggered_at,omitempty"` + + // triggered by + TriggeredBy *GithubComGobuffaloNullsString `json:"triggered_by,omitempty"` + + // triggered workflow + TriggeredWorkflow string `json:"triggered_workflow,omitempty"` +} + +// Validate validates this v0 pipeline list response item model +func (m *V0PipelineListResponseItemModel) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateBranch(formats); err != nil { + res = append(res, err) + } + + if err := m.validateCommitHash(formats); err != nil { + res = append(res, err) + } + + if err := m.validateCommitMessage(formats); err != nil { + res = append(res, err) + } + + if err := m.validateCreditCost(formats); err != nil { + res = append(res, err) + } + + if err := m.validatePullRequestTargetBranch(formats); err != nil { + res = append(res, err) + } + + if err := m.validateTag(formats); err != nil { + res = append(res, err) + } + + if err := m.validateTriggerParams(formats); err != nil { + res = append(res, err) + } + + if err := m.validateTriggeredBy(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0PipelineListResponseItemModel) validateBranch(formats strfmt.Registry) error { + if swag.IsZero(m.Branch) { // not required + return nil + } + + if m.Branch != nil { + if err := m.Branch.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("branch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("branch") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListResponseItemModel) validateCommitHash(formats strfmt.Registry) error { + if swag.IsZero(m.CommitHash) { // not required + return nil + } + + if m.CommitHash != nil { + if err := m.CommitHash.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("commit_hash") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("commit_hash") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListResponseItemModel) validateCommitMessage(formats strfmt.Registry) error { + if swag.IsZero(m.CommitMessage) { // not required + return nil + } + + if m.CommitMessage != nil { + if err := m.CommitMessage.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("commit_message") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("commit_message") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListResponseItemModel) validateCreditCost(formats strfmt.Registry) error { + if swag.IsZero(m.CreditCost) { // not required + return nil + } + + if m.CreditCost != nil { + if err := m.CreditCost.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("credit_cost") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("credit_cost") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListResponseItemModel) validatePullRequestTargetBranch(formats strfmt.Registry) error { + if swag.IsZero(m.PullRequestTargetBranch) { // not required + return nil + } + + if m.PullRequestTargetBranch != nil { + if err := m.PullRequestTargetBranch.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("pull_request_target_branch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pull_request_target_branch") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListResponseItemModel) validateTag(formats strfmt.Registry) error { + if swag.IsZero(m.Tag) { // not required + return nil + } + + if m.Tag != nil { + if err := m.Tag.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("tag") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tag") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListResponseItemModel) validateTriggerParams(formats strfmt.Registry) error { + if swag.IsZero(m.TriggerParams) { // not required + return nil + } + + if m.TriggerParams != nil { + if err := m.TriggerParams.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("trigger_params") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("trigger_params") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListResponseItemModel) validateTriggeredBy(formats strfmt.Registry) error { + if swag.IsZero(m.TriggeredBy) { // not required + return nil + } + + if m.TriggeredBy != nil { + if err := m.TriggeredBy.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("triggered_by") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("triggered_by") + } + return err + } + } + + return nil +} + +// ContextValidate validate this v0 pipeline list response item model based on the context it is used +func (m *V0PipelineListResponseItemModel) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateBranch(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateCommitHash(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateCommitMessage(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateCreditCost(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidatePullRequestTargetBranch(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateTag(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateTriggerParams(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateTriggeredBy(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0PipelineListResponseItemModel) contextValidateBranch(ctx context.Context, formats strfmt.Registry) error { + + if m.Branch != nil { + if err := m.Branch.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("branch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("branch") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListResponseItemModel) contextValidateCommitHash(ctx context.Context, formats strfmt.Registry) error { + + if m.CommitHash != nil { + if err := m.CommitHash.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("commit_hash") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("commit_hash") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListResponseItemModel) contextValidateCommitMessage(ctx context.Context, formats strfmt.Registry) error { + + if m.CommitMessage != nil { + if err := m.CommitMessage.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("commit_message") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("commit_message") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListResponseItemModel) contextValidateCreditCost(ctx context.Context, formats strfmt.Registry) error { + + if m.CreditCost != nil { + if err := m.CreditCost.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("credit_cost") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("credit_cost") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListResponseItemModel) contextValidatePullRequestTargetBranch(ctx context.Context, formats strfmt.Registry) error { + + if m.PullRequestTargetBranch != nil { + if err := m.PullRequestTargetBranch.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("pull_request_target_branch") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pull_request_target_branch") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListResponseItemModel) contextValidateTag(ctx context.Context, formats strfmt.Registry) error { + + if m.Tag != nil { + if err := m.Tag.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("tag") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("tag") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListResponseItemModel) contextValidateTriggerParams(ctx context.Context, formats strfmt.Registry) error { + + if m.TriggerParams != nil { + if err := m.TriggerParams.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("trigger_params") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("trigger_params") + } + return err + } + } + + return nil +} + +func (m *V0PipelineListResponseItemModel) contextValidateTriggeredBy(ctx context.Context, formats strfmt.Registry) error { + + if m.TriggeredBy != nil { + if err := m.TriggeredBy.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("triggered_by") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("triggered_by") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V0PipelineListResponseItemModel) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0PipelineListResponseItemModel) UnmarshalBinary(b []byte) error { + var res V0PipelineListResponseItemModel + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_pipeline_list_response_model.go b/go/models/v0_pipeline_list_response_model.go new file mode 100644 index 0000000..024463d --- /dev/null +++ b/go/models/v0_pipeline_list_response_model.go @@ -0,0 +1,162 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0PipelineListResponseModel v0 pipeline list response model +// +// swagger:model v0.PipelineListResponseModel +type V0PipelineListResponseModel struct { + + // data + Data []*V0PipelineListResponseItemModel `json:"data"` + + // pagination + Paging *V0PagingResponseModel `json:"paging,omitempty"` +} + +// Validate validates this v0 pipeline list response model +func (m *V0PipelineListResponseModel) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateData(formats); err != nil { + res = append(res, err) + } + + if err := m.validatePaging(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0PipelineListResponseModel) validateData(formats strfmt.Registry) error { + if swag.IsZero(m.Data) { // not required + return nil + } + + for i := 0; i < len(m.Data); i++ { + if swag.IsZero(m.Data[i]) { // not required + continue + } + + if m.Data[i] != nil { + if err := m.Data[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *V0PipelineListResponseModel) validatePaging(formats strfmt.Registry) error { + if swag.IsZero(m.Paging) { // not required + return nil + } + + if m.Paging != nil { + if err := m.Paging.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") + } + return err + } + } + + return nil +} + +// ContextValidate validate this v0 pipeline list response model based on the context it is used +func (m *V0PipelineListResponseModel) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateData(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidatePaging(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0PipelineListResponseModel) contextValidateData(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Data); i++ { + + if m.Data[i] != nil { + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *V0PipelineListResponseModel) contextValidatePaging(ctx context.Context, formats strfmt.Registry) error { + + if m.Paging != nil { + if err := m.Paging.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V0PipelineListResponseModel) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0PipelineListResponseModel) UnmarshalBinary(b []byte) error { + var res V0PipelineListResponseModel + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_pipeline_rebuild_params.go b/go/models/v0_pipeline_rebuild_params.go new file mode 100644 index 0000000..8d3ece8 --- /dev/null +++ b/go/models/v0_pipeline_rebuild_params.go @@ -0,0 +1,53 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0PipelineRebuildParams v0 pipeline rebuild params +// +// swagger:model v0.PipelineRebuildParams +type V0PipelineRebuildParams struct { + + // partial + Partial bool `json:"partial,omitempty"` + + // triggered by + TriggeredBy string `json:"triggered_by,omitempty"` +} + +// Validate validates this v0 pipeline rebuild params +func (m *V0PipelineRebuildParams) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this v0 pipeline rebuild params based on context it is used +func (m *V0PipelineRebuildParams) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *V0PipelineRebuildParams) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0PipelineRebuildParams) UnmarshalBinary(b []byte) error { + var res V0PipelineRebuildParams + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_pipeline_show_app_response_model.go b/go/models/v0_pipeline_show_app_response_model.go new file mode 100644 index 0000000..68989dc --- /dev/null +++ b/go/models/v0_pipeline_show_app_response_model.go @@ -0,0 +1,50 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0PipelineShowAppResponseModel v0 pipeline show app response model +// +// swagger:model v0.PipelineShowAppResponseModel +type V0PipelineShowAppResponseModel struct { + + // slug + Slug string `json:"slug,omitempty"` +} + +// Validate validates this v0 pipeline show app response model +func (m *V0PipelineShowAppResponseModel) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this v0 pipeline show app response model based on context it is used +func (m *V0PipelineShowAppResponseModel) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *V0PipelineShowAppResponseModel) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0PipelineShowAppResponseModel) UnmarshalBinary(b []byte) error { + var res V0PipelineShowAppResponseModel + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_pipeline_show_attempt_response_model.go b/go/models/v0_pipeline_show_attempt_response_model.go new file mode 100644 index 0000000..9e61f88 --- /dev/null +++ b/go/models/v0_pipeline_show_attempt_response_model.go @@ -0,0 +1,59 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0PipelineShowAttemptResponseModel v0 pipeline show attempt response model +// +// swagger:model v0.PipelineShowAttemptResponseModel +type V0PipelineShowAttemptResponseModel struct { + + // id + ID string `json:"id,omitempty"` + + // number in pipeline build scope + NumberInPipelineBuildScope int64 `json:"number_in_pipeline_build_scope,omitempty"` + + // status + Status string `json:"status,omitempty"` + + // triggered at + TriggeredAt string `json:"triggered_at,omitempty"` +} + +// Validate validates this v0 pipeline show attempt response model +func (m *V0PipelineShowAttemptResponseModel) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this v0 pipeline show attempt response model based on context it is used +func (m *V0PipelineShowAttemptResponseModel) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *V0PipelineShowAttemptResponseModel) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0PipelineShowAttemptResponseModel) UnmarshalBinary(b []byte) error { + var res V0PipelineShowAttemptResponseModel + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_pipeline_show_environments_response_model.go b/go/models/v0_pipeline_show_environments_response_model.go new file mode 100644 index 0000000..759503c --- /dev/null +++ b/go/models/v0_pipeline_show_environments_response_model.go @@ -0,0 +1,56 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0PipelineShowEnvironmentsResponseModel v0 pipeline show environments response model +// +// swagger:model v0.PipelineShowEnvironmentsResponseModel +type V0PipelineShowEnvironmentsResponseModel struct { + + // is expand + IsExpand bool `json:"is_expand,omitempty"` + + // key + Key string `json:"key,omitempty"` + + // value + Value interface{} `json:"value,omitempty"` +} + +// Validate validates this v0 pipeline show environments response model +func (m *V0PipelineShowEnvironmentsResponseModel) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this v0 pipeline show environments response model based on context it is used +func (m *V0PipelineShowEnvironmentsResponseModel) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *V0PipelineShowEnvironmentsResponseModel) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0PipelineShowEnvironmentsResponseModel) UnmarshalBinary(b []byte) error { + var res V0PipelineShowEnvironmentsResponseModel + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_pipeline_show_response_model.go b/go/models/v0_pipeline_show_response_model.go new file mode 100644 index 0000000..9fc01f3 --- /dev/null +++ b/go/models/v0_pipeline_show_response_model.go @@ -0,0 +1,301 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0PipelineShowResponseModel v0 pipeline show response model +// +// swagger:model v0.PipelineShowResponseModel +type V0PipelineShowResponseModel struct { + + // abort reason + AbortReason string `json:"abort_reason,omitempty"` + + // app + App *V0PipelineShowAppResponseModel `json:"app,omitempty"` + + // attempts + Attempts []*V0PipelineShowAttemptResponseModel `json:"attempts"` + + // credit cost + CreditCost interface{} `json:"credit_cost,omitempty"` + + // current attempt id + CurrentAttemptID string `json:"current_attempt_id,omitempty"` + + // finished at + FinishedAt string `json:"finished_at,omitempty"` + + // id + ID string `json:"id,omitempty"` + + // name + Name string `json:"name,omitempty"` + + // number in app scope + NumberInAppScope int64 `json:"number_in_app_scope,omitempty"` + + // put on hold at + PutOnHoldAt interface{} `json:"put_on_hold_at,omitempty"` + + // stages + Stages []*V0PipelineShowStageResponseModel `json:"stages"` + + // started at + StartedAt string `json:"started_at,omitempty"` + + // status + Status string `json:"status,omitempty"` + + // trigger params + TriggerParams *V0PipelineShowTriggerParamsResponseModel `json:"trigger_params,omitempty"` + + // triggered at + TriggeredAt string `json:"triggered_at,omitempty"` + + // triggered by + TriggeredBy string `json:"triggered_by,omitempty"` +} + +// Validate validates this v0 pipeline show response model +func (m *V0PipelineShowResponseModel) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateApp(formats); err != nil { + res = append(res, err) + } + + if err := m.validateAttempts(formats); err != nil { + res = append(res, err) + } + + if err := m.validateStages(formats); err != nil { + res = append(res, err) + } + + if err := m.validateTriggerParams(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0PipelineShowResponseModel) validateApp(formats strfmt.Registry) error { + if swag.IsZero(m.App) { // not required + return nil + } + + if m.App != nil { + if err := m.App.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("app") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("app") + } + return err + } + } + + return nil +} + +func (m *V0PipelineShowResponseModel) validateAttempts(formats strfmt.Registry) error { + if swag.IsZero(m.Attempts) { // not required + return nil + } + + for i := 0; i < len(m.Attempts); i++ { + if swag.IsZero(m.Attempts[i]) { // not required + continue + } + + if m.Attempts[i] != nil { + if err := m.Attempts[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("attempts" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("attempts" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *V0PipelineShowResponseModel) validateStages(formats strfmt.Registry) error { + if swag.IsZero(m.Stages) { // not required + return nil + } + + for i := 0; i < len(m.Stages); i++ { + if swag.IsZero(m.Stages[i]) { // not required + continue + } + + if m.Stages[i] != nil { + if err := m.Stages[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("stages" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("stages" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *V0PipelineShowResponseModel) validateTriggerParams(formats strfmt.Registry) error { + if swag.IsZero(m.TriggerParams) { // not required + return nil + } + + if m.TriggerParams != nil { + if err := m.TriggerParams.Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("trigger_params") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("trigger_params") + } + return err + } + } + + return nil +} + +// ContextValidate validate this v0 pipeline show response model based on the context it is used +func (m *V0PipelineShowResponseModel) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateApp(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateAttempts(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateStages(ctx, formats); err != nil { + res = append(res, err) + } + + if err := m.contextValidateTriggerParams(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0PipelineShowResponseModel) contextValidateApp(ctx context.Context, formats strfmt.Registry) error { + + if m.App != nil { + if err := m.App.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("app") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("app") + } + return err + } + } + + return nil +} + +func (m *V0PipelineShowResponseModel) contextValidateAttempts(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Attempts); i++ { + + if m.Attempts[i] != nil { + if err := m.Attempts[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("attempts" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("attempts" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *V0PipelineShowResponseModel) contextValidateStages(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Stages); i++ { + + if m.Stages[i] != nil { + if err := m.Stages[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("stages" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("stages" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +func (m *V0PipelineShowResponseModel) contextValidateTriggerParams(ctx context.Context, formats strfmt.Registry) error { + + if m.TriggerParams != nil { + if err := m.TriggerParams.ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("trigger_params") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("trigger_params") + } + return err + } + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V0PipelineShowResponseModel) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0PipelineShowResponseModel) UnmarshalBinary(b []byte) error { + var res V0PipelineShowResponseModel + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_pipeline_show_stage_response_model.go b/go/models/v0_pipeline_show_stage_response_model.go new file mode 100644 index 0000000..ef17a77 --- /dev/null +++ b/go/models/v0_pipeline_show_stage_response_model.go @@ -0,0 +1,122 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0PipelineShowStageResponseModel v0 pipeline show stage response model +// +// swagger:model v0.PipelineShowStageResponseModel +type V0PipelineShowStageResponseModel struct { + + // id + ID string `json:"id,omitempty"` + + // name + Name string `json:"name,omitempty"` + + // workflows + Workflows []*V0PipelineShowWorkflowResponseModel `json:"workflows"` +} + +// Validate validates this v0 pipeline show stage response model +func (m *V0PipelineShowStageResponseModel) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateWorkflows(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0PipelineShowStageResponseModel) validateWorkflows(formats strfmt.Registry) error { + if swag.IsZero(m.Workflows) { // not required + return nil + } + + for i := 0; i < len(m.Workflows); i++ { + if swag.IsZero(m.Workflows[i]) { // not required + continue + } + + if m.Workflows[i] != nil { + if err := m.Workflows[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("workflows" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("workflows" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this v0 pipeline show stage response model based on the context it is used +func (m *V0PipelineShowStageResponseModel) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateWorkflows(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0PipelineShowStageResponseModel) contextValidateWorkflows(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Workflows); i++ { + + if m.Workflows[i] != nil { + if err := m.Workflows[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("workflows" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("workflows" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V0PipelineShowStageResponseModel) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0PipelineShowStageResponseModel) UnmarshalBinary(b []byte) error { + var res V0PipelineShowStageResponseModel + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_pipeline_show_trigger_params_response_model.go b/go/models/v0_pipeline_show_trigger_params_response_model.go new file mode 100644 index 0000000..c67b349 --- /dev/null +++ b/go/models/v0_pipeline_show_trigger_params_response_model.go @@ -0,0 +1,155 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + "strconv" + + "github.com/go-openapi/errors" + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0PipelineShowTriggerParamsResponseModel v0 pipeline show trigger params response model +// +// swagger:model v0.PipelineShowTriggerParamsResponseModel +type V0PipelineShowTriggerParamsResponseModel struct { + + // branch + Branch string `json:"branch,omitempty"` + + // branch dest + BranchDest string `json:"branch_dest,omitempty"` + + // branch dest repo owner + BranchDestRepoOwner string `json:"branch_dest_repo_owner,omitempty"` + + // branch repo owner + BranchRepoOwner string `json:"branch_repo_owner,omitempty"` + + // commit hash + CommitHash string `json:"commit_hash,omitempty"` + + // commit message + CommitMessage string `json:"commit_message,omitempty"` + + // commit paths + CommitPaths interface{} `json:"commit_paths,omitempty"` + + // diff url + DiffURL string `json:"diff_url,omitempty"` + + // environments + Environments []*V0PipelineShowEnvironmentsResponseModel `json:"environments"` + + // pull request author + PullRequestAuthor string `json:"pull_request_author,omitempty"` + + // pull request head branch + PullRequestHeadBranch string `json:"pull_request_head_branch,omitempty"` + + // pull request id + PullRequestID string `json:"pull_request_id,omitempty"` + + // pull request repository url + PullRequestRepositoryURL string `json:"pull_request_repository_url,omitempty"` + + // tag + Tag string `json:"tag,omitempty"` +} + +// Validate validates this v0 pipeline show trigger params response model +func (m *V0PipelineShowTriggerParamsResponseModel) Validate(formats strfmt.Registry) error { + var res []error + + if err := m.validateEnvironments(formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0PipelineShowTriggerParamsResponseModel) validateEnvironments(formats strfmt.Registry) error { + if swag.IsZero(m.Environments) { // not required + return nil + } + + for i := 0; i < len(m.Environments); i++ { + if swag.IsZero(m.Environments[i]) { // not required + continue + } + + if m.Environments[i] != nil { + if err := m.Environments[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("environments" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("environments" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// ContextValidate validate this v0 pipeline show trigger params response model based on the context it is used +func (m *V0PipelineShowTriggerParamsResponseModel) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + var res []error + + if err := m.contextValidateEnvironments(ctx, formats); err != nil { + res = append(res, err) + } + + if len(res) > 0 { + return errors.CompositeValidationError(res...) + } + return nil +} + +func (m *V0PipelineShowTriggerParamsResponseModel) contextValidateEnvironments(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.Environments); i++ { + + if m.Environments[i] != nil { + if err := m.Environments[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("environments" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("environments" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + +// MarshalBinary interface implementation +func (m *V0PipelineShowTriggerParamsResponseModel) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0PipelineShowTriggerParamsResponseModel) UnmarshalBinary(b []byte) error { + var res V0PipelineShowTriggerParamsResponseModel + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_pipeline_show_workflow_response_model.go b/go/models/v0_pipeline_show_workflow_response_model.go new file mode 100644 index 0000000..9da49d9 --- /dev/null +++ b/go/models/v0_pipeline_show_workflow_response_model.go @@ -0,0 +1,68 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package models + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "context" + + "github.com/go-openapi/strfmt" + "github.com/go-openapi/swag" +) + +// V0PipelineShowWorkflowResponseModel v0 pipeline show workflow response model +// +// swagger:model v0.PipelineShowWorkflowResponseModel +type V0PipelineShowWorkflowResponseModel struct { + + // credit cost + CreditCost interface{} `json:"credit_cost,omitempty"` + + // external id + ExternalID string `json:"external_id,omitempty"` + + // finished at + FinishedAt string `json:"finished_at,omitempty"` + + // id + ID string `json:"id,omitempty"` + + // name + Name string `json:"name,omitempty"` + + // started at + StartedAt string `json:"started_at,omitempty"` + + // status + Status string `json:"status,omitempty"` +} + +// Validate validates this v0 pipeline show workflow response model +func (m *V0PipelineShowWorkflowResponseModel) Validate(formats strfmt.Registry) error { + return nil +} + +// ContextValidate validates this v0 pipeline show workflow response model based on context it is used +func (m *V0PipelineShowWorkflowResponseModel) ContextValidate(ctx context.Context, formats strfmt.Registry) error { + return nil +} + +// MarshalBinary interface implementation +func (m *V0PipelineShowWorkflowResponseModel) MarshalBinary() ([]byte, error) { + if m == nil { + return nil, nil + } + return swag.WriteJSON(m) +} + +// UnmarshalBinary interface implementation +func (m *V0PipelineShowWorkflowResponseModel) UnmarshalBinary(b []byte) error { + var res V0PipelineShowWorkflowResponseModel + if err := swag.ReadJSON(b, &res); err != nil { + return err + } + *m = res + return nil +} diff --git a/go/models/v0_plan_data_model.go b/go/models/v0_plan_data_model.go index b30c3a1..97c5ce2 100644 --- a/go/models/v0_plan_data_model.go +++ b/go/models/v0_plan_data_model.go @@ -31,7 +31,7 @@ type V0PlanDataModel struct { Name string `json:"name,omitempty"` // price - Price *NullsInt64 `json:"price,omitempty"` + Price *GithubComMarkbatesPopNullsInt64 `json:"price,omitempty"` } // Validate validates this v0 plan data model @@ -57,6 +57,8 @@ func (m *V0PlanDataModel) validatePrice(formats strfmt.Registry) error { if err := m.Price.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("price") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("price") } return err } @@ -85,6 +87,8 @@ func (m *V0PlanDataModel) contextValidatePrice(ctx context.Context, formats strf if err := m.Price.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("price") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("price") } return err } diff --git a/go/models/v0_project_file_storage_list_response_model.go b/go/models/v0_project_file_storage_list_response_model.go index cd2f509..b6fa712 100644 --- a/go/models/v0_project_file_storage_list_response_model.go +++ b/go/models/v0_project_file_storage_list_response_model.go @@ -58,6 +58,8 @@ func (m *V0ProjectFileStorageListResponseModel) validateData(formats strfmt.Regi if err := m.Data[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -77,6 +79,8 @@ func (m *V0ProjectFileStorageListResponseModel) validatePaging(formats strfmt.Re if err := m.Paging.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") } return err } @@ -111,6 +115,8 @@ func (m *V0ProjectFileStorageListResponseModel) contextValidateData(ctx context. if err := m.Data[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -127,6 +133,8 @@ func (m *V0ProjectFileStorageListResponseModel) contextValidatePaging(ctx contex if err := m.Paging.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") } return err } diff --git a/go/models/v0_project_file_storage_response_model.go b/go/models/v0_project_file_storage_response_model.go index ad61d3b..e130649 100644 --- a/go/models/v0_project_file_storage_response_model.go +++ b/go/models/v0_project_file_storage_response_model.go @@ -45,6 +45,8 @@ func (m *V0ProjectFileStorageResponseModel) validateData(formats strfmt.Registry if err := m.Data.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } @@ -73,6 +75,8 @@ func (m *V0ProjectFileStorageResponseModel) contextValidateData(ctx context.Cont if err := m.Data.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } diff --git a/go/models/v0_provision_profile_list_response_model.go b/go/models/v0_provision_profile_list_response_model.go index 3b42df1..0f00778 100644 --- a/go/models/v0_provision_profile_list_response_model.go +++ b/go/models/v0_provision_profile_list_response_model.go @@ -58,6 +58,8 @@ func (m *V0ProvisionProfileListResponseModel) validateData(formats strfmt.Regist if err := m.Data[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -77,6 +79,8 @@ func (m *V0ProvisionProfileListResponseModel) validatePaging(formats strfmt.Regi if err := m.Paging.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") } return err } @@ -111,6 +115,8 @@ func (m *V0ProvisionProfileListResponseModel) contextValidateData(ctx context.Co if err := m.Data[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -127,6 +133,8 @@ func (m *V0ProvisionProfileListResponseModel) contextValidatePaging(ctx context. if err := m.Paging.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("paging") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("paging") } return err } diff --git a/go/models/v0_provision_profile_response_model.go b/go/models/v0_provision_profile_response_model.go index fcb16d8..331f429 100644 --- a/go/models/v0_provision_profile_response_model.go +++ b/go/models/v0_provision_profile_response_model.go @@ -45,6 +45,8 @@ func (m *V0ProvisionProfileResponseModel) validateData(formats strfmt.Registry) if err := m.Data.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } @@ -73,6 +75,8 @@ func (m *V0ProvisionProfileResponseModel) contextValidateData(ctx context.Contex if err := m.Data.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } diff --git a/go/models/v0_test_device_list_response_model.go b/go/models/v0_test_device_list_response_model.go index cdfd0cf..ffcb7ad 100644 --- a/go/models/v0_test_device_list_response_model.go +++ b/go/models/v0_test_device_list_response_model.go @@ -51,6 +51,8 @@ func (m *V0TestDeviceListResponseModel) validateData(formats strfmt.Registry) er if err := m.Data[i].Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } @@ -83,6 +85,8 @@ func (m *V0TestDeviceListResponseModel) contextValidateData(ctx context.Context, if err := m.Data[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data" + "." + strconv.Itoa(i)) } return err } diff --git a/go/models/v0_user_plan_data_model.go b/go/models/v0_user_plan_data_model.go index f755af0..e5a2900 100644 --- a/go/models/v0_user_plan_data_model.go +++ b/go/models/v0_user_plan_data_model.go @@ -55,6 +55,8 @@ func (m *V0UserPlanDataModel) validateCurrentPlan(formats strfmt.Registry) error if err := m.CurrentPlan.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("current_plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("current_plan") } return err } @@ -72,6 +74,8 @@ func (m *V0UserPlanDataModel) validatePendingPlan(formats strfmt.Registry) error if err := m.PendingPlan.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pending_plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pending_plan") } return err } @@ -104,6 +108,8 @@ func (m *V0UserPlanDataModel) contextValidateCurrentPlan(ctx context.Context, fo if err := m.CurrentPlan.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("current_plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("current_plan") } return err } @@ -118,6 +124,8 @@ func (m *V0UserPlanDataModel) contextValidatePendingPlan(ctx context.Context, fo if err := m.PendingPlan.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pending_plan") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("pending_plan") } return err } diff --git a/go/models/v0_user_plan_resp_model.go b/go/models/v0_user_plan_resp_model.go index aba9355..f2e208a 100644 --- a/go/models/v0_user_plan_resp_model.go +++ b/go/models/v0_user_plan_resp_model.go @@ -45,6 +45,8 @@ func (m *V0UserPlanRespModel) validateData(formats strfmt.Registry) error { if err := m.Data.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } @@ -73,6 +75,8 @@ func (m *V0UserPlanRespModel) contextValidateData(ctx context.Context, formats s if err := m.Data.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } diff --git a/go/models/v0_user_profile_resp_model.go b/go/models/v0_user_profile_resp_model.go index d71dafd..af54f02 100644 --- a/go/models/v0_user_profile_resp_model.go +++ b/go/models/v0_user_profile_resp_model.go @@ -45,6 +45,8 @@ func (m *V0UserProfileRespModel) validateData(formats strfmt.Registry) error { if err := m.Data.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } @@ -73,6 +75,8 @@ func (m *V0UserProfileRespModel) contextValidateData(ctx context.Context, format if err := m.Data.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } diff --git a/go/models/v0_webhook_delivery_item_response_model.go b/go/models/v0_webhook_delivery_item_response_model.go index d9885bf..d8d3938 100644 --- a/go/models/v0_webhook_delivery_item_response_model.go +++ b/go/models/v0_webhook_delivery_item_response_model.go @@ -31,16 +31,16 @@ type V0WebhookDeliveryItemResponseModel struct { RequestURL string `json:"request_url,omitempty"` // response body - ResponseBody *NullsString `json:"response_body,omitempty"` + ResponseBody *GithubComMarkbatesPopNullsString `json:"response_body,omitempty"` // response headers - ResponseHeaders *NullsString `json:"response_headers,omitempty"` + ResponseHeaders *GithubComMarkbatesPopNullsString `json:"response_headers,omitempty"` // response http status - ResponseHTTPStatus *NullsInt64 `json:"response_http_status,omitempty"` + ResponseHTTPStatus *GithubComMarkbatesPopNullsInt64 `json:"response_http_status,omitempty"` // response seconds - ResponseSeconds *NullsInt64 `json:"response_seconds,omitempty"` + ResponseSeconds *GithubComMarkbatesPopNullsInt64 `json:"response_seconds,omitempty"` // slug Slug string `json:"slug,omitempty"` @@ -84,6 +84,8 @@ func (m *V0WebhookDeliveryItemResponseModel) validateResponseBody(formats strfmt if err := m.ResponseBody.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("response_body") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("response_body") } return err } @@ -101,6 +103,8 @@ func (m *V0WebhookDeliveryItemResponseModel) validateResponseHeaders(formats str if err := m.ResponseHeaders.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("response_headers") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("response_headers") } return err } @@ -118,6 +122,8 @@ func (m *V0WebhookDeliveryItemResponseModel) validateResponseHTTPStatus(formats if err := m.ResponseHTTPStatus.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("response_http_status") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("response_http_status") } return err } @@ -135,6 +141,8 @@ func (m *V0WebhookDeliveryItemResponseModel) validateResponseSeconds(formats str if err := m.ResponseSeconds.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("response_seconds") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("response_seconds") } return err } @@ -175,6 +183,8 @@ func (m *V0WebhookDeliveryItemResponseModel) contextValidateResponseBody(ctx con if err := m.ResponseBody.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("response_body") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("response_body") } return err } @@ -189,6 +199,8 @@ func (m *V0WebhookDeliveryItemResponseModel) contextValidateResponseHeaders(ctx if err := m.ResponseHeaders.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("response_headers") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("response_headers") } return err } @@ -203,6 +215,8 @@ func (m *V0WebhookDeliveryItemResponseModel) contextValidateResponseHTTPStatus(c if err := m.ResponseHTTPStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("response_http_status") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("response_http_status") } return err } @@ -217,6 +231,8 @@ func (m *V0WebhookDeliveryItemResponseModel) contextValidateResponseSeconds(ctx if err := m.ResponseSeconds.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("response_seconds") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("response_seconds") } return err } diff --git a/go/models/v0_webhook_delivery_item_show_response_model.go b/go/models/v0_webhook_delivery_item_show_response_model.go index d70c41e..c2f3f29 100644 --- a/go/models/v0_webhook_delivery_item_show_response_model.go +++ b/go/models/v0_webhook_delivery_item_show_response_model.go @@ -45,6 +45,8 @@ func (m *V0WebhookDeliveryItemShowResponseModel) validateData(formats strfmt.Reg if err := m.Data.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } @@ -73,6 +75,8 @@ func (m *V0WebhookDeliveryItemShowResponseModel) contextValidateData(ctx context if err := m.Data.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data") + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("data") } return err } diff --git a/staffbase.patch b/staffbase.patch index 398d466..c4632d9 100644 --- a/staffbase.patch +++ b/staffbase.patch @@ -1,6 +1,6 @@ ---- swagger.json 2021-03-10 14:13:25.000000000 +0100 -+++ swagger_patched.json 2021-04-13 13:34:57.023038661 +0200 -@@ -1683,7 +1683,7 @@ +--- swagger.json 2022-10-27 11:55:24.000000000 +0200 ++++ swagger_patched.json 2022-11-02 13:40:17.346935458 +0100 +@@ -1969,7 +1969,7 @@ } ], "responses": { @@ -9,39 +9,30 @@ "description": "OK", "schema": { "$ref": "#/definitions/v0.BuildTriggerRespModel" -@@ -5175,19 +5175,19 @@ - "$ref": "#/definitions/v0.OwnerAccountResponseModel" - }, - "project_type": { -- "$ref": "#/definitions/nulls.String" -+ "type": "string" - }, - "provider": { -- "$ref": "#/definitions/nulls.String" -+ "type": "string" - }, - "repo_owner": { -- "$ref": "#/definitions/nulls.String" -+ "type": "string" - }, - "repo_slug": { -- "$ref": "#/definitions/nulls.String" -+ "type": "string" - }, - "repo_url": { -- "$ref": "#/definitions/nulls.String" -+ "type": "string" - }, - "slug": { - "type": "string" -@@ -5242,6 +5242,10 @@ - "type": { - "description": "It has to be provided by legacy reasons and has to have the `git` value", - "type": "string" -+ }, -+ "organization_slug": { -+ "description": "Property added by Staffbase as this is missing within open-api spec. This can be removed when bitrise has fixed it", -+ "type": "string" - } - } - }, +@@ -4821,8 +4821,8 @@ + } + ], + "responses": { +- "204": { +- "description": "No Content" ++ "201": { ++ "description": "Created" + }, + "400": { + "description": "Bad Request", +@@ -5309,6 +5309,15 @@ + ], + "summary": "Removes an active addon token of the user", + "operationId": "user-addon-tokens-delete", ++ "parameters": [ ++ { ++ "type": "string", ++ "description": "Addon ID", ++ "name": "addon-id", ++ "in": "path", ++ "required": true ++ } ++ ], + "deprecated": true, + "responses": { + "200": { diff --git a/swagger.json b/swagger.json index ef2d188..b356c6a 100644 --- a/swagger.json +++ b/swagger.json @@ -21,11 +21,6 @@ "paths": { "/addons": { "get": { - "security": [ - { - "PersonalAccessToken": [] - } - ], "description": "List all the available Bitrise addons", "produces": [ "application/json" @@ -71,11 +66,6 @@ }, "/addons/{addon-id}": { "get": { - "security": [ - { - "PersonalAccessToken": [] - } - ], "description": "Show details of a specific Bitrise addon", "produces": [ "application/json" @@ -167,6 +157,18 @@ "description": "Max number of elements per page (default: 50)", "name": "limit", "in": "query" + }, + { + "type": "string", + "description": "The title of the app", + "name": "title", + "in": "query" + }, + { + "type": "string", + "description": "The project type of the app (eg. 'ios', 'android')", + "name": "project_type", + "in": "query" } ], "responses": { @@ -327,6 +329,75 @@ } } } + }, + "patch": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "Updates an app by slug. Only updates the fields specified in the body.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "application" + ], + "summary": "Updates an app", + "operationId": "app-update", + "parameters": [ + { + "type": "string", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + }, + { + "description": "App update params. All fields are optional, omit the fields you don't wish to update.", + "name": "app", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v0.AppUpdateParams" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.AppUpdateRespModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } } }, "/apps/{app-slug}/addons": { @@ -535,14 +606,14 @@ } } }, - "/apps/{app-slug}/avatar-candidates": { + "/apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}": { "post": { "security": [ { "PersonalAccessToken": [] } ], - "description": "Add new avatar candidates to a specific app", + "description": "This is the last step of uploading an android keystore file to Bitrise. Confirm the android keystore file upload and view the file on the Code Signing tab of a specific app. Read more in our [Confirming the upload](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#confirming-the-file-upload) guide.", "consumes": [ "application/json" ], @@ -550,10 +621,10 @@ "application/json" ], "tags": [ - "avatar-candidate" + "android-keystore-file" ], - "summary": "Create avatar candidates", - "operationId": "avatar-candidate-create", + "summary": "Confirm an android keystore file upload", + "operationId": "android-keystore-file-confirm", "parameters": [ { "type": "string", @@ -563,26 +634,18 @@ "required": true }, { - "description": "Avatar candidate parameters", - "name": "avatar-candidate", - "in": "body", - "required": true, - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/v0.AvatarCandidateCreateParams" - } - } + "type": "string", + "description": "Android keystore file slug", + "name": "android-keystore-file-slug", + "in": "path", + "required": true } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/v0.AvatarCandidateCreateResponseItem" - } + "$ref": "#/definitions/v0.ProjectFileStorageResponseModel" } }, "400": { @@ -610,27 +673,22 @@ } } } - } - }, - "/apps/{app-slug}/avatar-candidates/{avatar-slug}": { - "patch": { + }, + "delete": { "security": [ { "PersonalAccessToken": [] } ], - "description": "Promotes an avatar candidate for an app", - "consumes": [ - "application/json" - ], + "description": "Delete an app's android keystore file. You can fetch an app's android keystore file slug if you first list all the uploaded files with the [GET /apps/{app-slug}/android-keystore-files](https://api-docs.bitrise.io/#/android-keystore-file/android-keystore-file-list) endpoint. Read more in our [Deleting a file](https://devcenter.bitrise.io/api/managing-android-keystore-files.html) guide.", "produces": [ "application/json" ], "tags": [ - "avatar-candidate" + "android-keystore-file" ], - "summary": "Promote an avatar candidate", - "operationId": "avatar-candidate-promote", + "summary": "Delete an android keystore file", + "operationId": "android-keystore-file-delete", "parameters": [ { "type": "string", @@ -641,26 +699,17 @@ }, { "type": "string", - "description": "Avatar candidate slug", - "name": "avatar-slug", + "description": "Android keystore file slug", + "name": "android-keystore-file-slug", "in": "path", "required": true - }, - { - "description": "Avatar promote parameters", - "name": "avatar-promote-params", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v0.AvatarPromoteParams" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.AvatarPromoteResponseModel" + "$ref": "#/definitions/v0.ProjectFileStorageResponseModel" } }, "400": { @@ -690,7 +739,7 @@ } } }, - "/apps/{app-slug}/bitrise.yml": { + "/apps/{app-slug}/archived-builds": { "get": { "security": [ { @@ -700,15 +749,15 @@ "AddonAuthToken": [] } ], - "description": "Get the full `bitrise.yml` configuration of an application, by providing the app slug. It returns the current `bitrise.yml` that is stored on bitrise.io in full, including the trigger map, the different workflows and the Steps.", + "description": "List the first 1000 archived builds of a specified Bitrise app. Set parameters to filter builds:", "produces": [ - "text/plain" + "application/json" ], "tags": [ - "application" + "builds" ], - "summary": "Get bitrise.yml of a specific app", - "operationId": "app-config-datastore-show", + "summary": "List 1000 archived builds of an app", + "operationId": "archived-builds-list", "parameters": [ { "type": "string", @@ -716,13 +765,27 @@ "name": "app-slug", "in": "path", "required": true + }, + { + "type": "integer", + "description": "Listed builds should only be the ones which ran after the given date (Unix Timestamp)", + "name": "after", + "in": "query", + "required": true + }, + { + "type": "integer", + "description": "Listed builds should only be the ones which ran before the given date (Unix Timestamp)", + "name": "before", + "in": "query", + "required": true } ], "responses": { "200": { - "description": "{the bitrise.yml in yml format}", + "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/v0.ArchivedBuildListResponseModel" } }, "400": { @@ -750,14 +813,16 @@ } } } - }, + } + }, + "/apps/{app-slug}/avatar-candidates": { "post": { "security": [ { "PersonalAccessToken": [] } ], - "description": "Upload a new bitrise.yml for your application.", + "description": "Add new avatar candidates to a specific app", "consumes": [ "application/json" ], @@ -765,10 +830,10 @@ "application/json" ], "tags": [ - "app-setup" + "avatar-candidate" ], - "summary": "Upload a new bitrise.yml for your application.", - "operationId": "app-config-create", + "summary": "Create avatar candidates", + "operationId": "avatar-candidate-create", "parameters": [ { "type": "string", @@ -778,20 +843,26 @@ "required": true }, { - "description": "App config parameters", - "name": "app-config", + "description": "Avatar candidate parameters", + "name": "avatar-candidate", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v0.AppConfigRequestParam" + "type": "array", + "items": { + "$ref": "#/definitions/v0.AvatarCandidateCreateParams" + } } } ], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "schema": { - "$ref": "#/definitions/v0.AppConfigRespModel" + "type": "array", + "items": { + "$ref": "#/definitions/v0.AvatarCandidateCreateResponseItem" + } } }, "400": { @@ -815,31 +886,31 @@ "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/v0.ProxyErrorRespModel" + "$ref": "#/definitions/service.StandardErrorRespModel" } } } } }, - "/apps/{app-slug}/branches": { - "get": { + "/apps/{app-slug}/avatar-candidates/{avatar-slug}": { + "patch": { "security": [ { "PersonalAccessToken": [] - }, - { - "AddonAuthToken": [] } ], - "description": "Lists only those branches of a specified Bitrise app that have existing builds.", + "description": "Promotes an avatar candidate for an app", + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "application" + "avatar-candidate" ], - "summary": "List the branches with existing builds of an app's repository", - "operationId": "branch-list", + "summary": "Promote an avatar candidate", + "operationId": "avatar-candidate-promote", "parameters": [ { "type": "string", @@ -847,13 +918,29 @@ "name": "app-slug", "in": "path", "required": true + }, + { + "type": "string", + "description": "Avatar candidate slug", + "name": "avatar-slug", + "in": "path", + "required": true + }, + { + "description": "Avatar promote parameters", + "name": "avatar-promote-params", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v0.AvatarPromoteParams" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.BranchListResponseModel" + "$ref": "#/definitions/v0.AvatarPromoteResponseModel" } }, "400": { @@ -883,7 +970,7 @@ } } }, - "/apps/{app-slug}/build-certificates": { + "/apps/{app-slug}/bitrise.yml": { "get": { "security": [ { @@ -893,15 +980,15 @@ "AddonAuthToken": [] } ], - "description": "List all the build certificates that have been uploaded to a specific app. Read more in our [Listing the uploaded iOS code signing files of an app](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#listing-the-uploaded-ios-code-signing-files-of-an-app) guide.", + "description": "Get the full `bitrise.yml` configuration of an application, by providing the app slug. It returns the current `bitrise.yml` that is stored on bitrise.io in full, including the trigger map, the different workflows and the Steps.", "produces": [ - "application/json" + "text/plain" ], "tags": [ - "build-certificate" + "application" ], - "summary": "Get a list of the build certificates", - "operationId": "build-certificate-list", + "summary": "Get bitrise.yml of a specific app", + "operationId": "app-config-datastore-show", "parameters": [ { "type": "string", @@ -909,26 +996,13 @@ "name": "app-slug", "in": "path", "required": true - }, - { - "type": "string", - "description": "Slug of the first build certificate in the response", - "name": "next", - "in": "query" - }, - { - "maximum": 50, - "type": "integer", - "description": "Max number of build certificates per page is 50.", - "name": "limit", - "in": "query" } ], "responses": { "200": { - "description": "OK", + "description": "{the bitrise.yml in yml format}", "schema": { - "$ref": "#/definitions/v0.BuildCertificateListResponseModel" + "type": "string" } }, "400": { @@ -963,7 +1037,213 @@ "PersonalAccessToken": [] } ], - "description": "Create a temporary pre-signed upload URL for the build certificate and upload the file to AWS with a simple `curl` request. To complete the uploading process and view your files on the Code Signing tab of your app, continue with the [POST /apps/{app-slug}/build-certificates/{build-certificate-slug}/uploaded](https://api-docs.bitrise.io/#/build-certificate/build-certificate-confirm) endpoint. Read more in our [Creating and uploading an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#creating--uploading-an-ios-code-signing-file) guide.", + "description": "Upload a new bitrise.yml for your application.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "app-setup" + ], + "summary": "Upload a new bitrise.yml for your application.", + "operationId": "app-config-create", + "parameters": [ + { + "type": "string", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + }, + { + "description": "App config parameters", + "name": "app-config", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v0.AppConfigRequestParam" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.AppConfigRespModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/v0.ProxyErrorRespModel" + } + } + } + } + }, + "/apps/{app-slug}/branches": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + }, + { + "AddonAuthToken": [] + } + ], + "description": "Lists only those branches of a specified Bitrise app that have existing builds.", + "produces": [ + "application/json" + ], + "tags": [ + "application" + ], + "summary": "List the branches with existing builds of an app's repository", + "operationId": "branch-list", + "parameters": [ + { + "type": "string", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.BranchListResponseModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/apps/{app-slug}/build-certificates": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + }, + { + "AddonAuthToken": [] + } + ], + "description": "List all the build certificates that have been uploaded to a specific app. Read more in our [Listing the uploaded iOS code signing files of an app](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#listing-the-uploaded-ios-code-signing-files-of-an-app) guide.", + "produces": [ + "application/json" + ], + "tags": [ + "build-certificate" + ], + "summary": "Get a list of the build certificates", + "operationId": "build-certificate-list", + "parameters": [ + { + "type": "string", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "Slug of the first build certificate in the response", + "name": "next", + "in": "query" + }, + { + "maximum": 50, + "type": "integer", + "description": "Max number of build certificates per page is 50.", + "name": "limit", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.BuildCertificateListResponseModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + }, + "post": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "Create a temporary pre-signed upload URL for the build certificate and upload the file to AWS with a simple `curl` request. To complete the uploading process and view your files on the Code Signing tab of your app, continue with the [POST /apps/{app-slug}/build-certificates/{build-certificate-slug}/uploaded](https://api-docs.bitrise.io/#/build-certificate/build-certificate-confirm) endpoint. Read more in our [Creating and uploading an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#creating--uploading-an-ios-code-signing-file) guide.", "consumes": [ "application/json" ], @@ -1596,6 +1876,12 @@ "name": "status", "in": "query" }, + { + "type": "boolean", + "description": "Whether the builds are part of a pipeline or not", + "name": "is_pipeline_build", + "in": "query" + }, { "type": "string", "description": "Slug of the first build in the response", @@ -1652,7 +1938,7 @@ "AddonAuthToken": [] } ], - "description": "Trigger a new build. Specify an app slug and at least one parameter out of three: a git tag or git commit hash, a branch, or a workflow ID. You can also set specific parameters for Pull Request builds and define additional environment variables for your build. [Check out our detailed guide](https://devcenter.bitrise.io/api/build-trigger/).", + "description": "Trigger a new build/pipeline. Specify an app slug and at least one parameter out of three: a git tag or git commit hash, a branch, or a workflow/pipeline ID. You can also set specific parameters for Pull Request builds/pipelines and define additional environment variables for your build/pipeline. [Check out our detailed guide](https://devcenter.bitrise.io/api/build-trigger/).", "consumes": [ "application/json" ], @@ -1662,7 +1948,7 @@ "tags": [ "builds" ], - "summary": "Trigger a new build", + "summary": "Trigger a new build/pipeline", "operationId": "build-trigger", "parameters": [ { @@ -1882,7 +2168,7 @@ "AddonAuthToken": [] } ], - "description": "List all build artifacts that have been generated for an app's build. You can use the created build artifact slugs from the response output to retrieve data of a specific build artifact with the [GET/apps/](https://api-docs.bitrise.io/#/build-artifact/artifact-show) endpoint or update a build artifact with the [PATCH/apps](https://api-docs.bitrise.io/#/build-artifact/artifact-update) endpoint.", + "description": "List all build artifacts that have been generated for an app's build. This endpoint can retrieve artifacts from the archive as well. You can use the created build artifact slugs from the response output to retrieve data of a specific build artifact with the [GET/apps/](https://api-docs.bitrise.io/#/build-artifact/artifact-show) endpoint or update a build artifact with the [PATCH/apps](https://api-docs.bitrise.io/#/build-artifact/artifact-update) endpoint.", "produces": [ "application/json" ], @@ -1964,7 +2250,7 @@ "AddonAuthToken": [] } ], - "description": "Retrieve data of a specific build artifact. The response output contains a time-limited download url (expires in 10 minutes) and a public install page URL. You can view the build artifact with both URLs, but the public install page url will not work unless you [enable it](https://devcenter.bitrise.io/tutorials/deploy/bitrise-app-deployment/#enabling-public-page-for-the-app).", + "description": "Retrieve data of a specific build artifact. The endpoint can retrieve archived artifacts as well. The response output contains a time-limited download url (expires in 10 minutes) and a public install-page URL. You can view the build artifact with both URLs, but the public install-page url will not work unless you [enable it](https://devcenter.bitrise.io/tutorials/deploy/bitrise-app-deployment/#enabling-public-page-for-the-app).", "produces": [ "application/json" ], @@ -2269,7 +2555,7 @@ "AddonAuthToken": [] } ], - "description": "Get the build log of a specified build of a Bitrise app. You can get the build slug either by calling the [/builds](https://api-docs.bitrise.io/#/builds/build-list) endpoint or by clicking on the build on bitrise.io and copying the slug from the URL.", + "description": "Get the build log of a specified build of a Bitrise app. You can get the build slug either by calling the [/builds](https://api-docs.bitrise.io/#/builds/build-list) endpoint or by clicking on the build on bitrise.io and copying the slug from the URL. Preview of the log is returned in `log_chunks` field in JSON format. You can download the full raw log in txt by using the signed url returned in `expiring_raw_log_url`. Be aware that this url is expiring in 10 minutes!", "produces": [ "application/json" ], @@ -2295,12 +2581,6 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v0.BuildLogInfoResponseModel" - } - }, "400": { "description": "Bad Request", "schema": { @@ -2328,25 +2608,22 @@ } } }, - "/apps/{app-slug}/finish": { - "post": { + "/apps/{app-slug}/cache-items": { + "get": { "security": [ { "PersonalAccessToken": [] } ], - "description": "Save the application after registering it on Bitrise and registering an SSH key (and, optionally, adding a webhook). With this endpoint you can define the initial configuration, define application-level environment variables, determine the project type, and set an Organization to be the owner of the app. Read more about the app registration process in our [detailed guide](https://devcenter.bitrise.io/api/adding-and-managing-apps/#adding-a-new-app).", - "consumes": [ - "application/json" - ], + "description": "List all the available cache items that the builds of the app created via the save-cache step.", "produces": [ "application/json" ], "tags": [ - "app-setup" + "key-value-cache" ], - "summary": "Save the application at the end of the app registration process", - "operationId": "app-finish", + "summary": "List the key-value cache items belonging to an app", + "operationId": "cache-list", "parameters": [ { "type": "string", @@ -2356,20 +2633,17 @@ "required": true }, { - "description": "App finish parameters", - "name": "app", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v0.AppFinishParams" - } + "type": "integer", + "description": "Max number of elements per page (default: 100)", + "name": "limit", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.AppFinishRespModel" + "$ref": "#/definitions/v0.CacheItemListResponseModel" } }, "400": { @@ -2397,27 +2671,22 @@ } } } - } - }, - "/apps/{app-slug}/generic-project-files": { - "get": { + }, + "delete": { "security": [ { "PersonalAccessToken": [] - }, - { - "AddonAuthToken": [] } ], - "description": "List all the generic project files that have been uploaded to a specific app. Read more in our [Listing the uploaded files of an app](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#listing-the-uploaded-files-of-an-app) guide.", + "description": "Deletes all key-value cache items created by the builds of an app. Deleted cache items are no longer accessible and cannot be restored.", "produces": [ "application/json" ], "tags": [ - "generic-project-file" + "key-value-cache" ], - "summary": "Get a list of the generic project files", - "operationId": "generic-project-file-list", + "summary": "Deletes all key-value cache items belonging to an app", + "operationId": "cache-item-delete-all", "parameters": [ { "type": "string", @@ -2425,10 +2694,269 @@ "name": "app-slug", "in": "path", "required": true + } + ], + "responses": { + "200": { + "description": "OK" }, - { - "type": "string", - "description": "Slug of the first generic project file in the response", + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/apps/{app-slug}/cache-items/{cache-item-id}": { + "delete": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "Deletes a key-value cache item. Deleted cache items are no longer accessible and cannot be restored.", + "produces": [ + "application/json" + ], + "tags": [ + "key-value-cache" + ], + "summary": "Deletes a key-value cache item", + "operationId": "cache-item-delete", + "parameters": [ + { + "type": "string", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "The ID of the cache item to be deleted", + "name": "cache-item-id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK" + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/apps/{app-slug}/cache-items/{cache-item-id}/download": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "Gets a download URL of a cache item.", + "produces": [ + "application/json" + ], + "tags": [ + "key-value-cache" + ], + "summary": "Gets the download URL of a key-value cache item", + "operationId": "cache-item-download", + "parameters": [ + { + "type": "string", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "The ID of the cache item to be downloaded", + "name": "cache-item-id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.CacheItemDownloadResponseModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/apps/{app-slug}/finish": { + "post": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "Save the application after registering it on Bitrise and registering an SSH key (and, optionally, adding a webhook). With this endpoint you can define the initial configuration, define application-level environment variables, determine the project type, and set an Organization to be the owner of the app. Read more about the app registration process in our [detailed guide](https://devcenter.bitrise.io/api/adding-and-managing-apps/#adding-a-new-app).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "app-setup" + ], + "summary": "Save the application at the end of the app registration process", + "operationId": "app-finish", + "parameters": [ + { + "type": "string", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + }, + { + "description": "App finish parameters", + "name": "app", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v0.AppFinishParams" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.AppFinishRespModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/apps/{app-slug}/generic-project-files": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + }, + { + "AddonAuthToken": [] + } + ], + "description": "List all the generic project files that have been uploaded to a specific app. Read more in our [Listing the uploaded files of an app](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#listing-the-uploaded-files-of-an-app) guide.", + "produces": [ + "application/json" + ], + "tags": [ + "generic-project-file" + ], + "summary": "Get a list of the generic project files", + "operationId": "generic-project-file-list", + "parameters": [ + { + "type": "string", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "Slug of the first generic project file in the response", "name": "next", "in": "query" }, @@ -3302,7 +3830,7 @@ } } }, - "/apps/{app-slug}/provisioning-profiles": { + "/apps/{app-slug}/pipelines": { "get": { "security": [ { @@ -3312,15 +3840,15 @@ "AddonAuthToken": [] } ], - "description": "List all the provisioning profiles that have been uploaded to a specific app. Read more in our [Listing the uploaded iOS code signing files of an app](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#listing-the-uploaded-ios-code-signing-files-of-an-app) guide.", + "description": "List all the pipelines and standalone builds of a specified Bitrise app. Set parameters to filter pipelines: for example, you can search for pipelines/standalone builds run with a given workflow name or all pipelines/standalone builds that were triggered by Pull Requests. It returns all the relevant data of the pipelines/standalone builds.", "produces": [ "application/json" ], "tags": [ - "provisioning-profile" + "pipelines" ], - "summary": "Get a list of the provisioning profiles", - "operationId": "provisioning-profile-list", + "summary": "List all pipelines and standalone builds of an app", + "operationId": "pipeline-list", "parameters": [ { "type": "string", @@ -3331,92 +3859,58 @@ }, { "type": "string", - "description": "Slug of the first provisioning profile in the response", - "name": "next", + "description": "The branch which was built", + "name": "branch", "in": "query" }, { - "maximum": 50, - "type": "integer", - "description": "Max number of elements per page (default: 50)", - "name": "limit", + "type": "string", + "description": "The name of the workflow used for the pipeline/standalone build", + "name": "workflow", "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v0.ProvisionProfileListResponseModel" - } }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/service.StandardErrorRespModel" - } + { + "type": "string", + "description": "The commit message of the pipeline/standalone build", + "name": "commit_message", + "in": "query" }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/service.StandardErrorRespModel" - } + { + "type": "string", + "description": "The event that triggered the pipeline/standalone build (push, pull-request, tag)", + "name": "trigger_event_type", + "in": "query" }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/service.StandardErrorRespModel" - } + { + "type": "integer", + "description": "The pipeline/standalone build number", + "name": "build_number", + "in": "query" }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/service.StandardErrorRespModel" - } - } - } - }, - "post": { - "security": [ { - "PersonalAccessToken": [] - } - ], - "description": "Create a temporary pre-signed upload URL (expires in 10 minutes) for the provisioning profile and upload it to AWS with a simple `curl` request. To complete the upload process, continue with the [POST /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-confirm) endpoint. Read more in our [Creating and uploading an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#creating--uploading-an-ios-code-signing-file) guide.", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "provisioning-profile" - ], - "summary": "Create a provisioning profile", - "operationId": "provisioning-profile-create", - "parameters": [ + "type": "string", + "description": "List pipelines/standalone builds run before a given date (RFC3339 time format)", + "name": "next", + "in": "query" + }, { "type": "string", - "description": "App slug", - "name": "app-slug", - "in": "path", - "required": true + "description": "The status of the pipeline/standalone build: initializing, on_hold, running, succeeded, failed, aborted, succeeded_with_abort", + "name": "status", + "in": "query" }, { - "description": "Provisioning profile parameters such as file name and file size", - "name": "provisioning-profile", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v0.ProvisionProfileUploadParams" - } + "type": "integer", + "description": "Max number of elements per page (default: 10)", + "name": "limit", + "in": "query" } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "schema": { - "$ref": "#/definitions/v0.ProvisionProfileResponseModel" + "$ref": "#/definitions/v0.PipelineListResponseModel" } }, "400": { @@ -3446,22 +3940,25 @@ } } }, - "/apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}": { + "/apps/{app-slug}/pipelines/{pipeline-id}": { "get": { "security": [ { "PersonalAccessToken": [] + }, + { + "AddonAuthToken": [] } ], - "description": "Retrieve data of a specific provisioning profile. You can fetch the provisioning profile's slug if you call the [GET /apps/{app-slug}/provisioning-profiles](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-list) endpoint. Read more in our [Getting a specific iOS code signing file's data](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#getting-a-specific-ios-code-signing-files-data) guide.", + "description": "Get the specified pipeline of a given Bitrise app. You need to provide both an app slug and a pipeline id. You can get the pipeline id either by calling the [/pipelines](https://api-docs.bitrise.io/#/pipelines/pipeline-list) endpoint or by clicking on the pipeline on bitrise.io and copying the id from the URL. The endpoint returns all the relevant data of the pipeline.", "produces": [ "application/json" ], "tags": [ - "provisioning-profile" + "pipelines" ], - "summary": "Get a specific provisioning profile", - "operationId": "provisioning-profile-show", + "summary": "Get a pipeline of a given app", + "operationId": "pipeline-show", "parameters": [ { "type": "string", @@ -3472,8 +3969,8 @@ }, { "type": "string", - "description": "Provisioning profile slug", - "name": "provisioning-profile-slug", + "description": "Pipeline id", + "name": "pipeline-id", "in": "path", "required": true } @@ -3482,7 +3979,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.ProvisionProfileResponseModel" + "$ref": "#/definitions/v0.PipelineShowResponseModel" } }, "400": { @@ -3510,22 +4007,27 @@ } } } - }, - "delete": { + } + }, + "/apps/{app-slug}/pipelines/{pipeline-id}/abort": { + "post": { "security": [ { "PersonalAccessToken": [] + }, + { + "AddonAuthToken": [] } ], - "description": "Delete an app's provisioning profile. You can fetch the provisioning profile's slug if you call the [GET /apps/{app-slug}/provisioning-profiles](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-list) endpoint. Read more in our [Deleting an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#deleting-an-ios-code-signing-file) guide.", + "description": "Aborts a pipeline. You need to provide the app slug and the id of the pipeline. You can add an abort reason, choose to skip notifications and make the abort with success state.", "produces": [ "application/json" ], "tags": [ - "provisioning-profile" + "pipelines" ], - "summary": "Delete a provisioning profile", - "operationId": "provisioning-profile-delete", + "summary": "Aborts a pipeline", + "operationId": "pipeline-abort", "parameters": [ { "type": "string", @@ -3536,18 +4038,24 @@ }, { "type": "string", - "description": "Provisioning profile slug", - "name": "provisioning-profile-slug", + "description": "Pipeline id", + "name": "pipeline-id", "in": "path", "required": true + }, + { + "description": "Pipeline abort parameters", + "name": "pipeline-abort-params", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v0.PipelineAbortParams" + } } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v0.ProvisionProfileResponseModel" - } + "description": "OK" }, "400": { "description": "Bad Request", @@ -3574,25 +4082,24 @@ } } } - }, - "patch": { + } + }, + "/apps/{app-slug}/pipelines/{pipeline-id}/rebuild": { + "post": { "security": [ { "PersonalAccessToken": [] } ], - "description": "Update an uploaded provisioning profile's attributes. You can fetch the provisioning profile's slug if you call the [GET /apps/{app-slug}/provisioning-profiles](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-list) endpoint. Read more in our [Updating an uploaded iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#confirming-the-ios-code-signing-file-upload) guide.", - "consumes": [ - "application/json" - ], + "description": "Rebuilds a pipeline. You can rebuild the whole pipeline or only the unsuccessful and subsequent workflows by setting the partial flag to true.", "produces": [ "application/json" ], "tags": [ - "provisioning-profile" + "pipelines" ], - "summary": "Update a provisioning profile", - "operationId": "provisioning-profile-update", + "summary": "Rebuilds a pipeline", + "operationId": "pipeline-rebuild", "parameters": [ { "type": "string", @@ -3603,27 +4110,24 @@ }, { "type": "string", - "description": "Provisioning profile slug", - "name": "provisioning-profile-slug", + "description": "Pipeline id", + "name": "pipeline-id", "in": "path", "required": true }, { - "description": "Provisioning profile parameters", - "name": "provisioning-profile", + "description": "Pipeline rebuild parameters", + "name": "pipeline-rebuild-params", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v0.ProvProfileDocumentUpdateParams" + "$ref": "#/definitions/v0.PipelineRebuildParams" } } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v0.ProvisionProfileResponseModel" - } + "description": "OK" }, "400": { "description": "Bad Request", @@ -3643,6 +4147,12 @@ "$ref": "#/definitions/service.StandardErrorRespModel" } }, + "412": { + "description": "Precondition Failed", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, "500": { "description": "Internal Server Error", "schema": { @@ -3652,25 +4162,25 @@ } } }, - "/apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded": { - "post": { + "/apps/{app-slug}/provisioning-profiles": { + "get": { "security": [ { "PersonalAccessToken": [] + }, + { + "AddonAuthToken": [] } ], - "description": "This is the last step of the upload process. Confirm the provisioning profile upload and view the file on the Code Signing tab of a specific app. Read more in our [Confirming the iOS code signing file upload](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#confirming-the-ios-code-signing-file-upload) guide.", - "consumes": [ - "application/json" - ], + "description": "List all the provisioning profiles that have been uploaded to a specific app. Read more in our [Listing the uploaded iOS code signing files of an app](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#listing-the-uploaded-ios-code-signing-files-of-an-app) guide.", "produces": [ "application/json" ], "tags": [ "provisioning-profile" ], - "summary": "Confirm a provisioning profile upload", - "operationId": "provisioning-profile-confirm", + "summary": "Get a list of the provisioning profiles", + "operationId": "provisioning-profile-list", "parameters": [ { "type": "string", @@ -3681,17 +4191,23 @@ }, { "type": "string", - "description": "Provisioning profile slug", - "name": "provisioning-profile-slug", - "in": "path", - "required": true + "description": "Slug of the first provisioning profile in the response", + "name": "next", + "in": "query" + }, + { + "maximum": 50, + "type": "integer", + "description": "Max number of elements per page (default: 50)", + "name": "limit", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.ProvisionProfileResponseModel" + "$ref": "#/definitions/v0.ProvisionProfileListResponseModel" } }, "400": { @@ -3719,16 +4235,14 @@ } } } - } - }, - "/apps/{app-slug}/register-ssh-key": { + }, "post": { "security": [ { "PersonalAccessToken": [] } ], - "description": "Add an SSH-key to a specific app. After creating an app, you need to register the SSH key so that Bitrise will be able to access and clone your repository during the build process. This requires the app slug of your newly created app.", + "description": "Create a temporary pre-signed upload URL (expires in 10 minutes) for the provisioning profile and upload it to AWS with a simple `curl` request. To complete the upload process, continue with the [POST /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-confirm) endpoint. Read more in our [Creating and uploading an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#creating--uploading-an-ios-code-signing-file) guide.", "consumes": [ "application/json" ], @@ -3736,10 +4250,10 @@ "application/json" ], "tags": [ - "app-setup" + "provisioning-profile" ], - "summary": "Add an SSH-key to a specific app", - "operationId": "ssh-key-create", + "summary": "Create a provisioning profile", + "operationId": "provisioning-profile-create", "parameters": [ { "type": "string", @@ -3749,20 +4263,20 @@ "required": true }, { - "description": "SSH key parameters", - "name": "ssh-key", + "description": "Provisioning profile parameters such as file name and file size", + "name": "provisioning-profile", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v0.SSHKeyUploadParams" + "$ref": "#/definitions/v0.ProvisionProfileUploadParams" } } ], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "schema": { - "$ref": "#/definitions/v0.SSHKeyRespModel" + "$ref": "#/definitions/v0.ProvisionProfileResponseModel" } }, "400": { @@ -3792,25 +4306,22 @@ } } }, - "/apps/{app-slug}/register-webhook": { - "post": { + "/apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}": { + "get": { "security": [ { "PersonalAccessToken": [] } ], - "description": "[Register an incoming webhook](https://devcenter.bitrise.io/api/incoming-and-outgoing-webhooks/#incoming-webhooks) for a specific application. You can do this during the app registration process or at any other time in an app's life. When calling this endpoint, a webhook is registered at your git provider: this is necessary to automatically trigger builds on Bitrise.", - "consumes": [ - "application/json" - ], + "description": "Retrieve data of a specific provisioning profile. You can fetch the provisioning profile's slug if you call the [GET /apps/{app-slug}/provisioning-profiles](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-list) endpoint. Read more in our [Getting a specific iOS code signing file's data](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#getting-a-specific-ios-code-signing-files-data) guide.", "produces": [ "application/json" ], "tags": [ - "app-setup" + "provisioning-profile" ], - "summary": "Register an incoming webhook for a specific application", - "operationId": "app-webhook-create", + "summary": "Get a specific provisioning profile", + "operationId": "provisioning-profile-show", "parameters": [ { "type": "string", @@ -3818,13 +4329,20 @@ "name": "app-slug", "in": "path", "required": true + }, + { + "type": "string", + "description": "Provisioning profile slug", + "name": "provisioning-profile-slug", + "in": "path", + "required": true } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.WebhookRespModel" + "$ref": "#/definitions/v0.ProvisionProfileResponseModel" } }, "400": { @@ -3852,27 +4370,22 @@ } } } - } - }, - "/apps/{app-slug}/test-devices": { - "get": { + }, + "delete": { "security": [ { "PersonalAccessToken": [] - }, - { - "AddonAuthToken": [] } ], - "description": "List registered test devices of all members of a specified Bitrise app", + "description": "Delete an app's provisioning profile. You can fetch the provisioning profile's slug if you call the [GET /apps/{app-slug}/provisioning-profiles](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-list) endpoint. Read more in our [Deleting an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#deleting-an-ios-code-signing-file) guide.", "produces": [ "application/json" ], "tags": [ - "test-devices" + "provisioning-profile" ], - "summary": "List the test devices for an app", - "operationId": "test-device-list", + "summary": "Delete a provisioning profile", + "operationId": "provisioning-profile-delete", "parameters": [ { "type": "string", @@ -3880,13 +4393,20 @@ "name": "app-slug", "in": "path", "required": true + }, + { + "type": "string", + "description": "Provisioning profile slug", + "name": "provisioning-profile-slug", + "in": "path", + "required": true } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.TestDeviceListResponseModel" + "$ref": "#/definitions/v0.ProvisionProfileResponseModel" } }, "400": { @@ -3914,63 +4434,55 @@ } } } - } - }, - "/builds": { - "get": { + }, + "patch": { "security": [ { "PersonalAccessToken": [] } ], - "description": "List all the Bitrise builds that can be accessed with the authenticated account. Filter builds based on their owner, using the owner slug, or the status of the build.", + "description": "Update an uploaded provisioning profile's attributes. You can fetch the provisioning profile's slug if you call the [GET /apps/{app-slug}/provisioning-profiles](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-list) endpoint. Read more in our [Updating an uploaded iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#confirming-the-ios-code-signing-file-upload) guide.", + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "builds" + "provisioning-profile" ], - "summary": "List all builds", - "operationId": "build-list-all", + "summary": "Update a provisioning profile", + "operationId": "provisioning-profile-update", "parameters": [ { "type": "string", - "description": "The slug of the owner of the app or apps", - "name": "owner_slug", - "in": "query" - }, - { - "type": "boolean", - "description": "Indicates whether the build has started yet (true: the build hasn't started)", - "name": "is_on_hold", - "in": "query" - }, - { - "maximum": 4, - "type": "integer", - "description": "The status of the build: not finished (0), successful (1), failed (2), aborted with failure (3), aborted with success (4)", - "name": "status", - "in": "query" + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true }, { "type": "string", - "description": "Slug of the first build in the response", - "name": "next", - "in": "query" + "description": "Provisioning profile slug", + "name": "provisioning-profile-slug", + "in": "path", + "required": true }, { - "maximum": 50, - "type": "integer", - "description": "Max number of elements per page (default: 50)", - "name": "limit", - "in": "query" + "description": "Provisioning profile parameters", + "name": "provisioning-profile", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v0.ProvProfileDocumentUpdateParams" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.BuildListAllResponseModel" + "$ref": "#/definitions/v0.ProvisionProfileResponseModel" } }, "400": { @@ -4000,27 +4512,52 @@ } } }, - "/me": { - "get": { + "/apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded": { + "post": { "security": [ { "PersonalAccessToken": [] } ], - "description": "Shows the authenticated users profile data", + "description": "This is the last step of the upload process. Confirm the provisioning profile upload and view the file on the Code Signing tab of a specific app. Read more in our [Confirming the iOS code signing file upload](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#confirming-the-ios-code-signing-file-upload) guide.", + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "user" + "provisioning-profile" + ], + "summary": "Confirm a provisioning profile upload", + "operationId": "provisioning-profile-confirm", + "parameters": [ + { + "type": "string", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "Provisioning profile slug", + "name": "provisioning-profile-slug", + "in": "path", + "required": true + } ], - "summary": "Get your profile data", - "operationId": "user-profile", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.UserProfileRespModel" + "$ref": "#/definitions/v0.ProvisionProfileResponseModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" } }, "401": { @@ -4044,42 +4581,48 @@ } } }, - "/me/activities": { - "get": { + "/apps/{app-slug}/register-ssh-key": { + "post": { "security": [ { "PersonalAccessToken": [] } ], - "description": "List all the Bitrise activity events", + "description": "Add an SSH-key to a specific app. After creating an app, you need to register the SSH key so that Bitrise will be able to access and clone your repository during the build process. This requires the app slug of your newly created app.", + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "activity" + "app-setup" ], - "summary": "Get list of Bitrise activity events", - "operationId": "activity-list", + "summary": "Add an SSH-key to a specific app", + "operationId": "ssh-key-create", "parameters": [ { "type": "string", - "description": "Slug of the first activity event in the response", - "name": "next", - "in": "query" + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true }, { - "maximum": 50, - "type": "integer", - "description": "Max number of elements per page (default: 50)", - "name": "limit", - "in": "query" + "description": "SSH key parameters", + "name": "ssh-key", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v0.SSHKeyUploadParams" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.ActivityEventListResponseModel" + "$ref": "#/definitions/v0.SSHKeyRespModel" } }, "400": { @@ -4109,27 +4652,39 @@ } } }, - "/me/plan": { - "get": { + "/apps/{app-slug}/register-webhook": { + "post": { "security": [ { "PersonalAccessToken": [] } ], - "description": "Get the subscription of the user: the current plan, any pending plans, and the duration of a trial period if applicable", + "description": "[Register an incoming webhook](https://devcenter.bitrise.io/api/incoming-and-outgoing-webhooks/#incoming-webhooks) for a specific application. You can do this during the app registration process or at any other time in an app's life. When calling this endpoint, a webhook is registered at your git provider: this is necessary to automatically trigger builds on Bitrise.", + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "user" + "app-setup" + ], + "summary": "Register an incoming webhook for a specific application", + "operationId": "app-webhook-create", + "parameters": [ + { + "type": "string", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + } ], - "summary": "The subscription plan of the user", - "operationId": "user-plan", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.UserPlanRespModel" + "$ref": "#/definitions/v0.WebhookRespModel" } }, "400": { @@ -4159,27 +4714,39 @@ } } }, - "/organizations": { + "/apps/{app-slug}/secrets": { "get": { "security": [ { "PersonalAccessToken": [] } ], - "description": "List all Bitrise organizations that the user is part of", + "description": "List the application secrets (with no values). Requires administrator level privileges to the app.", + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "organizations" + "secrets" + ], + "summary": "List the application secrets (with no values)", + "operationId": "secret-list", + "parameters": [ + { + "type": "string", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + } ], - "summary": "List the organizations that the user is part of", - "operationId": "org-list", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.OrganizationListRespModel" + "$ref": "#/definitions/v0.AppSecretListResponse" } }, "400": { @@ -4209,37 +4776,53 @@ } } }, - "/organizations/{org-slug}": { - "get": { + "/apps/{app-slug}/secrets/{secret-name}": { + "put": { "security": [ { "PersonalAccessToken": [] } ], - "description": "Get a specified Bitrise organization that the user is part of.", + "description": "Upsert an application secret. Requires administrator level privileges to the app.", + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "organizations" + "secrets" ], - "summary": "Get a specified organization.", - "operationId": "org-show", + "summary": "Upsert an application secret", + "operationId": "secret-upsert", "parameters": [ { "type": "string", - "description": "The organization slug", - "name": "org-slug", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "Secret name", + "name": "secret-name", "in": "path", "required": true + }, + { + "description": "Secret parameters", + "name": "app", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v0.AppSecretUpsertParams" + } } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v0.OrganizationRespModel" - } + "204": { + "description": "No Content" }, "400": { "description": "Bad Request", @@ -4266,16 +4849,14 @@ } } } - } - }, - "/organizations/{org-slug}/apps": { - "get": { + }, + "delete": { "security": [ { "PersonalAccessToken": [] } ], - "description": "List all the available apps owned by a given organization. [Find the organization URL](https://devcenter.bitrise.io/team-management/organizations/org-url/) of the organisations you are part of; be aware that the endpoint will not return any apps if the authenticated account is not a member of the given organisation.", + "description": "Delete an application secret. Requires administrator level privileges to the app.", "consumes": [ "application/json" ], @@ -4283,48 +4864,29 @@ "application/json" ], "tags": [ - "application" + "secrets" ], - "summary": "Get list of the apps for an organization", - "operationId": "app-list-by-organization", + "summary": "Delete an application secret", + "operationId": "secret-delete", "parameters": [ { "type": "string", - "description": "Organization slug", - "name": "org-slug", + "description": "App slug", + "name": "app-slug", "in": "path", "required": true }, - { - "enum": [ - "last_build_at", - "created_at" - ], - "type": "string", - "description": "Order of applications: sort them based on when they were created or the time of their last build", - "name": "sort_by", - "in": "query" - }, { "type": "string", - "description": "Slug of the first app in the response", - "name": "next", - "in": "query" - }, - { - "maximum": 50, - "type": "integer", - "description": "Max number of elements per page (default: 50)", - "name": "limit", - "in": "query" + "description": "Secret name", + "name": "secret-name", + "in": "path", + "required": true } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v0.AppListResponseModel" - } + "204": { + "description": "No Content" }, "400": { "description": "Bad Request", @@ -4353,36 +4915,46 @@ } } }, - "/organizations/{organization-slug}/addons": { + "/apps/{app-slug}/secrets/{secret-name}/value": { "get": { "security": [ { "PersonalAccessToken": [] } ], - "description": "List all the provisioned addons for organization", + "description": "Get the value of an (unprotected) application secrets. Requires administrator level privileges to the app.", + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "addons" + "secrets" ], - "summary": "Get list of the addons for organization", - "operationId": "addon-list-by-organization", + "summary": "Get the value of an (unprotected) application secrets", + "operationId": "secret-value-get", "parameters": [ { "type": "string", - "description": "Organization slug", - "name": "organization-slug", + "description": "App slug", + "name": "app-slug", "in": "path", "required": true - } + }, + { + "type": "string", + "description": "Secret name", + "name": "secret-name", + "in": "path", + "required": true + } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.OwnerAddOnsListResponseModel" + "$ref": "#/definitions/v0.AppSecretGetValueResponse" } }, "400": { @@ -4412,27 +4984,30 @@ } } }, - "/users/{user-slug}": { + "/apps/{app-slug}/test-devices": { "get": { "security": [ { "PersonalAccessToken": [] + }, + { + "AddonAuthToken": [] } ], - "description": "Show information about a specific user", + "description": "List registered test devices of all members of a specified Bitrise app", "produces": [ "application/json" ], "tags": [ - "user" + "test-devices" ], - "summary": "Get a specific user", - "operationId": "user-show", + "summary": "List the test devices for an app", + "operationId": "test-device-list", "parameters": [ { "type": "string", - "description": "User slug", - "name": "user-slug", + "description": "App slug", + "name": "app-slug", "in": "path", "required": true } @@ -4441,7 +5016,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.UserProfileRespModel" + "$ref": "#/definitions/v0.TestDeviceListResponseModel" } }, "400": { @@ -4471,36 +5046,61 @@ } } }, - "/users/{user-slug}/addons": { + "/builds": { "get": { "security": [ { "PersonalAccessToken": [] } ], - "description": "List all the provisioned addons for the authenticated user", + "description": "List all the Bitrise builds that can be accessed with the authenticated account. Filter builds based on their owner, using the owner slug, or the status of the build.", "produces": [ "application/json" ], "tags": [ - "addons" + "builds" ], - "summary": "Get list of the addons for user", - "operationId": "addon-list-by-user", + "summary": "List all builds", + "operationId": "build-list-all", "parameters": [ { "type": "string", - "description": "User slug", - "name": "user-slug", - "in": "path", - "required": true + "description": "The slug of the owner of the app or apps", + "name": "owner_slug", + "in": "query" + }, + { + "type": "boolean", + "description": "Indicates whether the build has started yet (true: the build hasn't started)", + "name": "is_on_hold", + "in": "query" + }, + { + "maximum": 4, + "type": "integer", + "description": "The status of the build: not finished (0), successful (1), failed (2), aborted with failure (3), aborted with success (4)", + "name": "status", + "in": "query" + }, + { + "type": "string", + "description": "Slug of the first build in the response", + "name": "next", + "in": "query" + }, + { + "maximum": 50, + "type": "integer", + "description": "Max number of elements per page (default: 50)", + "name": "limit", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.OwnerAddOnsListResponseModel" + "$ref": "#/definitions/v0.BuildListAllResponseModel" } }, "400": { @@ -4530,42 +5130,27 @@ } } }, - "/users/{user-slug}/apple-api-credentials": { + "/me": { "get": { "security": [ { "PersonalAccessToken": [] } ], - "description": "List Apple API credentials for a specific Bitrise user", + "description": "Shows the authenticated users profile info", "produces": [ "application/json" ], "tags": [ - "apple-api-credentials" - ], - "summary": "List Apple API credentials for a specific user", - "operationId": "apple-api-credential-list", - "parameters": [ - { - "type": "string", - "description": "User slug", - "name": "user-slug", - "in": "path", - "required": true - } + "user" ], + "summary": "Get your profile info", + "operationId": "user-profile", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.AppleAPICredentialsListResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/service.StandardErrorRespModel" + "$ref": "#/definitions/v0.UserProfileRespModel" } }, "401": { @@ -4589,43 +5174,26 @@ } } }, - "/users/{user-slug}/apps": { + "/me/activities": { "get": { "security": [ { "PersonalAccessToken": [] } ], - "description": "List all the available apps for the given user. It needs the user slug that you can get from the [GET /me](https://api-docs.bitrise.io/#/user/user-profile) endpoint.", + "description": "List all the Bitrise activity events", "produces": [ "application/json" ], "tags": [ - "application" + "activity" ], - "summary": "Get list of the apps for a user", - "operationId": "app-list-by-user", + "summary": "Get list of Bitrise activity events", + "operationId": "activity-list", "parameters": [ { "type": "string", - "description": "User slug", - "name": "user-slug", - "in": "path", - "required": true - }, - { - "enum": [ - "last_build_at", - "created_at" - ], - "type": "string", - "description": "Order of applications", - "name": "sort_by", - "in": "query" - }, - { - "type": "string", - "description": "Slug of the first app in the response", + "description": "Slug of the first activity event in the response", "name": "next", "in": "query" }, @@ -4641,7 +5209,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.AppListResponseModel" + "$ref": "#/definitions/v0.ActivityEventListResponseModel" } }, "400": { @@ -4671,39 +5239,129 @@ } } }, - "/v0.1/apps/{app-slug}/avatar-candidates": { + "/me/addon-tokens": { "get": { "security": [ { "PersonalAccessToken": [] } ], - "description": "List all available avatar candidates for an application", - "consumes": [ + "description": "Lists the active addon tokens of the user with some extra details.", + "produces": [ "application/json" ], + "tags": [ + "user" + ], + "summary": "The active addon tokens of the user", + "operationId": "user-addon-tokens", + "deprecated": true, + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/me/addon-tokens/{addon-id}": { + "delete": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "Removes the active addon token of the user.", "produces": [ "application/json" ], "tags": [ - "avatar-candidate" + "user" ], - "summary": "Get list of the avatar candidates", - "operationId": "avatar-candidate-list", - "parameters": [ + "summary": "Removes an active addon token of the user", + "operationId": "user-addon-tokens-delete", + "deprecated": true, + "responses": { + "200": { + "description": "OK" + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/me/plan": { + "get": { + "security": [ { - "type": "string", - "description": "App slug", - "name": "app-slug", - "in": "path", - "required": true + "PersonalAccessToken": [] } ], + "description": "Get the subscription of the user: the current plan, any pending plans, and the duration of a trial period if applicable", + "produces": [ + "application/json" + ], + "tags": [ + "user" + ], + "summary": "The subscription plan of the user", + "operationId": "user-plan", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.FindAvatarCandidateResponse" + "$ref": "#/definitions/v0.UserPlanRespModel" } }, "400": { @@ -4732,25 +5390,699 @@ } } } - } - }, - "definitions": { - "addons.Addon": { - "type": "object", - "properties": { - "banner_image": { - "type": "string" - }, - "card_header_colors": { - "type": "array", - "items": { - "type": "string" - } - }, - "categories": { - "type": "array", - "items": { - "type": "string" + }, + "/organizations": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "List all Bitrise organizations that the user is part of", + "produces": [ + "application/json" + ], + "tags": [ + "organizations" + ], + "summary": "List the organizations that the user is part of", + "operationId": "org-list", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.OrganizationListRespModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/organizations/{org-slug}": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "Get a specified Bitrise organization that the user is part of.", + "produces": [ + "application/json" + ], + "tags": [ + "organizations" + ], + "summary": "Get a specified organization.", + "operationId": "org-show", + "parameters": [ + { + "type": "string", + "description": "The organization slug", + "name": "org-slug", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.OrganizationRespModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/organizations/{org-slug}/apps": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "List all the available apps owned by a given organization. [Find the organization URL](https://devcenter.bitrise.io/team-management/organizations/org-url/) of the organisations you are part of; be aware that the endpoint will not return any apps if the authenticated account is not a member of the given organisation.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "application" + ], + "summary": "Get list of the apps for an organization", + "operationId": "app-list-by-organization", + "parameters": [ + { + "type": "string", + "description": "Organization slug", + "name": "org-slug", + "in": "path", + "required": true + }, + { + "enum": [ + "last_build_at", + "created_at" + ], + "type": "string", + "description": "Order of applications: sort them based on when they were created or the time of their last build", + "name": "sort_by", + "in": "query" + }, + { + "type": "string", + "description": "Slug of the first app in the response", + "name": "next", + "in": "query" + }, + { + "maximum": 50, + "type": "integer", + "description": "Max number of elements per page (default: 50)", + "name": "limit", + "in": "query" + }, + { + "type": "string", + "description": "The title of the app", + "name": "title", + "in": "query" + }, + { + "type": "string", + "description": "The project type of the app (eg. 'ios', 'android')", + "name": "project_type", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.AppListResponseModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/organizations/{organization-slug}/addons": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "List all the provisioned addons for organization", + "produces": [ + "application/json" + ], + "tags": [ + "addons" + ], + "summary": "Get list of the addons for organization", + "operationId": "addon-list-by-organization", + "parameters": [ + { + "type": "string", + "description": "Organization slug", + "name": "organization-slug", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.OwnerAddOnsListResponseModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/pipelines": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "List all the Bitrise pipelines/standalone builds that can be accessed with the authenticated account. Filter pipelines/standalone builds based on their owner, using the owner slug, or the status of the pipeline/standalone build.", + "produces": [ + "application/json" + ], + "tags": [ + "pipelines" + ], + "summary": "List all pipelines/standalone builds", + "operationId": "pipeline-list-all", + "parameters": [ + { + "type": "string", + "description": "The slug of the owner of the app or apps", + "name": "owner_slug", + "in": "query" + }, + { + "type": "integer", + "description": "The status of the pipelines/standalone build: initializing, on_hold, running, succeeded, failed, aborted, succeeded_with_abort", + "name": "status", + "in": "query" + }, + { + "type": "string", + "description": "Getting pipelines/standalone builds before the given parameter (RFC3339 time format)", + "name": "next", + "in": "query" + }, + { + "type": "integer", + "description": "Max number of elements per page (default: 10)", + "name": "limit", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.PipelineListAllResponseModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/users/{user-slug}": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "Show information about a specific user", + "produces": [ + "application/json" + ], + "tags": [ + "user" + ], + "summary": "Get a specific user", + "operationId": "user-show", + "parameters": [ + { + "type": "string", + "description": "User slug", + "name": "user-slug", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.UserProfileRespModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/users/{user-slug}/addons": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "List all the provisioned addons for the authenticated user", + "produces": [ + "application/json" + ], + "tags": [ + "addons" + ], + "summary": "Get list of the addons for user", + "operationId": "addon-list-by-user", + "parameters": [ + { + "type": "string", + "description": "User slug", + "name": "user-slug", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.OwnerAddOnsListResponseModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/users/{user-slug}/apple-api-credentials": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "List Apple API credentials for a specific Bitrise user", + "produces": [ + "application/json" + ], + "tags": [ + "apple-api-credentials" + ], + "summary": "List Apple API credentials for a specific user", + "operationId": "apple-api-credential-list", + "parameters": [ + { + "type": "string", + "description": "User slug", + "name": "user-slug", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.AppleAPICredentialsListResponse" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/users/{user-slug}/apps": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "List all the available apps for the given user. It needs the user slug that you can get from the [GET /me](https://api-docs.bitrise.io/#/user/user-profile) endpoint.", + "produces": [ + "application/json" + ], + "tags": [ + "application" + ], + "summary": "Get list of the apps for a user", + "operationId": "app-list-by-user", + "parameters": [ + { + "type": "string", + "description": "User slug", + "name": "user-slug", + "in": "path", + "required": true + }, + { + "enum": [ + "last_build_at", + "created_at" + ], + "type": "string", + "description": "Order of applications", + "name": "sort_by", + "in": "query" + }, + { + "type": "string", + "description": "Slug of the first app in the response", + "name": "next", + "in": "query" + }, + { + "maximum": 50, + "type": "integer", + "description": "Max number of elements per page (default: 50)", + "name": "limit", + "in": "query" + }, + { + "type": "string", + "description": "The title of the app", + "name": "title", + "in": "query" + }, + { + "type": "string", + "description": "The project type of the app (eg. 'ios', 'android')", + "name": "project_type", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.AppListResponseModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/v0.1/apps/{app-slug}/avatar-candidates": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "List all available avatar candidates for an application", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "avatar-candidate" + ], + "summary": "Get list of the avatar candidates", + "operationId": "avatar-candidate-list", + "parameters": [ + { + "type": "string", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.FindAvatarCandidateResponse" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + } + }, + "definitions": { + "addons.Addon": { + "type": "object", + "properties": { + "banner_image": { + "type": "string" + }, + "card_header_colors": { + "type": "array", + "items": { + "type": "string" + } + }, + "categories": { + "type": "array", + "items": { + "type": "string" } }, "description": { @@ -4877,12 +6209,36 @@ "description": { "type": "string" }, - "type": { - "type": "string" + "type": { + "type": "string" + } + } + }, + "github.com_gobuffalo_nulls.Int64": { + "type": "object", + "properties": { + "int64": { + "type": "integer" + }, + "valid": { + "description": "Valid is true if Int64 is not NULL", + "type": "boolean" + } + } + }, + "github.com_gobuffalo_nulls.String": { + "type": "object", + "properties": { + "string": { + "type": "string" + }, + "valid": { + "description": "Valid is true if String is not NULL", + "type": "boolean" } } }, - "nulls.Int64": { + "github.com_markbates_pop_nulls.Int64": { "type": "object", "properties": { "int64": { @@ -4894,7 +6250,7 @@ } } }, - "nulls.String": { + "github.com_markbates_pop_nulls.String": { "type": "object", "properties": { "string": { @@ -4906,6 +6262,62 @@ } } }, + "pipelineabledomain.Environments": { + "type": "object", + "properties": { + "is_expand": {}, + "key": { + "type": "string" + }, + "value": {} + } + }, + "pipelineabledomain.TriggerParams": { + "type": "object", + "properties": { + "branch": { + "type": "string" + }, + "branch_dest": { + "type": "string" + }, + "branch_dest_repo_owner": { + "type": "string" + }, + "branch_repo_owner": { + "type": "string" + }, + "commit_hash": { + "type": "string" + }, + "commit_message": { + "type": "string" + }, + "commit_paths": {}, + "diff_url": { + "type": "string" + }, + "environments": { + "type": "array", + "items": { + "$ref": "#/definitions/pipelineabledomain.Environments" + } + }, + "pull_request_author": { + "type": "string" + }, + "pull_request_head_branch": { + "type": "string" + }, + "pull_request_id": {}, + "pull_request_repository_url": { + "type": "string" + }, + "tag": { + "type": "string" + } + } + }, "service.StandardErrorRespModel": { "type": "object", "properties": { @@ -4935,13 +6347,13 @@ "type": "string" }, "description": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "event_icon": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "event_stype": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "repository_avatar_icon_url": { "type": "string" @@ -4953,10 +6365,10 @@ "type": "string" }, "target_path_string": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "title": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" } } }, @@ -4964,7 +6376,7 @@ "type": "object", "properties": { "icon": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "plan": { "$ref": "#/definitions/addons.Plan" @@ -5012,6 +6424,9 @@ "alias": { "type": "string" }, + "keystore_file_name": { + "type": "string" + }, "password": { "type": "string" }, @@ -5047,15 +6462,30 @@ "is_beta": { "type": "boolean" }, + "is_enabled": { + "type": "boolean" + }, + "login_url": { + "type": "string" + }, "plan": { "$ref": "#/definitions/addons.Plan" }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, "setup_guide": { "$ref": "#/definitions/addons.SetupGuide" }, "summary": { "type": "string" }, + "terms_url": { + "type": "string" + }, "title": { "type": "string" } @@ -5079,6 +6509,7 @@ ], "properties": { "app_config_datastore_yaml": { + "description": "The bitrise.yml of your application, defined in JSON format", "type": "string" } } @@ -5097,7 +6528,7 @@ ], "properties": { "config": { - "description": "Which config to use `default-android-config`, `default-cordova-config`, `default-fastlane-config`, `default-ionic-config`, `default-ios-config`,`default-macos-config`, `default-react-native-config`, `default-xamarin-config`, `other-config` (default if parameter is not speficied)", + "description": "Which config to use. Specify a config that matches your project type (e. g. `default-android-config` for `android`, etc.). If not speficied, default value is `other-config`. The available values are `default-android-config`, `default-cordova-config`, `default-fastlane-android-config`, `default-fastlane-ios-config`, `flutter-config-notest-app-android`, `flutter-config-notest-app-both`, `flutter-config-notest-app-ios`, `flutter-config-test-app-android`, `flutter-config-test-app-both`, `flutter-config-test-app-ios`, `default-ionic-config`, `default-ios-config`, `default-macos-config`, `default-react-native-config`, `default-react-native-expo-config`, `other-config`.", "type": "string" }, "envs": { @@ -5172,11 +6603,14 @@ "type": "object", "properties": { "avatar_url": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "is_disabled": { "type": "boolean" }, + "is_github_checks_enabled": { + "type": "boolean" + }, "is_public": { "type": "boolean" }, @@ -5184,19 +6618,19 @@ "$ref": "#/definitions/v0.OwnerAccountResponseModel" }, "project_type": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "provider": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "repo_owner": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "repo_slug": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "repo_url": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "slug": { "type": "string" @@ -5209,6 +6643,67 @@ } } }, + "v0.AppSecret": { + "type": "object", + "properties": { + "expand_in_step_inputs": { + "description": "Replace variable in inputs? https://devcenter.bitrise.io/en/references/steps-reference/step-inputs-reference.html#step-input-properties", + "type": "boolean" + }, + "is_exposed_for_pull_requests": { + "description": "Expose for Pull Requests?", + "type": "boolean" + }, + "is_protected": { + "description": "Secret marked as protected?", + "type": "boolean" + }, + "name": { + "description": "Name of the secret", + "type": "string" + } + } + }, + "v0.AppSecretGetValueResponse": { + "type": "object", + "properties": { + "value": { + "type": "string" + } + } + }, + "v0.AppSecretListResponse": { + "type": "object", + "properties": { + "secrets": { + "type": "array", + "items": { + "$ref": "#/definitions/v0.AppSecret" + } + } + } + }, + "v0.AppSecretUpsertParams": { + "type": "object", + "properties": { + "expand_in_step_inputs": { + "description": "Replace variable in inputs? https://devcenter.bitrise.io/en/references/steps-reference/step-inputs-reference.html#step-input-properties", + "type": "boolean" + }, + "is_exposed_for_pull_requests": { + "description": "Expose for Pull Requests?", + "type": "boolean" + }, + "is_protected": { + "description": "Secret marked as protected?", + "type": "boolean" + }, + "value": { + "description": "Value of the secret", + "type": "string" + } + } + }, "v0.AppShowResponseModel": { "type": "object", "properties": { @@ -5217,6 +6712,47 @@ } } }, + "v0.AppUpdateParams": { + "type": "object", + "properties": { + "apple_credential_user_id": { + "description": "The new apple credential user ID (recommendation: use the UI to set this)", + "type": "integer" + }, + "apple_credential_user_slug": { + "description": "The new apple credential user slug (recommendation: use the UI to set this)", + "type": "string" + }, + "default_branch": { + "description": "The new default branch for the application.", + "type": "string" + }, + "is_public": { + "description": "The new value of whether an application should be publicly visible", + "type": "boolean" + }, + "repository_url": { + "description": "The new repository URL for the application.", + "type": "string" + }, + "services_credential_user_id": { + "description": "The new service credential user ID (recommendation: use the UI to set this)", + "type": "integer" + }, + "title": { + "description": "The new title of the application.", + "type": "string" + } + } + }, + "v0.AppUpdateRespModel": { + "type": "object", + "properties": { + "status": { + "type": "string" + } + } + }, "v0.AppUploadParams": { "type": "object", "required": [ @@ -5228,6 +6764,10 @@ "type" ], "properties": { + "default_branch_name": { + "description": "The default branch of the repository. If it's not specified, it will be `master`.", + "type": "string" + }, "git_owner": { "description": "The slug of the owner of the repository at the git provider", "type": "string" @@ -5240,6 +6780,10 @@ "description": "If `true` then the repository visibility setting will be public, in case of `false` it will be private", "type": "boolean" }, + "organization_slug": { + "description": "The slug of the organization, who will be the owner of the application. If it's not specified, then the authenticated user will be the owner.", + "type": "string" + }, "provider": { "description": "The git provider you are using, it can be `github`, `bitbucket`, `gitlab`, `gitlab-self-hosted` or `custom`", "type": "string" @@ -5248,6 +6792,10 @@ "description": "The URL of your repository", "type": "string" }, + "title": { + "description": "The title of the application. If it's not specified, it will be the git repository's name.", + "type": "string" + }, "type": { "description": "It has to be provided by legacy reasons and has to have the `git` value", "type": "string" @@ -5411,6 +6959,128 @@ } } }, + "v0.ArchivedBuildArtifact": { + "type": "object", + "properties": { + "artifact_meta": { + "type": "object", + "additionalProperties": true + }, + "artifact_type": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "file_size_bytes": { + "type": "integer" + }, + "id": { + "type": "string" + }, + "is_public_page_enabled": { + "type": "boolean" + }, + "public_page_token": { + "type": "string" + }, + "title": { + "type": "string" + } + } + }, + "v0.ArchivedBuildListResponseModel": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/v0.ArchivedBuildResponseItemModel" + } + }, + "paging": { + "description": "pagination", + "$ref": "#/definitions/v0.PagingResponseModel" + } + } + }, + "v0.ArchivedBuildResponseItemModel": { + "type": "object", + "properties": { + "abort_reason": { + "type": "string" + }, + "branch": { + "type": "string" + }, + "build_artifacts": { + "type": "array", + "items": { + "$ref": "#/definitions/v0.ArchivedBuildArtifact" + } + }, + "build_number": { + "type": "integer" + }, + "commit_hash": { + "type": "string" + }, + "commit_message": { + "type": "string" + }, + "credit_cost": { + "type": "integer" + }, + "finished_at": { + "type": "string" + }, + "machine_type_id": { + "type": "string" + }, + "original_build_params": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pipeline_workflow_id": { + "type": "string" + }, + "pull_request_id": { + "type": "integer" + }, + "pull_request_target_branch": { + "type": "string" + }, + "pull_request_view_url": { + "type": "string" + }, + "slug": { + "type": "string" + }, + "stack_identifier": { + "type": "string" + }, + "started_on_worker_at": { + "type": "string" + }, + "status": { + "type": "integer" + }, + "status_text": { + "type": "string" + }, + "tag": { + "type": "string" + }, + "triggered_by": { + "type": "string" + }, + "triggered_workflow": { + "type": "string" + } + } + }, "v0.ArtifactDeleteResponseModel": { "type": "object", "properties": { @@ -5429,11 +7099,17 @@ } }, "artifact_type": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "file_size_bytes": { "type": "integer" }, + "intermediate_file_info": { + "type": "array", + "items": { + "type": "integer" + } + }, "is_public_page_enabled": { "type": "boolean" }, @@ -5441,7 +7117,7 @@ "type": "string" }, "title": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" } } }, @@ -5470,7 +7146,7 @@ } }, "artifact_type": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "expiring_download_url": { "type": "string" @@ -5478,6 +7154,12 @@ "file_size_bytes": { "type": "integer" }, + "intermediate_file_info": { + "type": "array", + "items": { + "type": "integer" + } + }, "is_public_page_enabled": { "type": "boolean" }, @@ -5488,7 +7170,7 @@ "type": "string" }, "title": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" } } }, @@ -5592,719 +7274,1121 @@ }, "v0.BuildAbortParams": { "type": "object", - "required": [ - "abort_reason", - "abort_with_success", - "skip_notifications" - ], + "required": [ + "abort_reason", + "abort_with_success", + "skip_notifications" + ], + "properties": { + "abort_reason": { + "type": "string" + }, + "abort_with_success": { + "type": "boolean" + }, + "skip_notifications": { + "type": "boolean" + } + } + }, + "v0.BuildAbortResponseModel": { + "type": "object", + "properties": { + "status": { + "type": "string" + } + } + }, + "v0.BuildCertificateListResponseModel": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/v0.BuildCertificateResponseItemModel" + } + }, + "paging": { + "description": "pagination", + "$ref": "#/definitions/v0.PagingResponseModel" + } + } + }, + "v0.BuildCertificateResponseItemModel": { + "type": "object", + "properties": { + "certificate_password": { + "type": "string" + }, + "download_url": { + "type": "string" + }, + "is_expose": { + "type": "boolean" + }, + "is_protected": { + "type": "boolean" + }, + "processed": { + "type": "boolean" + }, + "slug": { + "type": "string" + }, + "upload_file_name": { + "type": "string" + }, + "upload_file_size": { + "type": "integer" + }, + "upload_url": { + "type": "string" + } + } + }, + "v0.BuildCertificateResponseModel": { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/v0.BuildCertificateResponseItemModel" + } + } + }, + "v0.BuildCertificateUpdateParams": { + "type": "object", + "properties": { + "certificate_password": { + "type": "string" + }, + "is_expose": { + "type": "boolean" + }, + "is_protected": { + "type": "boolean" + }, + "processed": { + "type": "boolean" + } + } + }, + "v0.BuildCertificateUploadParams": { + "type": "object", + "required": [ + "upload_file_name", + "upload_file_size" + ], + "properties": { + "upload_file_name": { + "type": "string" + }, + "upload_file_size": { + "type": "integer" + } + } + }, + "v0.BuildListAllResponseItemModel": { + "type": "object", + "properties": { + "abort_reason": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "branch": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "build_number": { + "type": "integer" + }, + "commit_hash": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "commit_message": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "commit_view_url": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "credit_cost": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.Int64" + }, + "environment_prepare_finished_at": { + "type": "string" + }, + "finished_at": { + "type": "string" + }, + "is_on_hold": { + "type": "boolean" + }, + "is_processed": { + "type": "boolean" + }, + "machine_type_id": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "original_build_params": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pull_request_id": { + "type": "integer" + }, + "pull_request_target_branch": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "pull_request_view_url": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "repository": { + "$ref": "#/definitions/v0.AppResponseItemModel" + }, + "slug": { + "type": "string" + }, + "stack_identifier": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "started_on_worker_at": { + "type": "string" + }, + "status": { + "type": "integer" + }, + "status_text": { + "type": "string" + }, + "tag": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "triggered_at": { + "type": "string" + }, + "triggered_by": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "triggered_workflow": { + "type": "string" + } + } + }, + "v0.BuildListAllResponseModel": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/v0.BuildListAllResponseItemModel" + } + }, + "paging": { + "description": "pagination", + "$ref": "#/definitions/v0.PagingResponseModel" + } + } + }, + "v0.BuildListResponseModel": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/v0.BuildResponseItemModel" + } + }, + "paging": { + "description": "pagination", + "$ref": "#/definitions/v0.PagingResponseModel" + } + } + }, + "v0.BuildParamsEnvironment": { + "type": "object", + "properties": { + "is_expand": { + "type": "boolean" + }, + "mapped_to": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "v0.BuildRequestListResponseModel": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/v0.BuildRequestResponseItemModel" + } + } + } + }, + "v0.BuildRequestResponseItemModel": { + "type": "object", "properties": { - "abort_reason": { + "build_params": { + "type": "array", + "items": { + "type": "integer" + } + }, + "created_at": { "type": "string" }, - "abort_with_success": { - "type": "boolean" + "pull_request_url": { + "type": "string" }, - "skip_notifications": { - "type": "boolean" + "slug": { + "type": "string" } } }, - "v0.BuildAbortResponseModel": { + "v0.BuildRequestUpdateParams": { "type": "object", + "required": [ + "is_approved" + ], "properties": { - "status": { - "type": "string" + "is_approved": { + "type": "boolean" } } }, - "v0.BuildCertificateListResponseModel": { + "v0.BuildRequestUpdateResponseModel": { "type": "object", "properties": { "data": { - "type": "array", - "items": { - "$ref": "#/definitions/v0.BuildCertificateResponseItemModel" - } - }, - "paging": { - "description": "pagination", - "$ref": "#/definitions/v0.PagingResponseModel" + "$ref": "#/definitions/v0.BuildRequestResponseItemModel" } } }, - "v0.BuildCertificateResponseItemModel": { + "v0.BuildResponseItemModel": { "type": "object", "properties": { - "certificate_password": { + "abort_reason": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "branch": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "build_number": { + "type": "integer" + }, + "commit_hash": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "commit_message": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "commit_view_url": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "credit_cost": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.Int64" + }, + "environment_prepare_finished_at": { "type": "string" }, - "download_url": { + "finished_at": { "type": "string" }, - "is_expose": { + "is_on_hold": { "type": "boolean" }, - "is_protected": { + "is_processed": { "type": "boolean" }, - "processed": { + "is_status_sent": { "type": "boolean" }, + "machine_type_id": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "original_build_params": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pipeline_workflow_id": { + "type": "string" + }, + "pull_request_id": { + "type": "integer" + }, + "pull_request_target_branch": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "pull_request_view_url": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, "slug": { "type": "string" }, - "upload_file_name": { + "stack_identifier": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "started_on_worker_at": { "type": "string" }, - "upload_file_size": { + "status": { "type": "integer" }, - "upload_url": { + "status_text": { + "type": "string" + }, + "tag": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "triggered_at": { + "type": "string" + }, + "triggered_by": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "triggered_workflow": { "type": "string" } } }, - "v0.BuildCertificateResponseModel": { + "v0.BuildShowResponseModel": { "type": "object", "properties": { "data": { - "$ref": "#/definitions/v0.BuildCertificateResponseItemModel" + "$ref": "#/definitions/v0.BuildResponseItemModel" } } }, - "v0.BuildCertificateUpdateParams": { + "v0.BuildTriggerParams": { "type": "object", "properties": { - "certificate_password": { - "type": "string" - }, - "is_expose": { - "type": "boolean" - }, - "is_protected": { - "type": "boolean" + "build_params": { + "description": "The public part of the SSH key you would like to use", + "$ref": "#/definitions/v0.BuildTriggerParamsBuildParams" }, - "processed": { - "type": "boolean" + "hook_info": { + "$ref": "#/definitions/v0.BuildTriggerParamsHookInfo" } } }, - "v0.BuildCertificateUploadParams": { + "v0.BuildTriggerParamsBuildParams": { "type": "object", - "required": [ - "upload_file_name", - "upload_file_size" - ], "properties": { - "upload_file_name": { + "base_repository_url": { "type": "string" }, - "upload_file_size": { - "type": "integer" - } - } - }, - "v0.BuildListAllResponseItemModel": { - "type": "object", - "properties": { - "abort_reason": { - "$ref": "#/definitions/nulls.String" - }, "branch": { - "$ref": "#/definitions/nulls.String" + "type": "string" }, - "build_number": { - "type": "integer" + "branch_dest": { + "type": "string" }, - "commit_hash": { - "$ref": "#/definitions/nulls.String" + "branch_dest_repo_owner": { + "type": "string" }, - "commit_message": { - "$ref": "#/definitions/nulls.String" + "branch_repo_owner": { + "type": "string" }, - "commit_view_url": { - "$ref": "#/definitions/nulls.String" + "build_request_slug": { + "type": "string" }, - "environment_prepare_finished_at": { + "commit_hash": { "type": "string" }, - "finished_at": { + "commit_message": { "type": "string" }, - "is_on_hold": { - "type": "boolean" + "commit_paths": { + "type": "array", + "items": { + "$ref": "#/definitions/v0.CommitPaths" + } }, - "machine_type_id": { - "$ref": "#/definitions/nulls.String" + "diff_url": { + "type": "string" }, - "original_build_params": { + "environments": { "type": "array", "items": { - "type": "integer" + "$ref": "#/definitions/v0.BuildParamsEnvironment" } }, - "pull_request_id": { + "head_repository_url": { + "type": "string" + }, + "pipeline_id": { + "type": "string" + }, + "pull_request_author": { + "type": "string" + }, + "pull_request_head_branch": { + "type": "string" + }, + "pull_request_id": {}, + "pull_request_merge_branch": { + "type": "string" + }, + "pull_request_repository_url": { + "type": "string" + }, + "skip_git_status_report": { + "type": "boolean" + }, + "tag": { + "type": "string" + }, + "workflow_id": { + "type": "string" + } + } + }, + "v0.BuildTriggerParamsHookInfo": { + "type": "object", + "properties": { + "type": { + "description": "Should be \"bitrise\"", + "type": "string", + "example": "bitrise" + } + } + }, + "v0.BuildTriggerRespModel": { + "type": "object", + "properties": { + "build_number": { "type": "integer" }, - "pull_request_target_branch": { - "$ref": "#/definitions/nulls.String" + "build_slug": { + "type": "string" }, - "pull_request_view_url": { - "$ref": "#/definitions/nulls.String" + "build_url": { + "type": "string" }, - "repository": { - "$ref": "#/definitions/v0.AppResponseItemModel" + "message": { + "type": "string" + }, + "service": { + "type": "string" }, "slug": { "type": "string" }, - "stack_identifier": { - "$ref": "#/definitions/nulls.String" - }, - "started_on_worker_at": { + "status": { + "type": "string" + }, + "triggered_workflow": { + "type": "string" + } + } + }, + "v0.BuildWorkflowListResponseModel": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "v0.CacheItemDownloadResponseModel": { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/v0.CacheItemDownloadURLResponseModel" + } + } + }, + "v0.CacheItemDownloadURLResponseModel": { + "type": "object", + "properties": { + "download_url": { + "type": "string" + } + } + }, + "v0.CacheItemListResponseItemModel": { + "type": "object", + "properties": { + "app_id": { + "type": "string" + }, + "archive_filename": { "type": "string" }, - "status": { + "archive_size": { "type": "integer" }, - "status_text": { + "cache_key": { "type": "string" }, - "tag": { - "$ref": "#/definitions/nulls.String" - }, - "triggered_at": { + "created_at": { "type": "string" }, - "triggered_by": { - "$ref": "#/definitions/nulls.String" + "expires_at": { + "type": "string" }, - "triggered_workflow": { + "id": { "type": "string" } } }, - "v0.BuildListAllResponseModel": { + "v0.CacheItemListResponseModel": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/definitions/v0.BuildListAllResponseItemModel" + "$ref": "#/definitions/v0.CacheItemListResponseItemModel" } }, "paging": { - "description": "pagination", "$ref": "#/definitions/v0.PagingResponseModel" } } }, - "v0.BuildListResponseModel": { + "v0.CommitPaths": { "type": "object", "properties": { - "data": { + "added": { "type": "array", "items": { - "$ref": "#/definitions/v0.BuildResponseItemModel" + "type": "string" } }, - "paging": { - "description": "pagination", - "$ref": "#/definitions/v0.PagingResponseModel" + "modified": { + "type": "array", + "items": { + "type": "string" + } + }, + "removed": { + "type": "array", + "items": { + "type": "string" + } } } }, - "v0.BuildLogChunkItemResponseModel": { + "v0.FindAvatarCandidateResponse": { "type": "object", "properties": { - "chunk": { - "type": "string" - }, - "position": { - "type": "integer" + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/v0.FindAvatarCandidateResponseItem" + } } } }, - "v0.BuildLogInfoResponseModel": { + "v0.FindAvatarCandidateResponseItem": { "type": "object", "properties": { - "expiring_raw_log_url": { + "download_url": { "type": "string" }, - "generated_log_chunks_num": { - "type": "integer" - }, - "is_archived": { - "type": "boolean" - }, - "log_chunks": { - "type": "array", - "items": { - "$ref": "#/definitions/v0.BuildLogChunkItemResponseModel" - } + "filename": { + "type": "string" }, - "timestamp": { - "$ref": "#/definitions/nulls.String" + "slug": { + "type": "string" } } }, - "v0.BuildParamsEnvironment": { + "v0.OrganizationDataModel": { "type": "object", "properties": { - "is_expand": { - "type": "boolean" + "avatar_icon_url": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, - "mapped_to": { + "concurrency_count": { + "type": "integer" + }, + "name": { "type": "string" }, - "value": { + "owners": { + "type": "array", + "items": { + "$ref": "#/definitions/v0.OrganizationOwner" + } + }, + "slug": { "type": "string" } } }, - "v0.BuildRequestListResponseModel": { + "v0.OrganizationListRespModel": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/definitions/v0.BuildRequestResponseItemModel" + "$ref": "#/definitions/v0.OrganizationDataModel" } } } }, - "v0.BuildRequestResponseItemModel": { + "v0.OrganizationOwner": { "type": "object", "properties": { - "build_params": { - "type": "array", - "items": { - "type": "integer" - } - }, - "created_at": { + "email": { "type": "string" }, - "pull_request_url": { + "slug": { "type": "string" }, - "slug": { + "username": { "type": "string" } } }, - "v0.BuildRequestUpdateParams": { - "type": "object", - "required": [ - "is_approved" - ], - "properties": { - "is_approved": { - "type": "boolean" - } - } - }, - "v0.BuildRequestUpdateResponseModel": { + "v0.OrganizationRespModel": { "type": "object", "properties": { "data": { - "$ref": "#/definitions/v0.BuildRequestResponseItemModel" + "$ref": "#/definitions/v0.OrganizationDataModel" } } }, - "v0.BuildResponseItemModel": { + "v0.OwnerAccountResponseModel": { "type": "object", "properties": { - "abort_reason": { - "$ref": "#/definitions/nulls.String" - }, - "branch": { - "$ref": "#/definitions/nulls.String" - }, - "build_number": { - "type": "integer" - }, - "commit_hash": { - "$ref": "#/definitions/nulls.String" - }, - "commit_message": { - "$ref": "#/definitions/nulls.String" - }, - "commit_view_url": { - "$ref": "#/definitions/nulls.String" - }, - "environment_prepare_finished_at": { + "account_type": { "type": "string" }, - "finished_at": { + "name": { "type": "string" }, - "is_on_hold": { - "type": "boolean" - }, - "machine_type_id": { - "$ref": "#/definitions/nulls.String" - }, - "original_build_params": { + "slug": { + "type": "string" + } + } + }, + "v0.OwnerAddOnResponseItemModel": { + "type": "object", + "properties": { + "apps": { "type": "array", "items": { - "type": "integer" + "$ref": "#/definitions/v0.AddOnAppResponseItemModel" } }, - "pull_request_id": { - "type": "integer" - }, - "pull_request_target_branch": { - "$ref": "#/definitions/nulls.String" - }, - "pull_request_view_url": { - "$ref": "#/definitions/nulls.String" - }, - "slug": { + "documentation_url": { "type": "string" }, - "stack_identifier": { - "$ref": "#/definitions/nulls.String" + "has_ui": { + "type": "boolean" }, - "started_on_worker_at": { + "icon": { "type": "string" }, - "status": { - "type": "integer" - }, - "status_text": { + "id": { "type": "string" }, - "tag": { - "$ref": "#/definitions/nulls.String" + "is_beta": { + "type": "boolean" }, - "triggered_at": { + "summary": { "type": "string" }, - "triggered_by": { - "$ref": "#/definitions/nulls.String" - }, - "triggered_workflow": { + "title": { "type": "string" } } }, - "v0.BuildShowResponseModel": { + "v0.OwnerAddOnsListResponseModel": { "type": "object", "properties": { "data": { - "$ref": "#/definitions/v0.BuildResponseItemModel" + "type": "array", + "items": { + "$ref": "#/definitions/v0.OwnerAddOnResponseItemModel" + } } } }, - "v0.BuildTriggerParams": { + "v0.PagingResponseModel": { "type": "object", "properties": { - "build_params": { - "description": "The public part of the SSH key you would like to use", - "$ref": "#/definitions/v0.BuildTriggerParamsBuildParams" + "next": { + "description": "Next is the \"anchor\" for pagination. This value should be passed to the same endpoint\nto get the next page. Empty/not included if there's no \"next\" page.\nStop paging when there's no \"Next\" item in the response!", + "type": "string" }, - "hook_info": { - "$ref": "#/definitions/v0.BuildTriggerParamsHookInfo" + "page_item_limit": { + "description": "PageItemLimit - per-page item count. A given page might include\nless items if there's not enough items. This value is the \"max item count per page\".", + "type": "integer" + }, + "total_item_count": { + "description": "TotalItemCount - total item count, through \"all pages\"", + "type": "integer" } } }, - "v0.BuildTriggerParamsBuildParams": { + "v0.PipelineAbortParams": { "type": "object", + "required": [ + "abort_reason", + "abort_with_success", + "skip_notifications" + ], "properties": { - "base_repository_url": { - "type": "string" - }, - "branch": { - "type": "string" - }, - "branch_dest": { + "abort_reason": { "type": "string" }, - "branch_dest_repo_owner": { - "type": "string" + "abort_with_success": { + "type": "boolean" }, - "branch_repo_owner": { - "type": "string" + "skip_notifications": { + "type": "boolean" + } + } + }, + "v0.PipelineListAllResponseItemModel": { + "type": "object", + "properties": { + "branch": { + "$ref": "#/definitions/github.com_gobuffalo_nulls.String" }, - "build_request_slug": { - "type": "string" + "build_number": { + "type": "integer" }, "commit_hash": { - "type": "string" + "$ref": "#/definitions/github.com_gobuffalo_nulls.String" }, "commit_message": { - "type": "string" - }, - "commit_paths": { - "type": "array", - "items": { - "$ref": "#/definitions/v0.CommitPaths" - } + "$ref": "#/definitions/github.com_gobuffalo_nulls.String" }, - "diff_url": { + "finished_at": { "type": "string" }, - "environments": { - "type": "array", - "items": { - "$ref": "#/definitions/v0.BuildParamsEnvironment" - } - }, - "head_repository_url": { - "type": "string" + "is_on_hold": { + "type": "boolean" }, - "pull_request_author": { - "type": "string" + "is_pipeline": { + "type": "boolean" }, - "pull_request_head_branch": { - "type": "string" + "is_processed": { + "type": "boolean" }, "pull_request_id": { - "type": "object" + "type": "integer" }, - "pull_request_merge_branch": { + "pull_request_target_branch": { + "$ref": "#/definitions/github.com_gobuffalo_nulls.String" + }, + "repository": { + "$ref": "#/definitions/v0.AppResponseItemModel" + }, + "slug": { "type": "string" }, - "pull_request_repository_url": { + "started_at": { "type": "string" }, - "skip_git_status_report": { - "type": "boolean" + "status": { + "type": "integer" }, "tag": { + "$ref": "#/definitions/github.com_gobuffalo_nulls.String" + }, + "triggered_at": { "type": "string" }, - "workflow_id": { + "triggered_by": { + "$ref": "#/definitions/github.com_gobuffalo_nulls.String" + }, + "triggered_workflow": { "type": "string" } } }, - "v0.BuildTriggerParamsHookInfo": { + "v0.PipelineListAllResponseModel": { "type": "object", "properties": { - "type": { - "description": "Should be \"bitrise\"", - "type": "string", - "example": "bitrise" + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/v0.PipelineListAllResponseItemModel" + } + }, + "paging": { + "$ref": "#/definitions/v0.PagingResponseModel" } } }, - "v0.BuildTriggerRespModel": { + "v0.PipelineListResponseItemModel": { "type": "object", "properties": { + "branch": { + "$ref": "#/definitions/github.com_gobuffalo_nulls.String" + }, "build_number": { "type": "integer" }, - "build_slug": { - "type": "string" + "commit_hash": { + "$ref": "#/definitions/github.com_gobuffalo_nulls.String" }, - "build_url": { - "type": "string" + "commit_message": { + "$ref": "#/definitions/github.com_gobuffalo_nulls.String" }, - "message": { - "type": "string" + "credit_cost": { + "$ref": "#/definitions/github.com_gobuffalo_nulls.Int64" }, - "service": { + "finished_at": { "type": "string" }, + "is_on_hold": { + "type": "boolean" + }, + "is_pipeline": { + "type": "boolean" + }, + "is_processed": { + "type": "boolean" + }, + "pull_request_id": { + "type": "integer" + }, + "pull_request_target_branch": { + "$ref": "#/definitions/github.com_gobuffalo_nulls.String" + }, "slug": { "type": "string" }, + "started_at": { + "type": "string" + }, "status": { + "type": "integer" + }, + "tag": { + "$ref": "#/definitions/github.com_gobuffalo_nulls.String" + }, + "trigger_params": { + "$ref": "#/definitions/pipelineabledomain.TriggerParams" + }, + "triggered_at": { "type": "string" }, + "triggered_by": { + "$ref": "#/definitions/github.com_gobuffalo_nulls.String" + }, "triggered_workflow": { "type": "string" } } }, - "v0.BuildWorkflowListResponseModel": { + "v0.PipelineListResponseModel": { "type": "object", "properties": { "data": { "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/v0.PipelineListResponseItemModel" } + }, + "paging": { + "description": "pagination", + "$ref": "#/definitions/v0.PagingResponseModel" } } }, - "v0.CommitPaths": { + "v0.PipelineRebuildParams": { "type": "object", "properties": { - "added": { - "type": "array", - "items": { - "type": "string" - } - }, - "modified": { - "type": "array", - "items": { - "type": "string" - } + "partial": { + "type": "boolean" }, - "removed": { - "type": "array", - "items": { - "type": "string" - } + "triggered_by": { + "type": "string" } } }, - "v0.FindAvatarCandidateResponse": { + "v0.PipelineShowAppResponseModel": { "type": "object", "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/definitions/v0.FindAvatarCandidateResponseItem" - } + "slug": { + "type": "string" } } }, - "v0.FindAvatarCandidateResponseItem": { + "v0.PipelineShowAttemptResponseModel": { "type": "object", "properties": { - "download_url": { + "id": { "type": "string" }, - "filename": { + "number_in_pipeline_build_scope": { + "type": "integer" + }, + "status": { "type": "string" }, - "slug": { + "triggered_at": { "type": "string" } } }, - "v0.OrganizationDataModel": { + "v0.PipelineShowEnvironmentsResponseModel": { "type": "object", "properties": { - "avatar_icon_url": { - "$ref": "#/definitions/nulls.String" + "is_expand": { + "type": "boolean" }, - "concurrency_count": { - "type": "integer" + "key": { + "type": "string" }, - "name": { + "value": {} + } + }, + "v0.PipelineShowResponseModel": { + "type": "object", + "properties": { + "abort_reason": { "type": "string" }, - "owners": { + "app": { + "$ref": "#/definitions/v0.PipelineShowAppResponseModel" + }, + "attempts": { "type": "array", "items": { - "$ref": "#/definitions/v0.OrganizationOwner" + "$ref": "#/definitions/v0.PipelineShowAttemptResponseModel" } }, - "slug": { + "credit_cost": {}, + "current_attempt_id": { "type": "string" - } - } - }, - "v0.OrganizationListRespModel": { - "type": "object", - "properties": { - "data": { + }, + "finished_at": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "number_in_app_scope": { + "type": "integer" + }, + "put_on_hold_at": {}, + "stages": { "type": "array", "items": { - "$ref": "#/definitions/v0.OrganizationDataModel" + "$ref": "#/definitions/v0.PipelineShowStageResponseModel" } - } - } - }, - "v0.OrganizationOwner": { - "type": "object", - "properties": { - "email": { + }, + "started_at": { "type": "string" }, - "slug": { + "status": { "type": "string" }, - "username": { + "trigger_params": { + "$ref": "#/definitions/v0.PipelineShowTriggerParamsResponseModel" + }, + "triggered_at": { + "type": "string" + }, + "triggered_by": { "type": "string" } } }, - "v0.OrganizationRespModel": { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/v0.OrganizationDataModel" - } - } - }, - "v0.OwnerAccountResponseModel": { + "v0.PipelineShowStageResponseModel": { "type": "object", "properties": { - "account_type": { + "id": { "type": "string" }, "name": { "type": "string" }, - "slug": { - "type": "string" + "workflows": { + "type": "array", + "items": { + "$ref": "#/definitions/v0.PipelineShowWorkflowResponseModel" + } } } }, - "v0.OwnerAddOnResponseItemModel": { + "v0.PipelineShowTriggerParamsResponseModel": { "type": "object", "properties": { - "apps": { - "type": "array", - "items": { - "$ref": "#/definitions/v0.AddOnAppResponseItemModel" - } - }, - "documentation_url": { + "branch": { "type": "string" }, - "has_ui": { - "type": "boolean" + "branch_dest": { + "type": "string" }, - "icon": { + "branch_dest_repo_owner": { "type": "string" }, - "id": { + "branch_repo_owner": { "type": "string" }, - "is_beta": { - "type": "boolean" + "commit_hash": { + "type": "string" }, - "summary": { + "commit_message": { "type": "string" }, - "title": { + "commit_paths": {}, + "diff_url": { "type": "string" - } - } - }, - "v0.OwnerAddOnsListResponseModel": { - "type": "object", - "properties": { - "data": { + }, + "environments": { "type": "array", "items": { - "$ref": "#/definitions/v0.OwnerAddOnResponseItemModel" + "$ref": "#/definitions/v0.PipelineShowEnvironmentsResponseModel" } + }, + "pull_request_author": { + "type": "string" + }, + "pull_request_head_branch": { + "type": "string" + }, + "pull_request_id": { + "type": "string" + }, + "pull_request_repository_url": { + "type": "string" + }, + "tag": { + "type": "string" } } }, - "v0.PagingResponseModel": { + "v0.PipelineShowWorkflowResponseModel": { "type": "object", "properties": { - "next": { - "description": "Next is the \"anchor\" for pagination. This value should be passed to the same endpoint\nto get the next page. Empty/not included if there's no \"next\" page.\nStop paging when there's no \"Next\" item in the response!", + "credit_cost": {}, + "external_id": { "type": "string" }, - "page_item_limit": { - "description": "PageItemLimit - per-page item count. A given page might include\nless items if there's not enough items. This value is the \"max item count per page\".", - "type": "integer" + "finished_at": { + "type": "string" }, - "total_item_count": { - "description": "TotalItemCount - total item count, through \"all pages\"", - "type": "integer" + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "started_at": { + "type": "string" + }, + "status": { + "type": "string" } } }, @@ -6324,7 +8408,7 @@ "type": "string" }, "price": { - "$ref": "#/definitions/nulls.Int64" + "$ref": "#/definitions/github.com_markbates_pop_nulls.Int64" } } }, @@ -6652,16 +8736,16 @@ "type": "string" }, "response_body": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "response_headers": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "response_http_status": { - "$ref": "#/definitions/nulls.Int64" + "$ref": "#/definitions/github.com_markbates_pop_nulls.Int64" }, "response_seconds": { - "$ref": "#/definitions/nulls.Int64" + "$ref": "#/definitions/github.com_markbates_pop_nulls.Int64" }, "slug": { "type": "string" diff --git a/swagger_patched.json b/swagger_patched.json index 67b6495..a9a48aa 100644 --- a/swagger_patched.json +++ b/swagger_patched.json @@ -21,11 +21,6 @@ "paths": { "/addons": { "get": { - "security": [ - { - "PersonalAccessToken": [] - } - ], "description": "List all the available Bitrise addons", "produces": [ "application/json" @@ -71,11 +66,6 @@ }, "/addons/{addon-id}": { "get": { - "security": [ - { - "PersonalAccessToken": [] - } - ], "description": "Show details of a specific Bitrise addon", "produces": [ "application/json" @@ -167,6 +157,18 @@ "description": "Max number of elements per page (default: 50)", "name": "limit", "in": "query" + }, + { + "type": "string", + "description": "The title of the app", + "name": "title", + "in": "query" + }, + { + "type": "string", + "description": "The project type of the app (eg. 'ios', 'android')", + "name": "project_type", + "in": "query" } ], "responses": { @@ -327,6 +329,75 @@ } } } + }, + "patch": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "Updates an app by slug. Only updates the fields specified in the body.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "application" + ], + "summary": "Updates an app", + "operationId": "app-update", + "parameters": [ + { + "type": "string", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + }, + { + "description": "App update params. All fields are optional, omit the fields you don't wish to update.", + "name": "app", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v0.AppUpdateParams" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.AppUpdateRespModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } } }, "/apps/{app-slug}/addons": { @@ -535,14 +606,14 @@ } } }, - "/apps/{app-slug}/avatar-candidates": { + "/apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}": { "post": { "security": [ { "PersonalAccessToken": [] } ], - "description": "Add new avatar candidates to a specific app", + "description": "This is the last step of uploading an android keystore file to Bitrise. Confirm the android keystore file upload and view the file on the Code Signing tab of a specific app. Read more in our [Confirming the upload](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#confirming-the-file-upload) guide.", "consumes": [ "application/json" ], @@ -550,10 +621,10 @@ "application/json" ], "tags": [ - "avatar-candidate" + "android-keystore-file" ], - "summary": "Create avatar candidates", - "operationId": "avatar-candidate-create", + "summary": "Confirm an android keystore file upload", + "operationId": "android-keystore-file-confirm", "parameters": [ { "type": "string", @@ -563,26 +634,18 @@ "required": true }, { - "description": "Avatar candidate parameters", - "name": "avatar-candidate", - "in": "body", - "required": true, - "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/v0.AvatarCandidateCreateParams" - } - } + "type": "string", + "description": "Android keystore file slug", + "name": "android-keystore-file-slug", + "in": "path", + "required": true } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "schema": { - "type": "array", - "items": { - "$ref": "#/definitions/v0.AvatarCandidateCreateResponseItem" - } + "$ref": "#/definitions/v0.ProjectFileStorageResponseModel" } }, "400": { @@ -610,27 +673,22 @@ } } } - } - }, - "/apps/{app-slug}/avatar-candidates/{avatar-slug}": { - "patch": { + }, + "delete": { "security": [ { "PersonalAccessToken": [] } ], - "description": "Promotes an avatar candidate for an app", - "consumes": [ - "application/json" - ], + "description": "Delete an app's android keystore file. You can fetch an app's android keystore file slug if you first list all the uploaded files with the [GET /apps/{app-slug}/android-keystore-files](https://api-docs.bitrise.io/#/android-keystore-file/android-keystore-file-list) endpoint. Read more in our [Deleting a file](https://devcenter.bitrise.io/api/managing-android-keystore-files.html) guide.", "produces": [ "application/json" ], "tags": [ - "avatar-candidate" + "android-keystore-file" ], - "summary": "Promote an avatar candidate", - "operationId": "avatar-candidate-promote", + "summary": "Delete an android keystore file", + "operationId": "android-keystore-file-delete", "parameters": [ { "type": "string", @@ -641,26 +699,17 @@ }, { "type": "string", - "description": "Avatar candidate slug", - "name": "avatar-slug", + "description": "Android keystore file slug", + "name": "android-keystore-file-slug", "in": "path", "required": true - }, - { - "description": "Avatar promote parameters", - "name": "avatar-promote-params", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v0.AvatarPromoteParams" - } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.AvatarPromoteResponseModel" + "$ref": "#/definitions/v0.ProjectFileStorageResponseModel" } }, "400": { @@ -690,7 +739,7 @@ } } }, - "/apps/{app-slug}/bitrise.yml": { + "/apps/{app-slug}/archived-builds": { "get": { "security": [ { @@ -700,15 +749,15 @@ "AddonAuthToken": [] } ], - "description": "Get the full `bitrise.yml` configuration of an application, by providing the app slug. It returns the current `bitrise.yml` that is stored on bitrise.io in full, including the trigger map, the different workflows and the Steps.", + "description": "List the first 1000 archived builds of a specified Bitrise app. Set parameters to filter builds:", "produces": [ - "text/plain" + "application/json" ], "tags": [ - "application" + "builds" ], - "summary": "Get bitrise.yml of a specific app", - "operationId": "app-config-datastore-show", + "summary": "List 1000 archived builds of an app", + "operationId": "archived-builds-list", "parameters": [ { "type": "string", @@ -716,13 +765,27 @@ "name": "app-slug", "in": "path", "required": true + }, + { + "type": "integer", + "description": "Listed builds should only be the ones which ran after the given date (Unix Timestamp)", + "name": "after", + "in": "query", + "required": true + }, + { + "type": "integer", + "description": "Listed builds should only be the ones which ran before the given date (Unix Timestamp)", + "name": "before", + "in": "query", + "required": true } ], "responses": { "200": { - "description": "{the bitrise.yml in yml format}", + "description": "OK", "schema": { - "type": "string" + "$ref": "#/definitions/v0.ArchivedBuildListResponseModel" } }, "400": { @@ -750,14 +813,16 @@ } } } - }, + } + }, + "/apps/{app-slug}/avatar-candidates": { "post": { "security": [ { "PersonalAccessToken": [] } ], - "description": "Upload a new bitrise.yml for your application.", + "description": "Add new avatar candidates to a specific app", "consumes": [ "application/json" ], @@ -765,10 +830,10 @@ "application/json" ], "tags": [ - "app-setup" + "avatar-candidate" ], - "summary": "Upload a new bitrise.yml for your application.", - "operationId": "app-config-create", + "summary": "Create avatar candidates", + "operationId": "avatar-candidate-create", "parameters": [ { "type": "string", @@ -778,20 +843,26 @@ "required": true }, { - "description": "App config parameters", - "name": "app-config", + "description": "Avatar candidate parameters", + "name": "avatar-candidate", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v0.AppConfigRequestParam" + "type": "array", + "items": { + "$ref": "#/definitions/v0.AvatarCandidateCreateParams" + } } } ], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "schema": { - "$ref": "#/definitions/v0.AppConfigRespModel" + "type": "array", + "items": { + "$ref": "#/definitions/v0.AvatarCandidateCreateResponseItem" + } } }, "400": { @@ -815,31 +886,31 @@ "500": { "description": "Internal Server Error", "schema": { - "$ref": "#/definitions/v0.ProxyErrorRespModel" + "$ref": "#/definitions/service.StandardErrorRespModel" } } } } }, - "/apps/{app-slug}/branches": { - "get": { + "/apps/{app-slug}/avatar-candidates/{avatar-slug}": { + "patch": { "security": [ { "PersonalAccessToken": [] - }, - { - "AddonAuthToken": [] } ], - "description": "Lists only those branches of a specified Bitrise app that have existing builds.", + "description": "Promotes an avatar candidate for an app", + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "application" + "avatar-candidate" ], - "summary": "List the branches with existing builds of an app's repository", - "operationId": "branch-list", + "summary": "Promote an avatar candidate", + "operationId": "avatar-candidate-promote", "parameters": [ { "type": "string", @@ -847,13 +918,29 @@ "name": "app-slug", "in": "path", "required": true + }, + { + "type": "string", + "description": "Avatar candidate slug", + "name": "avatar-slug", + "in": "path", + "required": true + }, + { + "description": "Avatar promote parameters", + "name": "avatar-promote-params", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v0.AvatarPromoteParams" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.BranchListResponseModel" + "$ref": "#/definitions/v0.AvatarPromoteResponseModel" } }, "400": { @@ -883,7 +970,7 @@ } } }, - "/apps/{app-slug}/build-certificates": { + "/apps/{app-slug}/bitrise.yml": { "get": { "security": [ { @@ -893,15 +980,15 @@ "AddonAuthToken": [] } ], - "description": "List all the build certificates that have been uploaded to a specific app. Read more in our [Listing the uploaded iOS code signing files of an app](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#listing-the-uploaded-ios-code-signing-files-of-an-app) guide.", + "description": "Get the full `bitrise.yml` configuration of an application, by providing the app slug. It returns the current `bitrise.yml` that is stored on bitrise.io in full, including the trigger map, the different workflows and the Steps.", "produces": [ - "application/json" + "text/plain" ], "tags": [ - "build-certificate" + "application" ], - "summary": "Get a list of the build certificates", - "operationId": "build-certificate-list", + "summary": "Get bitrise.yml of a specific app", + "operationId": "app-config-datastore-show", "parameters": [ { "type": "string", @@ -909,26 +996,13 @@ "name": "app-slug", "in": "path", "required": true - }, - { - "type": "string", - "description": "Slug of the first build certificate in the response", - "name": "next", - "in": "query" - }, - { - "maximum": 50, - "type": "integer", - "description": "Max number of build certificates per page is 50.", - "name": "limit", - "in": "query" } ], "responses": { "200": { - "description": "OK", + "description": "{the bitrise.yml in yml format}", "schema": { - "$ref": "#/definitions/v0.BuildCertificateListResponseModel" + "type": "string" } }, "400": { @@ -963,7 +1037,213 @@ "PersonalAccessToken": [] } ], - "description": "Create a temporary pre-signed upload URL for the build certificate and upload the file to AWS with a simple `curl` request. To complete the uploading process and view your files on the Code Signing tab of your app, continue with the [POST /apps/{app-slug}/build-certificates/{build-certificate-slug}/uploaded](https://api-docs.bitrise.io/#/build-certificate/build-certificate-confirm) endpoint. Read more in our [Creating and uploading an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#creating--uploading-an-ios-code-signing-file) guide.", + "description": "Upload a new bitrise.yml for your application.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "app-setup" + ], + "summary": "Upload a new bitrise.yml for your application.", + "operationId": "app-config-create", + "parameters": [ + { + "type": "string", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + }, + { + "description": "App config parameters", + "name": "app-config", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v0.AppConfigRequestParam" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.AppConfigRespModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/v0.ProxyErrorRespModel" + } + } + } + } + }, + "/apps/{app-slug}/branches": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + }, + { + "AddonAuthToken": [] + } + ], + "description": "Lists only those branches of a specified Bitrise app that have existing builds.", + "produces": [ + "application/json" + ], + "tags": [ + "application" + ], + "summary": "List the branches with existing builds of an app's repository", + "operationId": "branch-list", + "parameters": [ + { + "type": "string", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.BranchListResponseModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/apps/{app-slug}/build-certificates": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + }, + { + "AddonAuthToken": [] + } + ], + "description": "List all the build certificates that have been uploaded to a specific app. Read more in our [Listing the uploaded iOS code signing files of an app](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#listing-the-uploaded-ios-code-signing-files-of-an-app) guide.", + "produces": [ + "application/json" + ], + "tags": [ + "build-certificate" + ], + "summary": "Get a list of the build certificates", + "operationId": "build-certificate-list", + "parameters": [ + { + "type": "string", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "Slug of the first build certificate in the response", + "name": "next", + "in": "query" + }, + { + "maximum": 50, + "type": "integer", + "description": "Max number of build certificates per page is 50.", + "name": "limit", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.BuildCertificateListResponseModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + }, + "post": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "Create a temporary pre-signed upload URL for the build certificate and upload the file to AWS with a simple `curl` request. To complete the uploading process and view your files on the Code Signing tab of your app, continue with the [POST /apps/{app-slug}/build-certificates/{build-certificate-slug}/uploaded](https://api-docs.bitrise.io/#/build-certificate/build-certificate-confirm) endpoint. Read more in our [Creating and uploading an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#creating--uploading-an-ios-code-signing-file) guide.", "consumes": [ "application/json" ], @@ -1596,6 +1876,12 @@ "name": "status", "in": "query" }, + { + "type": "boolean", + "description": "Whether the builds are part of a pipeline or not", + "name": "is_pipeline_build", + "in": "query" + }, { "type": "string", "description": "Slug of the first build in the response", @@ -1652,7 +1938,7 @@ "AddonAuthToken": [] } ], - "description": "Trigger a new build. Specify an app slug and at least one parameter out of three: a git tag or git commit hash, a branch, or a workflow ID. You can also set specific parameters for Pull Request builds and define additional environment variables for your build. [Check out our detailed guide](https://devcenter.bitrise.io/api/build-trigger/).", + "description": "Trigger a new build/pipeline. Specify an app slug and at least one parameter out of three: a git tag or git commit hash, a branch, or a workflow/pipeline ID. You can also set specific parameters for Pull Request builds/pipelines and define additional environment variables for your build/pipeline. [Check out our detailed guide](https://devcenter.bitrise.io/api/build-trigger/).", "consumes": [ "application/json" ], @@ -1662,7 +1948,7 @@ "tags": [ "builds" ], - "summary": "Trigger a new build", + "summary": "Trigger a new build/pipeline", "operationId": "build-trigger", "parameters": [ { @@ -1882,7 +2168,7 @@ "AddonAuthToken": [] } ], - "description": "List all build artifacts that have been generated for an app's build. You can use the created build artifact slugs from the response output to retrieve data of a specific build artifact with the [GET/apps/](https://api-docs.bitrise.io/#/build-artifact/artifact-show) endpoint or update a build artifact with the [PATCH/apps](https://api-docs.bitrise.io/#/build-artifact/artifact-update) endpoint.", + "description": "List all build artifacts that have been generated for an app's build. This endpoint can retrieve artifacts from the archive as well. You can use the created build artifact slugs from the response output to retrieve data of a specific build artifact with the [GET/apps/](https://api-docs.bitrise.io/#/build-artifact/artifact-show) endpoint or update a build artifact with the [PATCH/apps](https://api-docs.bitrise.io/#/build-artifact/artifact-update) endpoint.", "produces": [ "application/json" ], @@ -1964,7 +2250,7 @@ "AddonAuthToken": [] } ], - "description": "Retrieve data of a specific build artifact. The response output contains a time-limited download url (expires in 10 minutes) and a public install page URL. You can view the build artifact with both URLs, but the public install page url will not work unless you [enable it](https://devcenter.bitrise.io/tutorials/deploy/bitrise-app-deployment/#enabling-public-page-for-the-app).", + "description": "Retrieve data of a specific build artifact. The endpoint can retrieve archived artifacts as well. The response output contains a time-limited download url (expires in 10 minutes) and a public install-page URL. You can view the build artifact with both URLs, but the public install-page url will not work unless you [enable it](https://devcenter.bitrise.io/tutorials/deploy/bitrise-app-deployment/#enabling-public-page-for-the-app).", "produces": [ "application/json" ], @@ -2269,7 +2555,7 @@ "AddonAuthToken": [] } ], - "description": "Get the build log of a specified build of a Bitrise app. You can get the build slug either by calling the [/builds](https://api-docs.bitrise.io/#/builds/build-list) endpoint or by clicking on the build on bitrise.io and copying the slug from the URL.", + "description": "Get the build log of a specified build of a Bitrise app. You can get the build slug either by calling the [/builds](https://api-docs.bitrise.io/#/builds/build-list) endpoint or by clicking on the build on bitrise.io and copying the slug from the URL. Preview of the log is returned in `log_chunks` field in JSON format. You can download the full raw log in txt by using the signed url returned in `expiring_raw_log_url`. Be aware that this url is expiring in 10 minutes!", "produces": [ "application/json" ], @@ -2295,12 +2581,6 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v0.BuildLogInfoResponseModel" - } - }, "400": { "description": "Bad Request", "schema": { @@ -2328,25 +2608,22 @@ } } }, - "/apps/{app-slug}/finish": { - "post": { + "/apps/{app-slug}/cache-items": { + "get": { "security": [ { "PersonalAccessToken": [] } ], - "description": "Save the application after registering it on Bitrise and registering an SSH key (and, optionally, adding a webhook). With this endpoint you can define the initial configuration, define application-level environment variables, determine the project type, and set an Organization to be the owner of the app. Read more about the app registration process in our [detailed guide](https://devcenter.bitrise.io/api/adding-and-managing-apps/#adding-a-new-app).", - "consumes": [ - "application/json" - ], + "description": "List all the available cache items that the builds of the app created via the save-cache step.", "produces": [ "application/json" ], "tags": [ - "app-setup" + "key-value-cache" ], - "summary": "Save the application at the end of the app registration process", - "operationId": "app-finish", + "summary": "List the key-value cache items belonging to an app", + "operationId": "cache-list", "parameters": [ { "type": "string", @@ -2356,20 +2633,17 @@ "required": true }, { - "description": "App finish parameters", - "name": "app", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v0.AppFinishParams" - } + "type": "integer", + "description": "Max number of elements per page (default: 100)", + "name": "limit", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.AppFinishRespModel" + "$ref": "#/definitions/v0.CacheItemListResponseModel" } }, "400": { @@ -2397,27 +2671,22 @@ } } } - } - }, - "/apps/{app-slug}/generic-project-files": { - "get": { + }, + "delete": { "security": [ { "PersonalAccessToken": [] - }, - { - "AddonAuthToken": [] } ], - "description": "List all the generic project files that have been uploaded to a specific app. Read more in our [Listing the uploaded files of an app](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#listing-the-uploaded-files-of-an-app) guide.", + "description": "Deletes all key-value cache items created by the builds of an app. Deleted cache items are no longer accessible and cannot be restored.", "produces": [ "application/json" ], "tags": [ - "generic-project-file" + "key-value-cache" ], - "summary": "Get a list of the generic project files", - "operationId": "generic-project-file-list", + "summary": "Deletes all key-value cache items belonging to an app", + "operationId": "cache-item-delete-all", "parameters": [ { "type": "string", @@ -2425,10 +2694,269 @@ "name": "app-slug", "in": "path", "required": true + } + ], + "responses": { + "200": { + "description": "OK" }, - { - "type": "string", - "description": "Slug of the first generic project file in the response", + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/apps/{app-slug}/cache-items/{cache-item-id}": { + "delete": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "Deletes a key-value cache item. Deleted cache items are no longer accessible and cannot be restored.", + "produces": [ + "application/json" + ], + "tags": [ + "key-value-cache" + ], + "summary": "Deletes a key-value cache item", + "operationId": "cache-item-delete", + "parameters": [ + { + "type": "string", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "The ID of the cache item to be deleted", + "name": "cache-item-id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK" + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/apps/{app-slug}/cache-items/{cache-item-id}/download": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "Gets a download URL of a cache item.", + "produces": [ + "application/json" + ], + "tags": [ + "key-value-cache" + ], + "summary": "Gets the download URL of a key-value cache item", + "operationId": "cache-item-download", + "parameters": [ + { + "type": "string", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "The ID of the cache item to be downloaded", + "name": "cache-item-id", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.CacheItemDownloadResponseModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/apps/{app-slug}/finish": { + "post": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "Save the application after registering it on Bitrise and registering an SSH key (and, optionally, adding a webhook). With this endpoint you can define the initial configuration, define application-level environment variables, determine the project type, and set an Organization to be the owner of the app. Read more about the app registration process in our [detailed guide](https://devcenter.bitrise.io/api/adding-and-managing-apps/#adding-a-new-app).", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "app-setup" + ], + "summary": "Save the application at the end of the app registration process", + "operationId": "app-finish", + "parameters": [ + { + "type": "string", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + }, + { + "description": "App finish parameters", + "name": "app", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v0.AppFinishParams" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.AppFinishRespModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/apps/{app-slug}/generic-project-files": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + }, + { + "AddonAuthToken": [] + } + ], + "description": "List all the generic project files that have been uploaded to a specific app. Read more in our [Listing the uploaded files of an app](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#listing-the-uploaded-files-of-an-app) guide.", + "produces": [ + "application/json" + ], + "tags": [ + "generic-project-file" + ], + "summary": "Get a list of the generic project files", + "operationId": "generic-project-file-list", + "parameters": [ + { + "type": "string", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "Slug of the first generic project file in the response", "name": "next", "in": "query" }, @@ -3302,7 +3830,7 @@ } } }, - "/apps/{app-slug}/provisioning-profiles": { + "/apps/{app-slug}/pipelines": { "get": { "security": [ { @@ -3312,15 +3840,15 @@ "AddonAuthToken": [] } ], - "description": "List all the provisioning profiles that have been uploaded to a specific app. Read more in our [Listing the uploaded iOS code signing files of an app](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#listing-the-uploaded-ios-code-signing-files-of-an-app) guide.", + "description": "List all the pipelines and standalone builds of a specified Bitrise app. Set parameters to filter pipelines: for example, you can search for pipelines/standalone builds run with a given workflow name or all pipelines/standalone builds that were triggered by Pull Requests. It returns all the relevant data of the pipelines/standalone builds.", "produces": [ "application/json" ], "tags": [ - "provisioning-profile" + "pipelines" ], - "summary": "Get a list of the provisioning profiles", - "operationId": "provisioning-profile-list", + "summary": "List all pipelines and standalone builds of an app", + "operationId": "pipeline-list", "parameters": [ { "type": "string", @@ -3331,92 +3859,58 @@ }, { "type": "string", - "description": "Slug of the first provisioning profile in the response", - "name": "next", + "description": "The branch which was built", + "name": "branch", "in": "query" }, { - "maximum": 50, - "type": "integer", - "description": "Max number of elements per page (default: 50)", - "name": "limit", + "type": "string", + "description": "The name of the workflow used for the pipeline/standalone build", + "name": "workflow", "in": "query" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v0.ProvisionProfileListResponseModel" - } }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/service.StandardErrorRespModel" - } + { + "type": "string", + "description": "The commit message of the pipeline/standalone build", + "name": "commit_message", + "in": "query" }, - "401": { - "description": "Unauthorized", - "schema": { - "$ref": "#/definitions/service.StandardErrorRespModel" - } + { + "type": "string", + "description": "The event that triggered the pipeline/standalone build (push, pull-request, tag)", + "name": "trigger_event_type", + "in": "query" }, - "404": { - "description": "Not Found", - "schema": { - "$ref": "#/definitions/service.StandardErrorRespModel" - } + { + "type": "integer", + "description": "The pipeline/standalone build number", + "name": "build_number", + "in": "query" }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/service.StandardErrorRespModel" - } - } - } - }, - "post": { - "security": [ { - "PersonalAccessToken": [] - } - ], - "description": "Create a temporary pre-signed upload URL (expires in 10 minutes) for the provisioning profile and upload it to AWS with a simple `curl` request. To complete the upload process, continue with the [POST /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-confirm) endpoint. Read more in our [Creating and uploading an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#creating--uploading-an-ios-code-signing-file) guide.", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "tags": [ - "provisioning-profile" - ], - "summary": "Create a provisioning profile", - "operationId": "provisioning-profile-create", - "parameters": [ + "type": "string", + "description": "List pipelines/standalone builds run before a given date (RFC3339 time format)", + "name": "next", + "in": "query" + }, { "type": "string", - "description": "App slug", - "name": "app-slug", - "in": "path", - "required": true + "description": "The status of the pipeline/standalone build: initializing, on_hold, running, succeeded, failed, aborted, succeeded_with_abort", + "name": "status", + "in": "query" }, { - "description": "Provisioning profile parameters such as file name and file size", - "name": "provisioning-profile", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v0.ProvisionProfileUploadParams" - } + "type": "integer", + "description": "Max number of elements per page (default: 10)", + "name": "limit", + "in": "query" } ], "responses": { - "201": { - "description": "Created", + "200": { + "description": "OK", "schema": { - "$ref": "#/definitions/v0.ProvisionProfileResponseModel" + "$ref": "#/definitions/v0.PipelineListResponseModel" } }, "400": { @@ -3446,22 +3940,25 @@ } } }, - "/apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}": { + "/apps/{app-slug}/pipelines/{pipeline-id}": { "get": { "security": [ { "PersonalAccessToken": [] + }, + { + "AddonAuthToken": [] } ], - "description": "Retrieve data of a specific provisioning profile. You can fetch the provisioning profile's slug if you call the [GET /apps/{app-slug}/provisioning-profiles](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-list) endpoint. Read more in our [Getting a specific iOS code signing file's data](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#getting-a-specific-ios-code-signing-files-data) guide.", + "description": "Get the specified pipeline of a given Bitrise app. You need to provide both an app slug and a pipeline id. You can get the pipeline id either by calling the [/pipelines](https://api-docs.bitrise.io/#/pipelines/pipeline-list) endpoint or by clicking on the pipeline on bitrise.io and copying the id from the URL. The endpoint returns all the relevant data of the pipeline.", "produces": [ "application/json" ], "tags": [ - "provisioning-profile" + "pipelines" ], - "summary": "Get a specific provisioning profile", - "operationId": "provisioning-profile-show", + "summary": "Get a pipeline of a given app", + "operationId": "pipeline-show", "parameters": [ { "type": "string", @@ -3472,8 +3969,8 @@ }, { "type": "string", - "description": "Provisioning profile slug", - "name": "provisioning-profile-slug", + "description": "Pipeline id", + "name": "pipeline-id", "in": "path", "required": true } @@ -3482,7 +3979,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.ProvisionProfileResponseModel" + "$ref": "#/definitions/v0.PipelineShowResponseModel" } }, "400": { @@ -3510,22 +4007,27 @@ } } } - }, - "delete": { + } + }, + "/apps/{app-slug}/pipelines/{pipeline-id}/abort": { + "post": { "security": [ { "PersonalAccessToken": [] + }, + { + "AddonAuthToken": [] } ], - "description": "Delete an app's provisioning profile. You can fetch the provisioning profile's slug if you call the [GET /apps/{app-slug}/provisioning-profiles](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-list) endpoint. Read more in our [Deleting an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#deleting-an-ios-code-signing-file) guide.", + "description": "Aborts a pipeline. You need to provide the app slug and the id of the pipeline. You can add an abort reason, choose to skip notifications and make the abort with success state.", "produces": [ "application/json" ], "tags": [ - "provisioning-profile" + "pipelines" ], - "summary": "Delete a provisioning profile", - "operationId": "provisioning-profile-delete", + "summary": "Aborts a pipeline", + "operationId": "pipeline-abort", "parameters": [ { "type": "string", @@ -3536,18 +4038,24 @@ }, { "type": "string", - "description": "Provisioning profile slug", - "name": "provisioning-profile-slug", + "description": "Pipeline id", + "name": "pipeline-id", "in": "path", "required": true + }, + { + "description": "Pipeline abort parameters", + "name": "pipeline-abort-params", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v0.PipelineAbortParams" + } } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v0.ProvisionProfileResponseModel" - } + "description": "OK" }, "400": { "description": "Bad Request", @@ -3574,25 +4082,24 @@ } } } - }, - "patch": { + } + }, + "/apps/{app-slug}/pipelines/{pipeline-id}/rebuild": { + "post": { "security": [ { "PersonalAccessToken": [] } ], - "description": "Update an uploaded provisioning profile's attributes. You can fetch the provisioning profile's slug if you call the [GET /apps/{app-slug}/provisioning-profiles](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-list) endpoint. Read more in our [Updating an uploaded iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#confirming-the-ios-code-signing-file-upload) guide.", - "consumes": [ - "application/json" - ], + "description": "Rebuilds a pipeline. You can rebuild the whole pipeline or only the unsuccessful and subsequent workflows by setting the partial flag to true.", "produces": [ "application/json" ], "tags": [ - "provisioning-profile" + "pipelines" ], - "summary": "Update a provisioning profile", - "operationId": "provisioning-profile-update", + "summary": "Rebuilds a pipeline", + "operationId": "pipeline-rebuild", "parameters": [ { "type": "string", @@ -3603,27 +4110,24 @@ }, { "type": "string", - "description": "Provisioning profile slug", - "name": "provisioning-profile-slug", + "description": "Pipeline id", + "name": "pipeline-id", "in": "path", "required": true }, { - "description": "Provisioning profile parameters", - "name": "provisioning-profile", + "description": "Pipeline rebuild parameters", + "name": "pipeline-rebuild-params", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v0.ProvProfileDocumentUpdateParams" + "$ref": "#/definitions/v0.PipelineRebuildParams" } } ], "responses": { "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v0.ProvisionProfileResponseModel" - } + "description": "OK" }, "400": { "description": "Bad Request", @@ -3643,6 +4147,12 @@ "$ref": "#/definitions/service.StandardErrorRespModel" } }, + "412": { + "description": "Precondition Failed", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, "500": { "description": "Internal Server Error", "schema": { @@ -3652,25 +4162,25 @@ } } }, - "/apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded": { - "post": { + "/apps/{app-slug}/provisioning-profiles": { + "get": { "security": [ { "PersonalAccessToken": [] + }, + { + "AddonAuthToken": [] } ], - "description": "This is the last step of the upload process. Confirm the provisioning profile upload and view the file on the Code Signing tab of a specific app. Read more in our [Confirming the iOS code signing file upload](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#confirming-the-ios-code-signing-file-upload) guide.", - "consumes": [ - "application/json" - ], + "description": "List all the provisioning profiles that have been uploaded to a specific app. Read more in our [Listing the uploaded iOS code signing files of an app](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#listing-the-uploaded-ios-code-signing-files-of-an-app) guide.", "produces": [ "application/json" ], "tags": [ "provisioning-profile" ], - "summary": "Confirm a provisioning profile upload", - "operationId": "provisioning-profile-confirm", + "summary": "Get a list of the provisioning profiles", + "operationId": "provisioning-profile-list", "parameters": [ { "type": "string", @@ -3681,17 +4191,23 @@ }, { "type": "string", - "description": "Provisioning profile slug", - "name": "provisioning-profile-slug", - "in": "path", - "required": true + "description": "Slug of the first provisioning profile in the response", + "name": "next", + "in": "query" + }, + { + "maximum": 50, + "type": "integer", + "description": "Max number of elements per page (default: 50)", + "name": "limit", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.ProvisionProfileResponseModel" + "$ref": "#/definitions/v0.ProvisionProfileListResponseModel" } }, "400": { @@ -3719,16 +4235,14 @@ } } } - } - }, - "/apps/{app-slug}/register-ssh-key": { + }, "post": { "security": [ { "PersonalAccessToken": [] } ], - "description": "Add an SSH-key to a specific app. After creating an app, you need to register the SSH key so that Bitrise will be able to access and clone your repository during the build process. This requires the app slug of your newly created app.", + "description": "Create a temporary pre-signed upload URL (expires in 10 minutes) for the provisioning profile and upload it to AWS with a simple `curl` request. To complete the upload process, continue with the [POST /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-confirm) endpoint. Read more in our [Creating and uploading an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#creating--uploading-an-ios-code-signing-file) guide.", "consumes": [ "application/json" ], @@ -3736,10 +4250,10 @@ "application/json" ], "tags": [ - "app-setup" + "provisioning-profile" ], - "summary": "Add an SSH-key to a specific app", - "operationId": "ssh-key-create", + "summary": "Create a provisioning profile", + "operationId": "provisioning-profile-create", "parameters": [ { "type": "string", @@ -3749,20 +4263,20 @@ "required": true }, { - "description": "SSH key parameters", - "name": "ssh-key", + "description": "Provisioning profile parameters such as file name and file size", + "name": "provisioning-profile", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/v0.SSHKeyUploadParams" + "$ref": "#/definitions/v0.ProvisionProfileUploadParams" } } ], "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "schema": { - "$ref": "#/definitions/v0.SSHKeyRespModel" + "$ref": "#/definitions/v0.ProvisionProfileResponseModel" } }, "400": { @@ -3792,25 +4306,22 @@ } } }, - "/apps/{app-slug}/register-webhook": { - "post": { + "/apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}": { + "get": { "security": [ { "PersonalAccessToken": [] } ], - "description": "[Register an incoming webhook](https://devcenter.bitrise.io/api/incoming-and-outgoing-webhooks/#incoming-webhooks) for a specific application. You can do this during the app registration process or at any other time in an app's life. When calling this endpoint, a webhook is registered at your git provider: this is necessary to automatically trigger builds on Bitrise.", - "consumes": [ - "application/json" - ], + "description": "Retrieve data of a specific provisioning profile. You can fetch the provisioning profile's slug if you call the [GET /apps/{app-slug}/provisioning-profiles](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-list) endpoint. Read more in our [Getting a specific iOS code signing file's data](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#getting-a-specific-ios-code-signing-files-data) guide.", "produces": [ "application/json" ], "tags": [ - "app-setup" + "provisioning-profile" ], - "summary": "Register an incoming webhook for a specific application", - "operationId": "app-webhook-create", + "summary": "Get a specific provisioning profile", + "operationId": "provisioning-profile-show", "parameters": [ { "type": "string", @@ -3818,13 +4329,20 @@ "name": "app-slug", "in": "path", "required": true + }, + { + "type": "string", + "description": "Provisioning profile slug", + "name": "provisioning-profile-slug", + "in": "path", + "required": true } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.WebhookRespModel" + "$ref": "#/definitions/v0.ProvisionProfileResponseModel" } }, "400": { @@ -3852,27 +4370,22 @@ } } } - } - }, - "/apps/{app-slug}/test-devices": { - "get": { + }, + "delete": { "security": [ { "PersonalAccessToken": [] - }, - { - "AddonAuthToken": [] } ], - "description": "List registered test devices of all members of a specified Bitrise app", + "description": "Delete an app's provisioning profile. You can fetch the provisioning profile's slug if you call the [GET /apps/{app-slug}/provisioning-profiles](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-list) endpoint. Read more in our [Deleting an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#deleting-an-ios-code-signing-file) guide.", "produces": [ "application/json" ], "tags": [ - "test-devices" + "provisioning-profile" ], - "summary": "List the test devices for an app", - "operationId": "test-device-list", + "summary": "Delete a provisioning profile", + "operationId": "provisioning-profile-delete", "parameters": [ { "type": "string", @@ -3880,13 +4393,20 @@ "name": "app-slug", "in": "path", "required": true + }, + { + "type": "string", + "description": "Provisioning profile slug", + "name": "provisioning-profile-slug", + "in": "path", + "required": true } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.TestDeviceListResponseModel" + "$ref": "#/definitions/v0.ProvisionProfileResponseModel" } }, "400": { @@ -3914,63 +4434,55 @@ } } } - } - }, - "/builds": { - "get": { + }, + "patch": { "security": [ { "PersonalAccessToken": [] } ], - "description": "List all the Bitrise builds that can be accessed with the authenticated account. Filter builds based on their owner, using the owner slug, or the status of the build.", + "description": "Update an uploaded provisioning profile's attributes. You can fetch the provisioning profile's slug if you call the [GET /apps/{app-slug}/provisioning-profiles](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-list) endpoint. Read more in our [Updating an uploaded iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#confirming-the-ios-code-signing-file-upload) guide.", + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "builds" + "provisioning-profile" ], - "summary": "List all builds", - "operationId": "build-list-all", + "summary": "Update a provisioning profile", + "operationId": "provisioning-profile-update", "parameters": [ { "type": "string", - "description": "The slug of the owner of the app or apps", - "name": "owner_slug", - "in": "query" - }, - { - "type": "boolean", - "description": "Indicates whether the build has started yet (true: the build hasn't started)", - "name": "is_on_hold", - "in": "query" - }, - { - "maximum": 4, - "type": "integer", - "description": "The status of the build: not finished (0), successful (1), failed (2), aborted with failure (3), aborted with success (4)", - "name": "status", - "in": "query" + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true }, { "type": "string", - "description": "Slug of the first build in the response", - "name": "next", - "in": "query" + "description": "Provisioning profile slug", + "name": "provisioning-profile-slug", + "in": "path", + "required": true }, { - "maximum": 50, - "type": "integer", - "description": "Max number of elements per page (default: 50)", - "name": "limit", - "in": "query" + "description": "Provisioning profile parameters", + "name": "provisioning-profile", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v0.ProvProfileDocumentUpdateParams" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.BuildListAllResponseModel" + "$ref": "#/definitions/v0.ProvisionProfileResponseModel" } }, "400": { @@ -4000,27 +4512,52 @@ } } }, - "/me": { - "get": { + "/apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded": { + "post": { "security": [ { "PersonalAccessToken": [] } ], - "description": "Shows the authenticated users profile data", + "description": "This is the last step of the upload process. Confirm the provisioning profile upload and view the file on the Code Signing tab of a specific app. Read more in our [Confirming the iOS code signing file upload](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#confirming-the-ios-code-signing-file-upload) guide.", + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "user" + "provisioning-profile" + ], + "summary": "Confirm a provisioning profile upload", + "operationId": "provisioning-profile-confirm", + "parameters": [ + { + "type": "string", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "Provisioning profile slug", + "name": "provisioning-profile-slug", + "in": "path", + "required": true + } ], - "summary": "Get your profile data", - "operationId": "user-profile", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.UserProfileRespModel" + "$ref": "#/definitions/v0.ProvisionProfileResponseModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" } }, "401": { @@ -4044,42 +4581,48 @@ } } }, - "/me/activities": { - "get": { + "/apps/{app-slug}/register-ssh-key": { + "post": { "security": [ { "PersonalAccessToken": [] } ], - "description": "List all the Bitrise activity events", + "description": "Add an SSH-key to a specific app. After creating an app, you need to register the SSH key so that Bitrise will be able to access and clone your repository during the build process. This requires the app slug of your newly created app.", + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "activity" + "app-setup" ], - "summary": "Get list of Bitrise activity events", - "operationId": "activity-list", + "summary": "Add an SSH-key to a specific app", + "operationId": "ssh-key-create", "parameters": [ { "type": "string", - "description": "Slug of the first activity event in the response", - "name": "next", - "in": "query" + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true }, { - "maximum": 50, - "type": "integer", - "description": "Max number of elements per page (default: 50)", - "name": "limit", - "in": "query" + "description": "SSH key parameters", + "name": "ssh-key", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v0.SSHKeyUploadParams" + } } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.ActivityEventListResponseModel" + "$ref": "#/definitions/v0.SSHKeyRespModel" } }, "400": { @@ -4109,27 +4652,39 @@ } } }, - "/me/plan": { - "get": { + "/apps/{app-slug}/register-webhook": { + "post": { "security": [ { "PersonalAccessToken": [] } ], - "description": "Get the subscription of the user: the current plan, any pending plans, and the duration of a trial period if applicable", + "description": "[Register an incoming webhook](https://devcenter.bitrise.io/api/incoming-and-outgoing-webhooks/#incoming-webhooks) for a specific application. You can do this during the app registration process or at any other time in an app's life. When calling this endpoint, a webhook is registered at your git provider: this is necessary to automatically trigger builds on Bitrise.", + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "user" + "app-setup" + ], + "summary": "Register an incoming webhook for a specific application", + "operationId": "app-webhook-create", + "parameters": [ + { + "type": "string", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + } ], - "summary": "The subscription plan of the user", - "operationId": "user-plan", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.UserPlanRespModel" + "$ref": "#/definitions/v0.WebhookRespModel" } }, "400": { @@ -4159,27 +4714,39 @@ } } }, - "/organizations": { + "/apps/{app-slug}/secrets": { "get": { "security": [ { "PersonalAccessToken": [] } ], - "description": "List all Bitrise organizations that the user is part of", + "description": "List the application secrets (with no values). Requires administrator level privileges to the app.", + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "organizations" + "secrets" + ], + "summary": "List the application secrets (with no values)", + "operationId": "secret-list", + "parameters": [ + { + "type": "string", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + } ], - "summary": "List the organizations that the user is part of", - "operationId": "org-list", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.OrganizationListRespModel" + "$ref": "#/definitions/v0.AppSecretListResponse" } }, "400": { @@ -4209,37 +4776,53 @@ } } }, - "/organizations/{org-slug}": { - "get": { + "/apps/{app-slug}/secrets/{secret-name}": { + "put": { "security": [ { "PersonalAccessToken": [] } ], - "description": "Get a specified Bitrise organization that the user is part of.", + "description": "Upsert an application secret. Requires administrator level privileges to the app.", + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "organizations" + "secrets" ], - "summary": "Get a specified organization.", - "operationId": "org-show", + "summary": "Upsert an application secret", + "operationId": "secret-upsert", "parameters": [ { "type": "string", - "description": "The organization slug", - "name": "org-slug", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "Secret name", + "name": "secret-name", "in": "path", "required": true + }, + { + "description": "Secret parameters", + "name": "app", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v0.AppSecretUpsertParams" + } } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v0.OrganizationRespModel" - } + "201": { + "description": "Created" }, "400": { "description": "Bad Request", @@ -4266,16 +4849,14 @@ } } } - } - }, - "/organizations/{org-slug}/apps": { - "get": { + }, + "delete": { "security": [ { "PersonalAccessToken": [] } ], - "description": "List all the available apps owned by a given organization. [Find the organization URL](https://devcenter.bitrise.io/team-management/organizations/org-url/) of the organisations you are part of; be aware that the endpoint will not return any apps if the authenticated account is not a member of the given organisation.", + "description": "Delete an application secret. Requires administrator level privileges to the app.", "consumes": [ "application/json" ], @@ -4283,48 +4864,29 @@ "application/json" ], "tags": [ - "application" + "secrets" ], - "summary": "Get list of the apps for an organization", - "operationId": "app-list-by-organization", + "summary": "Delete an application secret", + "operationId": "secret-delete", "parameters": [ { "type": "string", - "description": "Organization slug", - "name": "org-slug", + "description": "App slug", + "name": "app-slug", "in": "path", "required": true }, - { - "enum": [ - "last_build_at", - "created_at" - ], - "type": "string", - "description": "Order of applications: sort them based on when they were created or the time of their last build", - "name": "sort_by", - "in": "query" - }, { "type": "string", - "description": "Slug of the first app in the response", - "name": "next", - "in": "query" - }, - { - "maximum": 50, - "type": "integer", - "description": "Max number of elements per page (default: 50)", - "name": "limit", - "in": "query" + "description": "Secret name", + "name": "secret-name", + "in": "path", + "required": true } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v0.AppListResponseModel" - } + "204": { + "description": "No Content" }, "400": { "description": "Bad Request", @@ -4353,27 +4915,37 @@ } } }, - "/organizations/{organization-slug}/addons": { + "/apps/{app-slug}/secrets/{secret-name}/value": { "get": { "security": [ { "PersonalAccessToken": [] } ], - "description": "List all the provisioned addons for organization", + "description": "Get the value of an (unprotected) application secrets. Requires administrator level privileges to the app.", + "consumes": [ + "application/json" + ], "produces": [ "application/json" ], "tags": [ - "addons" + "secrets" ], - "summary": "Get list of the addons for organization", - "operationId": "addon-list-by-organization", + "summary": "Get the value of an (unprotected) application secrets", + "operationId": "secret-value-get", "parameters": [ { "type": "string", - "description": "Organization slug", - "name": "organization-slug", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "Secret name", + "name": "secret-name", "in": "path", "required": true } @@ -4382,7 +4954,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.OwnerAddOnsListResponseModel" + "$ref": "#/definitions/v0.AppSecretGetValueResponse" } }, "400": { @@ -4412,27 +4984,30 @@ } } }, - "/users/{user-slug}": { + "/apps/{app-slug}/test-devices": { "get": { "security": [ { "PersonalAccessToken": [] + }, + { + "AddonAuthToken": [] } ], - "description": "Show information about a specific user", + "description": "List registered test devices of all members of a specified Bitrise app", "produces": [ "application/json" ], "tags": [ - "user" + "test-devices" ], - "summary": "Get a specific user", - "operationId": "user-show", + "summary": "List the test devices for an app", + "operationId": "test-device-list", "parameters": [ { "type": "string", - "description": "User slug", - "name": "user-slug", + "description": "App slug", + "name": "app-slug", "in": "path", "required": true } @@ -4441,7 +5016,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.UserProfileRespModel" + "$ref": "#/definitions/v0.TestDeviceListResponseModel" } }, "400": { @@ -4471,36 +5046,61 @@ } } }, - "/users/{user-slug}/addons": { + "/builds": { "get": { "security": [ { "PersonalAccessToken": [] } ], - "description": "List all the provisioned addons for the authenticated user", + "description": "List all the Bitrise builds that can be accessed with the authenticated account. Filter builds based on their owner, using the owner slug, or the status of the build.", "produces": [ "application/json" ], "tags": [ - "addons" + "builds" ], - "summary": "Get list of the addons for user", - "operationId": "addon-list-by-user", + "summary": "List all builds", + "operationId": "build-list-all", "parameters": [ { "type": "string", - "description": "User slug", - "name": "user-slug", - "in": "path", - "required": true + "description": "The slug of the owner of the app or apps", + "name": "owner_slug", + "in": "query" + }, + { + "type": "boolean", + "description": "Indicates whether the build has started yet (true: the build hasn't started)", + "name": "is_on_hold", + "in": "query" + }, + { + "maximum": 4, + "type": "integer", + "description": "The status of the build: not finished (0), successful (1), failed (2), aborted with failure (3), aborted with success (4)", + "name": "status", + "in": "query" + }, + { + "type": "string", + "description": "Slug of the first build in the response", + "name": "next", + "in": "query" + }, + { + "maximum": 50, + "type": "integer", + "description": "Max number of elements per page (default: 50)", + "name": "limit", + "in": "query" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.OwnerAddOnsListResponseModel" + "$ref": "#/definitions/v0.BuildListAllResponseModel" } }, "400": { @@ -4530,42 +5130,27 @@ } } }, - "/users/{user-slug}/apple-api-credentials": { + "/me": { "get": { "security": [ { "PersonalAccessToken": [] } ], - "description": "List Apple API credentials for a specific Bitrise user", + "description": "Shows the authenticated users profile info", "produces": [ "application/json" ], "tags": [ - "apple-api-credentials" - ], - "summary": "List Apple API credentials for a specific user", - "operationId": "apple-api-credential-list", - "parameters": [ - { - "type": "string", - "description": "User slug", - "name": "user-slug", - "in": "path", - "required": true - } + "user" ], + "summary": "Get your profile info", + "operationId": "user-profile", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.AppleAPICredentialsListResponse" - } - }, - "400": { - "description": "Bad Request", - "schema": { - "$ref": "#/definitions/service.StandardErrorRespModel" + "$ref": "#/definitions/v0.UserProfileRespModel" } }, "401": { @@ -4589,43 +5174,26 @@ } } }, - "/users/{user-slug}/apps": { + "/me/activities": { "get": { "security": [ { "PersonalAccessToken": [] } ], - "description": "List all the available apps for the given user. It needs the user slug that you can get from the [GET /me](https://api-docs.bitrise.io/#/user/user-profile) endpoint.", + "description": "List all the Bitrise activity events", "produces": [ "application/json" ], "tags": [ - "application" + "activity" ], - "summary": "Get list of the apps for a user", - "operationId": "app-list-by-user", + "summary": "Get list of Bitrise activity events", + "operationId": "activity-list", "parameters": [ { "type": "string", - "description": "User slug", - "name": "user-slug", - "in": "path", - "required": true - }, - { - "enum": [ - "last_build_at", - "created_at" - ], - "type": "string", - "description": "Order of applications", - "name": "sort_by", - "in": "query" - }, - { - "type": "string", - "description": "Slug of the first app in the response", + "description": "Slug of the first activity event in the response", "name": "next", "in": "query" }, @@ -4641,7 +5209,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.AppListResponseModel" + "$ref": "#/definitions/v0.ActivityEventListResponseModel" } }, "400": { @@ -4671,39 +5239,138 @@ } } }, - "/v0.1/apps/{app-slug}/avatar-candidates": { + "/me/addon-tokens": { "get": { "security": [ { "PersonalAccessToken": [] } ], - "description": "List all available avatar candidates for an application", - "consumes": [ + "description": "Lists the active addon tokens of the user with some extra details.", + "produces": [ "application/json" ], + "tags": [ + "user" + ], + "summary": "The active addon tokens of the user", + "operationId": "user-addon-tokens", + "deprecated": true, + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/me/addon-tokens/{addon-id}": { + "delete": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "Removes the active addon token of the user.", "produces": [ "application/json" ], "tags": [ - "avatar-candidate" + "user" ], - "summary": "Get list of the avatar candidates", - "operationId": "avatar-candidate-list", + "summary": "Removes an active addon token of the user", + "operationId": "user-addon-tokens-delete", "parameters": [ { "type": "string", - "description": "App slug", - "name": "app-slug", + "description": "Addon ID", + "name": "addon-id", "in": "path", "required": true } ], + "deprecated": true, + "responses": { + "200": { + "description": "OK" + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/me/plan": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "Get the subscription of the user: the current plan, any pending plans, and the duration of a trial period if applicable", + "produces": [ + "application/json" + ], + "tags": [ + "user" + ], + "summary": "The subscription plan of the user", + "operationId": "user-plan", "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v0.FindAvatarCandidateResponse" + "$ref": "#/definitions/v0.UserPlanRespModel" } }, "400": { @@ -4732,25 +5399,699 @@ } } } - } - }, - "definitions": { - "addons.Addon": { - "type": "object", - "properties": { - "banner_image": { - "type": "string" - }, - "card_header_colors": { - "type": "array", - "items": { - "type": "string" - } - }, - "categories": { - "type": "array", - "items": { - "type": "string" + }, + "/organizations": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "List all Bitrise organizations that the user is part of", + "produces": [ + "application/json" + ], + "tags": [ + "organizations" + ], + "summary": "List the organizations that the user is part of", + "operationId": "org-list", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.OrganizationListRespModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/organizations/{org-slug}": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "Get a specified Bitrise organization that the user is part of.", + "produces": [ + "application/json" + ], + "tags": [ + "organizations" + ], + "summary": "Get a specified organization.", + "operationId": "org-show", + "parameters": [ + { + "type": "string", + "description": "The organization slug", + "name": "org-slug", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.OrganizationRespModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/organizations/{org-slug}/apps": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "List all the available apps owned by a given organization. [Find the organization URL](https://devcenter.bitrise.io/team-management/organizations/org-url/) of the organisations you are part of; be aware that the endpoint will not return any apps if the authenticated account is not a member of the given organisation.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "application" + ], + "summary": "Get list of the apps for an organization", + "operationId": "app-list-by-organization", + "parameters": [ + { + "type": "string", + "description": "Organization slug", + "name": "org-slug", + "in": "path", + "required": true + }, + { + "enum": [ + "last_build_at", + "created_at" + ], + "type": "string", + "description": "Order of applications: sort them based on when they were created or the time of their last build", + "name": "sort_by", + "in": "query" + }, + { + "type": "string", + "description": "Slug of the first app in the response", + "name": "next", + "in": "query" + }, + { + "maximum": 50, + "type": "integer", + "description": "Max number of elements per page (default: 50)", + "name": "limit", + "in": "query" + }, + { + "type": "string", + "description": "The title of the app", + "name": "title", + "in": "query" + }, + { + "type": "string", + "description": "The project type of the app (eg. 'ios', 'android')", + "name": "project_type", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.AppListResponseModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/organizations/{organization-slug}/addons": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "List all the provisioned addons for organization", + "produces": [ + "application/json" + ], + "tags": [ + "addons" + ], + "summary": "Get list of the addons for organization", + "operationId": "addon-list-by-organization", + "parameters": [ + { + "type": "string", + "description": "Organization slug", + "name": "organization-slug", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.OwnerAddOnsListResponseModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/pipelines": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "List all the Bitrise pipelines/standalone builds that can be accessed with the authenticated account. Filter pipelines/standalone builds based on their owner, using the owner slug, or the status of the pipeline/standalone build.", + "produces": [ + "application/json" + ], + "tags": [ + "pipelines" + ], + "summary": "List all pipelines/standalone builds", + "operationId": "pipeline-list-all", + "parameters": [ + { + "type": "string", + "description": "The slug of the owner of the app or apps", + "name": "owner_slug", + "in": "query" + }, + { + "type": "integer", + "description": "The status of the pipelines/standalone build: initializing, on_hold, running, succeeded, failed, aborted, succeeded_with_abort", + "name": "status", + "in": "query" + }, + { + "type": "string", + "description": "Getting pipelines/standalone builds before the given parameter (RFC3339 time format)", + "name": "next", + "in": "query" + }, + { + "type": "integer", + "description": "Max number of elements per page (default: 10)", + "name": "limit", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.PipelineListAllResponseModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/users/{user-slug}": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "Show information about a specific user", + "produces": [ + "application/json" + ], + "tags": [ + "user" + ], + "summary": "Get a specific user", + "operationId": "user-show", + "parameters": [ + { + "type": "string", + "description": "User slug", + "name": "user-slug", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.UserProfileRespModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/users/{user-slug}/addons": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "List all the provisioned addons for the authenticated user", + "produces": [ + "application/json" + ], + "tags": [ + "addons" + ], + "summary": "Get list of the addons for user", + "operationId": "addon-list-by-user", + "parameters": [ + { + "type": "string", + "description": "User slug", + "name": "user-slug", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.OwnerAddOnsListResponseModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/users/{user-slug}/apple-api-credentials": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "List Apple API credentials for a specific Bitrise user", + "produces": [ + "application/json" + ], + "tags": [ + "apple-api-credentials" + ], + "summary": "List Apple API credentials for a specific user", + "operationId": "apple-api-credential-list", + "parameters": [ + { + "type": "string", + "description": "User slug", + "name": "user-slug", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.AppleAPICredentialsListResponse" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/users/{user-slug}/apps": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "List all the available apps for the given user. It needs the user slug that you can get from the [GET /me](https://api-docs.bitrise.io/#/user/user-profile) endpoint.", + "produces": [ + "application/json" + ], + "tags": [ + "application" + ], + "summary": "Get list of the apps for a user", + "operationId": "app-list-by-user", + "parameters": [ + { + "type": "string", + "description": "User slug", + "name": "user-slug", + "in": "path", + "required": true + }, + { + "enum": [ + "last_build_at", + "created_at" + ], + "type": "string", + "description": "Order of applications", + "name": "sort_by", + "in": "query" + }, + { + "type": "string", + "description": "Slug of the first app in the response", + "name": "next", + "in": "query" + }, + { + "maximum": 50, + "type": "integer", + "description": "Max number of elements per page (default: 50)", + "name": "limit", + "in": "query" + }, + { + "type": "string", + "description": "The title of the app", + "name": "title", + "in": "query" + }, + { + "type": "string", + "description": "The project type of the app (eg. 'ios', 'android')", + "name": "project_type", + "in": "query" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.AppListResponseModel" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + }, + "/v0.1/apps/{app-slug}/avatar-candidates": { + "get": { + "security": [ + { + "PersonalAccessToken": [] + } + ], + "description": "List all available avatar candidates for an application", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "avatar-candidate" + ], + "summary": "Get list of the avatar candidates", + "operationId": "avatar-candidate-list", + "parameters": [ + { + "type": "string", + "description": "App slug", + "name": "app-slug", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v0.FindAvatarCandidateResponse" + } + }, + "400": { + "description": "Bad Request", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "404": { + "description": "Not Found", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + }, + "500": { + "description": "Internal Server Error", + "schema": { + "$ref": "#/definitions/service.StandardErrorRespModel" + } + } + } + } + } + }, + "definitions": { + "addons.Addon": { + "type": "object", + "properties": { + "banner_image": { + "type": "string" + }, + "card_header_colors": { + "type": "array", + "items": { + "type": "string" + } + }, + "categories": { + "type": "array", + "items": { + "type": "string" } }, "description": { @@ -4882,7 +6223,31 @@ } } }, - "nulls.Int64": { + "github.com_gobuffalo_nulls.Int64": { + "type": "object", + "properties": { + "int64": { + "type": "integer" + }, + "valid": { + "description": "Valid is true if Int64 is not NULL", + "type": "boolean" + } + } + }, + "github.com_gobuffalo_nulls.String": { + "type": "object", + "properties": { + "string": { + "type": "string" + }, + "valid": { + "description": "Valid is true if String is not NULL", + "type": "boolean" + } + } + }, + "github.com_markbates_pop_nulls.Int64": { "type": "object", "properties": { "int64": { @@ -4894,7 +6259,7 @@ } } }, - "nulls.String": { + "github.com_markbates_pop_nulls.String": { "type": "object", "properties": { "string": { @@ -4906,6 +6271,62 @@ } } }, + "pipelineabledomain.Environments": { + "type": "object", + "properties": { + "is_expand": {}, + "key": { + "type": "string" + }, + "value": {} + } + }, + "pipelineabledomain.TriggerParams": { + "type": "object", + "properties": { + "branch": { + "type": "string" + }, + "branch_dest": { + "type": "string" + }, + "branch_dest_repo_owner": { + "type": "string" + }, + "branch_repo_owner": { + "type": "string" + }, + "commit_hash": { + "type": "string" + }, + "commit_message": { + "type": "string" + }, + "commit_paths": {}, + "diff_url": { + "type": "string" + }, + "environments": { + "type": "array", + "items": { + "$ref": "#/definitions/pipelineabledomain.Environments" + } + }, + "pull_request_author": { + "type": "string" + }, + "pull_request_head_branch": { + "type": "string" + }, + "pull_request_id": {}, + "pull_request_repository_url": { + "type": "string" + }, + "tag": { + "type": "string" + } + } + }, "service.StandardErrorRespModel": { "type": "object", "properties": { @@ -4935,13 +6356,13 @@ "type": "string" }, "description": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "event_icon": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "event_stype": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "repository_avatar_icon_url": { "type": "string" @@ -4953,10 +6374,10 @@ "type": "string" }, "target_path_string": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "title": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" } } }, @@ -4964,7 +6385,7 @@ "type": "object", "properties": { "icon": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "plan": { "$ref": "#/definitions/addons.Plan" @@ -5012,6 +6433,9 @@ "alias": { "type": "string" }, + "keystore_file_name": { + "type": "string" + }, "password": { "type": "string" }, @@ -5047,15 +6471,30 @@ "is_beta": { "type": "boolean" }, + "is_enabled": { + "type": "boolean" + }, + "login_url": { + "type": "string" + }, "plan": { "$ref": "#/definitions/addons.Plan" }, + "scopes": { + "type": "array", + "items": { + "type": "string" + } + }, "setup_guide": { "$ref": "#/definitions/addons.SetupGuide" }, "summary": { "type": "string" }, + "terms_url": { + "type": "string" + }, "title": { "type": "string" } @@ -5079,6 +6518,7 @@ ], "properties": { "app_config_datastore_yaml": { + "description": "The bitrise.yml of your application, defined in JSON format", "type": "string" } } @@ -5097,7 +6537,7 @@ ], "properties": { "config": { - "description": "Which config to use `default-android-config`, `default-cordova-config`, `default-fastlane-config`, `default-ionic-config`, `default-ios-config`,`default-macos-config`, `default-react-native-config`, `default-xamarin-config`, `other-config` (default if parameter is not speficied)", + "description": "Which config to use. Specify a config that matches your project type (e. g. `default-android-config` for `android`, etc.). If not speficied, default value is `other-config`. The available values are `default-android-config`, `default-cordova-config`, `default-fastlane-android-config`, `default-fastlane-ios-config`, `flutter-config-notest-app-android`, `flutter-config-notest-app-both`, `flutter-config-notest-app-ios`, `flutter-config-test-app-android`, `flutter-config-test-app-both`, `flutter-config-test-app-ios`, `default-ionic-config`, `default-ios-config`, `default-macos-config`, `default-react-native-config`, `default-react-native-expo-config`, `other-config`.", "type": "string" }, "envs": { @@ -5172,11 +6612,14 @@ "type": "object", "properties": { "avatar_url": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "is_disabled": { "type": "boolean" }, + "is_github_checks_enabled": { + "type": "boolean" + }, "is_public": { "type": "boolean" }, @@ -5184,19 +6627,19 @@ "$ref": "#/definitions/v0.OwnerAccountResponseModel" }, "project_type": { - "type": "string" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "provider": { - "type": "string" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "repo_owner": { - "type": "string" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "repo_slug": { - "type": "string" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "repo_url": { - "type": "string" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "slug": { "type": "string" @@ -5209,6 +6652,67 @@ } } }, + "v0.AppSecret": { + "type": "object", + "properties": { + "expand_in_step_inputs": { + "description": "Replace variable in inputs? https://devcenter.bitrise.io/en/references/steps-reference/step-inputs-reference.html#step-input-properties", + "type": "boolean" + }, + "is_exposed_for_pull_requests": { + "description": "Expose for Pull Requests?", + "type": "boolean" + }, + "is_protected": { + "description": "Secret marked as protected?", + "type": "boolean" + }, + "name": { + "description": "Name of the secret", + "type": "string" + } + } + }, + "v0.AppSecretGetValueResponse": { + "type": "object", + "properties": { + "value": { + "type": "string" + } + } + }, + "v0.AppSecretListResponse": { + "type": "object", + "properties": { + "secrets": { + "type": "array", + "items": { + "$ref": "#/definitions/v0.AppSecret" + } + } + } + }, + "v0.AppSecretUpsertParams": { + "type": "object", + "properties": { + "expand_in_step_inputs": { + "description": "Replace variable in inputs? https://devcenter.bitrise.io/en/references/steps-reference/step-inputs-reference.html#step-input-properties", + "type": "boolean" + }, + "is_exposed_for_pull_requests": { + "description": "Expose for Pull Requests?", + "type": "boolean" + }, + "is_protected": { + "description": "Secret marked as protected?", + "type": "boolean" + }, + "value": { + "description": "Value of the secret", + "type": "string" + } + } + }, "v0.AppShowResponseModel": { "type": "object", "properties": { @@ -5217,6 +6721,47 @@ } } }, + "v0.AppUpdateParams": { + "type": "object", + "properties": { + "apple_credential_user_id": { + "description": "The new apple credential user ID (recommendation: use the UI to set this)", + "type": "integer" + }, + "apple_credential_user_slug": { + "description": "The new apple credential user slug (recommendation: use the UI to set this)", + "type": "string" + }, + "default_branch": { + "description": "The new default branch for the application.", + "type": "string" + }, + "is_public": { + "description": "The new value of whether an application should be publicly visible", + "type": "boolean" + }, + "repository_url": { + "description": "The new repository URL for the application.", + "type": "string" + }, + "services_credential_user_id": { + "description": "The new service credential user ID (recommendation: use the UI to set this)", + "type": "integer" + }, + "title": { + "description": "The new title of the application.", + "type": "string" + } + } + }, + "v0.AppUpdateRespModel": { + "type": "object", + "properties": { + "status": { + "type": "string" + } + } + }, "v0.AppUploadParams": { "type": "object", "required": [ @@ -5228,6 +6773,10 @@ "type" ], "properties": { + "default_branch_name": { + "description": "The default branch of the repository. If it's not specified, it will be `master`.", + "type": "string" + }, "git_owner": { "description": "The slug of the owner of the repository at the git provider", "type": "string" @@ -5240,6 +6789,10 @@ "description": "If `true` then the repository visibility setting will be public, in case of `false` it will be private", "type": "boolean" }, + "organization_slug": { + "description": "The slug of the organization, who will be the owner of the application. If it's not specified, then the authenticated user will be the owner.", + "type": "string" + }, "provider": { "description": "The git provider you are using, it can be `github`, `bitbucket`, `gitlab`, `gitlab-self-hosted` or `custom`", "type": "string" @@ -5248,12 +6801,12 @@ "description": "The URL of your repository", "type": "string" }, - "type": { - "description": "It has to be provided by legacy reasons and has to have the `git` value", + "title": { + "description": "The title of the application. If it's not specified, it will be the git repository's name.", "type": "string" }, - "organization_slug": { - "description": "Property added by Staffbase as this is missing within open-api spec. This can be removed when bitrise has fixed it", + "type": { + "description": "It has to be provided by legacy reasons and has to have the `git` value", "type": "string" } } @@ -5415,6 +6968,128 @@ } } }, + "v0.ArchivedBuildArtifact": { + "type": "object", + "properties": { + "artifact_meta": { + "type": "object", + "additionalProperties": true + }, + "artifact_type": { + "type": "string" + }, + "created_at": { + "type": "string" + }, + "file_size_bytes": { + "type": "integer" + }, + "id": { + "type": "string" + }, + "is_public_page_enabled": { + "type": "boolean" + }, + "public_page_token": { + "type": "string" + }, + "title": { + "type": "string" + } + } + }, + "v0.ArchivedBuildListResponseModel": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/v0.ArchivedBuildResponseItemModel" + } + }, + "paging": { + "description": "pagination", + "$ref": "#/definitions/v0.PagingResponseModel" + } + } + }, + "v0.ArchivedBuildResponseItemModel": { + "type": "object", + "properties": { + "abort_reason": { + "type": "string" + }, + "branch": { + "type": "string" + }, + "build_artifacts": { + "type": "array", + "items": { + "$ref": "#/definitions/v0.ArchivedBuildArtifact" + } + }, + "build_number": { + "type": "integer" + }, + "commit_hash": { + "type": "string" + }, + "commit_message": { + "type": "string" + }, + "credit_cost": { + "type": "integer" + }, + "finished_at": { + "type": "string" + }, + "machine_type_id": { + "type": "string" + }, + "original_build_params": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pipeline_workflow_id": { + "type": "string" + }, + "pull_request_id": { + "type": "integer" + }, + "pull_request_target_branch": { + "type": "string" + }, + "pull_request_view_url": { + "type": "string" + }, + "slug": { + "type": "string" + }, + "stack_identifier": { + "type": "string" + }, + "started_on_worker_at": { + "type": "string" + }, + "status": { + "type": "integer" + }, + "status_text": { + "type": "string" + }, + "tag": { + "type": "string" + }, + "triggered_by": { + "type": "string" + }, + "triggered_workflow": { + "type": "string" + } + } + }, "v0.ArtifactDeleteResponseModel": { "type": "object", "properties": { @@ -5433,11 +7108,17 @@ } }, "artifact_type": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "file_size_bytes": { "type": "integer" }, + "intermediate_file_info": { + "type": "array", + "items": { + "type": "integer" + } + }, "is_public_page_enabled": { "type": "boolean" }, @@ -5445,7 +7126,7 @@ "type": "string" }, "title": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" } } }, @@ -5474,7 +7155,7 @@ } }, "artifact_type": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "expiring_download_url": { "type": "string" @@ -5482,6 +7163,12 @@ "file_size_bytes": { "type": "integer" }, + "intermediate_file_info": { + "type": "array", + "items": { + "type": "integer" + } + }, "is_public_page_enabled": { "type": "boolean" }, @@ -5492,7 +7179,7 @@ "type": "string" }, "title": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" } } }, @@ -5596,719 +7283,1121 @@ }, "v0.BuildAbortParams": { "type": "object", - "required": [ - "abort_reason", - "abort_with_success", - "skip_notifications" - ], + "required": [ + "abort_reason", + "abort_with_success", + "skip_notifications" + ], + "properties": { + "abort_reason": { + "type": "string" + }, + "abort_with_success": { + "type": "boolean" + }, + "skip_notifications": { + "type": "boolean" + } + } + }, + "v0.BuildAbortResponseModel": { + "type": "object", + "properties": { + "status": { + "type": "string" + } + } + }, + "v0.BuildCertificateListResponseModel": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/v0.BuildCertificateResponseItemModel" + } + }, + "paging": { + "description": "pagination", + "$ref": "#/definitions/v0.PagingResponseModel" + } + } + }, + "v0.BuildCertificateResponseItemModel": { + "type": "object", + "properties": { + "certificate_password": { + "type": "string" + }, + "download_url": { + "type": "string" + }, + "is_expose": { + "type": "boolean" + }, + "is_protected": { + "type": "boolean" + }, + "processed": { + "type": "boolean" + }, + "slug": { + "type": "string" + }, + "upload_file_name": { + "type": "string" + }, + "upload_file_size": { + "type": "integer" + }, + "upload_url": { + "type": "string" + } + } + }, + "v0.BuildCertificateResponseModel": { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/v0.BuildCertificateResponseItemModel" + } + } + }, + "v0.BuildCertificateUpdateParams": { + "type": "object", + "properties": { + "certificate_password": { + "type": "string" + }, + "is_expose": { + "type": "boolean" + }, + "is_protected": { + "type": "boolean" + }, + "processed": { + "type": "boolean" + } + } + }, + "v0.BuildCertificateUploadParams": { + "type": "object", + "required": [ + "upload_file_name", + "upload_file_size" + ], + "properties": { + "upload_file_name": { + "type": "string" + }, + "upload_file_size": { + "type": "integer" + } + } + }, + "v0.BuildListAllResponseItemModel": { + "type": "object", + "properties": { + "abort_reason": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "branch": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "build_number": { + "type": "integer" + }, + "commit_hash": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "commit_message": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "commit_view_url": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "credit_cost": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.Int64" + }, + "environment_prepare_finished_at": { + "type": "string" + }, + "finished_at": { + "type": "string" + }, + "is_on_hold": { + "type": "boolean" + }, + "is_processed": { + "type": "boolean" + }, + "machine_type_id": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "original_build_params": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pull_request_id": { + "type": "integer" + }, + "pull_request_target_branch": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "pull_request_view_url": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "repository": { + "$ref": "#/definitions/v0.AppResponseItemModel" + }, + "slug": { + "type": "string" + }, + "stack_identifier": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "started_on_worker_at": { + "type": "string" + }, + "status": { + "type": "integer" + }, + "status_text": { + "type": "string" + }, + "tag": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "triggered_at": { + "type": "string" + }, + "triggered_by": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "triggered_workflow": { + "type": "string" + } + } + }, + "v0.BuildListAllResponseModel": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/v0.BuildListAllResponseItemModel" + } + }, + "paging": { + "description": "pagination", + "$ref": "#/definitions/v0.PagingResponseModel" + } + } + }, + "v0.BuildListResponseModel": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/v0.BuildResponseItemModel" + } + }, + "paging": { + "description": "pagination", + "$ref": "#/definitions/v0.PagingResponseModel" + } + } + }, + "v0.BuildParamsEnvironment": { + "type": "object", + "properties": { + "is_expand": { + "type": "boolean" + }, + "mapped_to": { + "type": "string" + }, + "value": { + "type": "string" + } + } + }, + "v0.BuildRequestListResponseModel": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/v0.BuildRequestResponseItemModel" + } + } + } + }, + "v0.BuildRequestResponseItemModel": { + "type": "object", "properties": { - "abort_reason": { + "build_params": { + "type": "array", + "items": { + "type": "integer" + } + }, + "created_at": { "type": "string" }, - "abort_with_success": { - "type": "boolean" + "pull_request_url": { + "type": "string" }, - "skip_notifications": { - "type": "boolean" + "slug": { + "type": "string" } } }, - "v0.BuildAbortResponseModel": { + "v0.BuildRequestUpdateParams": { "type": "object", + "required": [ + "is_approved" + ], "properties": { - "status": { - "type": "string" + "is_approved": { + "type": "boolean" } } }, - "v0.BuildCertificateListResponseModel": { + "v0.BuildRequestUpdateResponseModel": { "type": "object", "properties": { "data": { - "type": "array", - "items": { - "$ref": "#/definitions/v0.BuildCertificateResponseItemModel" - } - }, - "paging": { - "description": "pagination", - "$ref": "#/definitions/v0.PagingResponseModel" + "$ref": "#/definitions/v0.BuildRequestResponseItemModel" } } }, - "v0.BuildCertificateResponseItemModel": { + "v0.BuildResponseItemModel": { "type": "object", "properties": { - "certificate_password": { + "abort_reason": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "branch": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "build_number": { + "type": "integer" + }, + "commit_hash": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "commit_message": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "commit_view_url": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "credit_cost": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.Int64" + }, + "environment_prepare_finished_at": { "type": "string" }, - "download_url": { + "finished_at": { "type": "string" }, - "is_expose": { + "is_on_hold": { "type": "boolean" }, - "is_protected": { + "is_processed": { "type": "boolean" }, - "processed": { + "is_status_sent": { "type": "boolean" }, + "machine_type_id": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "original_build_params": { + "type": "array", + "items": { + "type": "integer" + } + }, + "pipeline_workflow_id": { + "type": "string" + }, + "pull_request_id": { + "type": "integer" + }, + "pull_request_target_branch": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "pull_request_view_url": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, "slug": { "type": "string" }, - "upload_file_name": { + "stack_identifier": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "started_on_worker_at": { "type": "string" }, - "upload_file_size": { + "status": { "type": "integer" }, - "upload_url": { + "status_text": { + "type": "string" + }, + "tag": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "triggered_at": { + "type": "string" + }, + "triggered_by": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" + }, + "triggered_workflow": { "type": "string" } } }, - "v0.BuildCertificateResponseModel": { + "v0.BuildShowResponseModel": { "type": "object", "properties": { "data": { - "$ref": "#/definitions/v0.BuildCertificateResponseItemModel" + "$ref": "#/definitions/v0.BuildResponseItemModel" } } }, - "v0.BuildCertificateUpdateParams": { + "v0.BuildTriggerParams": { "type": "object", "properties": { - "certificate_password": { - "type": "string" - }, - "is_expose": { - "type": "boolean" - }, - "is_protected": { - "type": "boolean" + "build_params": { + "description": "The public part of the SSH key you would like to use", + "$ref": "#/definitions/v0.BuildTriggerParamsBuildParams" }, - "processed": { - "type": "boolean" + "hook_info": { + "$ref": "#/definitions/v0.BuildTriggerParamsHookInfo" } } }, - "v0.BuildCertificateUploadParams": { + "v0.BuildTriggerParamsBuildParams": { "type": "object", - "required": [ - "upload_file_name", - "upload_file_size" - ], "properties": { - "upload_file_name": { + "base_repository_url": { "type": "string" }, - "upload_file_size": { - "type": "integer" - } - } - }, - "v0.BuildListAllResponseItemModel": { - "type": "object", - "properties": { - "abort_reason": { - "$ref": "#/definitions/nulls.String" - }, "branch": { - "$ref": "#/definitions/nulls.String" + "type": "string" }, - "build_number": { - "type": "integer" + "branch_dest": { + "type": "string" }, - "commit_hash": { - "$ref": "#/definitions/nulls.String" + "branch_dest_repo_owner": { + "type": "string" }, - "commit_message": { - "$ref": "#/definitions/nulls.String" + "branch_repo_owner": { + "type": "string" }, - "commit_view_url": { - "$ref": "#/definitions/nulls.String" + "build_request_slug": { + "type": "string" }, - "environment_prepare_finished_at": { + "commit_hash": { "type": "string" }, - "finished_at": { + "commit_message": { "type": "string" }, - "is_on_hold": { - "type": "boolean" + "commit_paths": { + "type": "array", + "items": { + "$ref": "#/definitions/v0.CommitPaths" + } }, - "machine_type_id": { - "$ref": "#/definitions/nulls.String" + "diff_url": { + "type": "string" }, - "original_build_params": { + "environments": { "type": "array", "items": { - "type": "integer" + "$ref": "#/definitions/v0.BuildParamsEnvironment" } }, - "pull_request_id": { + "head_repository_url": { + "type": "string" + }, + "pipeline_id": { + "type": "string" + }, + "pull_request_author": { + "type": "string" + }, + "pull_request_head_branch": { + "type": "string" + }, + "pull_request_id": {}, + "pull_request_merge_branch": { + "type": "string" + }, + "pull_request_repository_url": { + "type": "string" + }, + "skip_git_status_report": { + "type": "boolean" + }, + "tag": { + "type": "string" + }, + "workflow_id": { + "type": "string" + } + } + }, + "v0.BuildTriggerParamsHookInfo": { + "type": "object", + "properties": { + "type": { + "description": "Should be \"bitrise\"", + "type": "string", + "example": "bitrise" + } + } + }, + "v0.BuildTriggerRespModel": { + "type": "object", + "properties": { + "build_number": { "type": "integer" }, - "pull_request_target_branch": { - "$ref": "#/definitions/nulls.String" + "build_slug": { + "type": "string" }, - "pull_request_view_url": { - "$ref": "#/definitions/nulls.String" + "build_url": { + "type": "string" }, - "repository": { - "$ref": "#/definitions/v0.AppResponseItemModel" + "message": { + "type": "string" + }, + "service": { + "type": "string" }, "slug": { "type": "string" }, - "stack_identifier": { - "$ref": "#/definitions/nulls.String" - }, - "started_on_worker_at": { + "status": { + "type": "string" + }, + "triggered_workflow": { + "type": "string" + } + } + }, + "v0.BuildWorkflowListResponseModel": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "v0.CacheItemDownloadResponseModel": { + "type": "object", + "properties": { + "data": { + "$ref": "#/definitions/v0.CacheItemDownloadURLResponseModel" + } + } + }, + "v0.CacheItemDownloadURLResponseModel": { + "type": "object", + "properties": { + "download_url": { + "type": "string" + } + } + }, + "v0.CacheItemListResponseItemModel": { + "type": "object", + "properties": { + "app_id": { + "type": "string" + }, + "archive_filename": { "type": "string" }, - "status": { + "archive_size": { "type": "integer" }, - "status_text": { + "cache_key": { "type": "string" }, - "tag": { - "$ref": "#/definitions/nulls.String" - }, - "triggered_at": { + "created_at": { "type": "string" }, - "triggered_by": { - "$ref": "#/definitions/nulls.String" + "expires_at": { + "type": "string" }, - "triggered_workflow": { + "id": { "type": "string" } } }, - "v0.BuildListAllResponseModel": { + "v0.CacheItemListResponseModel": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/definitions/v0.BuildListAllResponseItemModel" + "$ref": "#/definitions/v0.CacheItemListResponseItemModel" } }, "paging": { - "description": "pagination", "$ref": "#/definitions/v0.PagingResponseModel" } } }, - "v0.BuildListResponseModel": { + "v0.CommitPaths": { "type": "object", "properties": { - "data": { + "added": { "type": "array", "items": { - "$ref": "#/definitions/v0.BuildResponseItemModel" + "type": "string" } }, - "paging": { - "description": "pagination", - "$ref": "#/definitions/v0.PagingResponseModel" + "modified": { + "type": "array", + "items": { + "type": "string" + } + }, + "removed": { + "type": "array", + "items": { + "type": "string" + } } } }, - "v0.BuildLogChunkItemResponseModel": { + "v0.FindAvatarCandidateResponse": { "type": "object", "properties": { - "chunk": { - "type": "string" - }, - "position": { - "type": "integer" + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/v0.FindAvatarCandidateResponseItem" + } } } }, - "v0.BuildLogInfoResponseModel": { + "v0.FindAvatarCandidateResponseItem": { "type": "object", "properties": { - "expiring_raw_log_url": { + "download_url": { "type": "string" }, - "generated_log_chunks_num": { - "type": "integer" - }, - "is_archived": { - "type": "boolean" - }, - "log_chunks": { - "type": "array", - "items": { - "$ref": "#/definitions/v0.BuildLogChunkItemResponseModel" - } + "filename": { + "type": "string" }, - "timestamp": { - "$ref": "#/definitions/nulls.String" + "slug": { + "type": "string" } } }, - "v0.BuildParamsEnvironment": { + "v0.OrganizationDataModel": { "type": "object", "properties": { - "is_expand": { - "type": "boolean" + "avatar_icon_url": { + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, - "mapped_to": { + "concurrency_count": { + "type": "integer" + }, + "name": { "type": "string" }, - "value": { + "owners": { + "type": "array", + "items": { + "$ref": "#/definitions/v0.OrganizationOwner" + } + }, + "slug": { "type": "string" } } }, - "v0.BuildRequestListResponseModel": { + "v0.OrganizationListRespModel": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/definitions/v0.BuildRequestResponseItemModel" + "$ref": "#/definitions/v0.OrganizationDataModel" } } } }, - "v0.BuildRequestResponseItemModel": { + "v0.OrganizationOwner": { "type": "object", "properties": { - "build_params": { - "type": "array", - "items": { - "type": "integer" - } - }, - "created_at": { + "email": { "type": "string" }, - "pull_request_url": { + "slug": { "type": "string" }, - "slug": { + "username": { "type": "string" } } }, - "v0.BuildRequestUpdateParams": { - "type": "object", - "required": [ - "is_approved" - ], - "properties": { - "is_approved": { - "type": "boolean" - } - } - }, - "v0.BuildRequestUpdateResponseModel": { + "v0.OrganizationRespModel": { "type": "object", "properties": { "data": { - "$ref": "#/definitions/v0.BuildRequestResponseItemModel" + "$ref": "#/definitions/v0.OrganizationDataModel" } } }, - "v0.BuildResponseItemModel": { + "v0.OwnerAccountResponseModel": { "type": "object", "properties": { - "abort_reason": { - "$ref": "#/definitions/nulls.String" - }, - "branch": { - "$ref": "#/definitions/nulls.String" - }, - "build_number": { - "type": "integer" - }, - "commit_hash": { - "$ref": "#/definitions/nulls.String" - }, - "commit_message": { - "$ref": "#/definitions/nulls.String" - }, - "commit_view_url": { - "$ref": "#/definitions/nulls.String" - }, - "environment_prepare_finished_at": { + "account_type": { "type": "string" }, - "finished_at": { + "name": { "type": "string" }, - "is_on_hold": { - "type": "boolean" - }, - "machine_type_id": { - "$ref": "#/definitions/nulls.String" - }, - "original_build_params": { + "slug": { + "type": "string" + } + } + }, + "v0.OwnerAddOnResponseItemModel": { + "type": "object", + "properties": { + "apps": { "type": "array", "items": { - "type": "integer" + "$ref": "#/definitions/v0.AddOnAppResponseItemModel" } }, - "pull_request_id": { - "type": "integer" - }, - "pull_request_target_branch": { - "$ref": "#/definitions/nulls.String" - }, - "pull_request_view_url": { - "$ref": "#/definitions/nulls.String" - }, - "slug": { + "documentation_url": { "type": "string" }, - "stack_identifier": { - "$ref": "#/definitions/nulls.String" + "has_ui": { + "type": "boolean" }, - "started_on_worker_at": { + "icon": { "type": "string" }, - "status": { - "type": "integer" - }, - "status_text": { + "id": { "type": "string" }, - "tag": { - "$ref": "#/definitions/nulls.String" + "is_beta": { + "type": "boolean" }, - "triggered_at": { + "summary": { "type": "string" }, - "triggered_by": { - "$ref": "#/definitions/nulls.String" - }, - "triggered_workflow": { + "title": { "type": "string" } } }, - "v0.BuildShowResponseModel": { + "v0.OwnerAddOnsListResponseModel": { "type": "object", "properties": { "data": { - "$ref": "#/definitions/v0.BuildResponseItemModel" + "type": "array", + "items": { + "$ref": "#/definitions/v0.OwnerAddOnResponseItemModel" + } } } }, - "v0.BuildTriggerParams": { + "v0.PagingResponseModel": { "type": "object", "properties": { - "build_params": { - "description": "The public part of the SSH key you would like to use", - "$ref": "#/definitions/v0.BuildTriggerParamsBuildParams" + "next": { + "description": "Next is the \"anchor\" for pagination. This value should be passed to the same endpoint\nto get the next page. Empty/not included if there's no \"next\" page.\nStop paging when there's no \"Next\" item in the response!", + "type": "string" }, - "hook_info": { - "$ref": "#/definitions/v0.BuildTriggerParamsHookInfo" + "page_item_limit": { + "description": "PageItemLimit - per-page item count. A given page might include\nless items if there's not enough items. This value is the \"max item count per page\".", + "type": "integer" + }, + "total_item_count": { + "description": "TotalItemCount - total item count, through \"all pages\"", + "type": "integer" } } }, - "v0.BuildTriggerParamsBuildParams": { + "v0.PipelineAbortParams": { "type": "object", + "required": [ + "abort_reason", + "abort_with_success", + "skip_notifications" + ], "properties": { - "base_repository_url": { - "type": "string" - }, - "branch": { - "type": "string" - }, - "branch_dest": { + "abort_reason": { "type": "string" }, - "branch_dest_repo_owner": { - "type": "string" + "abort_with_success": { + "type": "boolean" }, - "branch_repo_owner": { - "type": "string" + "skip_notifications": { + "type": "boolean" + } + } + }, + "v0.PipelineListAllResponseItemModel": { + "type": "object", + "properties": { + "branch": { + "$ref": "#/definitions/github.com_gobuffalo_nulls.String" }, - "build_request_slug": { - "type": "string" + "build_number": { + "type": "integer" }, "commit_hash": { - "type": "string" + "$ref": "#/definitions/github.com_gobuffalo_nulls.String" }, "commit_message": { - "type": "string" - }, - "commit_paths": { - "type": "array", - "items": { - "$ref": "#/definitions/v0.CommitPaths" - } + "$ref": "#/definitions/github.com_gobuffalo_nulls.String" }, - "diff_url": { + "finished_at": { "type": "string" }, - "environments": { - "type": "array", - "items": { - "$ref": "#/definitions/v0.BuildParamsEnvironment" - } - }, - "head_repository_url": { - "type": "string" + "is_on_hold": { + "type": "boolean" }, - "pull_request_author": { - "type": "string" + "is_pipeline": { + "type": "boolean" }, - "pull_request_head_branch": { - "type": "string" + "is_processed": { + "type": "boolean" }, "pull_request_id": { - "type": "object" + "type": "integer" }, - "pull_request_merge_branch": { + "pull_request_target_branch": { + "$ref": "#/definitions/github.com_gobuffalo_nulls.String" + }, + "repository": { + "$ref": "#/definitions/v0.AppResponseItemModel" + }, + "slug": { "type": "string" }, - "pull_request_repository_url": { + "started_at": { "type": "string" }, - "skip_git_status_report": { - "type": "boolean" + "status": { + "type": "integer" }, "tag": { + "$ref": "#/definitions/github.com_gobuffalo_nulls.String" + }, + "triggered_at": { "type": "string" }, - "workflow_id": { + "triggered_by": { + "$ref": "#/definitions/github.com_gobuffalo_nulls.String" + }, + "triggered_workflow": { "type": "string" } } }, - "v0.BuildTriggerParamsHookInfo": { + "v0.PipelineListAllResponseModel": { "type": "object", "properties": { - "type": { - "description": "Should be \"bitrise\"", - "type": "string", - "example": "bitrise" + "data": { + "type": "array", + "items": { + "$ref": "#/definitions/v0.PipelineListAllResponseItemModel" + } + }, + "paging": { + "$ref": "#/definitions/v0.PagingResponseModel" } } }, - "v0.BuildTriggerRespModel": { + "v0.PipelineListResponseItemModel": { "type": "object", "properties": { + "branch": { + "$ref": "#/definitions/github.com_gobuffalo_nulls.String" + }, "build_number": { "type": "integer" }, - "build_slug": { - "type": "string" + "commit_hash": { + "$ref": "#/definitions/github.com_gobuffalo_nulls.String" }, - "build_url": { - "type": "string" + "commit_message": { + "$ref": "#/definitions/github.com_gobuffalo_nulls.String" }, - "message": { - "type": "string" + "credit_cost": { + "$ref": "#/definitions/github.com_gobuffalo_nulls.Int64" }, - "service": { + "finished_at": { "type": "string" }, + "is_on_hold": { + "type": "boolean" + }, + "is_pipeline": { + "type": "boolean" + }, + "is_processed": { + "type": "boolean" + }, + "pull_request_id": { + "type": "integer" + }, + "pull_request_target_branch": { + "$ref": "#/definitions/github.com_gobuffalo_nulls.String" + }, "slug": { "type": "string" }, + "started_at": { + "type": "string" + }, "status": { + "type": "integer" + }, + "tag": { + "$ref": "#/definitions/github.com_gobuffalo_nulls.String" + }, + "trigger_params": { + "$ref": "#/definitions/pipelineabledomain.TriggerParams" + }, + "triggered_at": { "type": "string" }, + "triggered_by": { + "$ref": "#/definitions/github.com_gobuffalo_nulls.String" + }, "triggered_workflow": { "type": "string" } } }, - "v0.BuildWorkflowListResponseModel": { + "v0.PipelineListResponseModel": { "type": "object", "properties": { "data": { "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/v0.PipelineListResponseItemModel" } + }, + "paging": { + "description": "pagination", + "$ref": "#/definitions/v0.PagingResponseModel" } } }, - "v0.CommitPaths": { + "v0.PipelineRebuildParams": { "type": "object", "properties": { - "added": { - "type": "array", - "items": { - "type": "string" - } - }, - "modified": { - "type": "array", - "items": { - "type": "string" - } + "partial": { + "type": "boolean" }, - "removed": { - "type": "array", - "items": { - "type": "string" - } + "triggered_by": { + "type": "string" } } }, - "v0.FindAvatarCandidateResponse": { + "v0.PipelineShowAppResponseModel": { "type": "object", "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/definitions/v0.FindAvatarCandidateResponseItem" - } + "slug": { + "type": "string" } } }, - "v0.FindAvatarCandidateResponseItem": { + "v0.PipelineShowAttemptResponseModel": { "type": "object", "properties": { - "download_url": { + "id": { "type": "string" }, - "filename": { + "number_in_pipeline_build_scope": { + "type": "integer" + }, + "status": { "type": "string" }, - "slug": { + "triggered_at": { "type": "string" } } }, - "v0.OrganizationDataModel": { + "v0.PipelineShowEnvironmentsResponseModel": { "type": "object", "properties": { - "avatar_icon_url": { - "$ref": "#/definitions/nulls.String" + "is_expand": { + "type": "boolean" }, - "concurrency_count": { - "type": "integer" + "key": { + "type": "string" }, - "name": { + "value": {} + } + }, + "v0.PipelineShowResponseModel": { + "type": "object", + "properties": { + "abort_reason": { "type": "string" }, - "owners": { + "app": { + "$ref": "#/definitions/v0.PipelineShowAppResponseModel" + }, + "attempts": { "type": "array", "items": { - "$ref": "#/definitions/v0.OrganizationOwner" + "$ref": "#/definitions/v0.PipelineShowAttemptResponseModel" } }, - "slug": { + "credit_cost": {}, + "current_attempt_id": { "type": "string" - } - } - }, - "v0.OrganizationListRespModel": { - "type": "object", - "properties": { - "data": { + }, + "finished_at": { + "type": "string" + }, + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "number_in_app_scope": { + "type": "integer" + }, + "put_on_hold_at": {}, + "stages": { "type": "array", "items": { - "$ref": "#/definitions/v0.OrganizationDataModel" + "$ref": "#/definitions/v0.PipelineShowStageResponseModel" } - } - } - }, - "v0.OrganizationOwner": { - "type": "object", - "properties": { - "email": { + }, + "started_at": { "type": "string" }, - "slug": { + "status": { "type": "string" }, - "username": { + "trigger_params": { + "$ref": "#/definitions/v0.PipelineShowTriggerParamsResponseModel" + }, + "triggered_at": { + "type": "string" + }, + "triggered_by": { "type": "string" } } }, - "v0.OrganizationRespModel": { - "type": "object", - "properties": { - "data": { - "$ref": "#/definitions/v0.OrganizationDataModel" - } - } - }, - "v0.OwnerAccountResponseModel": { + "v0.PipelineShowStageResponseModel": { "type": "object", "properties": { - "account_type": { + "id": { "type": "string" }, "name": { "type": "string" }, - "slug": { - "type": "string" + "workflows": { + "type": "array", + "items": { + "$ref": "#/definitions/v0.PipelineShowWorkflowResponseModel" + } } } }, - "v0.OwnerAddOnResponseItemModel": { + "v0.PipelineShowTriggerParamsResponseModel": { "type": "object", "properties": { - "apps": { - "type": "array", - "items": { - "$ref": "#/definitions/v0.AddOnAppResponseItemModel" - } - }, - "documentation_url": { + "branch": { "type": "string" }, - "has_ui": { - "type": "boolean" + "branch_dest": { + "type": "string" }, - "icon": { + "branch_dest_repo_owner": { "type": "string" }, - "id": { + "branch_repo_owner": { "type": "string" }, - "is_beta": { - "type": "boolean" + "commit_hash": { + "type": "string" }, - "summary": { + "commit_message": { "type": "string" }, - "title": { + "commit_paths": {}, + "diff_url": { "type": "string" - } - } - }, - "v0.OwnerAddOnsListResponseModel": { - "type": "object", - "properties": { - "data": { + }, + "environments": { "type": "array", "items": { - "$ref": "#/definitions/v0.OwnerAddOnResponseItemModel" + "$ref": "#/definitions/v0.PipelineShowEnvironmentsResponseModel" } + }, + "pull_request_author": { + "type": "string" + }, + "pull_request_head_branch": { + "type": "string" + }, + "pull_request_id": { + "type": "string" + }, + "pull_request_repository_url": { + "type": "string" + }, + "tag": { + "type": "string" } } }, - "v0.PagingResponseModel": { + "v0.PipelineShowWorkflowResponseModel": { "type": "object", "properties": { - "next": { - "description": "Next is the \"anchor\" for pagination. This value should be passed to the same endpoint\nto get the next page. Empty/not included if there's no \"next\" page.\nStop paging when there's no \"Next\" item in the response!", + "credit_cost": {}, + "external_id": { "type": "string" }, - "page_item_limit": { - "description": "PageItemLimit - per-page item count. A given page might include\nless items if there's not enough items. This value is the \"max item count per page\".", - "type": "integer" + "finished_at": { + "type": "string" }, - "total_item_count": { - "description": "TotalItemCount - total item count, through \"all pages\"", - "type": "integer" + "id": { + "type": "string" + }, + "name": { + "type": "string" + }, + "started_at": { + "type": "string" + }, + "status": { + "type": "string" } } }, @@ -6328,7 +8417,7 @@ "type": "string" }, "price": { - "$ref": "#/definitions/nulls.Int64" + "$ref": "#/definitions/github.com_markbates_pop_nulls.Int64" } } }, @@ -6656,16 +8745,16 @@ "type": "string" }, "response_body": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "response_headers": { - "$ref": "#/definitions/nulls.String" + "$ref": "#/definitions/github.com_markbates_pop_nulls.String" }, "response_http_status": { - "$ref": "#/definitions/nulls.Int64" + "$ref": "#/definitions/github.com_markbates_pop_nulls.Int64" }, "response_seconds": { - "$ref": "#/definitions/nulls.Int64" + "$ref": "#/definitions/github.com_markbates_pop_nulls.Int64" }, "slug": { "type": "string"