From 7f77e79ad641520f47ea3057e3d514a2279e5ee1 Mon Sep 17 00:00:00 2001 From: Kaan Doyurur Date: Tue, 17 Mar 2026 17:32:14 +0100 Subject: [PATCH 1/4] chore/run-go-fmt-on-save-and-pr Signed-off-by: Kaan Doyurur --- .github/workflows/pr.yaml | 11 +++++++++++ .vscode/settings.json | 18 ++++++++++++------ pkg/cli/cmd/problems.go | 16 ++++++++-------- 3 files changed, 31 insertions(+), 14 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 14654849..33e28e5f 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -33,6 +33,17 @@ jobs: uses: golangci/golangci-lint-action@v7.0.0 with: version: latest + go-fmt: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: ${{ env.GO_VERSION }} + - name: Check formatting + run: | + go fmt ./... + git diff --exit-code tests: strategy: diff --git a/.vscode/settings.json b/.vscode/settings.json index 9d4f771b..00e0f324 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,7 +1,13 @@ { - "yaml.schemas": { - "assets/oapi-configuration-schema.json": "pkg/api/config.yaml" - }, - "go.lintTool": "golangci-lint", - "go.lintFlags": [], -} \ No newline at end of file + "yaml.schemas": { + "assets/oapi-configuration-schema.json": "pkg/api/config.yaml" + }, + "go.lintTool": "golangci-lint", + "go.lintFlags": [], + + "[go]": { + "editor.defaultFormatter": "golang.go", + "editor.formatOnSave": true + }, + "go.formatTool": "gofmt" +} diff --git a/pkg/cli/cmd/problems.go b/pkg/cli/cmd/problems.go index 774519f3..04cd96a2 100644 --- a/pkg/cli/cmd/problems.go +++ b/pkg/cli/cmd/problems.go @@ -10,15 +10,15 @@ import ( ) var ( - problemsDetailed bool - problemsAssetIDs []string - problemsDomains []string - problemsIssueIDs []string - problemsTagIDs []string - problemsSearch string + problemsDetailed bool + problemsAssetIDs []string + problemsDomains []string + problemsIssueIDs []string + problemsTagIDs []string + problemsSearch string problemsInitiators []string - problemsKinds []string - problemsRisks []string + problemsKinds []string + problemsRisks []string ) var problemsCmd = &cobra.Command{ From bdf8d4322cf45dd6dd28c6f09aa17bbf528271b1 Mon Sep 17 00:00:00 2001 From: Kaan Doyurur Date: Tue, 17 Mar 2026 17:51:05 +0100 Subject: [PATCH 2/4] chore: auto commit fmt Signed-off-by: Kaan Doyurur --- .github/workflows/pr.yaml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 33e28e5f..e1f52e73 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -33,17 +33,27 @@ jobs: uses: golangci/golangci-lint-action@v7.0.0 with: version: latest + go-fmt: runs-on: ubuntu-latest + permissions: + contents: write steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref }} + - uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} - - name: Check formatting - run: | - go fmt ./... - git diff --exit-code + + - name: Format Go code + run: go fmt ./... + + - name: Commit and push changes + uses: stefanzweifel/git-auto-commit-action@v7 + with: + commit_message: "style: auto-format go code" tests: strategy: From a6ca35cadd3f6e427b3be17cc0b0158c866f3c35 Mon Sep 17 00:00:00 2001 From: kaanescape <148080515+kaanescape@users.noreply.github.com> Date: Tue, 17 Mar 2026 16:51:49 +0000 Subject: [PATCH 3/4] style: auto-format go code --- pkg/api/v3/api_assets.go | 759 +++--- pkg/api/v3/api_audit.go | 42 +- pkg/api/v3/api_beta.go | 314 +-- pkg/api/v3/api_custom_rules.go | 142 +- pkg/api/v3/api_events.go | 77 +- pkg/api/v3/api_integrations.go | 2145 +++++++++-------- pkg/api/v3/api_issues.go | 155 +- pkg/api/v3/api_locations.go | 154 +- pkg/api/v3/api_profiles.go | 336 +-- pkg/api/v3/api_scans.go | 176 +- pkg/api/v3/api_tags.go | 82 +- pkg/api/v3/api_upload.go | 31 +- pkg/api/v3/api_workflows.go | 115 +- pkg/api/v3/client.go | 153 +- pkg/api/v3/configuration.go | 17 +- pkg/api/v3/model_activity_summarized.go | 12 +- pkg/api/v3/model_api_route_detailed.go | 12 +- pkg/api/v3/model_asset_detailed.go | 30 +- pkg/api/v3/model_asset_detailed_links.go | 10 +- pkg/api/v3/model_asset_frontend_detailed.go | 30 +- pkg/api/v3/model_asset_frontend_summarized.go | 12 +- pkg/api/v3/model_asset_host_detailed.go | 18 +- .../model_asset_host_detailed_ports_inner.go | 10 +- ...model_asset_host_detailed_records_inner.go | 12 +- pkg/api/v3/model_asset_host_summarized.go | 12 +- pkg/api/v3/model_asset_service_detailed.go | 28 +- pkg/api/v3/model_asset_service_summarized.go | 12 +- pkg/api/v3/model_asset_summarized.go | 26 +- pkg/api/v3/model_attachment_detailed.go | 20 +- pkg/api/v3/model_audit_log_summarized.go | 10 +- pkg/api/v3/model_author_summarized.go | 10 +- pkg/api/v3/model_code_file_detailed.go | 10 +- ...del_create_asset_akamai_account_request.go | 32 +- .../model_create_asset_aws_account_request.go | 28 +- ...model_create_asset_azure_tenant_request.go | 30 +- ...create_asset_cloudflare_account_request.go | 26 +- ...model_create_asset_code_project_request.go | 34 +- ...code_project_request_last_commits_inner.go | 22 +- ...asset_code_project_request_owners_inner.go | 10 +- ...e_asset_code_project_request_repository.go | 9 +- ..._code_project_request_repository_one_of.go | 46 +- ...ode_project_request_repository_one_of_1.go | 50 +- pkg/api/v3/model_create_asset_dns_request.go | 42 +- ...ate_asset_dns_request_dns_records_inner.go | 16 +- ...eate_asset_dns_request_open_ports_inner.go | 14 +- ..._asset_dns_request_paths_insights_inner.go | 16 +- ...request_paths_insights_inner_parameters.go | 8 +- ...ights_inner_parameters_parameters_inner.go | 33 +- ...rameters_parameters_inner_content_value.go | 13 +- ...ters_inner_content_value_encoding_value.go | 14 +- ...tent_value_encoding_value_headers_value.go | 23 +- ...ner_parameters_parameters_inner_example.go | 22 +- ...ameters_parameters_inner_examples_value.go | 13 +- ..._insights_inner_parameters_request_body.go | 10 +- ...equest_paths_insights_inner_return_type.go | 6 +- ...ights_inner_return_type_responses_value.go | 14 +- .../model_create_asset_gcp_project_request.go | 46 +- ...reate_asset_github_organization_request.go | 28 +- ..._create_asset_github_repository_request.go | 52 +- ...ate_asset_github_repository_request_org.go | 26 +- ...model_create_asset_gitlab_group_request.go | 30 +- ..._create_asset_gitlab_repository_request.go | 48 +- ...e_asset_gitlab_repository_request_group.go | 28 +- .../v3/model_create_asset_graphql_request.go | 50 +- ..._asset_graphql_request_operations_inner.go | 16 +- ...quest_operations_inner_parameters_inner.go | 12 +- pkg/api/v3/model_create_asset_grpc_request.go | 46 +- .../model_create_asset_ipv4_range_request.go | 26 +- pkg/api/v3/model_create_asset_ipv4_request.go | 38 +- pkg/api/v3/model_create_asset_ipv6_request.go | 38 +- ...create_asset_kubernetes_cluster_request.go | 24 +- pkg/api/v3/model_create_asset_mcp_request.go | 46 +- ...eate_asset_postman_organization_request.go | 26 +- pkg/api/v3/model_create_asset_rest_request.go | 52 +- .../v3/model_create_asset_schema_request.go | 10 +- .../v3/model_create_asset_webapp_request.go | 48 +- .../model_create_asset_websocket_request.go | 46 +- .../model_create_asset_wiz_account_request.go | 32 +- .../model_create_custom_rule_200_response.go | 12 +- .../v3/model_create_custom_rule_request.go | 10 +- ...odel_create_custom_rule_request_content.go | 10 +- ...create_custom_rule_request_content_rule.go | 9 +- ...custom_rule_request_content_rule_one_of.go | 20 +- ...stom_rule_request_content_rule_one_of_1.go | 18 +- ...uest_content_rule_one_of_1_detect_inner.go | 25 +- ...ntent_rule_one_of_1_detect_inner_one_of.go | 12 +- ...ent_rule_one_of_1_detect_inner_one_of_1.go | 12 +- ...ent_rule_one_of_1_detect_inner_one_of_2.go | 22 +- ...ent_rule_one_of_1_detect_inner_one_of_3.go | 12 +- ...ent_rule_one_of_1_detect_inner_one_of_4.go | 20 +- ...ent_rule_one_of_1_detect_inner_one_of_5.go | 14 +- ...ent_rule_one_of_1_detect_inner_one_of_6.go | 14 +- ...ent_rule_one_of_1_detect_inner_one_of_7.go | 14 +- ...ent_rule_one_of_1_detect_inner_one_of_8.go | 14 +- ..._rule_request_content_rule_one_of_alert.go | 22 +- ...st_content_rule_one_of_alert_compliance.go | 42 +- ...st_content_rule_one_of_extractors_inner.go | 12 +- ...e_one_of_extractors_inner_extract_inner.go | 9 +- ...f_extractors_inner_extract_inner_one_of.go | 18 +- ...extractors_inner_extract_inner_one_of_1.go | 18 +- ...extractors_inner_extract_inner_one_of_2.go | 16 +- ...extractors_inner_extract_inner_one_of_3.go | 18 +- ...extractors_inner_extract_inner_one_of_4.go | 16 +- ...extractors_inner_extract_inner_one_of_5.go | 18 +- ...extractors_inner_extract_inner_one_of_6.go | 16 +- ...extractors_inner_extract_inner_one_of_7.go | 20 +- ..._request_content_rule_one_of_seed_inner.go | 9 +- ...t_content_rule_one_of_seed_inner_one_of.go | 22 +- ...content_rule_one_of_seed_inner_one_of_1.go | 14 +- ...content_rule_one_of_seed_inner_one_of_2.go | 14 +- ...e_request_content_rule_one_of_transform.go | 12 +- ...tent_rule_one_of_transform_mutate_inner.go | 9 +- ...le_one_of_transform_mutate_inner_one_of.go | 18 +- ..._one_of_transform_mutate_inner_one_of_1.go | 18 +- ..._one_of_transform_mutate_inner_one_of_2.go | 20 +- ..._one_of_transform_mutate_inner_one_of_3.go | 22 +- ..._one_of_transform_mutate_inner_one_of_4.go | 14 +- ..._one_of_transform_mutate_inner_one_of_5.go | 18 +- ..._one_of_transform_mutate_inner_one_of_6.go | 14 +- ..._transform_mutate_inner_one_of_6_mutate.go | 12 +- ..._transform_mutate_inner_one_of_6_select.go | 10 +- ..._one_of_transform_mutate_inner_one_of_7.go | 14 +- ...sform_mutate_inner_one_of_regex_replace.go | 14 +- ...ent_rule_one_of_transform_trigger_inner.go | 27 +- ...e_one_of_transform_trigger_inner_one_of.go | 16 +- ...one_of_transform_trigger_inner_one_of_1.go | 22 +- ...ne_of_transform_trigger_inner_one_of_10.go | 14 +- ...ne_of_transform_trigger_inner_one_of_11.go | 20 +- ...ne_of_transform_trigger_inner_one_of_12.go | 22 +- ...ne_of_transform_trigger_inner_one_of_13.go | 20 +- ...ne_of_transform_trigger_inner_one_of_14.go | 20 +- ...ne_of_transform_trigger_inner_one_of_15.go | 14 +- ...ne_of_transform_trigger_inner_one_of_16.go | 20 +- ...ne_of_transform_trigger_inner_one_of_17.go | 22 +- ...ne_of_transform_trigger_inner_one_of_18.go | 16 +- ...ne_of_transform_trigger_inner_one_of_19.go | 12 +- ...one_of_transform_trigger_inner_one_of_2.go | 22 +- ...ne_of_transform_trigger_inner_one_of_20.go | 12 +- ...ne_of_transform_trigger_inner_one_of_21.go | 12 +- ...ne_of_transform_trigger_inner_one_of_22.go | 22 +- ...ne_of_transform_trigger_inner_one_of_23.go | 22 +- ...ne_of_transform_trigger_inner_one_of_24.go | 20 +- ...ne_of_transform_trigger_inner_one_of_25.go | 16 +- ...ne_of_transform_trigger_inner_one_of_26.go | 16 +- ...ne_of_transform_trigger_inner_one_of_27.go | 14 +- ...ne_of_transform_trigger_inner_one_of_28.go | 12 +- ...one_of_transform_trigger_inner_one_of_3.go | 14 +- ...one_of_transform_trigger_inner_one_of_4.go | 14 +- ...one_of_transform_trigger_inner_one_of_5.go | 16 +- ...one_of_transform_trigger_inner_one_of_6.go | 16 +- ...one_of_transform_trigger_inner_one_of_7.go | 16 +- ...f_transform_trigger_inner_one_of_7_name.go | 16 +- ...f_transform_trigger_inner_one_of_7_type.go | 10 +- ...one_of_transform_trigger_inner_one_of_8.go | 14 +- ...one_of_transform_trigger_inner_one_of_9.go | 22 +- ...del_create_dast_graphql_profile_request.go | 10 +- .../model_create_dast_rest_profile_request.go | 10 +- ...del_create_dast_web_app_profile_request.go | 10 +- ...reate_export_workflow_action_using_jira.go | 16 +- ...t_workflow_action_using_jira_parameters.go | 18 +- ...ira_parameters_properties_mapping_inner.go | 27 +- ...ameters_properties_mapping_inner_one_of.go | 14 +- ...eters_properties_mapping_inner_one_of_1.go | 14 +- ...ters_properties_mapping_inner_one_of_10.go | 14 +- ...ters_properties_mapping_inner_one_of_11.go | 14 +- ...ters_properties_mapping_inner_one_of_12.go | 14 +- ...ters_properties_mapping_inner_one_of_13.go | 14 +- ...ters_properties_mapping_inner_one_of_14.go | 14 +- ...ters_properties_mapping_inner_one_of_15.go | 14 +- ...ters_properties_mapping_inner_one_of_16.go | 14 +- ...ters_properties_mapping_inner_one_of_17.go | 14 +- ...ters_properties_mapping_inner_one_of_18.go | 14 +- ...ters_properties_mapping_inner_one_of_19.go | 14 +- ...eters_properties_mapping_inner_one_of_2.go | 14 +- ...ters_properties_mapping_inner_one_of_20.go | 14 +- ...ters_properties_mapping_inner_one_of_21.go | 14 +- ...eters_properties_mapping_inner_one_of_3.go | 14 +- ...eters_properties_mapping_inner_one_of_4.go | 14 +- ...eters_properties_mapping_inner_one_of_5.go | 14 +- ...eters_properties_mapping_inner_one_of_6.go | 14 +- ...eters_properties_mapping_inner_one_of_7.go | 14 +- ...eters_properties_mapping_inner_one_of_8.go | 14 +- ...eters_properties_mapping_inner_one_of_9.go | 14 +- ...operties_mapping_inner_one_of_map_inner.go | 12 +- ...pping_inner_one_of_map_inner_jira_value.go | 10 +- ...ameters_static_properties_mapping_inner.go | 12 +- ...te_export_workflow_action_using_webhook.go | 14 +- ...orkflow_action_using_webhook_parameters.go | 12 +- ...create_export_workflow_action_using_wiz.go | 14 +- ...rt_workflow_action_using_wiz_parameters.go | 6 +- pkg/api/v3/model_create_location_request.go | 10 +- ...te_notify_workflow_action_using_discord.go | 14 +- ...eate_notify_workflow_action_using_email.go | 14 +- ..._workflow_action_using_email_parameters.go | 10 +- ...rkflow_action_using_email_parameters_to.go | 9 +- ...action_using_email_parameters_to_one_of.go | 12 +- ...tion_using_email_parameters_to_one_of_1.go | 12 +- ...tion_using_email_parameters_to_one_of_2.go | 10 +- ...tion_using_email_parameters_to_one_of_3.go | 10 +- ...eate_notify_workflow_action_using_slack.go | 14 +- ..._workflow_action_using_slack_parameters.go | 10 +- ...eate_notify_workflow_action_using_teams.go | 14 +- .../v3/model_create_project_200_response.go | 12 +- ...ate_project_200_response_bindings_inner.go | 18 +- ...ect_200_response_bindings_inner_project.go | 12 +- ...roject_200_response_bindings_inner_role.go | 12 +- ...roject_200_response_bindings_inner_user.go | 12 +- pkg/api/v3/model_create_project_request.go | 10 +- ...l_create_project_request_bindings_inner.go | 10 +- pkg/api/v3/model_create_role_200_response.go | 12 +- ...create_role_bindings_200_response_inner.go | 10 +- .../v3/model_create_role_bindings_request.go | 10 +- ...te_role_bindings_request_bindings_inner.go | 10 +- pkg/api/v3/model_create_role_request.go | 10 +- pkg/api/v3/model_create_schema_via_fetch.go | 16 +- .../v3/model_create_schema_via_fetch_fetch.go | 12 +- pkg/api/v3/model_create_schema_via_upload.go | 14 +- .../model_create_schema_via_upload_upload.go | 10 +- pkg/api/v3/model_create_tag_request.go | 10 +- ...ow_filter_using_custom_filter_on_assets.go | 12 +- ...er_using_custom_filter_on_assets_filter.go | 64 +- ...ow_filter_using_custom_filter_on_issues.go | 12 +- ...er_using_custom_filter_on_issues_filter.go | 52 +- ..._filter_using_custom_filter_on_profiles.go | 12 +- ..._using_custom_filter_on_profiles_filter.go | 34 +- ...model_create_workflow_filter_using_view.go | 10 +- pkg/api/v3/model_create_workflow_request.go | 18 +- ...l_createakamai_integration_200_response.go | 20 +- .../model_createakamai_integration_request.go | 12 +- ...teakamai_integration_request_parameters.go | 16 +- ...l_createapigee_integration_200_response.go | 20 +- .../model_createapigee_integration_request.go | 12 +- ...teapigee_integration_request_parameters.go | 30 +- ...odel_createaws_integration_200_response.go | 20 +- .../v3/model_createaws_integration_request.go | 12 +- ...reateaws_integration_request_parameters.go | 12 +- ...el_createazure_integration_200_response.go | 20 +- .../model_createazure_integration_request.go | 12 +- ...ateazure_integration_request_parameters.go | 16 +- ...bitbucket_repo_integration_200_response.go | 20 +- ...reatebitbucket_repo_integration_request.go | 12 +- ...ket_repo_integration_request_parameters.go | 18 +- ...eatecloudflare_integration_200_response.go | 20 +- ...el_createcloudflare_integration_request.go | 12 +- ...oudflare_integration_request_parameters.go | 10 +- ...l_createcustom_integration_200_response.go | 20 +- .../model_createcustom_integration_request.go | 12 +- ...tecustom_integration_request_parameters.go | 12 +- ...l_creategitlab_integration_200_response.go | 20 +- .../model_creategitlab_integration_request.go | 12 +- ...tegitlab_integration_request_parameters.go | 12 +- ...del_createjira_integration_200_response.go | 20 +- .../model_createjira_integration_request.go | 12 +- ...eatejira_integration_request_parameters.go | 28 +- ...tion_request_parameters_templates_inner.go | 18 +- ...emplates_inner_properties_mapping_inner.go | 12 +- ..._properties_mapping_inner_mapping_inner.go | 16 +- ...eatekubernetes_integration_200_response.go | 20 +- ...el_createkubernetes_integration_request.go | 12 +- ...bernetes_integration_request_parameters.go | 8 +- ...ntegration_request_parameters_blacklist.go | 6 +- ...tes_integration_request_parameters_tags.go | 8 +- ...odel_createwiz_integration_200_response.go | 20 +- .../v3/model_createwiz_integration_request.go | 12 +- ...reatewiz_integration_request_parameters.go | 16 +- pkg/api/v3/model_custom_rule.go | 10 +- pkg/api/v3/model_custom_rule_rule.go | 9 +- pkg/api/v3/model_custom_rule_rule_one_of.go | 22 +- pkg/api/v3/model_custom_rule_rule_one_of_1.go | 20 +- pkg/api/v3/model_custom_rule_summarized.go | 10 +- .../model_delete_custom_rule_200_response.go | 10 +- .../v3/model_delete_location_200_response.go | 10 +- .../v3/model_delete_profile_200_response.go | 10 +- pkg/api/v3/model_enum_akamai_account.go | 1 - pkg/api/v3/model_enum_and.go | 1 - pkg/api/v3/model_enum_api.go | 1 - pkg/api/v3/model_enum_api_service.go | 1 - pkg/api/v3/model_enum_asset_class.go | 1 - pkg/api/v3/model_enum_asset_externalurl.go | 1 - pkg/api/v3/model_enum_asset_name.go | 1 - pkg/api/v3/model_enum_asset_tags.go | 1 - pkg/api/v3/model_enum_asset_type.go | 1 - pkg/api/v3/model_enum_asset_url.go | 1 - pkg/api/v3/model_enum_assets.go | 1 - pkg/api/v3/model_enum_aws_account.go | 1 - pkg/api/v3/model_enum_azure_tenant.go | 1 - pkg/api/v3/model_enum_bad_request.go | 1 - pkg/api/v3/model_enum_basic.go | 1 - pkg/api/v3/model_enum_browser_actions.go | 1 - pkg/api/v3/model_enum_browser_agent.go | 1 - pkg/api/v3/model_enum_browser_use.go | 1 - pkg/api/v3/model_enum_cdn.go | 1 - pkg/api/v3/model_enum_check.go | 1 - pkg/api/v3/model_enum_click.go | 1 - pkg/api/v3/model_enum_cloud_hosting.go | 1 - pkg/api/v3/model_enum_cloudflare_account.go | 1 - pkg/api/v3/model_enum_code_project.go | 1 - pkg/api/v3/model_enum_cognito_userpass.go | 1 - ...el_enum_conflict_on_the_following_field.go | 1 - pkg/api/v3/model_enum_cookie.go | 1 - pkg/api/v3/model_enum_cspm.go | 1 - pkg/api/v3/model_enum_curl.go | 1 - pkg/api/v3/model_enum_curl_sequence.go | 1 - pkg/api/v3/model_enum_custom_bpce.go | 1 - pkg/api/v3/model_enum_customrule_link.go | 1 - pkg/api/v3/model_enum_customrule_name.go | 1 - pkg/api/v3/model_enum_dev_tools.go | 1 - pkg/api/v3/model_enum_dialog_message.go | 1 - pkg/api/v3/model_enum_digest.go | 1 - pkg/api/v3/model_enum_discord_webhook.go | 1 - pkg/api/v3/model_enum_dns.go | 1 - pkg/api/v3/model_enum_domain.go | 1 - pkg/api/v3/model_enum_email.go | 1 - pkg/api/v3/model_enum_emails.go | 1 - pkg/api/v3/model_enum_export.go | 1 - pkg/api/v3/model_enum_fill.go | 1 - pkg/api/v3/model_enum_fill_totp.go | 1 - pkg/api/v3/model_enum_focus_page.go | 1 - pkg/api/v3/model_enum_frontend.go | 1 - pkg/api/v3/model_enum_gcp_project.go | 1 - pkg/api/v3/model_enum_github_organization.go | 1 - pkg/api/v3/model_enum_github_repository.go | 1 - pkg/api/v3/model_enum_gitlab_group.go | 1 - pkg/api/v3/model_enum_gitlab_repository.go | 1 - pkg/api/v3/model_enum_goto.go | 1 - pkg/api/v3/model_enum_graphql.go | 3 +- pkg/api/v3/model_enum_graphql_operation.go | 1 - pkg/api/v3/model_enum_grpc.go | 1 - pkg/api/v3/model_enum_header.go | 1 - pkg/api/v3/model_enum_headers.go | 1 - .../model_enum_helpers_fingerprints_count.go | 1 - .../model_enum_helpers_fingerprints_same.go | 1 - .../v3/model_enum_helpers_json_matches_all.go | 1 - .../model_enum_helpers_json_matches_count.go | 1 - .../model_enum_helpers_regex_matches_all.go | 1 - .../model_enum_helpers_regex_matches_count.go | 1 - pkg/api/v3/model_enum_helpers_request_crud.go | 1 - ...del_enum_helpers_response_is_successful.go | 1 - pkg/api/v3/model_enum_host.go | 1 - pkg/api/v3/model_enum_http.go | 1 - pkg/api/v3/model_enum_invalid_cursor.go | 1 - pkg/api/v3/model_enum_ip.go | 1 - pkg/api/v3/model_enum_ipv4.go | 1 - pkg/api/v3/model_enum_ipv4_range.go | 1 - pkg/api/v3/model_enum_ipv6.go | 1 - pkg/api/v3/model_enum_issue_category.go | 1 - pkg/api/v3/model_enum_issue_context.go | 1 - pkg/api/v3/model_enum_issue_createdat.go | 1 - .../v3/model_enum_issue_linkinallissues.go | 1 - pkg/api/v3/model_enum_issue_linkinasset.go | 1 - pkg/api/v3/model_enum_issue_linkinprofile.go | 1 - pkg/api/v3/model_enum_issue_linkinscan.go | 1 - pkg/api/v3/model_enum_issue_name.go | 1 - pkg/api/v3/model_enum_issue_remediation.go | 1 - pkg/api/v3/model_enum_issue_severity.go | 1 - pkg/api/v3/model_enum_issue_status.go | 1 - pkg/api/v3/model_enum_issue_targets.go | 1 - pkg/api/v3/model_enum_issues.go | 1 - .../v3/model_enum_items_properties_kind.go | 17 +- pkg/api/v3/model_enum_jira.go | 1 - pkg/api/v3/model_enum_js_assertion.go | 1 - pkg/api/v3/model_enum_kubernetes_cluster.go | 1 - pkg/api/v3/model_enum_local_storage.go | 1 - ...odel_enum_location_deleted_successfully.go | 1 - pkg/api/v3/model_enum_mcp.go | 1 - pkg/api/v3/model_enum_network.go | 1 - pkg/api/v3/model_enum_not.go | 1 - pkg/api/v3/model_enum_not_found.go | 1 - pkg/api/v3/model_enum_notify.go | 1 - .../v3/model_enum_oauth_authz_code_browser.go | 1 - .../v3/model_enum_oauth_client_credentials.go | 1 - pkg/api/v3/model_enum_oauth_ropc.go | 1 - pkg/api/v3/model_enum_or.go | 1 - pkg/api/v3/model_enum_owners.go | 1 - pkg/api/v3/model_enum_page_selector.go | 1 - pkg/api/v3/model_enum_page_status_code.go | 1 - pkg/api/v3/model_enum_page_text.go | 1 - pkg/api/v3/model_enum_postman_organization.go | 1 - pkg/api/v3/model_enum_profile_name.go | 1 - pkg/api/v3/model_enum_profile_scannerkind.go | 1 - pkg/api/v3/model_enum_profiles.go | 1 - pkg/api/v3/model_enum_projectmembers.go | 1 - ...properties_parameters_properties_format.go | 3 +- ...roperties_actions_items_properties_type.go | 1 - ...t_properties_apiroute_properties_source.go | 3 +- ...rties_presets_items_7_properties_region.go | 35 +- ...s_extractions_items_properties_location.go | 5 +- ...ties_cookies_items_properties_same_site.go | 5 +- ...extractions_1_items_properties_location.go | 7 +- ...rties_parameters_properties_environment.go | 1 - ...roperties_frontend_dast_properties_mode.go | 3 +- ...roperties_security_checks_enabled_items.go | 11 +- ...ies_graphql_api_dast_properties_profile.go | 9 +- ...onalproperties_properties_parents_items.go | 7 +- ...tionalproperties_properties_sensitivity.go | 7 +- ...dditionalproperties_properties_strategy.go | 15 +- ..._allowlist_items_0_properties_operation.go | 11 +- ...ies_allowlist_items_3_properties_method.go | 15 +- ...scalars_properties_assets_allowed_items.go | 51 +- ...rt_properties_compliance_properties_cra.go | 3 +- ...rt_properties_compliance_properties_cwe.go | 117 +- ...t_properties_compliance_properties_dora.go | 7 +- ...roperties_compliance_properties_fedramp.go | 31 +- ...t_properties_compliance_properties_gdpr.go | 3 +- ..._properties_compliance_properties_hipaa.go | 1 - ...rties_compliance_properties_hitrust_csf.go | 1 - ...operties_compliance_properties_iec62443.go | 1 - ...operties_compliance_properties_iso27001.go | 5 +- ...ties_compliance_properties_mitre_attack.go | 1 - ...t_properties_compliance_properties_nis2.go | 3 +- ...t_properties_compliance_properties_nist.go | 23 +- ..._properties_compliance_properties_owasp.go | 21 +- ...erties_compliance_properties_owasp_asvs.go | 17 +- ...perties_compliance_properties_owasp_llm.go | 1 - ...roperties_compliance_properties_pci_dss.go | 49 +- ...t_properties_compliance_properties_psd2.go | 3 +- ...t_properties_compliance_properties_soc2.go | 1 - ...t_properties_compliance_properties_wasc.go | 1 - ..._0_properties_alert_properties_severity.go | 7 +- ...roperties_trigger_items_0_properties_is.go | 3 +- ...roperties_trigger_items_5_properties_is.go | 3 +- ...r_items_7_properties_type_properties_is.go | 509 ++-- ...items_properties_asset_properties_class.go | 21 +- ...s_asset_properties_host_properties_type.go | 3 +- ...properties_asset_properties_risks_items.go | 11 +- ...rties_service_properties_authtechnology.go | 11 +- ...erties_service_properties_cloudprovider.go | 37 +- ...operties_service_properties_environment.go | 7 +- ...sset_properties_service_properties_type.go | 9 +- ...operties_service_properties_wafprovider.go | 303 ++- ...tems_properties_asset_properties_status.go | 11 +- ..._items_properties_asset_properties_type.go | 57 +- ...operties_data_items_properties_category.go | 19 +- ..._data_items_properties_initiators_items.go | 11 +- ...m_properties_data_items_properties_kind.go | 43 +- ..._properties_data_items_properties_level.go | 7 +- ...operties_data_items_properties_severity.go | 9 +- ..._properties_data_items_properties_stage.go | 7 +- ...properties_data_items_properties_status.go | 9 +- .../v3/model_enum_properties_environment.go | 5 +- ...es_filter_properties_scannerkinds_items.go | 63 +- ...ilter_properties_lastscanstatuses_items.go | 5 +- ...ties_filter_properties_frameworks_items.go | 43 +- ...roperties_filters_items_properties_type.go | 11 +- pkg/api/v3/model_enum_properties_initiator.go | 5 +- pkg/api/v3/model_enum_properties_language.go | 23 +- ..._ports_items_properties_protocols_items.go | 7 +- ...rties_parameters_properties_auth_method.go | 3 +- ...apping_items_properties_escape_property.go | 11 +- ...properties_upload_severity_levels_items.go | 9 +- ...operties_parameters_items_properties_in.go | 5 +- ...model_enum_properties_permissions_items.go | 17 +- .../v3/model_enum_properties_third_party.go | 91 +- pkg/api/v3/model_enum_properties_trigger.go | 17 +- .../v3/model_enum_properties_visibility.go | 5 +- .../v3/model_enum_properties_waf_provider.go | 301 ++- pkg/api/v3/model_enum_repository.go | 1 - pkg/api/v3/model_enum_request_argument.go | 1 - pkg/api/v3/model_enum_request_body_json.go | 1 - pkg/api/v3/model_enum_request_body_text.go | 1 - pkg/api/v3/model_enum_request_cookies.go | 1 - pkg/api/v3/model_enum_request_headers.go | 1 - .../v3/model_enum_request_is_authenticated.go | 1 - pkg/api/v3/model_enum_request_method.go | 1 - pkg/api/v3/model_enum_request_object.go | 1 - pkg/api/v3/model_enum_request_user.go | 1 - pkg/api/v3/model_enum_response_body_json.go | 1 - pkg/api/v3/model_enum_response_body_text.go | 1 - pkg/api/v3/model_enum_response_cookies.go | 1 - pkg/api/v3/model_enum_response_duration.go | 1 - pkg/api/v3/model_enum_response_duration_ms.go | 1 - pkg/api/v3/model_enum_response_headers.go | 1 - pkg/api/v3/model_enum_response_object.go | 1 - pkg/api/v3/model_enum_response_status_code.go | 1 - pkg/api/v3/model_enum_rest.go | 3 +- pkg/api/v3/model_enum_rest_api_path.go | 1 - pkg/api/v3/model_enum_rest_api_url.go | 1 - pkg/api/v3/model_enum_roles.go | 1 - pkg/api/v3/model_enum_scan_type.go | 1 - pkg/api/v3/model_enum_schema.go | 1 - .../model_enum_schema_need_authentication.go | 1 - pkg/api/v3/model_enum_schema_path_ref.go | 1 - pkg/api/v3/model_enum_schema_url.go | 1 - pkg/api/v3/model_enum_select.go | 1 - pkg/api/v3/model_enum_session_storage.go | 1 - pkg/api/v3/model_enum_slack_webhook.go | 1 - pkg/api/v3/model_enum_sleep.go | 1 - pkg/api/v3/model_enum_solve_captcha.go | 1 - .../v3/model_enum_source_code_management.go | 1 - pkg/api/v3/model_enum_teams_webhook.go | 1 - pkg/api/v3/model_enum_variable_defined.go | 1 - pkg/api/v3/model_enum_wait_element.go | 1 - pkg/api/v3/model_enum_wait_text.go | 1 - .../model_enum_web_page_element_selector.go | 1 - pkg/api/v3/model_enum_web_page_url.go | 1 - pkg/api/v3/model_enum_webapp.go | 1 - pkg/api/v3/model_enum_webhook.go | 1 - pkg/api/v3/model_enum_websocket.go | 1 - pkg/api/v3/model_enum_wiz.go | 1 - pkg/api/v3/model_enum_wiz_account.go | 1 - pkg/api/v3/model_enumpropertiesframework.go | 43 +- pkg/api/v3/model_event_detailed.go | 20 +- pkg/api/v3/model_event_summarized.go | 12 +- ...odel_event_summarized_attachments_inner.go | 12 +- ...ent_summarized_attachments_inner_target.go | 18 +- ...ized_attachments_inner_target_api_route.go | 10 +- ...ized_attachments_inner_target_code_file.go | 10 +- ...tachments_inner_target_graphql_resolver.go | 10 +- ...ummarized_attachments_inner_target_port.go | 10 +- pkg/api/v3/model_exchange_detailed.go | 10 +- .../model_generated_openapi_spec_detailed.go | 10 +- pkg/api/v3/model_get_profile_404_response.go | 10 +- pkg/api/v3/model_get_user_200_response.go | 12 +- pkg/api/v3/model_graph_detailed.go | 10 +- pkg/api/v3/model_graphql_resolver_detailed.go | 10 +- pkg/api/v3/model_http_header_detailed.go | 10 +- pkg/api/v3/model_ignore_scan_200_response.go | 10 +- pkg/api/v3/model_ignore_scan_409_response.go | 14 +- pkg/api/v3/model_ignore_scan_request.go | 10 +- pkg/api/v3/model_inferred_scalar_detailed.go | 10 +- pkg/api/v3/model_invite_user_request.go | 10 +- ...odel_invite_user_request_bindings_inner.go | 10 +- pkg/api/v3/model_issue_detailed.go | 20 +- pkg/api/v3/model_issue_summarized.go | 20 +- pkg/api/v3/model_issue_summarized_links.go | 10 +- .../v3/model_last_scan_status_summarized.go | 12 +- ...an_status_summarized_last_resource_scan.go | 10 +- ...rized_last_resource_scan_problems_inner.go | 10 +- pkg/api/v3/model_list_assets_200_response.go | 14 +- .../v3/model_list_audit_logs_200_response.go | 14 +- pkg/api/v3/model_list_events_200_response.go | 14 +- .../v3/model_list_integrations200_response.go | 14 +- ...ist_integrations200_response_data_inner.go | 18 +- pkg/api/v3/model_list_issues_200_response.go | 14 +- .../v3/model_list_issues_names_parameter.go | 10 +- .../v3/model_list_locations_200_response.go | 14 +- .../v3/model_list_profiles_200_response.go | 14 +- .../v3/model_list_profiles_400_response.go | 12 +- .../v3/model_list_projects_200_response.go | 14 +- ...l_list_projects_200_response_data_inner.go | 12 +- ..._200_response_data_inner_bindings_inner.go | 12 +- pkg/api/v3/model_list_roles_200_response.go | 12 +- pkg/api/v3/model_list_scans_200_response.go | 14 +- .../model_list_scans_project_ids_parameter.go | 10 +- pkg/api/v3/model_list_users_200_response.go | 12 +- pkg/api/v3/model_location_detailed.go | 12 +- pkg/api/v3/model_location_detailed_1.go | 12 +- pkg/api/v3/model_location_summarized.go | 12 +- pkg/api/v3/model_location_summarized_1.go | 12 +- pkg/api/v3/model_location_summarized_links.go | 10 +- pkg/api/v3/model_port_detailed.go | 10 +- pkg/api/v3/model_problems_200_response.go | 14 +- pkg/api/v3/model_profile_detailed.go | 24 +- .../model_profile_detailed_configuration.go | 42 +- ...ailed_configuration_argument_generation.go | 16 +- ...e_detailed_configuration_authentication.go | 20 +- ...figuration_authentication_presets_inner.go | 27 +- ...ion_authentication_presets_inner_one_of.go | 18 +- ...n_authentication_presets_inner_one_of_1.go | 18 +- ..._authentication_presets_inner_one_of_10.go | 16 +- ..._presets_inner_one_of_10_requests_inner.go | 12 +- ...ion_presets_inner_one_of_10_users_inner.go | 24 +- ..._authentication_presets_inner_one_of_11.go | 29 +- ...tion_presets_inner_one_of_11_injections.go | 10 +- ...ion_presets_inner_one_of_11_users_inner.go | 30 +- ..._11_users_inner_additional_fields_inner.go | 16 +- ..._authentication_presets_inner_one_of_12.go | 29 +- ...ion_presets_inner_one_of_12_users_inner.go | 24 +- ..._authentication_presets_inner_one_of_13.go | 31 +- ...ion_presets_inner_one_of_13_users_inner.go | 26 +- ..._authentication_presets_inner_one_of_14.go | 18 +- ...ion_presets_inner_one_of_14_users_inner.go | 26 +- ...tion_presets_inner_one_of_1_users_inner.go | 26 +- ...n_authentication_presets_inner_one_of_2.go | 14 +- ...tion_presets_inner_one_of_2_users_inner.go | 32 +- ...n_authentication_presets_inner_one_of_3.go | 28 +- ...tion_presets_inner_one_of_3_users_inner.go | 30 +- ...n_authentication_presets_inner_one_of_4.go | 12 +- ...tion_presets_inner_one_of_4_users_inner.go | 24 +- ...n_authentication_presets_inner_one_of_5.go | 20 +- ...tion_presets_inner_one_of_5_users_inner.go | 24 +- ...n_authentication_presets_inner_one_of_6.go | 12 +- ...n_authentication_presets_inner_one_of_7.go | 18 +- ...n_authentication_presets_inner_one_of_8.go | 12 +- ...tion_presets_inner_one_of_8_users_inner.go | 22 +- ...n_authentication_presets_inner_one_of_9.go | 16 +- ...tion_presets_inner_one_of_9_users_inner.go | 24 +- ...entication_presets_inner_one_of_request.go | 20 +- ...cation_presets_inner_one_of_users_inner.go | 26 +- ...uration_authentication_procedures_inner.go | 14 +- ...hentication_procedures_inner_injections.go | 10 +- ...rocedures_inner_injections_any_of_inner.go | 16 +- ...cedures_inner_injections_any_of_inner_1.go | 16 +- ...ation_procedures_inner_operations_inner.go | 9 +- ...rocedures_inner_operations_inner_one_of.go | 14 +- ...cedures_inner_operations_inner_one_of_1.go | 14 +- ...r_operations_inner_one_of_1_extractions.go | 10 +- ...inner_one_of_1_extractions_any_of_inner.go | 20 +- ...er_operations_inner_one_of_1_parameters.go | 34 +- ...cedures_inner_operations_inner_one_of_2.go | 14 +- ...er_operations_inner_one_of_2_parameters.go | 20 +- ...cedures_inner_operations_inner_one_of_3.go | 14 +- ...cedures_inner_operations_inner_one_of_4.go | 14 +- ...er_operations_inner_one_of_4_parameters.go | 24 +- ...cedures_inner_operations_inner_one_of_5.go | 14 +- ...er_operations_inner_one_of_5_parameters.go | 12 +- ...erations_inner_one_of_extractions_inner.go | 16 +- ...nner_operations_inner_one_of_parameters.go | 28 +- ...s_inner_one_of_parameters_cookies_inner.go | 22 +- ...s_inner_one_of_parameters_headers_inner.go | 12 +- ...onfiguration_authentication_users_inner.go | 20 +- ..._authentication_users_inner_credentials.go | 32 +- ...n_users_inner_credentials_actions_inner.go | 27 +- ..._inner_credentials_actions_inner_one_of.go | 20 +- ...nner_credentials_actions_inner_one_of_1.go | 26 +- ...ner_credentials_actions_inner_one_of_10.go | 16 +- ...nner_credentials_actions_inner_one_of_2.go | 18 +- ...nner_credentials_actions_inner_one_of_3.go | 18 +- ...nner_credentials_actions_inner_one_of_4.go | 20 +- ...nner_credentials_actions_inner_one_of_5.go | 22 +- ...nner_credentials_actions_inner_one_of_6.go | 16 +- ...nner_credentials_actions_inner_one_of_7.go | 16 +- ...nner_credentials_actions_inner_one_of_8.go | 14 +- ...nner_credentials_actions_inner_one_of_9.go | 14 +- ...tion_authentication_users_inner_refresh.go | 18 +- ...hentication_users_inner_variables_inner.go | 12 +- ...ile_detailed_configuration_experimental.go | 14 +- ..._configuration_experimental_agentic_xss.go | 6 +- ...le_detailed_configuration_frontend_dast.go | 40 +- ...guration_frontend_dast_agentic_crawling.go | 8 +- ...iguration_frontend_dast_crawling_tuning.go | 12 +- ...guration_frontend_dast_logout_detection.go | 16 +- ...ailed_configuration_frontend_dast_scope.go | 8 +- ...uration_frontend_dast_scope_api_testing.go | 10 +- ..._dast_scope_api_testing_allowlist_inner.go | 9 +- ...figuration_frontend_dast_scope_crawling.go | 10 +- ...end_dast_scope_crawling_allowlist_inner.go | 9 +- ...iguration_frontend_dast_static_crawling.go | 8 +- ...detailed_configuration_graphql_api_dast.go | 30 +- ...ed_configuration_graphql_api_dast_scope.go | 10 +- ...rofile_detailed_configuration_inference.go | 10 +- ...d_configuration_inference_scalars_value.go | 28 +- ..._profile_detailed_configuration_network.go | 20 +- ...le_detailed_configuration_port_scanning.go | 6 +- ...le_detailed_configuration_rest_api_dast.go | 24 +- ...el_profile_detailed_configuration_scope.go | 10 +- ...led_configuration_scope_allowlist_inner.go | 9 +- ...figuration_scope_allowlist_inner_one_of.go | 14 +- ...guration_scope_allowlist_inner_one_of_1.go | 14 +- ...guration_scope_allowlist_inner_one_of_2.go | 14 +- ...guration_scope_allowlist_inner_one_of_3.go | 18 +- ...guration_scope_allowlist_inner_one_of_4.go | 16 +- ...guration_scope_allowlist_inner_one_of_5.go | 14 +- ...guration_scope_allowlist_inner_one_of_6.go | 14 +- ...e_detailed_configuration_security_tests.go | 606 +++-- ...on_security_tests_adminer_default_login.go | 8 +- ...n_security_tests_api_agentic_pentesting.go | 10 +- ...ailed_configuration_security_tests_bola.go | 10 +- ...ity_tests_high_number_of_custom_scalars.go | 10 +- ...nfiguration_security_tests_private_data.go | 10 +- ...figuration_security_tests_response_size.go | 10 +- ...tailed_configuration_security_tests_sql.go | 12 +- ...uration_security_tests_tenant_isolation.go | 20 +- ...rity_tests_tenant_isolation_other_users.go | 10 +- ...s_tenant_isolation_specific_users_value.go | 10 +- ...etailed_configuration_service_discovery.go | 14 +- ...led_configuration_subdomain_enumeration.go | 6 +- pkg/api/v3/model_profile_summarized.go | 14 +- pkg/api/v3/model_profile_summarized_links.go | 10 +- pkg/api/v3/model_scan_detailed.go | 24 +- pkg/api/v3/model_scan_detailed_1.go | 24 +- pkg/api/v3/model_scan_detailed_links.go | 10 +- pkg/api/v3/model_scan_summarized.go | 12 +- pkg/api/v3/model_scan_summarized_1.go | 12 +- pkg/api/v3/model_scan_summarized_links.go | 10 +- pkg/api/v3/model_screenshot_detailed.go | 10 +- pkg/api/v3/model_snippet_detailed.go | 10 +- pkg/api/v3/model_start_scan_request.go | 16 +- pkg/api/v3/model_statistics_detailed.go | 10 +- .../v3/model_statistics_detailed_issues.go | 14 +- ...istics_detailed_issues_categories_inner.go | 10 +- ...istics_detailed_issues_severities_inner.go | 10 +- pkg/api/v3/model_tag.go | 10 +- pkg/api/v3/model_tag_detail.go | 10 +- pkg/api/v3/model_target_detailed.go | 18 +- pkg/api/v3/model_update_asset_request.go | 12 +- .../v3/model_update_asset_request_owners.go | 10 +- .../v3/model_update_asset_request_tag_ids.go | 10 +- .../v3/model_update_custom_rule_request.go | 6 +- ...odel_update_custom_rule_request_content.go | 10 +- pkg/api/v3/model_update_issue_200_response.go | 10 +- pkg/api/v3/model_update_issue_request.go | 6 +- pkg/api/v3/model_update_location_request.go | 6 +- .../v3/model_update_profile_400_response.go | 12 +- ...el_update_profile_configuration_request.go | 10 +- ...ile_configuration_request_configuration.go | 42 +- pkg/api/v3/model_update_profile_request.go | 6 +- .../v3/model_update_profile_schema_request.go | 10 +- pkg/api/v3/model_update_project_request.go | 10 +- .../model_update_project_request_project.go | 6 +- pkg/api/v3/model_update_role_request.go | 10 +- pkg/api/v3/model_update_role_request_role.go | 6 +- pkg/api/v3/model_update_workflow_request.go | 12 +- ...l_update_workflow_request_actions_inner.go | 28 +- ...l_update_workflow_request_filters_inner.go | 18 +- .../model_updateakamai_integration_request.go | 8 +- ...teakamai_integration_request_parameters.go | 16 +- .../model_updateapigee_integration_request.go | 8 +- ...teapigee_integration_request_parameters.go | 30 +- .../v3/model_updateaws_integration_request.go | 8 +- ...pdateaws_integration_request_parameters.go | 12 +- .../model_updateazure_integration_request.go | 8 +- ...ateazure_integration_request_parameters.go | 16 +- ...pdatebitbucket_repo_integration_request.go | 8 +- ...ket_repo_integration_request_parameters.go | 18 +- ...el_updatecloudflare_integration_request.go | 8 +- ...oudflare_integration_request_parameters.go | 10 +- .../model_updatecustom_integration_request.go | 8 +- ...tecustom_integration_request_parameters.go | 12 +- .../model_updategitlab_integration_request.go | 8 +- ...tegitlab_integration_request_parameters.go | 12 +- .../model_updatejira_integration_request.go | 8 +- ...datejira_integration_request_parameters.go | 28 +- ...el_updatekubernetes_integration_request.go | 8 +- ...bernetes_integration_request_parameters.go | 8 +- .../v3/model_updatewiz_integration_request.go | 8 +- ...pdatewiz_integration_request_parameters.go | 16 +- pkg/api/v3/model_upload_summary.go | 10 +- pkg/api/v3/model_workflow_detailed.go | 16 +- .../model_workflow_detailed_actions_inner.go | 16 +- ...flow_detailed_actions_inner_integration.go | 14 +- .../model_workflow_detailed_filters_inner.go | 16 +- ...el_workflow_detailed_filters_inner_view.go | 16 +- pkg/api/v3/utils.go | 2 +- pkg/cli/cmd/tags.go | 2 +- pkg/cli/out/table.go | 42 +- pkg/env/color.go | 2 +- pkg/env/proxy.go | 1 + pkg/locations/health/main.go | 1 + pkg/locations/private/monitor/logs.go | 10 +- pkg/log/buffer.go | 6 +- 741 files changed, 7350 insertions(+), 8453 deletions(-) diff --git a/pkg/api/v3/api_assets.go b/pkg/api/v3/api_assets.go index 79b0dae2..1c606b2c 100644 --- a/pkg/api/v3/api_assets.go +++ b/pkg/api/v3/api_assets.go @@ -19,13 +19,12 @@ import ( "strings" ) - // AssetsAPIService AssetsAPI service type AssetsAPIService service type ApiCreateAssetAKAMAIACCOUNTRequest struct { - ctx context.Context - ApiService *AssetsAPIService + ctx context.Context + ApiService *AssetsAPIService createAssetAKAMAIACCOUNTRequest *CreateAssetAKAMAIACCOUNTRequest } @@ -44,24 +43,25 @@ CreateAssetAKAMAIACCOUNT Create asset akamai-account Create a akamai-account - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetAKAMAIACCOUNTRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAssetAKAMAIACCOUNTRequest */ func (a *AssetsAPIService) CreateAssetAKAMAIACCOUNT(ctx context.Context) ApiCreateAssetAKAMAIACCOUNTRequest { return ApiCreateAssetAKAMAIACCOUNTRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) CreateAssetAKAMAIACCOUNTExecute(r ApiCreateAssetAKAMAIACCOUNTRequest) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetAKAMAIACCOUNT") @@ -137,8 +137,8 @@ func (a *AssetsAPIService) CreateAssetAKAMAIACCOUNTExecute(r ApiCreateAssetAKAMA newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -156,8 +156,8 @@ func (a *AssetsAPIService) CreateAssetAKAMAIACCOUNTExecute(r ApiCreateAssetAKAMA } type ApiCreateAssetAWSACCOUNTRequest struct { - ctx context.Context - ApiService *AssetsAPIService + ctx context.Context + ApiService *AssetsAPIService createAssetAWSACCOUNTRequest *CreateAssetAWSACCOUNTRequest } @@ -176,24 +176,25 @@ CreateAssetAWSACCOUNT Create asset aws-account Create a aws-account - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetAWSACCOUNTRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAssetAWSACCOUNTRequest */ func (a *AssetsAPIService) CreateAssetAWSACCOUNT(ctx context.Context) ApiCreateAssetAWSACCOUNTRequest { return ApiCreateAssetAWSACCOUNTRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) CreateAssetAWSACCOUNTExecute(r ApiCreateAssetAWSACCOUNTRequest) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetAWSACCOUNT") @@ -269,8 +270,8 @@ func (a *AssetsAPIService) CreateAssetAWSACCOUNTExecute(r ApiCreateAssetAWSACCOU newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -288,8 +289,8 @@ func (a *AssetsAPIService) CreateAssetAWSACCOUNTExecute(r ApiCreateAssetAWSACCOU } type ApiCreateAssetAZURETENANTRequest struct { - ctx context.Context - ApiService *AssetsAPIService + ctx context.Context + ApiService *AssetsAPIService createAssetAZURETENANTRequest *CreateAssetAZURETENANTRequest } @@ -308,24 +309,25 @@ CreateAssetAZURETENANT Create asset azure-tenant Create a azure-tenant - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetAZURETENANTRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAssetAZURETENANTRequest */ func (a *AssetsAPIService) CreateAssetAZURETENANT(ctx context.Context) ApiCreateAssetAZURETENANTRequest { return ApiCreateAssetAZURETENANTRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) CreateAssetAZURETENANTExecute(r ApiCreateAssetAZURETENANTRequest) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetAZURETENANT") @@ -401,8 +403,8 @@ func (a *AssetsAPIService) CreateAssetAZURETENANTExecute(r ApiCreateAssetAZURETE newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -420,8 +422,8 @@ func (a *AssetsAPIService) CreateAssetAZURETENANTExecute(r ApiCreateAssetAZURETE } type ApiCreateAssetCLOUDFLAREACCOUNTRequest struct { - ctx context.Context - ApiService *AssetsAPIService + ctx context.Context + ApiService *AssetsAPIService createAssetCLOUDFLAREACCOUNTRequest *CreateAssetCLOUDFLAREACCOUNTRequest } @@ -440,24 +442,25 @@ CreateAssetCLOUDFLAREACCOUNT Create asset cloudflare-account Create a cloudflare-account - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetCLOUDFLAREACCOUNTRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAssetCLOUDFLAREACCOUNTRequest */ func (a *AssetsAPIService) CreateAssetCLOUDFLAREACCOUNT(ctx context.Context) ApiCreateAssetCLOUDFLAREACCOUNTRequest { return ApiCreateAssetCLOUDFLAREACCOUNTRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) CreateAssetCLOUDFLAREACCOUNTExecute(r ApiCreateAssetCLOUDFLAREACCOUNTRequest) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetCLOUDFLAREACCOUNT") @@ -533,8 +536,8 @@ func (a *AssetsAPIService) CreateAssetCLOUDFLAREACCOUNTExecute(r ApiCreateAssetC newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -552,8 +555,8 @@ func (a *AssetsAPIService) CreateAssetCLOUDFLAREACCOUNTExecute(r ApiCreateAssetC } type ApiCreateAssetCODEPROJECTRequest struct { - ctx context.Context - ApiService *AssetsAPIService + ctx context.Context + ApiService *AssetsAPIService createAssetCODEPROJECTRequest *CreateAssetCODEPROJECTRequest } @@ -572,24 +575,25 @@ CreateAssetCODEPROJECT Create asset code-project Create a code-project - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetCODEPROJECTRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAssetCODEPROJECTRequest */ func (a *AssetsAPIService) CreateAssetCODEPROJECT(ctx context.Context) ApiCreateAssetCODEPROJECTRequest { return ApiCreateAssetCODEPROJECTRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) CreateAssetCODEPROJECTExecute(r ApiCreateAssetCODEPROJECTRequest) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetCODEPROJECT") @@ -665,8 +669,8 @@ func (a *AssetsAPIService) CreateAssetCODEPROJECTExecute(r ApiCreateAssetCODEPRO newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -684,8 +688,8 @@ func (a *AssetsAPIService) CreateAssetCODEPROJECTExecute(r ApiCreateAssetCODEPRO } type ApiCreateAssetDNSRequest struct { - ctx context.Context - ApiService *AssetsAPIService + ctx context.Context + ApiService *AssetsAPIService createAssetDNSRequest *CreateAssetDNSRequest } @@ -704,24 +708,25 @@ CreateAssetDNS Create asset dns Create a dns - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetDNSRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAssetDNSRequest */ func (a *AssetsAPIService) CreateAssetDNS(ctx context.Context) ApiCreateAssetDNSRequest { return ApiCreateAssetDNSRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) CreateAssetDNSExecute(r ApiCreateAssetDNSRequest) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetDNS") @@ -797,8 +802,8 @@ func (a *AssetsAPIService) CreateAssetDNSExecute(r ApiCreateAssetDNSRequest) (*A newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -816,8 +821,8 @@ func (a *AssetsAPIService) CreateAssetDNSExecute(r ApiCreateAssetDNSRequest) (*A } type ApiCreateAssetGCPPROJECTRequest struct { - ctx context.Context - ApiService *AssetsAPIService + ctx context.Context + ApiService *AssetsAPIService createAssetGCPPROJECTRequest *CreateAssetGCPPROJECTRequest } @@ -836,24 +841,25 @@ CreateAssetGCPPROJECT Create asset gcp-project Create a gcp-project - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetGCPPROJECTRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAssetGCPPROJECTRequest */ func (a *AssetsAPIService) CreateAssetGCPPROJECT(ctx context.Context) ApiCreateAssetGCPPROJECTRequest { return ApiCreateAssetGCPPROJECTRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) CreateAssetGCPPROJECTExecute(r ApiCreateAssetGCPPROJECTRequest) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetGCPPROJECT") @@ -929,8 +935,8 @@ func (a *AssetsAPIService) CreateAssetGCPPROJECTExecute(r ApiCreateAssetGCPPROJE newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -948,8 +954,8 @@ func (a *AssetsAPIService) CreateAssetGCPPROJECTExecute(r ApiCreateAssetGCPPROJE } type ApiCreateAssetGITHUBORGANIZATIONRequest struct { - ctx context.Context - ApiService *AssetsAPIService + ctx context.Context + ApiService *AssetsAPIService createAssetGITHUBORGANIZATIONRequest *CreateAssetGITHUBORGANIZATIONRequest } @@ -968,24 +974,25 @@ CreateAssetGITHUBORGANIZATION Create asset github-organization Create a github-organization - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetGITHUBORGANIZATIONRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAssetGITHUBORGANIZATIONRequest */ func (a *AssetsAPIService) CreateAssetGITHUBORGANIZATION(ctx context.Context) ApiCreateAssetGITHUBORGANIZATIONRequest { return ApiCreateAssetGITHUBORGANIZATIONRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) CreateAssetGITHUBORGANIZATIONExecute(r ApiCreateAssetGITHUBORGANIZATIONRequest) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetGITHUBORGANIZATION") @@ -1061,8 +1068,8 @@ func (a *AssetsAPIService) CreateAssetGITHUBORGANIZATIONExecute(r ApiCreateAsset newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1080,8 +1087,8 @@ func (a *AssetsAPIService) CreateAssetGITHUBORGANIZATIONExecute(r ApiCreateAsset } type ApiCreateAssetGITHUBREPOSITORYRequest struct { - ctx context.Context - ApiService *AssetsAPIService + ctx context.Context + ApiService *AssetsAPIService createAssetGITHUBREPOSITORYRequest *CreateAssetGITHUBREPOSITORYRequest } @@ -1100,24 +1107,25 @@ CreateAssetGITHUBREPOSITORY Create asset github-repository Create a github-repository - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetGITHUBREPOSITORYRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAssetGITHUBREPOSITORYRequest */ func (a *AssetsAPIService) CreateAssetGITHUBREPOSITORY(ctx context.Context) ApiCreateAssetGITHUBREPOSITORYRequest { return ApiCreateAssetGITHUBREPOSITORYRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) CreateAssetGITHUBREPOSITORYExecute(r ApiCreateAssetGITHUBREPOSITORYRequest) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetGITHUBREPOSITORY") @@ -1193,8 +1201,8 @@ func (a *AssetsAPIService) CreateAssetGITHUBREPOSITORYExecute(r ApiCreateAssetGI newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1212,8 +1220,8 @@ func (a *AssetsAPIService) CreateAssetGITHUBREPOSITORYExecute(r ApiCreateAssetGI } type ApiCreateAssetGITLABGROUPRequest struct { - ctx context.Context - ApiService *AssetsAPIService + ctx context.Context + ApiService *AssetsAPIService createAssetGITLABGROUPRequest *CreateAssetGITLABGROUPRequest } @@ -1232,24 +1240,25 @@ CreateAssetGITLABGROUP Create asset gitlab-group Create a gitlab-group - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetGITLABGROUPRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAssetGITLABGROUPRequest */ func (a *AssetsAPIService) CreateAssetGITLABGROUP(ctx context.Context) ApiCreateAssetGITLABGROUPRequest { return ApiCreateAssetGITLABGROUPRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) CreateAssetGITLABGROUPExecute(r ApiCreateAssetGITLABGROUPRequest) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetGITLABGROUP") @@ -1325,8 +1334,8 @@ func (a *AssetsAPIService) CreateAssetGITLABGROUPExecute(r ApiCreateAssetGITLABG newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1344,8 +1353,8 @@ func (a *AssetsAPIService) CreateAssetGITLABGROUPExecute(r ApiCreateAssetGITLABG } type ApiCreateAssetGITLABREPOSITORYRequest struct { - ctx context.Context - ApiService *AssetsAPIService + ctx context.Context + ApiService *AssetsAPIService createAssetGITLABREPOSITORYRequest *CreateAssetGITLABREPOSITORYRequest } @@ -1364,24 +1373,25 @@ CreateAssetGITLABREPOSITORY Create asset gitlab-repository Create a gitlab-repository - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetGITLABREPOSITORYRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAssetGITLABREPOSITORYRequest */ func (a *AssetsAPIService) CreateAssetGITLABREPOSITORY(ctx context.Context) ApiCreateAssetGITLABREPOSITORYRequest { return ApiCreateAssetGITLABREPOSITORYRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) CreateAssetGITLABREPOSITORYExecute(r ApiCreateAssetGITLABREPOSITORYRequest) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetGITLABREPOSITORY") @@ -1457,8 +1467,8 @@ func (a *AssetsAPIService) CreateAssetGITLABREPOSITORYExecute(r ApiCreateAssetGI newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1476,8 +1486,8 @@ func (a *AssetsAPIService) CreateAssetGITLABREPOSITORYExecute(r ApiCreateAssetGI } type ApiCreateAssetGRAPHQLRequest struct { - ctx context.Context - ApiService *AssetsAPIService + ctx context.Context + ApiService *AssetsAPIService createAssetGRAPHQLRequest *CreateAssetGRAPHQLRequest } @@ -1496,24 +1506,25 @@ CreateAssetGRAPHQL Create asset graphql Create a graphql - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetGRAPHQLRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAssetGRAPHQLRequest */ func (a *AssetsAPIService) CreateAssetGRAPHQL(ctx context.Context) ApiCreateAssetGRAPHQLRequest { return ApiCreateAssetGRAPHQLRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) CreateAssetGRAPHQLExecute(r ApiCreateAssetGRAPHQLRequest) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetGRAPHQL") @@ -1589,8 +1600,8 @@ func (a *AssetsAPIService) CreateAssetGRAPHQLExecute(r ApiCreateAssetGRAPHQLRequ newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1608,8 +1619,8 @@ func (a *AssetsAPIService) CreateAssetGRAPHQLExecute(r ApiCreateAssetGRAPHQLRequ } type ApiCreateAssetGRPCRequest struct { - ctx context.Context - ApiService *AssetsAPIService + ctx context.Context + ApiService *AssetsAPIService createAssetGRPCRequest *CreateAssetGRPCRequest } @@ -1628,24 +1639,25 @@ CreateAssetGRPC Create asset grpc Create a grpc - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetGRPCRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAssetGRPCRequest */ func (a *AssetsAPIService) CreateAssetGRPC(ctx context.Context) ApiCreateAssetGRPCRequest { return ApiCreateAssetGRPCRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) CreateAssetGRPCExecute(r ApiCreateAssetGRPCRequest) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetGRPC") @@ -1721,8 +1733,8 @@ func (a *AssetsAPIService) CreateAssetGRPCExecute(r ApiCreateAssetGRPCRequest) ( newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1740,8 +1752,8 @@ func (a *AssetsAPIService) CreateAssetGRPCExecute(r ApiCreateAssetGRPCRequest) ( } type ApiCreateAssetIPV4Request struct { - ctx context.Context - ApiService *AssetsAPIService + ctx context.Context + ApiService *AssetsAPIService createAssetIPV4Request *CreateAssetIPV4Request } @@ -1760,24 +1772,25 @@ CreateAssetIPV4 Create asset ipv4 Create a ipv4 - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetIPV4Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAssetIPV4Request */ func (a *AssetsAPIService) CreateAssetIPV4(ctx context.Context) ApiCreateAssetIPV4Request { return ApiCreateAssetIPV4Request{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) CreateAssetIPV4Execute(r ApiCreateAssetIPV4Request) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetIPV4") @@ -1853,8 +1866,8 @@ func (a *AssetsAPIService) CreateAssetIPV4Execute(r ApiCreateAssetIPV4Request) ( newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1872,8 +1885,8 @@ func (a *AssetsAPIService) CreateAssetIPV4Execute(r ApiCreateAssetIPV4Request) ( } type ApiCreateAssetIPV4RANGERequest struct { - ctx context.Context - ApiService *AssetsAPIService + ctx context.Context + ApiService *AssetsAPIService createAssetIPV4RANGERequest *CreateAssetIPV4RANGERequest } @@ -1892,24 +1905,25 @@ CreateAssetIPV4RANGE Create asset ipv4-range Create a ipv4-range - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetIPV4RANGERequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAssetIPV4RANGERequest */ func (a *AssetsAPIService) CreateAssetIPV4RANGE(ctx context.Context) ApiCreateAssetIPV4RANGERequest { return ApiCreateAssetIPV4RANGERequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) CreateAssetIPV4RANGEExecute(r ApiCreateAssetIPV4RANGERequest) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetIPV4RANGE") @@ -1985,8 +1999,8 @@ func (a *AssetsAPIService) CreateAssetIPV4RANGEExecute(r ApiCreateAssetIPV4RANGE newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2004,8 +2018,8 @@ func (a *AssetsAPIService) CreateAssetIPV4RANGEExecute(r ApiCreateAssetIPV4RANGE } type ApiCreateAssetIPV6Request struct { - ctx context.Context - ApiService *AssetsAPIService + ctx context.Context + ApiService *AssetsAPIService createAssetIPV6Request *CreateAssetIPV6Request } @@ -2024,24 +2038,25 @@ CreateAssetIPV6 Create asset ipv6 Create a ipv6 - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetIPV6Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAssetIPV6Request */ func (a *AssetsAPIService) CreateAssetIPV6(ctx context.Context) ApiCreateAssetIPV6Request { return ApiCreateAssetIPV6Request{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) CreateAssetIPV6Execute(r ApiCreateAssetIPV6Request) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetIPV6") @@ -2117,8 +2132,8 @@ func (a *AssetsAPIService) CreateAssetIPV6Execute(r ApiCreateAssetIPV6Request) ( newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2136,8 +2151,8 @@ func (a *AssetsAPIService) CreateAssetIPV6Execute(r ApiCreateAssetIPV6Request) ( } type ApiCreateAssetKUBERNETESCLUSTERRequest struct { - ctx context.Context - ApiService *AssetsAPIService + ctx context.Context + ApiService *AssetsAPIService createAssetKUBERNETESCLUSTERRequest *CreateAssetKUBERNETESCLUSTERRequest } @@ -2156,24 +2171,25 @@ CreateAssetKUBERNETESCLUSTER Create asset kubernetes-cluster Create a kubernetes-cluster - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetKUBERNETESCLUSTERRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAssetKUBERNETESCLUSTERRequest */ func (a *AssetsAPIService) CreateAssetKUBERNETESCLUSTER(ctx context.Context) ApiCreateAssetKUBERNETESCLUSTERRequest { return ApiCreateAssetKUBERNETESCLUSTERRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) CreateAssetKUBERNETESCLUSTERExecute(r ApiCreateAssetKUBERNETESCLUSTERRequest) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetKUBERNETESCLUSTER") @@ -2249,8 +2265,8 @@ func (a *AssetsAPIService) CreateAssetKUBERNETESCLUSTERExecute(r ApiCreateAssetK newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2268,8 +2284,8 @@ func (a *AssetsAPIService) CreateAssetKUBERNETESCLUSTERExecute(r ApiCreateAssetK } type ApiCreateAssetMCPRequest struct { - ctx context.Context - ApiService *AssetsAPIService + ctx context.Context + ApiService *AssetsAPIService createAssetMCPRequest *CreateAssetMCPRequest } @@ -2288,24 +2304,25 @@ CreateAssetMCP Create asset mcp Create a mcp - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetMCPRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAssetMCPRequest */ func (a *AssetsAPIService) CreateAssetMCP(ctx context.Context) ApiCreateAssetMCPRequest { return ApiCreateAssetMCPRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) CreateAssetMCPExecute(r ApiCreateAssetMCPRequest) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetMCP") @@ -2381,8 +2398,8 @@ func (a *AssetsAPIService) CreateAssetMCPExecute(r ApiCreateAssetMCPRequest) (*A newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2400,8 +2417,8 @@ func (a *AssetsAPIService) CreateAssetMCPExecute(r ApiCreateAssetMCPRequest) (*A } type ApiCreateAssetPOSTMANORGANIZATIONRequest struct { - ctx context.Context - ApiService *AssetsAPIService + ctx context.Context + ApiService *AssetsAPIService createAssetPOSTMANORGANIZATIONRequest *CreateAssetPOSTMANORGANIZATIONRequest } @@ -2420,24 +2437,25 @@ CreateAssetPOSTMANORGANIZATION Create asset postman-organization Create a postman-organization - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetPOSTMANORGANIZATIONRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAssetPOSTMANORGANIZATIONRequest */ func (a *AssetsAPIService) CreateAssetPOSTMANORGANIZATION(ctx context.Context) ApiCreateAssetPOSTMANORGANIZATIONRequest { return ApiCreateAssetPOSTMANORGANIZATIONRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) CreateAssetPOSTMANORGANIZATIONExecute(r ApiCreateAssetPOSTMANORGANIZATIONRequest) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetPOSTMANORGANIZATION") @@ -2513,8 +2531,8 @@ func (a *AssetsAPIService) CreateAssetPOSTMANORGANIZATIONExecute(r ApiCreateAsse newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2532,8 +2550,8 @@ func (a *AssetsAPIService) CreateAssetPOSTMANORGANIZATIONExecute(r ApiCreateAsse } type ApiCreateAssetRESTRequest struct { - ctx context.Context - ApiService *AssetsAPIService + ctx context.Context + ApiService *AssetsAPIService createAssetRESTRequest *CreateAssetRESTRequest } @@ -2552,24 +2570,25 @@ CreateAssetREST Create asset rest Create a rest - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetRESTRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAssetRESTRequest */ func (a *AssetsAPIService) CreateAssetREST(ctx context.Context) ApiCreateAssetRESTRequest { return ApiCreateAssetRESTRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) CreateAssetRESTExecute(r ApiCreateAssetRESTRequest) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetREST") @@ -2645,8 +2664,8 @@ func (a *AssetsAPIService) CreateAssetRESTExecute(r ApiCreateAssetRESTRequest) ( newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2664,8 +2683,8 @@ func (a *AssetsAPIService) CreateAssetRESTExecute(r ApiCreateAssetRESTRequest) ( } type ApiCreateAssetSchemaRequest struct { - ctx context.Context - ApiService *AssetsAPIService + ctx context.Context + ApiService *AssetsAPIService createAssetSchemaRequest *CreateAssetSchemaRequest } @@ -2688,14 +2707,15 @@ The schema data can either be fetched from a URL or uploaded from a file. **Fetch example:** ```json -{ - "asset_type": "SCHEMA", - "fetch": { - "url": "https://api.example.com/v1" - } -} -``` + { + "asset_type": "SCHEMA", + "fetch": { + "url": "https://api.example.com/v1" + } + } + +``` **Upload example:** @@ -2704,33 +2724,35 @@ The file should first be uploaded to the Escape Platform using the [upload endpo The upload endpoint returns an `id` that should be used in the `temporaryObjectKey` field. ```json -{ - "asset_type": "SCHEMA", - "upload": { - "temporaryObjectKey": "00000000-0000-0000-0000-000000000000" - } -} -``` + { + "asset_type": "SCHEMA", + "upload": { + "temporaryObjectKey": "00000000-0000-0000-0000-000000000000" + } + } - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetSchemaRequest +``` + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAssetSchemaRequest */ func (a *AssetsAPIService) CreateAssetSchema(ctx context.Context) ApiCreateAssetSchemaRequest { return ApiCreateAssetSchemaRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) CreateAssetSchemaExecute(r ApiCreateAssetSchemaRequest) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetSchema") @@ -2806,8 +2828,8 @@ func (a *AssetsAPIService) CreateAssetSchemaExecute(r ApiCreateAssetSchemaReques newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2825,8 +2847,8 @@ func (a *AssetsAPIService) CreateAssetSchemaExecute(r ApiCreateAssetSchemaReques } type ApiCreateAssetWEBAPPRequest struct { - ctx context.Context - ApiService *AssetsAPIService + ctx context.Context + ApiService *AssetsAPIService createAssetWEBAPPRequest *CreateAssetWEBAPPRequest } @@ -2845,24 +2867,25 @@ CreateAssetWEBAPP Create asset webapp Create a webapp - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetWEBAPPRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAssetWEBAPPRequest */ func (a *AssetsAPIService) CreateAssetWEBAPP(ctx context.Context) ApiCreateAssetWEBAPPRequest { return ApiCreateAssetWEBAPPRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) CreateAssetWEBAPPExecute(r ApiCreateAssetWEBAPPRequest) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetWEBAPP") @@ -2938,8 +2961,8 @@ func (a *AssetsAPIService) CreateAssetWEBAPPExecute(r ApiCreateAssetWEBAPPReques newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2957,8 +2980,8 @@ func (a *AssetsAPIService) CreateAssetWEBAPPExecute(r ApiCreateAssetWEBAPPReques } type ApiCreateAssetWEBSOCKETRequest struct { - ctx context.Context - ApiService *AssetsAPIService + ctx context.Context + ApiService *AssetsAPIService createAssetWEBSOCKETRequest *CreateAssetWEBSOCKETRequest } @@ -2977,24 +3000,25 @@ CreateAssetWEBSOCKET Create asset websocket Create a websocket - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetWEBSOCKETRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAssetWEBSOCKETRequest */ func (a *AssetsAPIService) CreateAssetWEBSOCKET(ctx context.Context) ApiCreateAssetWEBSOCKETRequest { return ApiCreateAssetWEBSOCKETRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) CreateAssetWEBSOCKETExecute(r ApiCreateAssetWEBSOCKETRequest) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetWEBSOCKET") @@ -3070,8 +3094,8 @@ func (a *AssetsAPIService) CreateAssetWEBSOCKETExecute(r ApiCreateAssetWEBSOCKET newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3089,8 +3113,8 @@ func (a *AssetsAPIService) CreateAssetWEBSOCKETExecute(r ApiCreateAssetWEBSOCKET } type ApiCreateAssetWIZACCOUNTRequest struct { - ctx context.Context - ApiService *AssetsAPIService + ctx context.Context + ApiService *AssetsAPIService createAssetWIZACCOUNTRequest *CreateAssetWIZACCOUNTRequest } @@ -3109,24 +3133,25 @@ CreateAssetWIZACCOUNT Create asset wiz-account Create a wiz-account - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateAssetWIZACCOUNTRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateAssetWIZACCOUNTRequest */ func (a *AssetsAPIService) CreateAssetWIZACCOUNT(ctx context.Context) ApiCreateAssetWIZACCOUNTRequest { return ApiCreateAssetWIZACCOUNTRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) CreateAssetWIZACCOUNTExecute(r ApiCreateAssetWIZACCOUNTRequest) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.CreateAssetWIZACCOUNT") @@ -3202,8 +3227,8 @@ func (a *AssetsAPIService) CreateAssetWIZACCOUNTExecute(r ApiCreateAssetWIZACCOU newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3221,9 +3246,9 @@ func (a *AssetsAPIService) CreateAssetWIZACCOUNTExecute(r ApiCreateAssetWIZACCOU } type ApiDeleteAssetRequest struct { - ctx context.Context + ctx context.Context ApiService *AssetsAPIService - assetId string + assetId string } func (r ApiDeleteAssetRequest) Execute() (*DeleteProfile200Response, *http.Response, error) { @@ -3235,26 +3260,27 @@ DeleteAsset Delete an asset Delete an asset by ID - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param assetId The asset ID - @return ApiDeleteAssetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param assetId The asset ID + @return ApiDeleteAssetRequest */ func (a *AssetsAPIService) DeleteAsset(ctx context.Context, assetId string) ApiDeleteAssetRequest { return ApiDeleteAssetRequest{ ApiService: a, - ctx: ctx, - assetId: assetId, + ctx: ctx, + assetId: assetId, } } // Execute executes the request -// @return DeleteProfile200Response +// +// @return DeleteProfile200Response func (a *AssetsAPIService) DeleteAssetExecute(r ApiDeleteAssetRequest) (*DeleteProfile200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeleteProfile200Response + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeleteProfile200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.DeleteAsset") @@ -3329,8 +3355,8 @@ func (a *AssetsAPIService) DeleteAssetExecute(r ApiDeleteAssetRequest) (*DeleteP newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3348,9 +3374,9 @@ func (a *AssetsAPIService) DeleteAssetExecute(r ApiDeleteAssetRequest) (*DeleteP } type ApiGetAssetRequest struct { - ctx context.Context + ctx context.Context ApiService *AssetsAPIService - assetId string + assetId string } func (r ApiGetAssetRequest) Execute() (*AssetDetailed, *http.Response, error) { @@ -3362,26 +3388,27 @@ GetAsset Get an asset Get an asset by ID - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param assetId The asset ID - @return ApiGetAssetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param assetId The asset ID + @return ApiGetAssetRequest */ func (a *AssetsAPIService) GetAsset(ctx context.Context, assetId string) ApiGetAssetRequest { return ApiGetAssetRequest{ ApiService: a, - ctx: ctx, - assetId: assetId, + ctx: ctx, + assetId: assetId, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) GetAssetExecute(r ApiGetAssetRequest) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.GetAsset") @@ -3456,8 +3483,8 @@ func (a *AssetsAPIService) GetAssetExecute(r ApiGetAssetRequest) (*AssetDetailed newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3475,15 +3502,15 @@ func (a *AssetsAPIService) GetAssetExecute(r ApiGetAssetRequest) (*AssetDetailed } type ApiListAssetsRequest struct { - ctx context.Context - ApiService *AssetsAPIService - cursor *string - size *int - sortType *string - sortDirection *string - search *string - types *string - statuses *string + ctx context.Context + ApiService *AssetsAPIService + cursor *string + size *int + sortType *string + sortDirection *string + search *string + types *string + statuses *string manuallyCreated *string } @@ -3544,24 +3571,25 @@ ListAssets List assets List and search assets of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListAssetsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListAssetsRequest */ func (a *AssetsAPIService) ListAssets(ctx context.Context) ApiListAssetsRequest { return ApiListAssetsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ListAssets200Response +// +// @return ListAssets200Response func (a *AssetsAPIService) ListAssetsExecute(r ApiListAssetsRequest) (*ListAssets200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListAssets200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListAssets200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.ListAssets") @@ -3667,8 +3695,8 @@ func (a *AssetsAPIService) ListAssetsExecute(r ApiListAssetsRequest) (*ListAsset newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3686,9 +3714,9 @@ func (a *AssetsAPIService) ListAssetsExecute(r ApiListAssetsRequest) (*ListAsset } type ApiUpdateAssetRequest struct { - ctx context.Context - ApiService *AssetsAPIService - assetId string + ctx context.Context + ApiService *AssetsAPIService + assetId string updateAssetRequest *UpdateAssetRequest } @@ -3707,26 +3735,27 @@ UpdateAsset Update an asset Update an asset by ID - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param assetId The asset ID - @return ApiUpdateAssetRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param assetId The asset ID + @return ApiUpdateAssetRequest */ func (a *AssetsAPIService) UpdateAsset(ctx context.Context, assetId string) ApiUpdateAssetRequest { return ApiUpdateAssetRequest{ ApiService: a, - ctx: ctx, - assetId: assetId, + ctx: ctx, + assetId: assetId, } } // Execute executes the request -// @return AssetDetailed +// +// @return AssetDetailed func (a *AssetsAPIService) UpdateAssetExecute(r ApiUpdateAssetRequest) (*AssetDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *AssetDetailed + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssetDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AssetsAPIService.UpdateAsset") @@ -3803,8 +3832,8 @@ func (a *AssetsAPIService) UpdateAssetExecute(r ApiUpdateAssetRequest) (*AssetDe newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } diff --git a/pkg/api/v3/api_audit.go b/pkg/api/v3/api_audit.go index 686a2c14..a42ec350 100644 --- a/pkg/api/v3/api_audit.go +++ b/pkg/api/v3/api_audit.go @@ -18,22 +18,21 @@ import ( "net/url" ) - // AuditAPIService AuditAPI service type AuditAPIService service type ApiListAuditLogsRequest struct { - ctx context.Context - ApiService *AuditAPIService - cursor *string - size *int - sortType *string + ctx context.Context + ApiService *AuditAPIService + cursor *string + size *int + sortType *string sortDirection *string - startTime *string - endTime *string - action *string - actor *string - search *string + startTime *string + endTime *string + action *string + actor *string + search *string } // The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. @@ -99,24 +98,25 @@ ListAuditLogs List audit logs List audit logs of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListAuditLogsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListAuditLogsRequest */ func (a *AuditAPIService) ListAuditLogs(ctx context.Context) ApiListAuditLogsRequest { return ApiListAuditLogsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ListAuditLogs200Response +// +// @return ListAuditLogs200Response func (a *AuditAPIService) ListAuditLogsExecute(r ApiListAuditLogsRequest) (*ListAuditLogs200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListAuditLogs200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListAuditLogs200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuditAPIService.ListAuditLogs") @@ -225,8 +225,8 @@ func (a *AuditAPIService) ListAuditLogsExecute(r ApiListAuditLogsRequest) (*List newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } diff --git a/pkg/api/v3/api_beta.go b/pkg/api/v3/api_beta.go index 73447580..fee32447 100644 --- a/pkg/api/v3/api_beta.go +++ b/pkg/api/v3/api_beta.go @@ -19,13 +19,12 @@ import ( "strings" ) - // BetaAPIService BetaAPI service type BetaAPIService service type ApiCreateProjectRequest struct { - ctx context.Context - ApiService *BetaAPIService + ctx context.Context + ApiService *BetaAPIService createProjectRequest *CreateProjectRequest } @@ -44,24 +43,25 @@ CreateProject Create a project Create a project for the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateProjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateProjectRequest */ func (a *BetaAPIService) CreateProject(ctx context.Context) ApiCreateProjectRequest { return ApiCreateProjectRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return CreateProject200Response +// +// @return CreateProject200Response func (a *BetaAPIService) CreateProjectExecute(r ApiCreateProjectRequest) (*CreateProject200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateProject200Response + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateProject200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.CreateProject") @@ -149,8 +149,8 @@ func (a *BetaAPIService) CreateProjectExecute(r ApiCreateProjectRequest) (*Creat } type ApiCreateRoleRequest struct { - ctx context.Context - ApiService *BetaAPIService + ctx context.Context + ApiService *BetaAPIService createRoleRequest *CreateRoleRequest } @@ -169,24 +169,25 @@ CreateRole Create a role Create a role for the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateRoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateRoleRequest */ func (a *BetaAPIService) CreateRole(ctx context.Context) ApiCreateRoleRequest { return ApiCreateRoleRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return CreateRole200Response +// +// @return CreateRole200Response func (a *BetaAPIService) CreateRoleExecute(r ApiCreateRoleRequest) (*CreateRole200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateRole200Response + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateRole200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.CreateRole") @@ -274,8 +275,8 @@ func (a *BetaAPIService) CreateRoleExecute(r ApiCreateRoleRequest) (*CreateRole2 } type ApiCreateRoleBindingsRequest struct { - ctx context.Context - ApiService *BetaAPIService + ctx context.Context + ApiService *BetaAPIService createRoleBindingsRequest *CreateRoleBindingsRequest } @@ -294,24 +295,25 @@ CreateRoleBindings Create role bindings Create role bindings. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateRoleBindingsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateRoleBindingsRequest */ func (a *BetaAPIService) CreateRoleBindings(ctx context.Context) ApiCreateRoleBindingsRequest { return ApiCreateRoleBindingsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return []CreateRoleBindings200ResponseInner +// +// @return []CreateRoleBindings200ResponseInner func (a *BetaAPIService) CreateRoleBindingsExecute(r ApiCreateRoleBindingsRequest) ([]CreateRoleBindings200ResponseInner, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CreateRoleBindings200ResponseInner + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CreateRoleBindings200ResponseInner ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.CreateRoleBindings") @@ -399,9 +401,9 @@ func (a *BetaAPIService) CreateRoleBindingsExecute(r ApiCreateRoleBindingsReques } type ApiDeleteRoleBindingRequest struct { - ctx context.Context + ctx context.Context ApiService *BetaAPIService - bindingId string + bindingId string } func (r ApiDeleteRoleBindingRequest) Execute() (*DeleteCustomRule200Response, *http.Response, error) { @@ -413,26 +415,27 @@ DeleteRoleBinding Delete a role binding Delete a role binding. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param bindingId The role binding ID - @return ApiDeleteRoleBindingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param bindingId The role binding ID + @return ApiDeleteRoleBindingRequest */ func (a *BetaAPIService) DeleteRoleBinding(ctx context.Context, bindingId string) ApiDeleteRoleBindingRequest { return ApiDeleteRoleBindingRequest{ ApiService: a, - ctx: ctx, - bindingId: bindingId, + ctx: ctx, + bindingId: bindingId, } } // Execute executes the request -// @return DeleteCustomRule200Response +// +// @return DeleteCustomRule200Response func (a *BetaAPIService) DeleteRoleBindingExecute(r ApiDeleteRoleBindingRequest) (*DeleteCustomRule200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeleteCustomRule200Response + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeleteCustomRule200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.DeleteRoleBinding") @@ -507,8 +510,8 @@ func (a *BetaAPIService) DeleteRoleBindingExecute(r ApiDeleteRoleBindingRequest) newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -526,9 +529,9 @@ func (a *BetaAPIService) DeleteRoleBindingExecute(r ApiDeleteRoleBindingRequest) } type ApiGetProjectRequest struct { - ctx context.Context + ctx context.Context ApiService *BetaAPIService - projectId string + projectId string } func (r ApiGetProjectRequest) Execute() (*CreateProject200Response, *http.Response, error) { @@ -540,26 +543,27 @@ GetProject Get a project Get a project by ID. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The project ID - @return ApiGetProjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The project ID + @return ApiGetProjectRequest */ func (a *BetaAPIService) GetProject(ctx context.Context, projectId string) ApiGetProjectRequest { return ApiGetProjectRequest{ ApiService: a, - ctx: ctx, - projectId: projectId, + ctx: ctx, + projectId: projectId, } } // Execute executes the request -// @return CreateProject200Response +// +// @return CreateProject200Response func (a *BetaAPIService) GetProjectExecute(r ApiGetProjectRequest) (*CreateProject200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateProject200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateProject200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.GetProject") @@ -643,9 +647,9 @@ func (a *BetaAPIService) GetProjectExecute(r ApiGetProjectRequest) (*CreateProje } type ApiGetRoleRequest struct { - ctx context.Context + ctx context.Context ApiService *BetaAPIService - roleId string + roleId string } func (r ApiGetRoleRequest) Execute() (*CreateRole200Response, *http.Response, error) { @@ -657,26 +661,27 @@ GetRole Get a role Get a role by ID. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param roleId The role ID - @return ApiGetRoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleId The role ID + @return ApiGetRoleRequest */ func (a *BetaAPIService) GetRole(ctx context.Context, roleId string) ApiGetRoleRequest { return ApiGetRoleRequest{ ApiService: a, - ctx: ctx, - roleId: roleId, + ctx: ctx, + roleId: roleId, } } // Execute executes the request -// @return CreateRole200Response +// +// @return CreateRole200Response func (a *BetaAPIService) GetRoleExecute(r ApiGetRoleRequest) (*CreateRole200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateRole200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateRole200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.GetRole") @@ -760,9 +765,9 @@ func (a *BetaAPIService) GetRoleExecute(r ApiGetRoleRequest) (*CreateRole200Resp } type ApiGetUserRequest struct { - ctx context.Context + ctx context.Context ApiService *BetaAPIService - userId string + userId string } func (r ApiGetUserRequest) Execute() (*GetUser200Response, *http.Response, error) { @@ -774,26 +779,27 @@ GetUser Get a user Get a user by ID. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param userId The user ID - @return ApiGetUserRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userId The user ID + @return ApiGetUserRequest */ func (a *BetaAPIService) GetUser(ctx context.Context, userId string) ApiGetUserRequest { return ApiGetUserRequest{ ApiService: a, - ctx: ctx, - userId: userId, + ctx: ctx, + userId: userId, } } // Execute executes the request -// @return GetUser200Response +// +// @return GetUser200Response func (a *BetaAPIService) GetUserExecute(r ApiGetUserRequest) (*GetUser200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *GetUser200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetUser200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.GetUser") @@ -877,8 +883,8 @@ func (a *BetaAPIService) GetUserExecute(r ApiGetUserRequest) (*GetUser200Respons } type ApiInviteUserRequest struct { - ctx context.Context - ApiService *BetaAPIService + ctx context.Context + ApiService *BetaAPIService inviteUserRequest *InviteUserRequest } @@ -897,24 +903,25 @@ InviteUser Invite users Invite users to the organization, and give them roles. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiInviteUserRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiInviteUserRequest */ func (a *BetaAPIService) InviteUser(ctx context.Context) ApiInviteUserRequest { return ApiInviteUserRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return []ListUsers200Response +// +// @return []ListUsers200Response func (a *BetaAPIService) InviteUserExecute(r ApiInviteUserRequest) ([]ListUsers200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ListUsers200Response + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ListUsers200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.InviteUser") @@ -1002,13 +1009,13 @@ func (a *BetaAPIService) InviteUserExecute(r ApiInviteUserRequest) ([]ListUsers2 } type ApiListProjectsRequest struct { - ctx context.Context - ApiService *BetaAPIService - cursor *string - size *int - sortType *string + ctx context.Context + ApiService *BetaAPIService + cursor *string + size *int + sortType *string sortDirection *string - search *string + search *string } // The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. @@ -1050,24 +1057,25 @@ ListProjects List projects List and search projects of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListProjectsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListProjectsRequest */ func (a *BetaAPIService) ListProjects(ctx context.Context) ApiListProjectsRequest { return ApiListProjectsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ListProjects200Response +// +// @return ListProjects200Response func (a *BetaAPIService) ListProjectsExecute(r ApiListProjectsRequest) (*ListProjects200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListProjects200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListProjects200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.ListProjects") @@ -1164,8 +1172,8 @@ func (a *BetaAPIService) ListProjectsExecute(r ApiListProjectsRequest) (*ListPro newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1183,7 +1191,7 @@ func (a *BetaAPIService) ListProjectsExecute(r ApiListProjectsRequest) (*ListPro } type ApiListRolesRequest struct { - ctx context.Context + ctx context.Context ApiService *BetaAPIService } @@ -1196,24 +1204,25 @@ ListRoles List roles List and search roles of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListRolesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListRolesRequest */ func (a *BetaAPIService) ListRoles(ctx context.Context) ApiListRolesRequest { return ApiListRolesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ListRoles200Response +// +// @return ListRoles200Response func (a *BetaAPIService) ListRolesExecute(r ApiListRolesRequest) (*ListRoles200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListRoles200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListRoles200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.ListRoles") @@ -1296,7 +1305,7 @@ func (a *BetaAPIService) ListRolesExecute(r ApiListRolesRequest) (*ListRoles200R } type ApiListUsersRequest struct { - ctx context.Context + ctx context.Context ApiService *BetaAPIService } @@ -1309,24 +1318,25 @@ ListUsers List users List and search projects of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListUsersRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListUsersRequest */ func (a *BetaAPIService) ListUsers(ctx context.Context) ApiListUsersRequest { return ApiListUsersRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ListUsers200Response +// +// @return ListUsers200Response func (a *BetaAPIService) ListUsersExecute(r ApiListUsersRequest) (*ListUsers200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListUsers200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListUsers200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.ListUsers") @@ -1409,9 +1419,9 @@ func (a *BetaAPIService) ListUsersExecute(r ApiListUsersRequest) (*ListUsers200R } type ApiUpdateProjectRequest struct { - ctx context.Context - ApiService *BetaAPIService - projectId string + ctx context.Context + ApiService *BetaAPIService + projectId string updateProjectRequest *UpdateProjectRequest } @@ -1430,26 +1440,27 @@ UpdateProject Update a project Update a project. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The project ID - @return ApiUpdateProjectRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId The project ID + @return ApiUpdateProjectRequest */ func (a *BetaAPIService) UpdateProject(ctx context.Context, projectId string) ApiUpdateProjectRequest { return ApiUpdateProjectRequest{ ApiService: a, - ctx: ctx, - projectId: projectId, + ctx: ctx, + projectId: projectId, } } // Execute executes the request -// @return CreateProject200Response +// +// @return CreateProject200Response func (a *BetaAPIService) UpdateProjectExecute(r ApiUpdateProjectRequest) (*CreateProject200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateProject200Response + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateProject200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.UpdateProject") @@ -1538,9 +1549,9 @@ func (a *BetaAPIService) UpdateProjectExecute(r ApiUpdateProjectRequest) (*Creat } type ApiUpdateRoleRequest struct { - ctx context.Context - ApiService *BetaAPIService - roleId string + ctx context.Context + ApiService *BetaAPIService + roleId string updateRoleRequest *UpdateRoleRequest } @@ -1559,26 +1570,27 @@ UpdateRole Update a role Update a role. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param roleId The role ID - @return ApiUpdateRoleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param roleId The role ID + @return ApiUpdateRoleRequest */ func (a *BetaAPIService) UpdateRole(ctx context.Context, roleId string) ApiUpdateRoleRequest { return ApiUpdateRoleRequest{ ApiService: a, - ctx: ctx, - roleId: roleId, + ctx: ctx, + roleId: roleId, } } // Execute executes the request -// @return CreateRole200Response +// +// @return CreateRole200Response func (a *BetaAPIService) UpdateRoleExecute(r ApiUpdateRoleRequest) (*CreateRole200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateRole200Response + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateRole200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BetaAPIService.UpdateRole") diff --git a/pkg/api/v3/api_custom_rules.go b/pkg/api/v3/api_custom_rules.go index 94b71376..24a1a46c 100644 --- a/pkg/api/v3/api_custom_rules.go +++ b/pkg/api/v3/api_custom_rules.go @@ -19,13 +19,12 @@ import ( "strings" ) - // CustomRulesAPIService CustomRulesAPI service type CustomRulesAPIService service type ApiCreateCustomRuleRequest struct { - ctx context.Context - ApiService *CustomRulesAPIService + ctx context.Context + ApiService *CustomRulesAPIService createCustomRuleRequest *CreateCustomRuleRequest } @@ -44,24 +43,25 @@ CreateCustomRule Create a custom rule Create a custom rule for the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateCustomRuleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateCustomRuleRequest */ func (a *CustomRulesAPIService) CreateCustomRule(ctx context.Context) ApiCreateCustomRuleRequest { return ApiCreateCustomRuleRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return CreateCustomRule200Response +// +// @return CreateCustomRule200Response func (a *CustomRulesAPIService) CreateCustomRuleExecute(r ApiCreateCustomRuleRequest) (*CreateCustomRule200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateCustomRule200Response + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateCustomRule200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomRulesAPIService.CreateCustomRule") @@ -137,8 +137,8 @@ func (a *CustomRulesAPIService) CreateCustomRuleExecute(r ApiCreateCustomRuleReq newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -156,8 +156,8 @@ func (a *CustomRulesAPIService) CreateCustomRuleExecute(r ApiCreateCustomRuleReq } type ApiDeleteCustomRuleRequest struct { - ctx context.Context - ApiService *CustomRulesAPIService + ctx context.Context + ApiService *CustomRulesAPIService customRuleId string } @@ -170,26 +170,27 @@ DeleteCustomRule Delete a custom rule Update a custom rule for the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customRuleId The ID of the custom rule to delete - @return ApiDeleteCustomRuleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customRuleId The ID of the custom rule to delete + @return ApiDeleteCustomRuleRequest */ func (a *CustomRulesAPIService) DeleteCustomRule(ctx context.Context, customRuleId string) ApiDeleteCustomRuleRequest { return ApiDeleteCustomRuleRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, customRuleId: customRuleId, } } // Execute executes the request -// @return DeleteCustomRule200Response +// +// @return DeleteCustomRule200Response func (a *CustomRulesAPIService) DeleteCustomRuleExecute(r ApiDeleteCustomRuleRequest) (*DeleteCustomRule200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeleteCustomRule200Response + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeleteCustomRule200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomRulesAPIService.DeleteCustomRule") @@ -264,8 +265,8 @@ func (a *CustomRulesAPIService) DeleteCustomRuleExecute(r ApiDeleteCustomRuleReq newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -283,8 +284,8 @@ func (a *CustomRulesAPIService) DeleteCustomRuleExecute(r ApiDeleteCustomRuleReq } type ApiGetCustomRuleRequest struct { - ctx context.Context - ApiService *CustomRulesAPIService + ctx context.Context + ApiService *CustomRulesAPIService customRuleId string } @@ -297,26 +298,27 @@ GetCustomRule Get a custom rule Get a custom rule of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customRuleId - @return ApiGetCustomRuleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customRuleId + @return ApiGetCustomRuleRequest */ func (a *CustomRulesAPIService) GetCustomRule(ctx context.Context, customRuleId string) ApiGetCustomRuleRequest { return ApiGetCustomRuleRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, customRuleId: customRuleId, } } // Execute executes the request -// @return CreateCustomRule200Response +// +// @return CreateCustomRule200Response func (a *CustomRulesAPIService) GetCustomRuleExecute(r ApiGetCustomRuleRequest) (*CreateCustomRule200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateCustomRule200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateCustomRule200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomRulesAPIService.GetCustomRule") @@ -391,8 +393,8 @@ func (a *CustomRulesAPIService) GetCustomRuleExecute(r ApiGetCustomRuleRequest) newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 404 { @@ -402,8 +404,8 @@ func (a *CustomRulesAPIService) GetCustomRuleExecute(r ApiGetCustomRuleRequest) newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -421,7 +423,7 @@ func (a *CustomRulesAPIService) GetCustomRuleExecute(r ApiGetCustomRuleRequest) } type ApiListCustomRulesRequest struct { - ctx context.Context + ctx context.Context ApiService *CustomRulesAPIService } @@ -434,24 +436,25 @@ ListCustomRules List custom rules List and search custom rules of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListCustomRulesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListCustomRulesRequest */ func (a *CustomRulesAPIService) ListCustomRules(ctx context.Context) ApiListCustomRulesRequest { return ApiListCustomRulesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return []CustomRuleSummarized +// +// @return []CustomRuleSummarized func (a *CustomRulesAPIService) ListCustomRulesExecute(r ApiListCustomRulesRequest) ([]CustomRuleSummarized, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CustomRuleSummarized + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CustomRuleSummarized ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomRulesAPIService.ListCustomRules") @@ -525,8 +528,8 @@ func (a *CustomRulesAPIService) ListCustomRulesExecute(r ApiListCustomRulesReque newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -544,9 +547,9 @@ func (a *CustomRulesAPIService) ListCustomRulesExecute(r ApiListCustomRulesReque } type ApiUpdateCustomRuleRequest struct { - ctx context.Context - ApiService *CustomRulesAPIService - customRuleId string + ctx context.Context + ApiService *CustomRulesAPIService + customRuleId string updateCustomRuleRequest *UpdateCustomRuleRequest } @@ -565,26 +568,27 @@ UpdateCustomRule Update a custom rule Update a custom rule for the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param customRuleId The ID of the custom rule to update - @return ApiUpdateCustomRuleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param customRuleId The ID of the custom rule to update + @return ApiUpdateCustomRuleRequest */ func (a *CustomRulesAPIService) UpdateCustomRule(ctx context.Context, customRuleId string) ApiUpdateCustomRuleRequest { return ApiUpdateCustomRuleRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, customRuleId: customRuleId, } } // Execute executes the request -// @return CreateCustomRule200Response +// +// @return CreateCustomRule200Response func (a *CustomRulesAPIService) UpdateCustomRuleExecute(r ApiUpdateCustomRuleRequest) (*CreateCustomRule200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateCustomRule200Response + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateCustomRule200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CustomRulesAPIService.UpdateCustomRule") @@ -661,8 +665,8 @@ func (a *CustomRulesAPIService) UpdateCustomRuleExecute(r ApiUpdateCustomRuleReq newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } diff --git a/pkg/api/v3/api_events.go b/pkg/api/v3/api_events.go index 77de3166..0858d1c7 100644 --- a/pkg/api/v3/api_events.go +++ b/pkg/api/v3/api_events.go @@ -19,14 +19,13 @@ import ( "strings" ) - // EventsAPIService EventsAPI service type EventsAPIService service type ApiGetEventRequest struct { - ctx context.Context + ctx context.Context ApiService *EventsAPIService - eventId string + eventId string } func (r ApiGetEventRequest) Execute() (*EventDetailed, *http.Response, error) { @@ -38,26 +37,27 @@ GetEvent Get an event Get an event by ID (including attachments) - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param eventId The event ID - @return ApiGetEventRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param eventId The event ID + @return ApiGetEventRequest */ func (a *EventsAPIService) GetEvent(ctx context.Context, eventId string) ApiGetEventRequest { return ApiGetEventRequest{ ApiService: a, - ctx: ctx, - eventId: eventId, + ctx: ctx, + eventId: eventId, } } // Execute executes the request -// @return EventDetailed +// +// @return EventDetailed func (a *EventsAPIService) GetEventExecute(r ApiGetEventRequest) (*EventDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *EventDetailed + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *EventDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsAPIService.GetEvent") @@ -132,8 +132,8 @@ func (a *EventsAPIService) GetEventExecute(r ApiGetEventRequest) (*EventDetailed newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -151,20 +151,20 @@ func (a *EventsAPIService) GetEventExecute(r ApiGetEventRequest) (*EventDetailed } type ApiListEventsRequest struct { - ctx context.Context - ApiService *EventsAPIService - cursor *string - size *int - sortType *string - sortDirection *string - search *string - scanIds *string - assetIds *string - issueIds *string - levels *string - stages *string + ctx context.Context + ApiService *EventsAPIService + cursor *string + size *int + sortType *string + sortDirection *string + search *string + scanIds *string + assetIds *string + issueIds *string + levels *string + stages *string hasAttachments *string - attachments *string + attachments *string } // The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. @@ -248,24 +248,25 @@ ListEvents List events List and search events of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListEventsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListEventsRequest */ func (a *EventsAPIService) ListEvents(ctx context.Context) ApiListEventsRequest { return ApiListEventsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ListEvents200Response +// +// @return ListEvents200Response func (a *EventsAPIService) ListEventsExecute(r ApiListEventsRequest) (*ListEvents200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListEvents200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListEvents200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EventsAPIService.ListEvents") @@ -383,8 +384,8 @@ func (a *EventsAPIService) ListEventsExecute(r ApiListEventsRequest) (*ListEvent newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } diff --git a/pkg/api/v3/api_integrations.go b/pkg/api/v3/api_integrations.go index e47ea81f..de16c6f6 100644 --- a/pkg/api/v3/api_integrations.go +++ b/pkg/api/v3/api_integrations.go @@ -16,17 +16,16 @@ import ( "io" "net/http" "net/url" - "strings" "reflect" + "strings" ) - // IntegrationsAPIService IntegrationsAPI service type IntegrationsAPIService service type ApiCreateakamaiIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService + ctx context.Context + ApiService *IntegrationsAPIService createakamaiIntegrationRequest *CreateakamaiIntegrationRequest } @@ -44,24 +43,25 @@ CreateakamaiIntegration Create Akamai integrations. Create a Akamai integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateakamaiIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateakamaiIntegrationRequest */ func (a *IntegrationsAPIService) CreateakamaiIntegration(ctx context.Context) ApiCreateakamaiIntegrationRequest { return ApiCreateakamaiIntegrationRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return CreateakamaiIntegration200Response +// +// @return CreateakamaiIntegration200Response func (a *IntegrationsAPIService) CreateakamaiIntegrationExecute(r ApiCreateakamaiIntegrationRequest) (*CreateakamaiIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateakamaiIntegration200Response + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateakamaiIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.CreateakamaiIntegration") @@ -137,8 +137,8 @@ func (a *IntegrationsAPIService) CreateakamaiIntegrationExecute(r ApiCreateakama newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -156,8 +156,8 @@ func (a *IntegrationsAPIService) CreateakamaiIntegrationExecute(r ApiCreateakama } type ApiCreateapigeeIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService + ctx context.Context + ApiService *IntegrationsAPIService createapigeeIntegrationRequest *CreateapigeeIntegrationRequest } @@ -175,24 +175,25 @@ CreateapigeeIntegration Create Apigee integrations. Create a Apigee integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateapigeeIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateapigeeIntegrationRequest */ func (a *IntegrationsAPIService) CreateapigeeIntegration(ctx context.Context) ApiCreateapigeeIntegrationRequest { return ApiCreateapigeeIntegrationRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return CreateapigeeIntegration200Response +// +// @return CreateapigeeIntegration200Response func (a *IntegrationsAPIService) CreateapigeeIntegrationExecute(r ApiCreateapigeeIntegrationRequest) (*CreateapigeeIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateapigeeIntegration200Response + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateapigeeIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.CreateapigeeIntegration") @@ -268,8 +269,8 @@ func (a *IntegrationsAPIService) CreateapigeeIntegrationExecute(r ApiCreateapige newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -287,8 +288,8 @@ func (a *IntegrationsAPIService) CreateapigeeIntegrationExecute(r ApiCreateapige } type ApiCreateawsIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService + ctx context.Context + ApiService *IntegrationsAPIService createawsIntegrationRequest *CreateawsIntegrationRequest } @@ -306,24 +307,25 @@ CreateawsIntegration Create AWS integrations. Create a AWS integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateawsIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateawsIntegrationRequest */ func (a *IntegrationsAPIService) CreateawsIntegration(ctx context.Context) ApiCreateawsIntegrationRequest { return ApiCreateawsIntegrationRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return CreateawsIntegration200Response +// +// @return CreateawsIntegration200Response func (a *IntegrationsAPIService) CreateawsIntegrationExecute(r ApiCreateawsIntegrationRequest) (*CreateawsIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateawsIntegration200Response + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateawsIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.CreateawsIntegration") @@ -399,8 +401,8 @@ func (a *IntegrationsAPIService) CreateawsIntegrationExecute(r ApiCreateawsInteg newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -418,8 +420,8 @@ func (a *IntegrationsAPIService) CreateawsIntegrationExecute(r ApiCreateawsInteg } type ApiCreateazureIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService + ctx context.Context + ApiService *IntegrationsAPIService createazureIntegrationRequest *CreateazureIntegrationRequest } @@ -437,24 +439,25 @@ CreateazureIntegration Create Azure integrations. Create a Azure integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateazureIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateazureIntegrationRequest */ func (a *IntegrationsAPIService) CreateazureIntegration(ctx context.Context) ApiCreateazureIntegrationRequest { return ApiCreateazureIntegrationRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return CreateazureIntegration200Response +// +// @return CreateazureIntegration200Response func (a *IntegrationsAPIService) CreateazureIntegrationExecute(r ApiCreateazureIntegrationRequest) (*CreateazureIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateazureIntegration200Response + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateazureIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.CreateazureIntegration") @@ -530,8 +533,8 @@ func (a *IntegrationsAPIService) CreateazureIntegrationExecute(r ApiCreateazureI newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -549,8 +552,8 @@ func (a *IntegrationsAPIService) CreateazureIntegrationExecute(r ApiCreateazureI } type ApiCreatebitbucketRepoIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService + ctx context.Context + ApiService *IntegrationsAPIService createbitbucketRepoIntegrationRequest *CreatebitbucketRepoIntegrationRequest } @@ -568,24 +571,25 @@ CreatebitbucketRepoIntegration Create Bitbucket Repo integrations. Create a Bitbucket Repo integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreatebitbucketRepoIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreatebitbucketRepoIntegrationRequest */ func (a *IntegrationsAPIService) CreatebitbucketRepoIntegration(ctx context.Context) ApiCreatebitbucketRepoIntegrationRequest { return ApiCreatebitbucketRepoIntegrationRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return CreatebitbucketRepoIntegration200Response +// +// @return CreatebitbucketRepoIntegration200Response func (a *IntegrationsAPIService) CreatebitbucketRepoIntegrationExecute(r ApiCreatebitbucketRepoIntegrationRequest) (*CreatebitbucketRepoIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatebitbucketRepoIntegration200Response + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatebitbucketRepoIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.CreatebitbucketRepoIntegration") @@ -661,8 +665,8 @@ func (a *IntegrationsAPIService) CreatebitbucketRepoIntegrationExecute(r ApiCrea newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -680,8 +684,8 @@ func (a *IntegrationsAPIService) CreatebitbucketRepoIntegrationExecute(r ApiCrea } type ApiCreatecloudflareIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService + ctx context.Context + ApiService *IntegrationsAPIService createcloudflareIntegrationRequest *CreatecloudflareIntegrationRequest } @@ -699,24 +703,25 @@ CreatecloudflareIntegration Create Cloudflare integrations. Create a Cloudflare integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreatecloudflareIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreatecloudflareIntegrationRequest */ func (a *IntegrationsAPIService) CreatecloudflareIntegration(ctx context.Context) ApiCreatecloudflareIntegrationRequest { return ApiCreatecloudflareIntegrationRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return CreatecloudflareIntegration200Response +// +// @return CreatecloudflareIntegration200Response func (a *IntegrationsAPIService) CreatecloudflareIntegrationExecute(r ApiCreatecloudflareIntegrationRequest) (*CreatecloudflareIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatecloudflareIntegration200Response + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatecloudflareIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.CreatecloudflareIntegration") @@ -792,8 +797,8 @@ func (a *IntegrationsAPIService) CreatecloudflareIntegrationExecute(r ApiCreatec newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -811,8 +816,8 @@ func (a *IntegrationsAPIService) CreatecloudflareIntegrationExecute(r ApiCreatec } type ApiCreatecustomIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService + ctx context.Context + ApiService *IntegrationsAPIService createcustomIntegrationRequest *CreatecustomIntegrationRequest } @@ -830,24 +835,25 @@ CreatecustomIntegration Create Custom Integration integrations. Create a Custom Integration integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreatecustomIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreatecustomIntegrationRequest */ func (a *IntegrationsAPIService) CreatecustomIntegration(ctx context.Context) ApiCreatecustomIntegrationRequest { return ApiCreatecustomIntegrationRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return CreatecustomIntegration200Response +// +// @return CreatecustomIntegration200Response func (a *IntegrationsAPIService) CreatecustomIntegrationExecute(r ApiCreatecustomIntegrationRequest) (*CreatecustomIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatecustomIntegration200Response + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatecustomIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.CreatecustomIntegration") @@ -923,8 +929,8 @@ func (a *IntegrationsAPIService) CreatecustomIntegrationExecute(r ApiCreatecusto newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -942,8 +948,8 @@ func (a *IntegrationsAPIService) CreatecustomIntegrationExecute(r ApiCreatecusto } type ApiCreategcpIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService + ctx context.Context + ApiService *IntegrationsAPIService createapigeeIntegrationRequest *CreateapigeeIntegrationRequest } @@ -961,24 +967,25 @@ CreategcpIntegration Create GCP integrations. Create a GCP integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreategcpIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreategcpIntegrationRequest */ func (a *IntegrationsAPIService) CreategcpIntegration(ctx context.Context) ApiCreategcpIntegrationRequest { return ApiCreategcpIntegrationRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return CreateapigeeIntegration200Response +// +// @return CreateapigeeIntegration200Response func (a *IntegrationsAPIService) CreategcpIntegrationExecute(r ApiCreategcpIntegrationRequest) (*CreateapigeeIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateapigeeIntegration200Response + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateapigeeIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.CreategcpIntegration") @@ -1054,8 +1061,8 @@ func (a *IntegrationsAPIService) CreategcpIntegrationExecute(r ApiCreategcpInteg newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1073,8 +1080,8 @@ func (a *IntegrationsAPIService) CreategcpIntegrationExecute(r ApiCreategcpInteg } type ApiCreategithubIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService + ctx context.Context + ApiService *IntegrationsAPIService createcloudflareIntegrationRequest *CreatecloudflareIntegrationRequest } @@ -1092,24 +1099,25 @@ CreategithubIntegration Create GitHub integrations. Create a GitHub integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreategithubIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreategithubIntegrationRequest */ func (a *IntegrationsAPIService) CreategithubIntegration(ctx context.Context) ApiCreategithubIntegrationRequest { return ApiCreategithubIntegrationRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return CreatecloudflareIntegration200Response +// +// @return CreatecloudflareIntegration200Response func (a *IntegrationsAPIService) CreategithubIntegrationExecute(r ApiCreategithubIntegrationRequest) (*CreatecloudflareIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatecloudflareIntegration200Response + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatecloudflareIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.CreategithubIntegration") @@ -1185,8 +1193,8 @@ func (a *IntegrationsAPIService) CreategithubIntegrationExecute(r ApiCreategithu newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1204,8 +1212,8 @@ func (a *IntegrationsAPIService) CreategithubIntegrationExecute(r ApiCreategithu } type ApiCreategitlabIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService + ctx context.Context + ApiService *IntegrationsAPIService creategitlabIntegrationRequest *CreategitlabIntegrationRequest } @@ -1223,24 +1231,25 @@ CreategitlabIntegration Create GitLab integrations. Create a GitLab integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreategitlabIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreategitlabIntegrationRequest */ func (a *IntegrationsAPIService) CreategitlabIntegration(ctx context.Context) ApiCreategitlabIntegrationRequest { return ApiCreategitlabIntegrationRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return CreategitlabIntegration200Response +// +// @return CreategitlabIntegration200Response func (a *IntegrationsAPIService) CreategitlabIntegrationExecute(r ApiCreategitlabIntegrationRequest) (*CreategitlabIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreategitlabIntegration200Response + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreategitlabIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.CreategitlabIntegration") @@ -1316,8 +1325,8 @@ func (a *IntegrationsAPIService) CreategitlabIntegrationExecute(r ApiCreategitla newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1335,8 +1344,8 @@ func (a *IntegrationsAPIService) CreategitlabIntegrationExecute(r ApiCreategitla } type ApiCreatejiraIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService + ctx context.Context + ApiService *IntegrationsAPIService createjiraIntegrationRequest *CreatejiraIntegrationRequest } @@ -1354,24 +1363,25 @@ CreatejiraIntegration Create Jira integrations. Create a Jira integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreatejiraIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreatejiraIntegrationRequest */ func (a *IntegrationsAPIService) CreatejiraIntegration(ctx context.Context) ApiCreatejiraIntegrationRequest { return ApiCreatejiraIntegrationRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return CreatejiraIntegration200Response +// +// @return CreatejiraIntegration200Response func (a *IntegrationsAPIService) CreatejiraIntegrationExecute(r ApiCreatejiraIntegrationRequest) (*CreatejiraIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatejiraIntegration200Response + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatejiraIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.CreatejiraIntegration") @@ -1447,8 +1457,8 @@ func (a *IntegrationsAPIService) CreatejiraIntegrationExecute(r ApiCreatejiraInt newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1466,8 +1476,8 @@ func (a *IntegrationsAPIService) CreatejiraIntegrationExecute(r ApiCreatejiraInt } type ApiCreatekubernetesIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService + ctx context.Context + ApiService *IntegrationsAPIService createkubernetesIntegrationRequest *CreatekubernetesIntegrationRequest } @@ -1485,24 +1495,25 @@ CreatekubernetesIntegration Create Kubernetes integrations. Create a Kubernetes integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreatekubernetesIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreatekubernetesIntegrationRequest */ func (a *IntegrationsAPIService) CreatekubernetesIntegration(ctx context.Context) ApiCreatekubernetesIntegrationRequest { return ApiCreatekubernetesIntegrationRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return CreatekubernetesIntegration200Response +// +// @return CreatekubernetesIntegration200Response func (a *IntegrationsAPIService) CreatekubernetesIntegrationExecute(r ApiCreatekubernetesIntegrationRequest) (*CreatekubernetesIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatekubernetesIntegration200Response + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatekubernetesIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.CreatekubernetesIntegration") @@ -1578,8 +1589,8 @@ func (a *IntegrationsAPIService) CreatekubernetesIntegrationExecute(r ApiCreatek newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1597,8 +1608,8 @@ func (a *IntegrationsAPIService) CreatekubernetesIntegrationExecute(r ApiCreatek } type ApiCreatepostmanIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService + ctx context.Context + ApiService *IntegrationsAPIService createcloudflareIntegrationRequest *CreatecloudflareIntegrationRequest } @@ -1616,24 +1627,25 @@ CreatepostmanIntegration Create Postman integrations. Create a Postman integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreatepostmanIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreatepostmanIntegrationRequest */ func (a *IntegrationsAPIService) CreatepostmanIntegration(ctx context.Context) ApiCreatepostmanIntegrationRequest { return ApiCreatepostmanIntegrationRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return CreatecloudflareIntegration200Response +// +// @return CreatecloudflareIntegration200Response func (a *IntegrationsAPIService) CreatepostmanIntegrationExecute(r ApiCreatepostmanIntegrationRequest) (*CreatecloudflareIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatecloudflareIntegration200Response + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatecloudflareIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.CreatepostmanIntegration") @@ -1709,8 +1721,8 @@ func (a *IntegrationsAPIService) CreatepostmanIntegrationExecute(r ApiCreatepost newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1728,8 +1740,8 @@ func (a *IntegrationsAPIService) CreatepostmanIntegrationExecute(r ApiCreatepost } type ApiCreatewizIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService + ctx context.Context + ApiService *IntegrationsAPIService createwizIntegrationRequest *CreatewizIntegrationRequest } @@ -1747,24 +1759,25 @@ CreatewizIntegration Create Wiz integrations. Create a Wiz integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreatewizIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreatewizIntegrationRequest */ func (a *IntegrationsAPIService) CreatewizIntegration(ctx context.Context) ApiCreatewizIntegrationRequest { return ApiCreatewizIntegrationRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return CreatewizIntegration200Response +// +// @return CreatewizIntegration200Response func (a *IntegrationsAPIService) CreatewizIntegrationExecute(r ApiCreatewizIntegrationRequest) (*CreatewizIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatewizIntegration200Response + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatewizIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.CreatewizIntegration") @@ -1840,8 +1853,8 @@ func (a *IntegrationsAPIService) CreatewizIntegrationExecute(r ApiCreatewizInteg newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1859,9 +1872,9 @@ func (a *IntegrationsAPIService) CreatewizIntegrationExecute(r ApiCreatewizInteg } type ApiDeleteakamaiIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiDeleteakamaiIntegrationRequest) Execute() (*CreateakamaiIntegration200Response, *http.Response, error) { @@ -1873,26 +1886,27 @@ DeleteakamaiIntegration Delete Akamai integration. Update a Akamai integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiDeleteakamaiIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiDeleteakamaiIntegrationRequest */ func (a *IntegrationsAPIService) DeleteakamaiIntegration(ctx context.Context, id string) ApiDeleteakamaiIntegrationRequest { return ApiDeleteakamaiIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreateakamaiIntegration200Response +// +// @return CreateakamaiIntegration200Response func (a *IntegrationsAPIService) DeleteakamaiIntegrationExecute(r ApiDeleteakamaiIntegrationRequest) (*CreateakamaiIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateakamaiIntegration200Response + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateakamaiIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.DeleteakamaiIntegration") @@ -1967,8 +1981,8 @@ func (a *IntegrationsAPIService) DeleteakamaiIntegrationExecute(r ApiDeleteakama newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1986,9 +2000,9 @@ func (a *IntegrationsAPIService) DeleteakamaiIntegrationExecute(r ApiDeleteakama } type ApiDeleteapigeeIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiDeleteapigeeIntegrationRequest) Execute() (*CreateapigeeIntegration200Response, *http.Response, error) { @@ -2000,26 +2014,27 @@ DeleteapigeeIntegration Delete Apigee integration. Update a Apigee integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiDeleteapigeeIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiDeleteapigeeIntegrationRequest */ func (a *IntegrationsAPIService) DeleteapigeeIntegration(ctx context.Context, id string) ApiDeleteapigeeIntegrationRequest { return ApiDeleteapigeeIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreateapigeeIntegration200Response +// +// @return CreateapigeeIntegration200Response func (a *IntegrationsAPIService) DeleteapigeeIntegrationExecute(r ApiDeleteapigeeIntegrationRequest) (*CreateapigeeIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateapigeeIntegration200Response + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateapigeeIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.DeleteapigeeIntegration") @@ -2094,8 +2109,8 @@ func (a *IntegrationsAPIService) DeleteapigeeIntegrationExecute(r ApiDeleteapige newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2113,9 +2128,9 @@ func (a *IntegrationsAPIService) DeleteapigeeIntegrationExecute(r ApiDeleteapige } type ApiDeleteawsIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiDeleteawsIntegrationRequest) Execute() (*CreateawsIntegration200Response, *http.Response, error) { @@ -2127,26 +2142,27 @@ DeleteawsIntegration Delete AWS integration. Update a AWS integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiDeleteawsIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiDeleteawsIntegrationRequest */ func (a *IntegrationsAPIService) DeleteawsIntegration(ctx context.Context, id string) ApiDeleteawsIntegrationRequest { return ApiDeleteawsIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreateawsIntegration200Response +// +// @return CreateawsIntegration200Response func (a *IntegrationsAPIService) DeleteawsIntegrationExecute(r ApiDeleteawsIntegrationRequest) (*CreateawsIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateawsIntegration200Response + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateawsIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.DeleteawsIntegration") @@ -2221,8 +2237,8 @@ func (a *IntegrationsAPIService) DeleteawsIntegrationExecute(r ApiDeleteawsInteg newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2240,9 +2256,9 @@ func (a *IntegrationsAPIService) DeleteawsIntegrationExecute(r ApiDeleteawsInteg } type ApiDeleteazureIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiDeleteazureIntegrationRequest) Execute() (*CreateazureIntegration200Response, *http.Response, error) { @@ -2254,26 +2270,27 @@ DeleteazureIntegration Delete Azure integration. Update a Azure integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiDeleteazureIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiDeleteazureIntegrationRequest */ func (a *IntegrationsAPIService) DeleteazureIntegration(ctx context.Context, id string) ApiDeleteazureIntegrationRequest { return ApiDeleteazureIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreateazureIntegration200Response +// +// @return CreateazureIntegration200Response func (a *IntegrationsAPIService) DeleteazureIntegrationExecute(r ApiDeleteazureIntegrationRequest) (*CreateazureIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateazureIntegration200Response + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateazureIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.DeleteazureIntegration") @@ -2348,8 +2365,8 @@ func (a *IntegrationsAPIService) DeleteazureIntegrationExecute(r ApiDeleteazureI newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2367,9 +2384,9 @@ func (a *IntegrationsAPIService) DeleteazureIntegrationExecute(r ApiDeleteazureI } type ApiDeletebitbucketRepoIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiDeletebitbucketRepoIntegrationRequest) Execute() (*CreatebitbucketRepoIntegration200Response, *http.Response, error) { @@ -2381,26 +2398,27 @@ DeletebitbucketRepoIntegration Delete Bitbucket Repo integration. Update a Bitbucket Repo integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiDeletebitbucketRepoIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiDeletebitbucketRepoIntegrationRequest */ func (a *IntegrationsAPIService) DeletebitbucketRepoIntegration(ctx context.Context, id string) ApiDeletebitbucketRepoIntegrationRequest { return ApiDeletebitbucketRepoIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreatebitbucketRepoIntegration200Response +// +// @return CreatebitbucketRepoIntegration200Response func (a *IntegrationsAPIService) DeletebitbucketRepoIntegrationExecute(r ApiDeletebitbucketRepoIntegrationRequest) (*CreatebitbucketRepoIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatebitbucketRepoIntegration200Response + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatebitbucketRepoIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.DeletebitbucketRepoIntegration") @@ -2475,8 +2493,8 @@ func (a *IntegrationsAPIService) DeletebitbucketRepoIntegrationExecute(r ApiDele newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2494,9 +2512,9 @@ func (a *IntegrationsAPIService) DeletebitbucketRepoIntegrationExecute(r ApiDele } type ApiDeletecloudflareIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiDeletecloudflareIntegrationRequest) Execute() (*CreatecloudflareIntegration200Response, *http.Response, error) { @@ -2508,26 +2526,27 @@ DeletecloudflareIntegration Delete Cloudflare integration. Update a Cloudflare integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiDeletecloudflareIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiDeletecloudflareIntegrationRequest */ func (a *IntegrationsAPIService) DeletecloudflareIntegration(ctx context.Context, id string) ApiDeletecloudflareIntegrationRequest { return ApiDeletecloudflareIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreatecloudflareIntegration200Response +// +// @return CreatecloudflareIntegration200Response func (a *IntegrationsAPIService) DeletecloudflareIntegrationExecute(r ApiDeletecloudflareIntegrationRequest) (*CreatecloudflareIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatecloudflareIntegration200Response + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatecloudflareIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.DeletecloudflareIntegration") @@ -2602,8 +2621,8 @@ func (a *IntegrationsAPIService) DeletecloudflareIntegrationExecute(r ApiDeletec newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2621,9 +2640,9 @@ func (a *IntegrationsAPIService) DeletecloudflareIntegrationExecute(r ApiDeletec } type ApiDeletecustomIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiDeletecustomIntegrationRequest) Execute() (*CreatecustomIntegration200Response, *http.Response, error) { @@ -2635,26 +2654,27 @@ DeletecustomIntegration Delete Custom Integration integration. Update a Custom Integration integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiDeletecustomIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiDeletecustomIntegrationRequest */ func (a *IntegrationsAPIService) DeletecustomIntegration(ctx context.Context, id string) ApiDeletecustomIntegrationRequest { return ApiDeletecustomIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreatecustomIntegration200Response +// +// @return CreatecustomIntegration200Response func (a *IntegrationsAPIService) DeletecustomIntegrationExecute(r ApiDeletecustomIntegrationRequest) (*CreatecustomIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatecustomIntegration200Response + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatecustomIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.DeletecustomIntegration") @@ -2729,8 +2749,8 @@ func (a *IntegrationsAPIService) DeletecustomIntegrationExecute(r ApiDeletecusto newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2748,9 +2768,9 @@ func (a *IntegrationsAPIService) DeletecustomIntegrationExecute(r ApiDeletecusto } type ApiDeletegcpIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiDeletegcpIntegrationRequest) Execute() (*CreateapigeeIntegration200Response, *http.Response, error) { @@ -2762,26 +2782,27 @@ DeletegcpIntegration Delete GCP integration. Update a GCP integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiDeletegcpIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiDeletegcpIntegrationRequest */ func (a *IntegrationsAPIService) DeletegcpIntegration(ctx context.Context, id string) ApiDeletegcpIntegrationRequest { return ApiDeletegcpIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreateapigeeIntegration200Response +// +// @return CreateapigeeIntegration200Response func (a *IntegrationsAPIService) DeletegcpIntegrationExecute(r ApiDeletegcpIntegrationRequest) (*CreateapigeeIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateapigeeIntegration200Response + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateapigeeIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.DeletegcpIntegration") @@ -2856,8 +2877,8 @@ func (a *IntegrationsAPIService) DeletegcpIntegrationExecute(r ApiDeletegcpInteg newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2875,9 +2896,9 @@ func (a *IntegrationsAPIService) DeletegcpIntegrationExecute(r ApiDeletegcpInteg } type ApiDeletegithubIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiDeletegithubIntegrationRequest) Execute() (*CreatecloudflareIntegration200Response, *http.Response, error) { @@ -2889,26 +2910,27 @@ DeletegithubIntegration Delete GitHub integration. Update a GitHub integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiDeletegithubIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiDeletegithubIntegrationRequest */ func (a *IntegrationsAPIService) DeletegithubIntegration(ctx context.Context, id string) ApiDeletegithubIntegrationRequest { return ApiDeletegithubIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreatecloudflareIntegration200Response +// +// @return CreatecloudflareIntegration200Response func (a *IntegrationsAPIService) DeletegithubIntegrationExecute(r ApiDeletegithubIntegrationRequest) (*CreatecloudflareIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatecloudflareIntegration200Response + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatecloudflareIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.DeletegithubIntegration") @@ -2983,8 +3005,8 @@ func (a *IntegrationsAPIService) DeletegithubIntegrationExecute(r ApiDeletegithu newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3002,9 +3024,9 @@ func (a *IntegrationsAPIService) DeletegithubIntegrationExecute(r ApiDeletegithu } type ApiDeletegitlabIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiDeletegitlabIntegrationRequest) Execute() (*CreategitlabIntegration200Response, *http.Response, error) { @@ -3016,26 +3038,27 @@ DeletegitlabIntegration Delete GitLab integration. Update a GitLab integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiDeletegitlabIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiDeletegitlabIntegrationRequest */ func (a *IntegrationsAPIService) DeletegitlabIntegration(ctx context.Context, id string) ApiDeletegitlabIntegrationRequest { return ApiDeletegitlabIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreategitlabIntegration200Response +// +// @return CreategitlabIntegration200Response func (a *IntegrationsAPIService) DeletegitlabIntegrationExecute(r ApiDeletegitlabIntegrationRequest) (*CreategitlabIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreategitlabIntegration200Response + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreategitlabIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.DeletegitlabIntegration") @@ -3110,8 +3133,8 @@ func (a *IntegrationsAPIService) DeletegitlabIntegrationExecute(r ApiDeletegitla newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3129,9 +3152,9 @@ func (a *IntegrationsAPIService) DeletegitlabIntegrationExecute(r ApiDeletegitla } type ApiDeletejiraIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiDeletejiraIntegrationRequest) Execute() (*CreatejiraIntegration200Response, *http.Response, error) { @@ -3143,26 +3166,27 @@ DeletejiraIntegration Delete Jira integration. Update a Jira integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiDeletejiraIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiDeletejiraIntegrationRequest */ func (a *IntegrationsAPIService) DeletejiraIntegration(ctx context.Context, id string) ApiDeletejiraIntegrationRequest { return ApiDeletejiraIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreatejiraIntegration200Response +// +// @return CreatejiraIntegration200Response func (a *IntegrationsAPIService) DeletejiraIntegrationExecute(r ApiDeletejiraIntegrationRequest) (*CreatejiraIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatejiraIntegration200Response + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatejiraIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.DeletejiraIntegration") @@ -3237,8 +3261,8 @@ func (a *IntegrationsAPIService) DeletejiraIntegrationExecute(r ApiDeletejiraInt newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3256,9 +3280,9 @@ func (a *IntegrationsAPIService) DeletejiraIntegrationExecute(r ApiDeletejiraInt } type ApiDeletekubernetesIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiDeletekubernetesIntegrationRequest) Execute() (*CreatekubernetesIntegration200Response, *http.Response, error) { @@ -3270,26 +3294,27 @@ DeletekubernetesIntegration Delete Kubernetes integration. Update a Kubernetes integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiDeletekubernetesIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiDeletekubernetesIntegrationRequest */ func (a *IntegrationsAPIService) DeletekubernetesIntegration(ctx context.Context, id string) ApiDeletekubernetesIntegrationRequest { return ApiDeletekubernetesIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreatekubernetesIntegration200Response +// +// @return CreatekubernetesIntegration200Response func (a *IntegrationsAPIService) DeletekubernetesIntegrationExecute(r ApiDeletekubernetesIntegrationRequest) (*CreatekubernetesIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatekubernetesIntegration200Response + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatekubernetesIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.DeletekubernetesIntegration") @@ -3364,8 +3389,8 @@ func (a *IntegrationsAPIService) DeletekubernetesIntegrationExecute(r ApiDeletek newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3383,9 +3408,9 @@ func (a *IntegrationsAPIService) DeletekubernetesIntegrationExecute(r ApiDeletek } type ApiDeletepostmanIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiDeletepostmanIntegrationRequest) Execute() (*CreatecloudflareIntegration200Response, *http.Response, error) { @@ -3397,26 +3422,27 @@ DeletepostmanIntegration Delete Postman integration. Update a Postman integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiDeletepostmanIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiDeletepostmanIntegrationRequest */ func (a *IntegrationsAPIService) DeletepostmanIntegration(ctx context.Context, id string) ApiDeletepostmanIntegrationRequest { return ApiDeletepostmanIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreatecloudflareIntegration200Response +// +// @return CreatecloudflareIntegration200Response func (a *IntegrationsAPIService) DeletepostmanIntegrationExecute(r ApiDeletepostmanIntegrationRequest) (*CreatecloudflareIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatecloudflareIntegration200Response + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatecloudflareIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.DeletepostmanIntegration") @@ -3491,8 +3517,8 @@ func (a *IntegrationsAPIService) DeletepostmanIntegrationExecute(r ApiDeletepost newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3510,9 +3536,9 @@ func (a *IntegrationsAPIService) DeletepostmanIntegrationExecute(r ApiDeletepost } type ApiDeletewizIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiDeletewizIntegrationRequest) Execute() (*CreatewizIntegration200Response, *http.Response, error) { @@ -3524,26 +3550,27 @@ DeletewizIntegration Delete Wiz integration. Update a Wiz integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiDeletewizIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiDeletewizIntegrationRequest */ func (a *IntegrationsAPIService) DeletewizIntegration(ctx context.Context, id string) ApiDeletewizIntegrationRequest { return ApiDeletewizIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreatewizIntegration200Response +// +// @return CreatewizIntegration200Response func (a *IntegrationsAPIService) DeletewizIntegrationExecute(r ApiDeletewizIntegrationRequest) (*CreatewizIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatewizIntegration200Response + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatewizIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.DeletewizIntegration") @@ -3618,8 +3645,8 @@ func (a *IntegrationsAPIService) DeletewizIntegrationExecute(r ApiDeletewizInteg newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3637,9 +3664,9 @@ func (a *IntegrationsAPIService) DeletewizIntegrationExecute(r ApiDeletewizInteg } type ApiGetakamaiIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiGetakamaiIntegrationRequest) Execute() (*CreateakamaiIntegration200Response, *http.Response, error) { @@ -3651,26 +3678,27 @@ GetakamaiIntegration Get Akamai integration. Get a Akamai integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiGetakamaiIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiGetakamaiIntegrationRequest */ func (a *IntegrationsAPIService) GetakamaiIntegration(ctx context.Context, id string) ApiGetakamaiIntegrationRequest { return ApiGetakamaiIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreateakamaiIntegration200Response +// +// @return CreateakamaiIntegration200Response func (a *IntegrationsAPIService) GetakamaiIntegrationExecute(r ApiGetakamaiIntegrationRequest) (*CreateakamaiIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateakamaiIntegration200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateakamaiIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetakamaiIntegration") @@ -3745,8 +3773,8 @@ func (a *IntegrationsAPIService) GetakamaiIntegrationExecute(r ApiGetakamaiInteg newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3764,9 +3792,9 @@ func (a *IntegrationsAPIService) GetakamaiIntegrationExecute(r ApiGetakamaiInteg } type ApiGetapigeeIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiGetapigeeIntegrationRequest) Execute() (*CreateapigeeIntegration200Response, *http.Response, error) { @@ -3778,26 +3806,27 @@ GetapigeeIntegration Get Apigee integration. Get a Apigee integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiGetapigeeIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiGetapigeeIntegrationRequest */ func (a *IntegrationsAPIService) GetapigeeIntegration(ctx context.Context, id string) ApiGetapigeeIntegrationRequest { return ApiGetapigeeIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreateapigeeIntegration200Response +// +// @return CreateapigeeIntegration200Response func (a *IntegrationsAPIService) GetapigeeIntegrationExecute(r ApiGetapigeeIntegrationRequest) (*CreateapigeeIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateapigeeIntegration200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateapigeeIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetapigeeIntegration") @@ -3872,8 +3901,8 @@ func (a *IntegrationsAPIService) GetapigeeIntegrationExecute(r ApiGetapigeeInteg newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3891,9 +3920,9 @@ func (a *IntegrationsAPIService) GetapigeeIntegrationExecute(r ApiGetapigeeInteg } type ApiGetawsIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiGetawsIntegrationRequest) Execute() (*CreateawsIntegration200Response, *http.Response, error) { @@ -3905,26 +3934,27 @@ GetawsIntegration Get AWS integration. Get a AWS integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiGetawsIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiGetawsIntegrationRequest */ func (a *IntegrationsAPIService) GetawsIntegration(ctx context.Context, id string) ApiGetawsIntegrationRequest { return ApiGetawsIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreateawsIntegration200Response +// +// @return CreateawsIntegration200Response func (a *IntegrationsAPIService) GetawsIntegrationExecute(r ApiGetawsIntegrationRequest) (*CreateawsIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateawsIntegration200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateawsIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetawsIntegration") @@ -3999,8 +4029,8 @@ func (a *IntegrationsAPIService) GetawsIntegrationExecute(r ApiGetawsIntegration newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -4018,9 +4048,9 @@ func (a *IntegrationsAPIService) GetawsIntegrationExecute(r ApiGetawsIntegration } type ApiGetazureIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiGetazureIntegrationRequest) Execute() (*CreateazureIntegration200Response, *http.Response, error) { @@ -4032,26 +4062,27 @@ GetazureIntegration Get Azure integration. Get a Azure integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiGetazureIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiGetazureIntegrationRequest */ func (a *IntegrationsAPIService) GetazureIntegration(ctx context.Context, id string) ApiGetazureIntegrationRequest { return ApiGetazureIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreateazureIntegration200Response +// +// @return CreateazureIntegration200Response func (a *IntegrationsAPIService) GetazureIntegrationExecute(r ApiGetazureIntegrationRequest) (*CreateazureIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateazureIntegration200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateazureIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetazureIntegration") @@ -4126,8 +4157,8 @@ func (a *IntegrationsAPIService) GetazureIntegrationExecute(r ApiGetazureIntegra newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -4145,9 +4176,9 @@ func (a *IntegrationsAPIService) GetazureIntegrationExecute(r ApiGetazureIntegra } type ApiGetbitbucketRepoIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiGetbitbucketRepoIntegrationRequest) Execute() (*CreatebitbucketRepoIntegration200Response, *http.Response, error) { @@ -4159,26 +4190,27 @@ GetbitbucketRepoIntegration Get Bitbucket Repo integration. Get a Bitbucket Repo integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiGetbitbucketRepoIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiGetbitbucketRepoIntegrationRequest */ func (a *IntegrationsAPIService) GetbitbucketRepoIntegration(ctx context.Context, id string) ApiGetbitbucketRepoIntegrationRequest { return ApiGetbitbucketRepoIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreatebitbucketRepoIntegration200Response +// +// @return CreatebitbucketRepoIntegration200Response func (a *IntegrationsAPIService) GetbitbucketRepoIntegrationExecute(r ApiGetbitbucketRepoIntegrationRequest) (*CreatebitbucketRepoIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatebitbucketRepoIntegration200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatebitbucketRepoIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetbitbucketRepoIntegration") @@ -4253,8 +4285,8 @@ func (a *IntegrationsAPIService) GetbitbucketRepoIntegrationExecute(r ApiGetbitb newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -4272,9 +4304,9 @@ func (a *IntegrationsAPIService) GetbitbucketRepoIntegrationExecute(r ApiGetbitb } type ApiGetcloudflareIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiGetcloudflareIntegrationRequest) Execute() (*CreatecloudflareIntegration200Response, *http.Response, error) { @@ -4286,26 +4318,27 @@ GetcloudflareIntegration Get Cloudflare integration. Get a Cloudflare integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiGetcloudflareIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiGetcloudflareIntegrationRequest */ func (a *IntegrationsAPIService) GetcloudflareIntegration(ctx context.Context, id string) ApiGetcloudflareIntegrationRequest { return ApiGetcloudflareIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreatecloudflareIntegration200Response +// +// @return CreatecloudflareIntegration200Response func (a *IntegrationsAPIService) GetcloudflareIntegrationExecute(r ApiGetcloudflareIntegrationRequest) (*CreatecloudflareIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatecloudflareIntegration200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatecloudflareIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetcloudflareIntegration") @@ -4380,8 +4413,8 @@ func (a *IntegrationsAPIService) GetcloudflareIntegrationExecute(r ApiGetcloudfl newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -4399,9 +4432,9 @@ func (a *IntegrationsAPIService) GetcloudflareIntegrationExecute(r ApiGetcloudfl } type ApiGetcustomIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiGetcustomIntegrationRequest) Execute() (*CreatecustomIntegration200Response, *http.Response, error) { @@ -4413,26 +4446,27 @@ GetcustomIntegration Get Custom Integration integration. Get a Custom Integration integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiGetcustomIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiGetcustomIntegrationRequest */ func (a *IntegrationsAPIService) GetcustomIntegration(ctx context.Context, id string) ApiGetcustomIntegrationRequest { return ApiGetcustomIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreatecustomIntegration200Response +// +// @return CreatecustomIntegration200Response func (a *IntegrationsAPIService) GetcustomIntegrationExecute(r ApiGetcustomIntegrationRequest) (*CreatecustomIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatecustomIntegration200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatecustomIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetcustomIntegration") @@ -4507,8 +4541,8 @@ func (a *IntegrationsAPIService) GetcustomIntegrationExecute(r ApiGetcustomInteg newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -4526,9 +4560,9 @@ func (a *IntegrationsAPIService) GetcustomIntegrationExecute(r ApiGetcustomInteg } type ApiGetgcpIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiGetgcpIntegrationRequest) Execute() (*CreateapigeeIntegration200Response, *http.Response, error) { @@ -4540,26 +4574,27 @@ GetgcpIntegration Get GCP integration. Get a GCP integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiGetgcpIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiGetgcpIntegrationRequest */ func (a *IntegrationsAPIService) GetgcpIntegration(ctx context.Context, id string) ApiGetgcpIntegrationRequest { return ApiGetgcpIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreateapigeeIntegration200Response +// +// @return CreateapigeeIntegration200Response func (a *IntegrationsAPIService) GetgcpIntegrationExecute(r ApiGetgcpIntegrationRequest) (*CreateapigeeIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateapigeeIntegration200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateapigeeIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetgcpIntegration") @@ -4634,8 +4669,8 @@ func (a *IntegrationsAPIService) GetgcpIntegrationExecute(r ApiGetgcpIntegration newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -4653,9 +4688,9 @@ func (a *IntegrationsAPIService) GetgcpIntegrationExecute(r ApiGetgcpIntegration } type ApiGetgithubIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiGetgithubIntegrationRequest) Execute() (*CreatecloudflareIntegration200Response, *http.Response, error) { @@ -4667,26 +4702,27 @@ GetgithubIntegration Get GitHub integration. Get a GitHub integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiGetgithubIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiGetgithubIntegrationRequest */ func (a *IntegrationsAPIService) GetgithubIntegration(ctx context.Context, id string) ApiGetgithubIntegrationRequest { return ApiGetgithubIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreatecloudflareIntegration200Response +// +// @return CreatecloudflareIntegration200Response func (a *IntegrationsAPIService) GetgithubIntegrationExecute(r ApiGetgithubIntegrationRequest) (*CreatecloudflareIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatecloudflareIntegration200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatecloudflareIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetgithubIntegration") @@ -4761,8 +4797,8 @@ func (a *IntegrationsAPIService) GetgithubIntegrationExecute(r ApiGetgithubInteg newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -4780,9 +4816,9 @@ func (a *IntegrationsAPIService) GetgithubIntegrationExecute(r ApiGetgithubInteg } type ApiGetgitlabIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiGetgitlabIntegrationRequest) Execute() (*CreategitlabIntegration200Response, *http.Response, error) { @@ -4794,26 +4830,27 @@ GetgitlabIntegration Get GitLab integration. Get a GitLab integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiGetgitlabIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiGetgitlabIntegrationRequest */ func (a *IntegrationsAPIService) GetgitlabIntegration(ctx context.Context, id string) ApiGetgitlabIntegrationRequest { return ApiGetgitlabIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreategitlabIntegration200Response +// +// @return CreategitlabIntegration200Response func (a *IntegrationsAPIService) GetgitlabIntegrationExecute(r ApiGetgitlabIntegrationRequest) (*CreategitlabIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreategitlabIntegration200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreategitlabIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetgitlabIntegration") @@ -4888,8 +4925,8 @@ func (a *IntegrationsAPIService) GetgitlabIntegrationExecute(r ApiGetgitlabInteg newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -4907,9 +4944,9 @@ func (a *IntegrationsAPIService) GetgitlabIntegrationExecute(r ApiGetgitlabInteg } type ApiGetjiraIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiGetjiraIntegrationRequest) Execute() (*CreatejiraIntegration200Response, *http.Response, error) { @@ -4921,26 +4958,27 @@ GetjiraIntegration Get Jira integration. Get a Jira integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiGetjiraIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiGetjiraIntegrationRequest */ func (a *IntegrationsAPIService) GetjiraIntegration(ctx context.Context, id string) ApiGetjiraIntegrationRequest { return ApiGetjiraIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreatejiraIntegration200Response +// +// @return CreatejiraIntegration200Response func (a *IntegrationsAPIService) GetjiraIntegrationExecute(r ApiGetjiraIntegrationRequest) (*CreatejiraIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatejiraIntegration200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatejiraIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetjiraIntegration") @@ -5015,8 +5053,8 @@ func (a *IntegrationsAPIService) GetjiraIntegrationExecute(r ApiGetjiraIntegrati newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -5034,9 +5072,9 @@ func (a *IntegrationsAPIService) GetjiraIntegrationExecute(r ApiGetjiraIntegrati } type ApiGetkubernetesIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiGetkubernetesIntegrationRequest) Execute() (*CreatekubernetesIntegration200Response, *http.Response, error) { @@ -5048,26 +5086,27 @@ GetkubernetesIntegration Get Kubernetes integration. Get a Kubernetes integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiGetkubernetesIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiGetkubernetesIntegrationRequest */ func (a *IntegrationsAPIService) GetkubernetesIntegration(ctx context.Context, id string) ApiGetkubernetesIntegrationRequest { return ApiGetkubernetesIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreatekubernetesIntegration200Response +// +// @return CreatekubernetesIntegration200Response func (a *IntegrationsAPIService) GetkubernetesIntegrationExecute(r ApiGetkubernetesIntegrationRequest) (*CreatekubernetesIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatekubernetesIntegration200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatekubernetesIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetkubernetesIntegration") @@ -5142,8 +5181,8 @@ func (a *IntegrationsAPIService) GetkubernetesIntegrationExecute(r ApiGetkuberne newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -5161,9 +5200,9 @@ func (a *IntegrationsAPIService) GetkubernetesIntegrationExecute(r ApiGetkuberne } type ApiGetpostmanIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiGetpostmanIntegrationRequest) Execute() (*CreatecloudflareIntegration200Response, *http.Response, error) { @@ -5175,26 +5214,27 @@ GetpostmanIntegration Get Postman integration. Get a Postman integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiGetpostmanIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiGetpostmanIntegrationRequest */ func (a *IntegrationsAPIService) GetpostmanIntegration(ctx context.Context, id string) ApiGetpostmanIntegrationRequest { return ApiGetpostmanIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreatecloudflareIntegration200Response +// +// @return CreatecloudflareIntegration200Response func (a *IntegrationsAPIService) GetpostmanIntegrationExecute(r ApiGetpostmanIntegrationRequest) (*CreatecloudflareIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatecloudflareIntegration200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatecloudflareIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetpostmanIntegration") @@ -5269,8 +5309,8 @@ func (a *IntegrationsAPIService) GetpostmanIntegrationExecute(r ApiGetpostmanInt newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -5288,9 +5328,9 @@ func (a *IntegrationsAPIService) GetpostmanIntegrationExecute(r ApiGetpostmanInt } type ApiGetwizIntegrationRequest struct { - ctx context.Context + ctx context.Context ApiService *IntegrationsAPIService - id string + id string } func (r ApiGetwizIntegrationRequest) Execute() (*CreatewizIntegration200Response, *http.Response, error) { @@ -5302,26 +5342,27 @@ GetwizIntegration Get Wiz integration. Get a Wiz integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiGetwizIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiGetwizIntegrationRequest */ func (a *IntegrationsAPIService) GetwizIntegration(ctx context.Context, id string) ApiGetwizIntegrationRequest { return ApiGetwizIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreatewizIntegration200Response +// +// @return CreatewizIntegration200Response func (a *IntegrationsAPIService) GetwizIntegrationExecute(r ApiGetwizIntegrationRequest) (*CreatewizIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatewizIntegration200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatewizIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.GetwizIntegration") @@ -5396,8 +5437,8 @@ func (a *IntegrationsAPIService) GetwizIntegrationExecute(r ApiGetwizIntegration newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -5415,16 +5456,16 @@ func (a *IntegrationsAPIService) GetwizIntegrationExecute(r ApiGetwizIntegration } type ApiListakamaiIntegrationsRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - cursor *string - size *int - sortType *string + ctx context.Context + ApiService *IntegrationsAPIService + cursor *string + size *int + sortType *string sortDirection *string - projectIds *[]string - ids *string - locationIds *[]string - search *string + projectIds *[]string + ids *string + locationIds *[]string + search *string } // The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. @@ -5484,24 +5525,25 @@ ListakamaiIntegrations List Akamai integrations. List and search Akamai integrations of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListakamaiIntegrationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListakamaiIntegrationsRequest */ func (a *IntegrationsAPIService) ListakamaiIntegrations(ctx context.Context) ApiListakamaiIntegrationsRequest { return ApiListakamaiIntegrationsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ListIntegrations200Response +// +// @return ListIntegrations200Response func (a *IntegrationsAPIService) ListakamaiIntegrationsExecute(r ApiListakamaiIntegrationsRequest) (*ListIntegrations200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListIntegrations200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListIntegrations200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.ListakamaiIntegrations") @@ -5623,8 +5665,8 @@ func (a *IntegrationsAPIService) ListakamaiIntegrationsExecute(r ApiListakamaiIn newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -5642,16 +5684,16 @@ func (a *IntegrationsAPIService) ListakamaiIntegrationsExecute(r ApiListakamaiIn } type ApiListapigeeIntegrationsRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - cursor *string - size *int - sortType *string + ctx context.Context + ApiService *IntegrationsAPIService + cursor *string + size *int + sortType *string sortDirection *string - projectIds *[]string - ids *string - locationIds *[]string - search *string + projectIds *[]string + ids *string + locationIds *[]string + search *string } // The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. @@ -5711,24 +5753,25 @@ ListapigeeIntegrations List Apigee integrations. List and search Apigee integrations of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListapigeeIntegrationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListapigeeIntegrationsRequest */ func (a *IntegrationsAPIService) ListapigeeIntegrations(ctx context.Context) ApiListapigeeIntegrationsRequest { return ApiListapigeeIntegrationsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ListIntegrations200Response +// +// @return ListIntegrations200Response func (a *IntegrationsAPIService) ListapigeeIntegrationsExecute(r ApiListapigeeIntegrationsRequest) (*ListIntegrations200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListIntegrations200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListIntegrations200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.ListapigeeIntegrations") @@ -5850,8 +5893,8 @@ func (a *IntegrationsAPIService) ListapigeeIntegrationsExecute(r ApiListapigeeIn newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -5869,16 +5912,16 @@ func (a *IntegrationsAPIService) ListapigeeIntegrationsExecute(r ApiListapigeeIn } type ApiListawsIntegrationsRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - cursor *string - size *int - sortType *string + ctx context.Context + ApiService *IntegrationsAPIService + cursor *string + size *int + sortType *string sortDirection *string - projectIds *[]string - ids *string - locationIds *[]string - search *string + projectIds *[]string + ids *string + locationIds *[]string + search *string } // The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. @@ -5938,24 +5981,25 @@ ListawsIntegrations List AWS integrations. List and search AWS integrations of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListawsIntegrationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListawsIntegrationsRequest */ func (a *IntegrationsAPIService) ListawsIntegrations(ctx context.Context) ApiListawsIntegrationsRequest { return ApiListawsIntegrationsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ListIntegrations200Response +// +// @return ListIntegrations200Response func (a *IntegrationsAPIService) ListawsIntegrationsExecute(r ApiListawsIntegrationsRequest) (*ListIntegrations200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListIntegrations200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListIntegrations200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.ListawsIntegrations") @@ -6077,8 +6121,8 @@ func (a *IntegrationsAPIService) ListawsIntegrationsExecute(r ApiListawsIntegrat newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -6096,16 +6140,16 @@ func (a *IntegrationsAPIService) ListawsIntegrationsExecute(r ApiListawsIntegrat } type ApiListazureIntegrationsRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - cursor *string - size *int - sortType *string + ctx context.Context + ApiService *IntegrationsAPIService + cursor *string + size *int + sortType *string sortDirection *string - projectIds *[]string - ids *string - locationIds *[]string - search *string + projectIds *[]string + ids *string + locationIds *[]string + search *string } // The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. @@ -6165,24 +6209,25 @@ ListazureIntegrations List Azure integrations. List and search Azure integrations of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListazureIntegrationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListazureIntegrationsRequest */ func (a *IntegrationsAPIService) ListazureIntegrations(ctx context.Context) ApiListazureIntegrationsRequest { return ApiListazureIntegrationsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ListIntegrations200Response +// +// @return ListIntegrations200Response func (a *IntegrationsAPIService) ListazureIntegrationsExecute(r ApiListazureIntegrationsRequest) (*ListIntegrations200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListIntegrations200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListIntegrations200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.ListazureIntegrations") @@ -6304,8 +6349,8 @@ func (a *IntegrationsAPIService) ListazureIntegrationsExecute(r ApiListazureInte newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -6323,16 +6368,16 @@ func (a *IntegrationsAPIService) ListazureIntegrationsExecute(r ApiListazureInte } type ApiListbitbucketRepoIntegrationsRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - cursor *string - size *int - sortType *string + ctx context.Context + ApiService *IntegrationsAPIService + cursor *string + size *int + sortType *string sortDirection *string - projectIds *[]string - ids *string - locationIds *[]string - search *string + projectIds *[]string + ids *string + locationIds *[]string + search *string } // The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. @@ -6392,24 +6437,25 @@ ListbitbucketRepoIntegrations List Bitbucket Repo integrations. List and search Bitbucket Repo integrations of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListbitbucketRepoIntegrationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListbitbucketRepoIntegrationsRequest */ func (a *IntegrationsAPIService) ListbitbucketRepoIntegrations(ctx context.Context) ApiListbitbucketRepoIntegrationsRequest { return ApiListbitbucketRepoIntegrationsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ListIntegrations200Response +// +// @return ListIntegrations200Response func (a *IntegrationsAPIService) ListbitbucketRepoIntegrationsExecute(r ApiListbitbucketRepoIntegrationsRequest) (*ListIntegrations200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListIntegrations200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListIntegrations200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.ListbitbucketRepoIntegrations") @@ -6531,8 +6577,8 @@ func (a *IntegrationsAPIService) ListbitbucketRepoIntegrationsExecute(r ApiListb newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -6550,16 +6596,16 @@ func (a *IntegrationsAPIService) ListbitbucketRepoIntegrationsExecute(r ApiListb } type ApiListcloudflareIntegrationsRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - cursor *string - size *int - sortType *string + ctx context.Context + ApiService *IntegrationsAPIService + cursor *string + size *int + sortType *string sortDirection *string - projectIds *[]string - ids *string - locationIds *[]string - search *string + projectIds *[]string + ids *string + locationIds *[]string + search *string } // The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. @@ -6619,24 +6665,25 @@ ListcloudflareIntegrations List Cloudflare integrations. List and search Cloudflare integrations of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListcloudflareIntegrationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListcloudflareIntegrationsRequest */ func (a *IntegrationsAPIService) ListcloudflareIntegrations(ctx context.Context) ApiListcloudflareIntegrationsRequest { return ApiListcloudflareIntegrationsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ListIntegrations200Response +// +// @return ListIntegrations200Response func (a *IntegrationsAPIService) ListcloudflareIntegrationsExecute(r ApiListcloudflareIntegrationsRequest) (*ListIntegrations200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListIntegrations200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListIntegrations200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.ListcloudflareIntegrations") @@ -6758,8 +6805,8 @@ func (a *IntegrationsAPIService) ListcloudflareIntegrationsExecute(r ApiListclou newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -6777,16 +6824,16 @@ func (a *IntegrationsAPIService) ListcloudflareIntegrationsExecute(r ApiListclou } type ApiListcustomIntegrationsRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - cursor *string - size *int - sortType *string + ctx context.Context + ApiService *IntegrationsAPIService + cursor *string + size *int + sortType *string sortDirection *string - projectIds *[]string - ids *string - locationIds *[]string - search *string + projectIds *[]string + ids *string + locationIds *[]string + search *string } // The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. @@ -6846,24 +6893,25 @@ ListcustomIntegrations List Custom Integration integrations. List and search Custom Integration integrations of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListcustomIntegrationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListcustomIntegrationsRequest */ func (a *IntegrationsAPIService) ListcustomIntegrations(ctx context.Context) ApiListcustomIntegrationsRequest { return ApiListcustomIntegrationsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ListIntegrations200Response +// +// @return ListIntegrations200Response func (a *IntegrationsAPIService) ListcustomIntegrationsExecute(r ApiListcustomIntegrationsRequest) (*ListIntegrations200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListIntegrations200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListIntegrations200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.ListcustomIntegrations") @@ -6985,8 +7033,8 @@ func (a *IntegrationsAPIService) ListcustomIntegrationsExecute(r ApiListcustomIn newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -7004,16 +7052,16 @@ func (a *IntegrationsAPIService) ListcustomIntegrationsExecute(r ApiListcustomIn } type ApiListgcpIntegrationsRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - cursor *string - size *int - sortType *string + ctx context.Context + ApiService *IntegrationsAPIService + cursor *string + size *int + sortType *string sortDirection *string - projectIds *[]string - ids *string - locationIds *[]string - search *string + projectIds *[]string + ids *string + locationIds *[]string + search *string } // The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. @@ -7073,24 +7121,25 @@ ListgcpIntegrations List GCP integrations. List and search GCP integrations of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListgcpIntegrationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListgcpIntegrationsRequest */ func (a *IntegrationsAPIService) ListgcpIntegrations(ctx context.Context) ApiListgcpIntegrationsRequest { return ApiListgcpIntegrationsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ListIntegrations200Response +// +// @return ListIntegrations200Response func (a *IntegrationsAPIService) ListgcpIntegrationsExecute(r ApiListgcpIntegrationsRequest) (*ListIntegrations200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListIntegrations200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListIntegrations200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.ListgcpIntegrations") @@ -7212,8 +7261,8 @@ func (a *IntegrationsAPIService) ListgcpIntegrationsExecute(r ApiListgcpIntegrat newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -7231,16 +7280,16 @@ func (a *IntegrationsAPIService) ListgcpIntegrationsExecute(r ApiListgcpIntegrat } type ApiListgithubIntegrationsRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - cursor *string - size *int - sortType *string + ctx context.Context + ApiService *IntegrationsAPIService + cursor *string + size *int + sortType *string sortDirection *string - projectIds *[]string - ids *string - locationIds *[]string - search *string + projectIds *[]string + ids *string + locationIds *[]string + search *string } // The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. @@ -7300,24 +7349,25 @@ ListgithubIntegrations List GitHub integrations. List and search GitHub integrations of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListgithubIntegrationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListgithubIntegrationsRequest */ func (a *IntegrationsAPIService) ListgithubIntegrations(ctx context.Context) ApiListgithubIntegrationsRequest { return ApiListgithubIntegrationsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ListIntegrations200Response +// +// @return ListIntegrations200Response func (a *IntegrationsAPIService) ListgithubIntegrationsExecute(r ApiListgithubIntegrationsRequest) (*ListIntegrations200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListIntegrations200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListIntegrations200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.ListgithubIntegrations") @@ -7439,8 +7489,8 @@ func (a *IntegrationsAPIService) ListgithubIntegrationsExecute(r ApiListgithubIn newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -7458,16 +7508,16 @@ func (a *IntegrationsAPIService) ListgithubIntegrationsExecute(r ApiListgithubIn } type ApiListgitlabIntegrationsRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - cursor *string - size *int - sortType *string + ctx context.Context + ApiService *IntegrationsAPIService + cursor *string + size *int + sortType *string sortDirection *string - projectIds *[]string - ids *string - locationIds *[]string - search *string + projectIds *[]string + ids *string + locationIds *[]string + search *string } // The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. @@ -7527,24 +7577,25 @@ ListgitlabIntegrations List GitLab integrations. List and search GitLab integrations of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListgitlabIntegrationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListgitlabIntegrationsRequest */ func (a *IntegrationsAPIService) ListgitlabIntegrations(ctx context.Context) ApiListgitlabIntegrationsRequest { return ApiListgitlabIntegrationsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ListIntegrations200Response +// +// @return ListIntegrations200Response func (a *IntegrationsAPIService) ListgitlabIntegrationsExecute(r ApiListgitlabIntegrationsRequest) (*ListIntegrations200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListIntegrations200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListIntegrations200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.ListgitlabIntegrations") @@ -7666,8 +7717,8 @@ func (a *IntegrationsAPIService) ListgitlabIntegrationsExecute(r ApiListgitlabIn newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -7685,16 +7736,16 @@ func (a *IntegrationsAPIService) ListgitlabIntegrationsExecute(r ApiListgitlabIn } type ApiListjiraIntegrationsRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - cursor *string - size *int - sortType *string + ctx context.Context + ApiService *IntegrationsAPIService + cursor *string + size *int + sortType *string sortDirection *string - projectIds *[]string - ids *string - locationIds *[]string - search *string + projectIds *[]string + ids *string + locationIds *[]string + search *string } // The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. @@ -7754,24 +7805,25 @@ ListjiraIntegrations List Jira integrations. List and search Jira integrations of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListjiraIntegrationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListjiraIntegrationsRequest */ func (a *IntegrationsAPIService) ListjiraIntegrations(ctx context.Context) ApiListjiraIntegrationsRequest { return ApiListjiraIntegrationsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ListIntegrations200Response +// +// @return ListIntegrations200Response func (a *IntegrationsAPIService) ListjiraIntegrationsExecute(r ApiListjiraIntegrationsRequest) (*ListIntegrations200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListIntegrations200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListIntegrations200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.ListjiraIntegrations") @@ -7893,8 +7945,8 @@ func (a *IntegrationsAPIService) ListjiraIntegrationsExecute(r ApiListjiraIntegr newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -7912,16 +7964,16 @@ func (a *IntegrationsAPIService) ListjiraIntegrationsExecute(r ApiListjiraIntegr } type ApiListkubernetesIntegrationsRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - cursor *string - size *int - sortType *string + ctx context.Context + ApiService *IntegrationsAPIService + cursor *string + size *int + sortType *string sortDirection *string - projectIds *[]string - ids *string - locationIds *[]string - search *string + projectIds *[]string + ids *string + locationIds *[]string + search *string } // The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. @@ -7981,24 +8033,25 @@ ListkubernetesIntegrations List Kubernetes integrations. List and search Kubernetes integrations of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListkubernetesIntegrationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListkubernetesIntegrationsRequest */ func (a *IntegrationsAPIService) ListkubernetesIntegrations(ctx context.Context) ApiListkubernetesIntegrationsRequest { return ApiListkubernetesIntegrationsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ListIntegrations200Response +// +// @return ListIntegrations200Response func (a *IntegrationsAPIService) ListkubernetesIntegrationsExecute(r ApiListkubernetesIntegrationsRequest) (*ListIntegrations200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListIntegrations200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListIntegrations200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.ListkubernetesIntegrations") @@ -8120,8 +8173,8 @@ func (a *IntegrationsAPIService) ListkubernetesIntegrationsExecute(r ApiListkube newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -8139,16 +8192,16 @@ func (a *IntegrationsAPIService) ListkubernetesIntegrationsExecute(r ApiListkube } type ApiListpostmanIntegrationsRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - cursor *string - size *int - sortType *string + ctx context.Context + ApiService *IntegrationsAPIService + cursor *string + size *int + sortType *string sortDirection *string - projectIds *[]string - ids *string - locationIds *[]string - search *string + projectIds *[]string + ids *string + locationIds *[]string + search *string } // The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. @@ -8208,24 +8261,25 @@ ListpostmanIntegrations List Postman integrations. List and search Postman integrations of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListpostmanIntegrationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListpostmanIntegrationsRequest */ func (a *IntegrationsAPIService) ListpostmanIntegrations(ctx context.Context) ApiListpostmanIntegrationsRequest { return ApiListpostmanIntegrationsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ListIntegrations200Response +// +// @return ListIntegrations200Response func (a *IntegrationsAPIService) ListpostmanIntegrationsExecute(r ApiListpostmanIntegrationsRequest) (*ListIntegrations200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListIntegrations200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListIntegrations200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.ListpostmanIntegrations") @@ -8347,8 +8401,8 @@ func (a *IntegrationsAPIService) ListpostmanIntegrationsExecute(r ApiListpostman newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -8366,16 +8420,16 @@ func (a *IntegrationsAPIService) ListpostmanIntegrationsExecute(r ApiListpostman } type ApiListwizIntegrationsRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - cursor *string - size *int - sortType *string + ctx context.Context + ApiService *IntegrationsAPIService + cursor *string + size *int + sortType *string sortDirection *string - projectIds *[]string - ids *string - locationIds *[]string - search *string + projectIds *[]string + ids *string + locationIds *[]string + search *string } // The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. @@ -8435,24 +8489,25 @@ ListwizIntegrations List Wiz integrations. List and search Wiz integrations of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListwizIntegrationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListwizIntegrationsRequest */ func (a *IntegrationsAPIService) ListwizIntegrations(ctx context.Context) ApiListwizIntegrationsRequest { return ApiListwizIntegrationsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ListIntegrations200Response +// +// @return ListIntegrations200Response func (a *IntegrationsAPIService) ListwizIntegrationsExecute(r ApiListwizIntegrationsRequest) (*ListIntegrations200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListIntegrations200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListIntegrations200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.ListwizIntegrations") @@ -8574,8 +8629,8 @@ func (a *IntegrationsAPIService) ListwizIntegrationsExecute(r ApiListwizIntegrat newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -8593,9 +8648,9 @@ func (a *IntegrationsAPIService) ListwizIntegrationsExecute(r ApiListwizIntegrat } type ApiUpdateakamaiIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - id string + ctx context.Context + ApiService *IntegrationsAPIService + id string updateakamaiIntegrationRequest *UpdateakamaiIntegrationRequest } @@ -8613,26 +8668,27 @@ UpdateakamaiIntegration Update Akamai integration. Update a Akamai integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiUpdateakamaiIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiUpdateakamaiIntegrationRequest */ func (a *IntegrationsAPIService) UpdateakamaiIntegration(ctx context.Context, id string) ApiUpdateakamaiIntegrationRequest { return ApiUpdateakamaiIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreateakamaiIntegration200Response +// +// @return CreateakamaiIntegration200Response func (a *IntegrationsAPIService) UpdateakamaiIntegrationExecute(r ApiUpdateakamaiIntegrationRequest) (*CreateakamaiIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateakamaiIntegration200Response + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateakamaiIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.UpdateakamaiIntegration") @@ -8709,8 +8765,8 @@ func (a *IntegrationsAPIService) UpdateakamaiIntegrationExecute(r ApiUpdateakama newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -8728,9 +8784,9 @@ func (a *IntegrationsAPIService) UpdateakamaiIntegrationExecute(r ApiUpdateakama } type ApiUpdateapigeeIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - id string + ctx context.Context + ApiService *IntegrationsAPIService + id string updateapigeeIntegrationRequest *UpdateapigeeIntegrationRequest } @@ -8748,26 +8804,27 @@ UpdateapigeeIntegration Update Apigee integration. Update a Apigee integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiUpdateapigeeIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiUpdateapigeeIntegrationRequest */ func (a *IntegrationsAPIService) UpdateapigeeIntegration(ctx context.Context, id string) ApiUpdateapigeeIntegrationRequest { return ApiUpdateapigeeIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreateapigeeIntegration200Response +// +// @return CreateapigeeIntegration200Response func (a *IntegrationsAPIService) UpdateapigeeIntegrationExecute(r ApiUpdateapigeeIntegrationRequest) (*CreateapigeeIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateapigeeIntegration200Response + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateapigeeIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.UpdateapigeeIntegration") @@ -8844,8 +8901,8 @@ func (a *IntegrationsAPIService) UpdateapigeeIntegrationExecute(r ApiUpdateapige newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -8863,9 +8920,9 @@ func (a *IntegrationsAPIService) UpdateapigeeIntegrationExecute(r ApiUpdateapige } type ApiUpdateawsIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - id string + ctx context.Context + ApiService *IntegrationsAPIService + id string updateawsIntegrationRequest *UpdateawsIntegrationRequest } @@ -8883,26 +8940,27 @@ UpdateawsIntegration Update AWS integration. Update a AWS integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiUpdateawsIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiUpdateawsIntegrationRequest */ func (a *IntegrationsAPIService) UpdateawsIntegration(ctx context.Context, id string) ApiUpdateawsIntegrationRequest { return ApiUpdateawsIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreateawsIntegration200Response +// +// @return CreateawsIntegration200Response func (a *IntegrationsAPIService) UpdateawsIntegrationExecute(r ApiUpdateawsIntegrationRequest) (*CreateawsIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateawsIntegration200Response + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateawsIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.UpdateawsIntegration") @@ -8979,8 +9037,8 @@ func (a *IntegrationsAPIService) UpdateawsIntegrationExecute(r ApiUpdateawsInteg newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -8998,9 +9056,9 @@ func (a *IntegrationsAPIService) UpdateawsIntegrationExecute(r ApiUpdateawsInteg } type ApiUpdateazureIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - id string + ctx context.Context + ApiService *IntegrationsAPIService + id string updateazureIntegrationRequest *UpdateazureIntegrationRequest } @@ -9018,26 +9076,27 @@ UpdateazureIntegration Update Azure integration. Update a Azure integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiUpdateazureIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiUpdateazureIntegrationRequest */ func (a *IntegrationsAPIService) UpdateazureIntegration(ctx context.Context, id string) ApiUpdateazureIntegrationRequest { return ApiUpdateazureIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreateazureIntegration200Response +// +// @return CreateazureIntegration200Response func (a *IntegrationsAPIService) UpdateazureIntegrationExecute(r ApiUpdateazureIntegrationRequest) (*CreateazureIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateazureIntegration200Response + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateazureIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.UpdateazureIntegration") @@ -9114,8 +9173,8 @@ func (a *IntegrationsAPIService) UpdateazureIntegrationExecute(r ApiUpdateazureI newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -9133,9 +9192,9 @@ func (a *IntegrationsAPIService) UpdateazureIntegrationExecute(r ApiUpdateazureI } type ApiUpdatebitbucketRepoIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - id string + ctx context.Context + ApiService *IntegrationsAPIService + id string updatebitbucketRepoIntegrationRequest *UpdatebitbucketRepoIntegrationRequest } @@ -9153,26 +9212,27 @@ UpdatebitbucketRepoIntegration Update Bitbucket Repo integration. Update a Bitbucket Repo integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiUpdatebitbucketRepoIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiUpdatebitbucketRepoIntegrationRequest */ func (a *IntegrationsAPIService) UpdatebitbucketRepoIntegration(ctx context.Context, id string) ApiUpdatebitbucketRepoIntegrationRequest { return ApiUpdatebitbucketRepoIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreatebitbucketRepoIntegration200Response +// +// @return CreatebitbucketRepoIntegration200Response func (a *IntegrationsAPIService) UpdatebitbucketRepoIntegrationExecute(r ApiUpdatebitbucketRepoIntegrationRequest) (*CreatebitbucketRepoIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatebitbucketRepoIntegration200Response + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatebitbucketRepoIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.UpdatebitbucketRepoIntegration") @@ -9249,8 +9309,8 @@ func (a *IntegrationsAPIService) UpdatebitbucketRepoIntegrationExecute(r ApiUpda newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -9268,9 +9328,9 @@ func (a *IntegrationsAPIService) UpdatebitbucketRepoIntegrationExecute(r ApiUpda } type ApiUpdatecloudflareIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - id string + ctx context.Context + ApiService *IntegrationsAPIService + id string updatecloudflareIntegrationRequest *UpdatecloudflareIntegrationRequest } @@ -9288,26 +9348,27 @@ UpdatecloudflareIntegration Update Cloudflare integration. Update a Cloudflare integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiUpdatecloudflareIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiUpdatecloudflareIntegrationRequest */ func (a *IntegrationsAPIService) UpdatecloudflareIntegration(ctx context.Context, id string) ApiUpdatecloudflareIntegrationRequest { return ApiUpdatecloudflareIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreatecloudflareIntegration200Response +// +// @return CreatecloudflareIntegration200Response func (a *IntegrationsAPIService) UpdatecloudflareIntegrationExecute(r ApiUpdatecloudflareIntegrationRequest) (*CreatecloudflareIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatecloudflareIntegration200Response + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatecloudflareIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.UpdatecloudflareIntegration") @@ -9384,8 +9445,8 @@ func (a *IntegrationsAPIService) UpdatecloudflareIntegrationExecute(r ApiUpdatec newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -9403,9 +9464,9 @@ func (a *IntegrationsAPIService) UpdatecloudflareIntegrationExecute(r ApiUpdatec } type ApiUpdatecustomIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - id string + ctx context.Context + ApiService *IntegrationsAPIService + id string updatecustomIntegrationRequest *UpdatecustomIntegrationRequest } @@ -9423,26 +9484,27 @@ UpdatecustomIntegration Update Custom Integration integration. Update a Custom Integration integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiUpdatecustomIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiUpdatecustomIntegrationRequest */ func (a *IntegrationsAPIService) UpdatecustomIntegration(ctx context.Context, id string) ApiUpdatecustomIntegrationRequest { return ApiUpdatecustomIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreatecustomIntegration200Response +// +// @return CreatecustomIntegration200Response func (a *IntegrationsAPIService) UpdatecustomIntegrationExecute(r ApiUpdatecustomIntegrationRequest) (*CreatecustomIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatecustomIntegration200Response + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatecustomIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.UpdatecustomIntegration") @@ -9519,8 +9581,8 @@ func (a *IntegrationsAPIService) UpdatecustomIntegrationExecute(r ApiUpdatecusto newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -9538,9 +9600,9 @@ func (a *IntegrationsAPIService) UpdatecustomIntegrationExecute(r ApiUpdatecusto } type ApiUpdategcpIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - id string + ctx context.Context + ApiService *IntegrationsAPIService + id string updateapigeeIntegrationRequest *UpdateapigeeIntegrationRequest } @@ -9558,26 +9620,27 @@ UpdategcpIntegration Update GCP integration. Update a GCP integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiUpdategcpIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiUpdategcpIntegrationRequest */ func (a *IntegrationsAPIService) UpdategcpIntegration(ctx context.Context, id string) ApiUpdategcpIntegrationRequest { return ApiUpdategcpIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreateapigeeIntegration200Response +// +// @return CreateapigeeIntegration200Response func (a *IntegrationsAPIService) UpdategcpIntegrationExecute(r ApiUpdategcpIntegrationRequest) (*CreateapigeeIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateapigeeIntegration200Response + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateapigeeIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.UpdategcpIntegration") @@ -9654,8 +9717,8 @@ func (a *IntegrationsAPIService) UpdategcpIntegrationExecute(r ApiUpdategcpInteg newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -9673,9 +9736,9 @@ func (a *IntegrationsAPIService) UpdategcpIntegrationExecute(r ApiUpdategcpInteg } type ApiUpdategithubIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - id string + ctx context.Context + ApiService *IntegrationsAPIService + id string updatecloudflareIntegrationRequest *UpdatecloudflareIntegrationRequest } @@ -9693,26 +9756,27 @@ UpdategithubIntegration Update GitHub integration. Update a GitHub integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiUpdategithubIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiUpdategithubIntegrationRequest */ func (a *IntegrationsAPIService) UpdategithubIntegration(ctx context.Context, id string) ApiUpdategithubIntegrationRequest { return ApiUpdategithubIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreatecloudflareIntegration200Response +// +// @return CreatecloudflareIntegration200Response func (a *IntegrationsAPIService) UpdategithubIntegrationExecute(r ApiUpdategithubIntegrationRequest) (*CreatecloudflareIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatecloudflareIntegration200Response + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatecloudflareIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.UpdategithubIntegration") @@ -9789,8 +9853,8 @@ func (a *IntegrationsAPIService) UpdategithubIntegrationExecute(r ApiUpdategithu newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -9808,9 +9872,9 @@ func (a *IntegrationsAPIService) UpdategithubIntegrationExecute(r ApiUpdategithu } type ApiUpdategitlabIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - id string + ctx context.Context + ApiService *IntegrationsAPIService + id string updategitlabIntegrationRequest *UpdategitlabIntegrationRequest } @@ -9828,26 +9892,27 @@ UpdategitlabIntegration Update GitLab integration. Update a GitLab integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiUpdategitlabIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiUpdategitlabIntegrationRequest */ func (a *IntegrationsAPIService) UpdategitlabIntegration(ctx context.Context, id string) ApiUpdategitlabIntegrationRequest { return ApiUpdategitlabIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreategitlabIntegration200Response +// +// @return CreategitlabIntegration200Response func (a *IntegrationsAPIService) UpdategitlabIntegrationExecute(r ApiUpdategitlabIntegrationRequest) (*CreategitlabIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreategitlabIntegration200Response + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreategitlabIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.UpdategitlabIntegration") @@ -9924,8 +9989,8 @@ func (a *IntegrationsAPIService) UpdategitlabIntegrationExecute(r ApiUpdategitla newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -9943,9 +10008,9 @@ func (a *IntegrationsAPIService) UpdategitlabIntegrationExecute(r ApiUpdategitla } type ApiUpdatejiraIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - id string + ctx context.Context + ApiService *IntegrationsAPIService + id string updatejiraIntegrationRequest *UpdatejiraIntegrationRequest } @@ -9963,26 +10028,27 @@ UpdatejiraIntegration Update Jira integration. Update a Jira integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiUpdatejiraIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiUpdatejiraIntegrationRequest */ func (a *IntegrationsAPIService) UpdatejiraIntegration(ctx context.Context, id string) ApiUpdatejiraIntegrationRequest { return ApiUpdatejiraIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreatejiraIntegration200Response +// +// @return CreatejiraIntegration200Response func (a *IntegrationsAPIService) UpdatejiraIntegrationExecute(r ApiUpdatejiraIntegrationRequest) (*CreatejiraIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatejiraIntegration200Response + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatejiraIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.UpdatejiraIntegration") @@ -10059,8 +10125,8 @@ func (a *IntegrationsAPIService) UpdatejiraIntegrationExecute(r ApiUpdatejiraInt newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -10078,9 +10144,9 @@ func (a *IntegrationsAPIService) UpdatejiraIntegrationExecute(r ApiUpdatejiraInt } type ApiUpdatekubernetesIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - id string + ctx context.Context + ApiService *IntegrationsAPIService + id string updatekubernetesIntegrationRequest *UpdatekubernetesIntegrationRequest } @@ -10098,26 +10164,27 @@ UpdatekubernetesIntegration Update Kubernetes integration. Update a Kubernetes integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiUpdatekubernetesIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiUpdatekubernetesIntegrationRequest */ func (a *IntegrationsAPIService) UpdatekubernetesIntegration(ctx context.Context, id string) ApiUpdatekubernetesIntegrationRequest { return ApiUpdatekubernetesIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreatekubernetesIntegration200Response +// +// @return CreatekubernetesIntegration200Response func (a *IntegrationsAPIService) UpdatekubernetesIntegrationExecute(r ApiUpdatekubernetesIntegrationRequest) (*CreatekubernetesIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatekubernetesIntegration200Response + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatekubernetesIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.UpdatekubernetesIntegration") @@ -10194,8 +10261,8 @@ func (a *IntegrationsAPIService) UpdatekubernetesIntegrationExecute(r ApiUpdatek newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -10213,9 +10280,9 @@ func (a *IntegrationsAPIService) UpdatekubernetesIntegrationExecute(r ApiUpdatek } type ApiUpdatepostmanIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - id string + ctx context.Context + ApiService *IntegrationsAPIService + id string updatecloudflareIntegrationRequest *UpdatecloudflareIntegrationRequest } @@ -10233,26 +10300,27 @@ UpdatepostmanIntegration Update Postman integration. Update a Postman integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiUpdatepostmanIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiUpdatepostmanIntegrationRequest */ func (a *IntegrationsAPIService) UpdatepostmanIntegration(ctx context.Context, id string) ApiUpdatepostmanIntegrationRequest { return ApiUpdatepostmanIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreatecloudflareIntegration200Response +// +// @return CreatecloudflareIntegration200Response func (a *IntegrationsAPIService) UpdatepostmanIntegrationExecute(r ApiUpdatepostmanIntegrationRequest) (*CreatecloudflareIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatecloudflareIntegration200Response + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatecloudflareIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.UpdatepostmanIntegration") @@ -10329,8 +10397,8 @@ func (a *IntegrationsAPIService) UpdatepostmanIntegrationExecute(r ApiUpdatepost newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -10348,9 +10416,9 @@ func (a *IntegrationsAPIService) UpdatepostmanIntegrationExecute(r ApiUpdatepost } type ApiUpdatewizIntegrationRequest struct { - ctx context.Context - ApiService *IntegrationsAPIService - id string + ctx context.Context + ApiService *IntegrationsAPIService + id string updatewizIntegrationRequest *UpdatewizIntegrationRequest } @@ -10368,26 +10436,27 @@ UpdatewizIntegration Update Wiz integration. Update a Wiz integration. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiUpdatewizIntegrationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiUpdatewizIntegrationRequest */ func (a *IntegrationsAPIService) UpdatewizIntegration(ctx context.Context, id string) ApiUpdatewizIntegrationRequest { return ApiUpdatewizIntegrationRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return CreatewizIntegration200Response +// +// @return CreatewizIntegration200Response func (a *IntegrationsAPIService) UpdatewizIntegrationExecute(r ApiUpdatewizIntegrationRequest) (*CreatewizIntegration200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreatewizIntegration200Response + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreatewizIntegration200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IntegrationsAPIService.UpdatewizIntegration") @@ -10464,8 +10533,8 @@ func (a *IntegrationsAPIService) UpdatewizIntegrationExecute(r ApiUpdatewizInteg newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } diff --git a/pkg/api/v3/api_issues.go b/pkg/api/v3/api_issues.go index d4fe59d1..35f06853 100644 --- a/pkg/api/v3/api_issues.go +++ b/pkg/api/v3/api_issues.go @@ -16,18 +16,17 @@ import ( "io" "net/http" "net/url" - "strings" "reflect" + "strings" ) - // IssuesAPIService IssuesAPI service type IssuesAPIService service type ApiGetIssueRequest struct { - ctx context.Context + ctx context.Context ApiService *IssuesAPIService - issueId string + issueId string } func (r ApiGetIssueRequest) Execute() (*IssueDetailed, *http.Response, error) { @@ -39,26 +38,27 @@ GetIssue Get an issue Get an issue by ID - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param issueId The issue ID - @return ApiGetIssueRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param issueId The issue ID + @return ApiGetIssueRequest */ func (a *IssuesAPIService) GetIssue(ctx context.Context, issueId string) ApiGetIssueRequest { return ApiGetIssueRequest{ ApiService: a, - ctx: ctx, - issueId: issueId, + ctx: ctx, + issueId: issueId, } } // Execute executes the request -// @return IssueDetailed +// +// @return IssueDetailed func (a *IssuesAPIService) GetIssueExecute(r ApiGetIssueRequest) (*IssueDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IssueDetailed + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IssueDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IssuesAPIService.GetIssue") @@ -133,8 +133,8 @@ func (a *IssuesAPIService) GetIssueExecute(r ApiGetIssueRequest) (*IssueDetailed newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -152,9 +152,9 @@ func (a *IssuesAPIService) GetIssueExecute(r ApiGetIssueRequest) (*IssueDetailed } type ApiListIssueActivitiesRequest struct { - ctx context.Context + ctx context.Context ApiService *IssuesAPIService - issueId string + issueId string } func (r ApiListIssueActivitiesRequest) Execute() ([]ActivitySummarized, *http.Response, error) { @@ -166,26 +166,27 @@ ListIssueActivities List activities of an issue List activities related to a specific issue. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param issueId The issue ID - @return ApiListIssueActivitiesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param issueId The issue ID + @return ApiListIssueActivitiesRequest */ func (a *IssuesAPIService) ListIssueActivities(ctx context.Context, issueId string) ApiListIssueActivitiesRequest { return ApiListIssueActivitiesRequest{ ApiService: a, - ctx: ctx, - issueId: issueId, + ctx: ctx, + issueId: issueId, } } // Execute executes the request -// @return []ActivitySummarized +// +// @return []ActivitySummarized func (a *IssuesAPIService) ListIssueActivitiesExecute(r ApiListIssueActivitiesRequest) ([]ActivitySummarized, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ActivitySummarized + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ActivitySummarized ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IssuesAPIService.ListIssueActivities") @@ -260,8 +261,8 @@ func (a *IssuesAPIService) ListIssueActivitiesExecute(r ApiListIssueActivitiesRe newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -279,26 +280,26 @@ func (a *IssuesAPIService) ListIssueActivitiesExecute(r ApiListIssueActivitiesRe } type ApiListIssuesRequest struct { - ctx context.Context - ApiService *IssuesAPIService - cursor *string - size *int - sortType *string + ctx context.Context + ApiService *IssuesAPIService + cursor *string + size *int + sortType *string sortDirection *string - profileIds *string - assetIds *string - domains *string - ids *string - names *ListIssuesNamesParameter - scanIds *string - tagIds *string - search *string - jiraTicket *string - risks *[]string - assetClasses *string - scannerKinds *string - severities *string - status *string + profileIds *string + assetIds *string + domains *string + ids *string + names *ListIssuesNamesParameter + scanIds *string + tagIds *string + search *string + jiraTicket *string + risks *[]string + assetClasses *string + scannerKinds *string + severities *string + status *string } // The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. @@ -418,24 +419,25 @@ ListIssues List issues List and search issues of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListIssuesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListIssuesRequest */ func (a *IssuesAPIService) ListIssues(ctx context.Context) ApiListIssuesRequest { return ApiListIssuesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ListIssues200Response +// +// @return ListIssues200Response func (a *IssuesAPIService) ListIssuesExecute(r ApiListIssuesRequest) (*ListIssues200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListIssues200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListIssues200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IssuesAPIService.ListIssues") @@ -579,8 +581,8 @@ func (a *IssuesAPIService) ListIssuesExecute(r ApiListIssuesRequest) (*ListIssue newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -598,9 +600,9 @@ func (a *IssuesAPIService) ListIssuesExecute(r ApiListIssuesRequest) (*ListIssue } type ApiUpdateIssueRequest struct { - ctx context.Context - ApiService *IssuesAPIService - issueId string + ctx context.Context + ApiService *IssuesAPIService + issueId string updateIssueRequest *UpdateIssueRequest } @@ -619,26 +621,27 @@ UpdateIssue Update an issue Update an issue by ID - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param issueId The issue ID - @return ApiUpdateIssueRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param issueId The issue ID + @return ApiUpdateIssueRequest */ func (a *IssuesAPIService) UpdateIssue(ctx context.Context, issueId string) ApiUpdateIssueRequest { return ApiUpdateIssueRequest{ ApiService: a, - ctx: ctx, - issueId: issueId, + ctx: ctx, + issueId: issueId, } } // Execute executes the request -// @return UpdateIssue200Response +// +// @return UpdateIssue200Response func (a *IssuesAPIService) UpdateIssueExecute(r ApiUpdateIssueRequest) (*UpdateIssue200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *UpdateIssue200Response + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UpdateIssue200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IssuesAPIService.UpdateIssue") @@ -715,8 +718,8 @@ func (a *IssuesAPIService) UpdateIssueExecute(r ApiUpdateIssueRequest) (*UpdateI newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 404 { @@ -726,8 +729,8 @@ func (a *IssuesAPIService) UpdateIssueExecute(r ApiUpdateIssueRequest) (*UpdateI newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } diff --git a/pkg/api/v3/api_locations.go b/pkg/api/v3/api_locations.go index 255c78e9..7d9287ec 100644 --- a/pkg/api/v3/api_locations.go +++ b/pkg/api/v3/api_locations.go @@ -19,13 +19,12 @@ import ( "strings" ) - // LocationsAPIService LocationsAPI service type LocationsAPIService service type ApiCreateLocationRequest struct { - ctx context.Context - ApiService *LocationsAPIService + ctx context.Context + ApiService *LocationsAPIService createLocationRequest *CreateLocationRequest } @@ -43,24 +42,25 @@ CreateLocation Create a location Create a Private Location. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateLocationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateLocationRequest */ func (a *LocationsAPIService) CreateLocation(ctx context.Context) ApiCreateLocationRequest { return ApiCreateLocationRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return LocationDetailed +// +// @return LocationDetailed func (a *LocationsAPIService) CreateLocationExecute(r ApiCreateLocationRequest) (*LocationDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *LocationDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *LocationDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LocationsAPIService.CreateLocation") @@ -136,8 +136,8 @@ func (a *LocationsAPIService) CreateLocationExecute(r ApiCreateLocationRequest) newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 409 { @@ -147,8 +147,8 @@ func (a *LocationsAPIService) CreateLocationExecute(r ApiCreateLocationRequest) newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -166,7 +166,7 @@ func (a *LocationsAPIService) CreateLocationExecute(r ApiCreateLocationRequest) } type ApiDeleteLocationRequest struct { - ctx context.Context + ctx context.Context ApiService *LocationsAPIService locationId string } @@ -180,26 +180,27 @@ DeleteLocation Delete a location Delete a Private Location. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param locationId The ID of the location to delete - @return ApiDeleteLocationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param locationId The ID of the location to delete + @return ApiDeleteLocationRequest */ func (a *LocationsAPIService) DeleteLocation(ctx context.Context, locationId string) ApiDeleteLocationRequest { return ApiDeleteLocationRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, locationId: locationId, } } // Execute executes the request -// @return DeleteLocation200Response +// +// @return DeleteLocation200Response func (a *LocationsAPIService) DeleteLocationExecute(r ApiDeleteLocationRequest) (*DeleteLocation200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeleteLocation200Response + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeleteLocation200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LocationsAPIService.DeleteLocation") @@ -274,8 +275,8 @@ func (a *LocationsAPIService) DeleteLocationExecute(r ApiDeleteLocationRequest) newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -293,7 +294,7 @@ func (a *LocationsAPIService) DeleteLocationExecute(r ApiDeleteLocationRequest) } type ApiGetLocationRequest struct { - ctx context.Context + ctx context.Context ApiService *LocationsAPIService locationId string } @@ -307,26 +308,27 @@ GetLocation Get a location Retrieve a Private Location details. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param locationId The ID of the location to get - @return ApiGetLocationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param locationId The ID of the location to get + @return ApiGetLocationRequest */ func (a *LocationsAPIService) GetLocation(ctx context.Context, locationId string) ApiGetLocationRequest { return ApiGetLocationRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, locationId: locationId, } } // Execute executes the request -// @return LocationDetailed +// +// @return LocationDetailed func (a *LocationsAPIService) GetLocationExecute(r ApiGetLocationRequest) (*LocationDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *LocationDetailed + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *LocationDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LocationsAPIService.GetLocation") @@ -401,8 +403,8 @@ func (a *LocationsAPIService) GetLocationExecute(r ApiGetLocationRequest) (*Loca newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -420,15 +422,15 @@ func (a *LocationsAPIService) GetLocationExecute(r ApiGetLocationRequest) (*Loca } type ApiListLocationsRequest struct { - ctx context.Context - ApiService *LocationsAPIService - cursor *string - size *int - sortType *string + ctx context.Context + ApiService *LocationsAPIService + cursor *string + size *int + sortType *string sortDirection *string - search *string - enabled *string - type_ *string + search *string + enabled *string + type_ *string } // The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. @@ -479,24 +481,25 @@ ListLocations List locations List and search locations of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListLocationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListLocationsRequest */ func (a *LocationsAPIService) ListLocations(ctx context.Context) ApiListLocationsRequest { return ApiListLocationsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ListLocations200Response +// +// @return ListLocations200Response func (a *LocationsAPIService) ListLocationsExecute(r ApiListLocationsRequest) (*ListLocations200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListLocations200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListLocations200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LocationsAPIService.ListLocations") @@ -599,8 +602,8 @@ func (a *LocationsAPIService) ListLocationsExecute(r ApiListLocationsRequest) (* newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -618,9 +621,9 @@ func (a *LocationsAPIService) ListLocationsExecute(r ApiListLocationsRequest) (* } type ApiUpdateLocationRequest struct { - ctx context.Context - ApiService *LocationsAPIService - locationId string + ctx context.Context + ApiService *LocationsAPIService + locationId string updateLocationRequest *UpdateLocationRequest } @@ -638,26 +641,27 @@ UpdateLocation Update a location Update a Private Location details. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param locationId The ID of the location to update - @return ApiUpdateLocationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param locationId The ID of the location to update + @return ApiUpdateLocationRequest */ func (a *LocationsAPIService) UpdateLocation(ctx context.Context, locationId string) ApiUpdateLocationRequest { return ApiUpdateLocationRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, locationId: locationId, } } // Execute executes the request -// @return LocationDetailed +// +// @return LocationDetailed func (a *LocationsAPIService) UpdateLocationExecute(r ApiUpdateLocationRequest) (*LocationDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *LocationDetailed + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *LocationDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LocationsAPIService.UpdateLocation") @@ -734,8 +738,8 @@ func (a *LocationsAPIService) UpdateLocationExecute(r ApiUpdateLocationRequest) newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 404 { @@ -745,8 +749,8 @@ func (a *LocationsAPIService) UpdateLocationExecute(r ApiUpdateLocationRequest) newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 409 { @@ -756,8 +760,8 @@ func (a *LocationsAPIService) UpdateLocationExecute(r ApiUpdateLocationRequest) newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } diff --git a/pkg/api/v3/api_profiles.go b/pkg/api/v3/api_profiles.go index efaaca72..20be7ee3 100644 --- a/pkg/api/v3/api_profiles.go +++ b/pkg/api/v3/api_profiles.go @@ -16,17 +16,16 @@ import ( "io" "net/http" "net/url" - "strings" "reflect" + "strings" ) - // ProfilesAPIService ProfilesAPI service type ProfilesAPIService service type ApiCreateDastGraphqlProfileRequest struct { - ctx context.Context - ApiService *ProfilesAPIService + ctx context.Context + ApiService *ProfilesAPIService createDastGraphqlProfileRequest *CreateDastGraphqlProfileRequest } @@ -45,24 +44,25 @@ CreateDastGraphqlProfile Create a DAST GraphQL profile Create a DAST GraphQL profile - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateDastGraphqlProfileRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateDastGraphqlProfileRequest */ func (a *ProfilesAPIService) CreateDastGraphqlProfile(ctx context.Context) ApiCreateDastGraphqlProfileRequest { return ApiCreateDastGraphqlProfileRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ProfileDetailed +// +// @return ProfileDetailed func (a *ProfilesAPIService) CreateDastGraphqlProfileExecute(r ApiCreateDastGraphqlProfileRequest) (*ProfileDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProfileDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProfileDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProfilesAPIService.CreateDastGraphqlProfile") @@ -138,8 +138,8 @@ func (a *ProfilesAPIService) CreateDastGraphqlProfileExecute(r ApiCreateDastGrap newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -157,8 +157,8 @@ func (a *ProfilesAPIService) CreateDastGraphqlProfileExecute(r ApiCreateDastGrap } type ApiCreateDastRestProfileRequest struct { - ctx context.Context - ApiService *ProfilesAPIService + ctx context.Context + ApiService *ProfilesAPIService createDastRestProfileRequest *CreateDastRestProfileRequest } @@ -177,24 +177,25 @@ CreateDastRestProfile Create a DAST REST profile Create a DAST REST profile - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateDastRestProfileRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateDastRestProfileRequest */ func (a *ProfilesAPIService) CreateDastRestProfile(ctx context.Context) ApiCreateDastRestProfileRequest { return ApiCreateDastRestProfileRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ProfileDetailed +// +// @return ProfileDetailed func (a *ProfilesAPIService) CreateDastRestProfileExecute(r ApiCreateDastRestProfileRequest) (*ProfileDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProfileDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProfileDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProfilesAPIService.CreateDastRestProfile") @@ -270,8 +271,8 @@ func (a *ProfilesAPIService) CreateDastRestProfileExecute(r ApiCreateDastRestPro newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -289,8 +290,8 @@ func (a *ProfilesAPIService) CreateDastRestProfileExecute(r ApiCreateDastRestPro } type ApiCreateDastWebAppProfileRequest struct { - ctx context.Context - ApiService *ProfilesAPIService + ctx context.Context + ApiService *ProfilesAPIService createDastWebAppProfileRequest *CreateDastWebAppProfileRequest } @@ -309,24 +310,25 @@ CreateDastWebAppProfile Create a DAST WebApp profile Create a DAST WebApp profile - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateDastWebAppProfileRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateDastWebAppProfileRequest */ func (a *ProfilesAPIService) CreateDastWebAppProfile(ctx context.Context) ApiCreateDastWebAppProfileRequest { return ApiCreateDastWebAppProfileRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ProfileDetailed +// +// @return ProfileDetailed func (a *ProfilesAPIService) CreateDastWebAppProfileExecute(r ApiCreateDastWebAppProfileRequest) (*ProfileDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProfileDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProfileDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProfilesAPIService.CreateDastWebAppProfile") @@ -402,8 +404,8 @@ func (a *ProfilesAPIService) CreateDastWebAppProfileExecute(r ApiCreateDastWebAp newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -421,9 +423,9 @@ func (a *ProfilesAPIService) CreateDastWebAppProfileExecute(r ApiCreateDastWebAp } type ApiDeleteProfileRequest struct { - ctx context.Context + ctx context.Context ApiService *ProfilesAPIService - profileId string + profileId string } func (r ApiDeleteProfileRequest) Execute() (*DeleteProfile200Response, *http.Response, error) { @@ -435,26 +437,27 @@ DeleteProfile Delete a profile Delete a profile by ID - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param profileId The profile ID - @return ApiDeleteProfileRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param profileId The profile ID + @return ApiDeleteProfileRequest */ func (a *ProfilesAPIService) DeleteProfile(ctx context.Context, profileId string) ApiDeleteProfileRequest { return ApiDeleteProfileRequest{ ApiService: a, - ctx: ctx, - profileId: profileId, + ctx: ctx, + profileId: profileId, } } // Execute executes the request -// @return DeleteProfile200Response +// +// @return DeleteProfile200Response func (a *ProfilesAPIService) DeleteProfileExecute(r ApiDeleteProfileRequest) (*DeleteProfile200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeleteProfile200Response + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeleteProfile200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProfilesAPIService.DeleteProfile") @@ -529,8 +532,8 @@ func (a *ProfilesAPIService) DeleteProfileExecute(r ApiDeleteProfileRequest) (*D newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -548,9 +551,9 @@ func (a *ProfilesAPIService) DeleteProfileExecute(r ApiDeleteProfileRequest) (*D } type ApiGetProfileRequest struct { - ctx context.Context + ctx context.Context ApiService *ProfilesAPIService - profileId string + profileId string } func (r ApiGetProfileRequest) Execute() (*ProfileDetailed, *http.Response, error) { @@ -562,26 +565,27 @@ GetProfile Get a profile Get a profile by ID - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param profileId The profile ID - @return ApiGetProfileRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param profileId The profile ID + @return ApiGetProfileRequest */ func (a *ProfilesAPIService) GetProfile(ctx context.Context, profileId string) ApiGetProfileRequest { return ApiGetProfileRequest{ ApiService: a, - ctx: ctx, - profileId: profileId, + ctx: ctx, + profileId: profileId, } } // Execute executes the request -// @return ProfileDetailed +// +// @return ProfileDetailed func (a *ProfilesAPIService) GetProfileExecute(r ApiGetProfileRequest) (*ProfileDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProfileDetailed + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProfileDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProfilesAPIService.GetProfile") @@ -656,8 +660,8 @@ func (a *ProfilesAPIService) GetProfileExecute(r ApiGetProfileRequest) (*Profile newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -675,20 +679,20 @@ func (a *ProfilesAPIService) GetProfileExecute(r ApiGetProfileRequest) (*Profile } type ApiListProfilesRequest struct { - ctx context.Context - ApiService *ProfilesAPIService - cursor *string - size *int - sortType *string + ctx context.Context + ApiService *ProfilesAPIService + cursor *string + size *int + sortType *string sortDirection *string - assetIds *string - domains *string - issueIds *string - tagIds *string - search *string - initiators *[]string - kinds *[]string - risks *[]string + assetIds *string + domains *string + issueIds *string + tagIds *string + search *string + initiators *[]string + kinds *[]string + risks *[]string } // The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. @@ -772,24 +776,25 @@ ListProfiles List profiles List and search profiles of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListProfilesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListProfilesRequest */ func (a *ProfilesAPIService) ListProfiles(ctx context.Context) ApiListProfilesRequest { return ApiListProfilesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ListProfiles200Response +// +// @return ListProfiles200Response func (a *ProfilesAPIService) ListProfilesExecute(r ApiListProfilesRequest) (*ListProfiles200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListProfiles200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListProfiles200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProfilesAPIService.ListProfiles") @@ -931,8 +936,8 @@ func (a *ProfilesAPIService) ListProfilesExecute(r ApiListProfilesRequest) (*Lis newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -950,20 +955,20 @@ func (a *ProfilesAPIService) ListProfilesExecute(r ApiListProfilesRequest) (*Lis } type ApiProblemsRequest struct { - ctx context.Context - ApiService *ProfilesAPIService - cursor *string - size *int - sortType *string + ctx context.Context + ApiService *ProfilesAPIService + cursor *string + size *int + sortType *string sortDirection *string - assetIds *string - domains *string - issueIds *string - tagIds *string - search *string - initiators *[]string - kinds *[]string - risks *[]string + assetIds *string + domains *string + issueIds *string + tagIds *string + search *string + initiators *[]string + kinds *[]string + risks *[]string } // The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. @@ -1047,24 +1052,25 @@ Problems List all scan statuses and problems List all scan statuses and problems - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiProblemsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiProblemsRequest */ func (a *ProfilesAPIService) Problems(ctx context.Context) ApiProblemsRequest { return ApiProblemsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return Problems200Response +// +// @return Problems200Response func (a *ProfilesAPIService) ProblemsExecute(r ApiProblemsRequest) (*Problems200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Problems200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Problems200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProfilesAPIService.Problems") @@ -1206,8 +1212,8 @@ func (a *ProfilesAPIService) ProblemsExecute(r ApiProblemsRequest) (*Problems200 newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1225,9 +1231,9 @@ func (a *ProfilesAPIService) ProblemsExecute(r ApiProblemsRequest) (*Problems200 } type ApiUpdateProfileRequest struct { - ctx context.Context - ApiService *ProfilesAPIService - profileId string + ctx context.Context + ApiService *ProfilesAPIService + profileId string updateProfileRequest *UpdateProfileRequest } @@ -1246,26 +1252,27 @@ UpdateProfile Update a profile Update a profile of a given scanner kind - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param profileId The profile ID - @return ApiUpdateProfileRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param profileId The profile ID + @return ApiUpdateProfileRequest */ func (a *ProfilesAPIService) UpdateProfile(ctx context.Context, profileId string) ApiUpdateProfileRequest { return ApiUpdateProfileRequest{ ApiService: a, - ctx: ctx, - profileId: profileId, + ctx: ctx, + profileId: profileId, } } // Execute executes the request -// @return ProfileDetailed +// +// @return ProfileDetailed func (a *ProfilesAPIService) UpdateProfileExecute(r ApiUpdateProfileRequest) (*ProfileDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProfileDetailed + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProfileDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProfilesAPIService.UpdateProfile") @@ -1342,8 +1349,8 @@ func (a *ProfilesAPIService) UpdateProfileExecute(r ApiUpdateProfileRequest) (*P newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 404 { @@ -1353,8 +1360,8 @@ func (a *ProfilesAPIService) UpdateProfileExecute(r ApiUpdateProfileRequest) (*P newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1372,9 +1379,9 @@ func (a *ProfilesAPIService) UpdateProfileExecute(r ApiUpdateProfileRequest) (*P } type ApiUpdateProfileConfigurationRequest struct { - ctx context.Context - ApiService *ProfilesAPIService - profileId string + ctx context.Context + ApiService *ProfilesAPIService + profileId string updateProfileConfigurationRequest *UpdateProfileConfigurationRequest } @@ -1393,26 +1400,27 @@ UpdateProfileConfiguration Update profile configuration Update the configuration of a profile - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param profileId The profile ID - @return ApiUpdateProfileConfigurationRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param profileId The profile ID + @return ApiUpdateProfileConfigurationRequest */ func (a *ProfilesAPIService) UpdateProfileConfiguration(ctx context.Context, profileId string) ApiUpdateProfileConfigurationRequest { return ApiUpdateProfileConfigurationRequest{ ApiService: a, - ctx: ctx, - profileId: profileId, + ctx: ctx, + profileId: profileId, } } // Execute executes the request -// @return map[string]interface{} +// +// @return map[string]interface{} func (a *ProfilesAPIService) UpdateProfileConfigurationExecute(r ApiUpdateProfileConfigurationRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProfilesAPIService.UpdateProfileConfiguration") @@ -1489,8 +1497,8 @@ func (a *ProfilesAPIService) UpdateProfileConfigurationExecute(r ApiUpdateProfil newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 404 { @@ -1500,8 +1508,8 @@ func (a *ProfilesAPIService) UpdateProfileConfigurationExecute(r ApiUpdateProfil newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1519,9 +1527,9 @@ func (a *ProfilesAPIService) UpdateProfileConfigurationExecute(r ApiUpdateProfil } type ApiUpdateProfileSchemaRequest struct { - ctx context.Context - ApiService *ProfilesAPIService - profileId string + ctx context.Context + ApiService *ProfilesAPIService + profileId string updateProfileSchemaRequest *UpdateProfileSchemaRequest } @@ -1542,27 +1550,27 @@ Update the schema used to scan this profile. The schema ID is the ID of a schema uploaded to the Escape Platform using the [POST /assets/schema](#tag/assets/POST/assets/schema) endpoint. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param profileId The profile ID - @return ApiUpdateProfileSchemaRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param profileId The profile ID + @return ApiUpdateProfileSchemaRequest */ func (a *ProfilesAPIService) UpdateProfileSchema(ctx context.Context, profileId string) ApiUpdateProfileSchemaRequest { return ApiUpdateProfileSchemaRequest{ ApiService: a, - ctx: ctx, - profileId: profileId, + ctx: ctx, + profileId: profileId, } } // Execute executes the request -// @return ProfileDetailed +// +// @return ProfileDetailed func (a *ProfilesAPIService) UpdateProfileSchemaExecute(r ApiUpdateProfileSchemaRequest) (*ProfileDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProfileDetailed + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProfileDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProfilesAPIService.UpdateProfileSchema") @@ -1639,8 +1647,8 @@ func (a *ProfilesAPIService) UpdateProfileSchemaExecute(r ApiUpdateProfileSchema newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 404 { @@ -1650,8 +1658,8 @@ func (a *ProfilesAPIService) UpdateProfileSchemaExecute(r ApiUpdateProfileSchema newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } diff --git a/pkg/api/v3/api_scans.go b/pkg/api/v3/api_scans.go index 54859671..19910529 100644 --- a/pkg/api/v3/api_scans.go +++ b/pkg/api/v3/api_scans.go @@ -16,18 +16,17 @@ import ( "io" "net/http" "net/url" - "strings" "reflect" + "strings" ) - // ScansAPIService ScansAPI service type ScansAPIService service type ApiCancelScanRequest struct { - ctx context.Context + ctx context.Context ApiService *ScansAPIService - scanId string + scanId string } func (r ApiCancelScanRequest) Execute() (*ScanDetailed1, *http.Response, error) { @@ -39,26 +38,27 @@ CancelScan Cancel a scan Cancel a scan by ID - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param scanId The scan ID - @return ApiCancelScanRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param scanId The scan ID + @return ApiCancelScanRequest */ func (a *ScansAPIService) CancelScan(ctx context.Context, scanId string) ApiCancelScanRequest { return ApiCancelScanRequest{ ApiService: a, - ctx: ctx, - scanId: scanId, + ctx: ctx, + scanId: scanId, } } // Execute executes the request -// @return ScanDetailed1 +// +// @return ScanDetailed1 func (a *ScansAPIService) CancelScanExecute(r ApiCancelScanRequest) (*ScanDetailed1, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ScanDetailed1 + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ScanDetailed1 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScansAPIService.CancelScan") @@ -133,8 +133,8 @@ func (a *ScansAPIService) CancelScanExecute(r ApiCancelScanRequest) (*ScanDetail newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 404 { @@ -144,8 +144,8 @@ func (a *ScansAPIService) CancelScanExecute(r ApiCancelScanRequest) (*ScanDetail newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -163,9 +163,9 @@ func (a *ScansAPIService) CancelScanExecute(r ApiCancelScanRequest) (*ScanDetail } type ApiGetScanRequest struct { - ctx context.Context + ctx context.Context ApiService *ScansAPIService - scanId string + scanId string } func (r ApiGetScanRequest) Execute() (*ScanDetailed1, *http.Response, error) { @@ -177,26 +177,27 @@ GetScan Get a scan Get a scan by ID - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param scanId The scan ID - @return ApiGetScanRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param scanId The scan ID + @return ApiGetScanRequest */ func (a *ScansAPIService) GetScan(ctx context.Context, scanId string) ApiGetScanRequest { return ApiGetScanRequest{ ApiService: a, - ctx: ctx, - scanId: scanId, + ctx: ctx, + scanId: scanId, } } // Execute executes the request -// @return ScanDetailed1 +// +// @return ScanDetailed1 func (a *ScansAPIService) GetScanExecute(r ApiGetScanRequest) (*ScanDetailed1, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ScanDetailed1 + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ScanDetailed1 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScansAPIService.GetScan") @@ -271,8 +272,8 @@ func (a *ScansAPIService) GetScanExecute(r ApiGetScanRequest) (*ScanDetailed1, * newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -290,9 +291,9 @@ func (a *ScansAPIService) GetScanExecute(r ApiGetScanRequest) (*ScanDetailed1, * } type ApiIgnoreScanRequest struct { - ctx context.Context - ApiService *ScansAPIService - scanId string + ctx context.Context + ApiService *ScansAPIService + scanId string ignoreScanRequest *IgnoreScanRequest } @@ -311,26 +312,27 @@ IgnoreScan Ignore a scan Ignore a scan by ID - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param scanId The scan ID - @return ApiIgnoreScanRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param scanId The scan ID + @return ApiIgnoreScanRequest */ func (a *ScansAPIService) IgnoreScan(ctx context.Context, scanId string) ApiIgnoreScanRequest { return ApiIgnoreScanRequest{ ApiService: a, - ctx: ctx, - scanId: scanId, + ctx: ctx, + scanId: scanId, } } // Execute executes the request -// @return IgnoreScan200Response +// +// @return IgnoreScan200Response func (a *ScansAPIService) IgnoreScanExecute(r ApiIgnoreScanRequest) (*IgnoreScan200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IgnoreScan200Response + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IgnoreScan200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScansAPIService.IgnoreScan") @@ -407,8 +409,8 @@ func (a *ScansAPIService) IgnoreScanExecute(r ApiIgnoreScanRequest) (*IgnoreScan newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 404 { @@ -418,8 +420,8 @@ func (a *ScansAPIService) IgnoreScanExecute(r ApiIgnoreScanRequest) (*IgnoreScan newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 409 { @@ -429,8 +431,8 @@ func (a *ScansAPIService) IgnoreScanExecute(r ApiIgnoreScanRequest) (*IgnoreScan newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -448,20 +450,20 @@ func (a *ScansAPIService) IgnoreScanExecute(r ApiIgnoreScanRequest) (*IgnoreScan } type ApiListScansRequest struct { - ctx context.Context - ApiService *ScansAPIService - cursor *string - size *int - sortType *string + ctx context.Context + ApiService *ScansAPIService + cursor *string + size *int + sortType *string sortDirection *string - after *string - before *string - profileIds *string - ignored *string - initiator *string - kinds *[]string - status *string - projectIds *ListScansProjectIdsParameter + after *string + before *string + profileIds *string + ignored *string + initiator *string + kinds *[]string + status *string + projectIds *ListScansProjectIdsParameter } // The cursor to start the pagination from. Returned by the previous page response. If not provided, the first page will be returned. @@ -545,24 +547,25 @@ ListScans List scans List and search scans of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListScansRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListScansRequest */ func (a *ScansAPIService) ListScans(ctx context.Context) ApiListScansRequest { return ApiListScansRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ListScans200Response +// +// @return ListScans200Response func (a *ScansAPIService) ListScansExecute(r ApiListScansRequest) (*ListScans200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListScans200Response + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListScans200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScansAPIService.ListScans") @@ -688,8 +691,8 @@ func (a *ScansAPIService) ListScansExecute(r ApiListScansRequest) (*ListScans200 newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -707,8 +710,8 @@ func (a *ScansAPIService) ListScansExecute(r ApiListScansRequest) (*ListScans200 } type ApiStartScanRequest struct { - ctx context.Context - ApiService *ScansAPIService + ctx context.Context + ApiService *ScansAPIService startScanRequest *StartScanRequest } @@ -727,24 +730,25 @@ StartScan Start a new scan Start a new scan - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiStartScanRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiStartScanRequest */ func (a *ScansAPIService) StartScan(ctx context.Context) ApiStartScanRequest { return ApiStartScanRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return ScanDetailed1 +// +// @return ScanDetailed1 func (a *ScansAPIService) StartScanExecute(r ApiStartScanRequest) (*ScanDetailed1, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ScanDetailed1 + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ScanDetailed1 ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScansAPIService.StartScan") @@ -820,8 +824,8 @@ func (a *ScansAPIService) StartScanExecute(r ApiStartScanRequest) (*ScanDetailed newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } diff --git a/pkg/api/v3/api_tags.go b/pkg/api/v3/api_tags.go index 3c3e8c4c..c43c2d0d 100644 --- a/pkg/api/v3/api_tags.go +++ b/pkg/api/v3/api_tags.go @@ -19,13 +19,12 @@ import ( "strings" ) - // TagsAPIService TagsAPI service type TagsAPIService service type ApiCreateTagRequest struct { - ctx context.Context - ApiService *TagsAPIService + ctx context.Context + ApiService *TagsAPIService createTagRequest *CreateTagRequest } @@ -44,24 +43,25 @@ CreateTag Create a tag Create a tag for the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateTagRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateTagRequest */ func (a *TagsAPIService) CreateTag(ctx context.Context) ApiCreateTagRequest { return ApiCreateTagRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return TagDetail +// +// @return TagDetail func (a *TagsAPIService) CreateTagExecute(r ApiCreateTagRequest) (*TagDetail, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TagDetail + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TagDetail ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsAPIService.CreateTag") @@ -137,8 +137,8 @@ func (a *TagsAPIService) CreateTagExecute(r ApiCreateTagRequest) (*TagDetail, *h newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -156,9 +156,9 @@ func (a *TagsAPIService) CreateTagExecute(r ApiCreateTagRequest) (*TagDetail, *h } type ApiDeleteTagRequest struct { - ctx context.Context + ctx context.Context ApiService *TagsAPIService - id string + id string } func (r ApiDeleteTagRequest) Execute() (*DeleteProfile200Response, *http.Response, error) { @@ -170,26 +170,27 @@ DeleteTag Delete a tag Delete a tag from the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The tag ID - @return ApiDeleteTagRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The tag ID + @return ApiDeleteTagRequest */ func (a *TagsAPIService) DeleteTag(ctx context.Context, id string) ApiDeleteTagRequest { return ApiDeleteTagRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return DeleteProfile200Response +// +// @return DeleteProfile200Response func (a *TagsAPIService) DeleteTagExecute(r ApiDeleteTagRequest) (*DeleteProfile200Response, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeleteProfile200Response + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeleteProfile200Response ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsAPIService.DeleteTag") @@ -264,8 +265,8 @@ func (a *TagsAPIService) DeleteTagExecute(r ApiDeleteTagRequest) (*DeleteProfile newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 409 { @@ -275,8 +276,8 @@ func (a *TagsAPIService) DeleteTagExecute(r ApiDeleteTagRequest) (*DeleteProfile newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -294,7 +295,7 @@ func (a *TagsAPIService) DeleteTagExecute(r ApiDeleteTagRequest) (*DeleteProfile } type ApiListTagsRequest struct { - ctx context.Context + ctx context.Context ApiService *TagsAPIService } @@ -307,24 +308,25 @@ ListTags List tags List and search tags of the organization. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiListTagsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiListTagsRequest */ func (a *TagsAPIService) ListTags(ctx context.Context) ApiListTagsRequest { return ApiListTagsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return []TagDetail +// +// @return []TagDetail func (a *TagsAPIService) ListTagsExecute(r ApiListTagsRequest) ([]TagDetail, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []TagDetail + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []TagDetail ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TagsAPIService.ListTags") @@ -398,8 +400,8 @@ func (a *TagsAPIService) ListTagsExecute(r ApiListTagsRequest) ([]TagDetail, *ht newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } diff --git a/pkg/api/v3/api_upload.go b/pkg/api/v3/api_upload.go index 283dc718..48bb2273 100644 --- a/pkg/api/v3/api_upload.go +++ b/pkg/api/v3/api_upload.go @@ -18,12 +18,11 @@ import ( "net/url" ) - // UploadAPIService UploadAPI service type UploadAPIService service type ApiCreateUploadSignedUrlRequest struct { - ctx context.Context + ctx context.Context ApiService *UploadAPIService } @@ -39,10 +38,12 @@ Retrieve a signed URL link to upload a file to the Escape Platform. By running a query with this endpoint, you will receive a signed URL that you can use to upload a file to the Escape Platform. ```json -{ - "url": "[SIGNED URL]", - "id": "[SIGNED URL ID]" -} + + { + "url": "[SIGNED URL]", + "id": "[SIGNED URL ID]" + } + ``` With the url, you are able to upload one file: @@ -54,25 +55,25 @@ curl -X PUT --data-binary '@./schema.json' "[SIGNED URL]" Now, you are able to use the previously received id in another query. For example to update a schema of your application. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateUploadSignedUrlRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateUploadSignedUrlRequest */ func (a *UploadAPIService) CreateUploadSignedUrl(ctx context.Context) ApiCreateUploadSignedUrlRequest { return ApiCreateUploadSignedUrlRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return UploadSummary +// +// @return UploadSummary func (a *UploadAPIService) CreateUploadSignedUrlExecute(r ApiCreateUploadSignedUrlRequest) (*UploadSummary, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *UploadSummary + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UploadSummary ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UploadAPIService.CreateUploadSignedUrl") diff --git a/pkg/api/v3/api_workflows.go b/pkg/api/v3/api_workflows.go index 9d53df84..3e297370 100644 --- a/pkg/api/v3/api_workflows.go +++ b/pkg/api/v3/api_workflows.go @@ -19,13 +19,12 @@ import ( "strings" ) - // WorkflowsAPIService WorkflowsAPI service type WorkflowsAPIService service type ApiCreateWorkflowRequest struct { - ctx context.Context - ApiService *WorkflowsAPIService + ctx context.Context + ApiService *WorkflowsAPIService createWorkflowRequest *CreateWorkflowRequest } @@ -43,24 +42,25 @@ CreateWorkflow Create workflows. Create a workflow. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateWorkflowRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateWorkflowRequest */ func (a *WorkflowsAPIService) CreateWorkflow(ctx context.Context) ApiCreateWorkflowRequest { return ApiCreateWorkflowRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return WorkflowDetailed +// +// @return WorkflowDetailed func (a *WorkflowsAPIService) CreateWorkflowExecute(r ApiCreateWorkflowRequest) (*WorkflowDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *WorkflowDetailed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WorkflowDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkflowsAPIService.CreateWorkflow") @@ -136,8 +136,8 @@ func (a *WorkflowsAPIService) CreateWorkflowExecute(r ApiCreateWorkflowRequest) newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -155,9 +155,9 @@ func (a *WorkflowsAPIService) CreateWorkflowExecute(r ApiCreateWorkflowRequest) } type ApiDeleteWorkflowRequest struct { - ctx context.Context + ctx context.Context ApiService *WorkflowsAPIService - id string + id string } func (r ApiDeleteWorkflowRequest) Execute() (*WorkflowDetailed, *http.Response, error) { @@ -169,26 +169,27 @@ DeleteWorkflow Delete workflow. Delete a workflow. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiDeleteWorkflowRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiDeleteWorkflowRequest */ func (a *WorkflowsAPIService) DeleteWorkflow(ctx context.Context, id string) ApiDeleteWorkflowRequest { return ApiDeleteWorkflowRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return WorkflowDetailed +// +// @return WorkflowDetailed func (a *WorkflowsAPIService) DeleteWorkflowExecute(r ApiDeleteWorkflowRequest) (*WorkflowDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *WorkflowDetailed + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WorkflowDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkflowsAPIService.DeleteWorkflow") @@ -263,8 +264,8 @@ func (a *WorkflowsAPIService) DeleteWorkflowExecute(r ApiDeleteWorkflowRequest) newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -282,9 +283,9 @@ func (a *WorkflowsAPIService) DeleteWorkflowExecute(r ApiDeleteWorkflowRequest) } type ApiGetWorkflowRequest struct { - ctx context.Context + ctx context.Context ApiService *WorkflowsAPIService - id string + id string } func (r ApiGetWorkflowRequest) Execute() (*WorkflowDetailed, *http.Response, error) { @@ -296,26 +297,27 @@ GetWorkflow Get workflow. Get a workflow. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiGetWorkflowRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiGetWorkflowRequest */ func (a *WorkflowsAPIService) GetWorkflow(ctx context.Context, id string) ApiGetWorkflowRequest { return ApiGetWorkflowRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return WorkflowDetailed +// +// @return WorkflowDetailed func (a *WorkflowsAPIService) GetWorkflowExecute(r ApiGetWorkflowRequest) (*WorkflowDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *WorkflowDetailed + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WorkflowDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkflowsAPIService.GetWorkflow") @@ -390,8 +392,8 @@ func (a *WorkflowsAPIService) GetWorkflowExecute(r ApiGetWorkflowRequest) (*Work newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -409,9 +411,9 @@ func (a *WorkflowsAPIService) GetWorkflowExecute(r ApiGetWorkflowRequest) (*Work } type ApiUpdateWorkflowRequest struct { - ctx context.Context - ApiService *WorkflowsAPIService - id string + ctx context.Context + ApiService *WorkflowsAPIService + id string updateWorkflowRequest *UpdateWorkflowRequest } @@ -429,26 +431,27 @@ UpdateWorkflow Update workflow. Update a workflow. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id The workflow ID - @return ApiUpdateWorkflowRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id The workflow ID + @return ApiUpdateWorkflowRequest */ func (a *WorkflowsAPIService) UpdateWorkflow(ctx context.Context, id string) ApiUpdateWorkflowRequest { return ApiUpdateWorkflowRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return WorkflowDetailed +// +// @return WorkflowDetailed func (a *WorkflowsAPIService) UpdateWorkflowExecute(r ApiUpdateWorkflowRequest) (*WorkflowDetailed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *WorkflowDetailed + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WorkflowDetailed ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkflowsAPIService.UpdateWorkflow") @@ -525,8 +528,8 @@ func (a *WorkflowsAPIService) UpdateWorkflowExecute(r ApiUpdateWorkflowRequest) newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } diff --git a/pkg/api/v3/client.go b/pkg/api/v3/client.go index 38b8bb13..28ce1690 100644 --- a/pkg/api/v3/client.go +++ b/pkg/api/v3/client.go @@ -31,14 +31,13 @@ import ( "strings" "time" "unicode/utf8" - ) var ( JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) - queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) + queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) // APIClient manages communication with the Escape Public API API v3.0.0 @@ -161,7 +160,7 @@ func typeCheckParameter(obj interface{}, expected string, name string) error { return nil } -func parameterValueToString( obj interface{}, key string ) string { +func parameterValueToString(obj interface{}, key string) string { if reflect.TypeOf(obj).Kind() != reflect.Ptr { if actualObj, ok := obj.(interface{ GetActualInstanceValue() interface{} }); ok { return fmt.Sprintf("%v", actualObj.GetActualInstanceValue()) @@ -169,11 +168,11 @@ func parameterValueToString( obj interface{}, key string ) string { return fmt.Sprintf("%v", obj) } - var param,ok = obj.(MappedNullable) + var param, ok = obj.(MappedNullable) if !ok { return "" } - dataMap,err := param.ToMap() + dataMap, err := param.ToMap() if err != nil { return "" } @@ -189,85 +188,85 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri value = "null" } else { switch v.Kind() { - case reflect.Invalid: - value = "invalid" + case reflect.Invalid: + value = "invalid" - case reflect.Struct: - if t,ok := obj.(MappedNullable); ok { - dataMap,err := t.ToMap() - if err != nil { - return - } - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType) - return - } - if t, ok := obj.(time.Time); ok { - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType) - return - } - value = v.Type().String() + " value" - case reflect.Slice: - var indValue = reflect.ValueOf(obj) - if indValue == reflect.ValueOf(nil) { + case reflect.Struct: + if t, ok := obj.(MappedNullable); ok { + dataMap, err := t.ToMap() + if err != nil { return } - var lenIndValue = indValue.Len() - for i:=0;i Date: Tue, 17 Mar 2026 18:02:52 +0100 Subject: [PATCH 4/4] fix: order Signed-off-by: Kaan Doyurur --- .github/workflows/pr.yaml | 51 +++++++++++++++++++++++---------------- 1 file changed, 30 insertions(+), 21 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index e1f52e73..f839cc8b 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -9,10 +9,34 @@ env: GO_VERSION: "1.23.0" jobs: + go-fmt: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref || github.ref }} + + - uses: actions/setup-go@v5 + with: + go-version: ${{ env.GO_VERSION }} + + - name: Format Go code + run: go fmt ./... + + - name: Commit and push changes + uses: stefanzweifel/git-auto-commit-action@v7 + with: + commit_message: "style: auto-format go code" + go-mod: + needs: go-fmt runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref || github.ref }} - uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} @@ -23,9 +47,12 @@ jobs: git diff --exit-code go.sum golangci-lint: + needs: go-fmt runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref || github.ref }} - uses: actions/setup-go@v5 with: go-version: ${{ env.GO_VERSION }} @@ -34,28 +61,8 @@ jobs: with: version: latest - go-fmt: - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - uses: actions/checkout@v4 - with: - ref: ${{ github.head_ref }} - - - uses: actions/setup-go@v5 - with: - go-version: ${{ env.GO_VERSION }} - - - name: Format Go code - run: go fmt ./... - - - name: Commit and push changes - uses: stefanzweifel/git-auto-commit-action@v7 - with: - commit_message: "style: auto-format go code" - tests: + needs: go-fmt strategy: matrix: os: @@ -70,6 +77,8 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.head_ref || github.ref }} - uses: actions/setup-go@v5 with: go-version: ${{ matrix.golang }}